/* studio/mkt.css */
.mk {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mk-top {
  height: var(--topbar);
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mk-top .mk-burger {
  display: none;
}
.mk-nav .mk-only-sm {
  display: none;
}
.mk-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px 0 6px;
  min-width: 220px;
  max-width: 320px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.mk-switch:hover {
  border-color: var(--neon-dim);
}
.mk-switch b {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.mk-switch .muted {
  flex: 1;
  text-align: left;
}
.mk-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.mk-nav {
  width: var(--left);
  flex: none;
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  overflow: auto;
}
.mk-nav-i {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}
.mk-nav-i:hover {
  background: var(--panel-2);
  color: var(--text);
}
.mk-nav-i.on {
  background: var(--neon-soft);
  color: var(--neon);
}
.mk-nav-clients {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 8px 14px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.mk-nav-c {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}
.mk-nav-c span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-nav-c:hover {
  background: var(--panel-2);
  color: var(--text);
}
.mk-nav-c.on {
  color: var(--text);
  background: var(--panel-2);
  box-shadow: inset 2px 0 0 var(--neon);
}
.mk-nav-c.add {
  color: var(--neon-dim);
}
.mk-nav-foot {
  padding: 10px;
  line-height: 1.5;
  font-size: 10px;
}
.mk-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 22px 28px 60px;
}
.mk-main > *,
.mk-ws-b > * {
  max-width: 1280px;
}
.mk-loading {
  padding: 40px;
  color: var(--muted);
}
.mk-gate {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  overflow: auto;
}
.mk-gate h1 {
  font-size: 28px;
  line-height: 1.2;
  max-width: 620px;
  margin: 8px 0 0;
  letter-spacing: -0.4px;
}
.mk-gate p {
  max-width: 560px;
  margin: 0;
  font-size: 14px;
}
.mk-av {
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
  flex: none;
}
.mk-av.txt {
  display: inline-grid;
  place-items: center;
  color: var(--neon-ink);
  font-weight: 800;
  font-family: var(--sans);
  background: var(--neon);
}
.mk-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.mk-head > .grow {
  min-width: min(100%, 380px);
}
.mk-head h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.mk-head p {
  margin: 6px 0 0;
  max-width: 720px;
  line-height: 1.5;
}
.mk-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--neon-dim);
  margin-bottom: 6px;
}
.mk-actions {
  justify-content: flex-end;
}
.mk-title-in {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  padding: 0 6px;
  margin-left: -6px;
  min-width: 240px;
  width: min(560px, 60vw);
}
.mk-title-in:hover {
  border-color: var(--line-2);
}
.mk-title-in:focus {
  outline: none;
  border-color: var(--neon);
}
.mk-pick {
  width: auto;
  max-width: 240px;
  height: 24px;
}
.mk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  text-align: center;
  background: var(--bg-2);
}
.mk-empty .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--neon);
  background: var(--neon-soft);
  box-shadow: var(--glow);
}
.mk-empty b {
  font-size: 14px;
}
.mk-empty p {
  margin: 0;
  max-width: 480px;
  color: var(--muted);
  line-height: 1.55;
}
.mk-st.dim {
  color: var(--muted);
}
.mk-st.warn {
  color: var(--warn);
  border-color: rgba(255, 197, 61, 0.4);
}
.mk-st.ok {
  color: var(--neon);
  border-color: var(--neon-line);
  background: var(--neon-soft);
}
.mk-st.info {
  color: var(--info);
  border-color: rgba(111, 183, 255, 0.4);
}
.mk-st.neon {
  color: var(--neon-ink);
  background: var(--neon);
  border-color: var(--neon);
}
.mk-st.err {
  color: var(--err);
  border-color: rgba(255, 92, 92, 0.45);
}
.claim.err {
  border-color: rgba(255, 92, 92, 0.4);
}
.mk-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.mk-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.mk-kpi .l {
  font-size: 11px;
  color: var(--muted);
}
.mk-kpi b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.mk-kpi .s {
  font-size: 10.5px;
  color: var(--dim);
  font-family: var(--mono);
}
.mk-kpi.warn b {
  color: var(--warn);
}
.mk-kpi.err b {
  color: var(--err);
}
.mk-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}
.mk-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 14px;
  overflow: hidden;
}
.mk-cols > .mk-card {
  margin-bottom: 0;
}
.mk-card-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.mk-card-h b {
  font-size: 12.5px;
}
.mk-line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  min-height: 40px;
}
.mk-line:last-child {
  border-bottom: 0;
}
.mk-line:hover:not(.static) {
  background: var(--panel-2);
}
.mk-line.static {
  cursor: default;
}
.mk-none {
  padding: 18px 12px;
  color: var(--muted);
}
.mk-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
  font-weight: 700;
}
.mk-date i {
  font-style: normal;
  color: var(--dim);
  font-size: 10px;
  font-weight: 400;
}
.mk-ch {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 18px;
  border-radius: 4px;
  color: #04140a;
  font: 700 9.5px var(--mono);
  flex: none;
}
.mk-chcell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mk-chcell i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.mk-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 90px;
  height: 16px;
  border-radius: 4px;
  background: var(--panel-3);
  overflow: hidden;
}
.mk-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background:
    linear-gradient(
      90deg,
      var(--neon-dim),
      var(--neon));
}
.mk-bar em {
  position: relative;
  font-style: normal;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text);
  padding-left: 6px;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
}
.mk-bar.sm {
  width: 110px;
  flex: none;
}
.mk-table {
  display: flex;
  flex-direction: column;
}
.mk-tr {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.6fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.mk-tr.head {
  cursor: default;
  color: var(--dim);
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mk-tr:not(.head):hover {
  background: var(--panel-2);
}
.mk-tr .row {
  min-width: 0;
}
.mk-tr b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-ell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  display: block;
}
.mk-kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 9px 12px;
  padding: 12px;
  align-items: center;
}
.mk-kv > span:nth-child(odd) {
  color: var(--muted);
  font-size: 11.5px;
}
.mk-audit {
  display: flex;
  flex-direction: column;
  max-height: 360px;
  overflow: auto;
}
.mk-audit > div {
  display: grid;
  grid-template-columns: 110px 140px 1fr;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.mk-audit b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
select.in.mk-role {
  width: auto;
  min-width: 150px;
  flex: none;
}
.mk-danger .mk-card-h b {
  color: var(--err);
}
.mk-search {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #070b09;
  color: var(--muted);
}
.mk-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  min-width: 0;
}
.mk-search:focus-within {
  border-color: var(--neon);
}
.mk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.mk-client {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.12s,
    transform 0.12s,
    box-shadow 0.12s;
}
.mk-client:hover {
  border-color: var(--neon-dim);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -18px rgba(57, 255, 20, 0.6);
}
.mk-client b {
  display: block;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-client-tabs {
  color: var(--dim);
  gap: 10px;
}
.mk-k {
  padding: 0;
  align-self: start;
  margin-top: 12vh;
}
.mk-k-in {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.mk-k-in input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text);
}
.mk-k-list {
  display: flex;
  flex-direction: column;
  padding: 6px;
  max-height: 50vh;
  overflow: auto;
}
.mk-k-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.mk-k-list button.on {
  background: var(--neon-soft);
  color: var(--neon);
}
.mk-ws {
  display: flex;
  flex-direction: column;
  margin: -22px -28px 0;
}
.mk-ws-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px 10px;
}
.mk-ws-name {
  font-size: 16px;
}
.mk-tabs {
  display: flex;
  gap: 2px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: -22px;
  background: var(--bg);
  z-index: 3;
}
.mk-tabs::-webkit-scrollbar {
  display: none;
}
.mk-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.mk-tabs button:hover {
  color: var(--text);
}
.mk-tabs button.on {
  color: var(--neon);
  border-bottom-color: var(--neon);
}
.mk-tabs .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--info);
  position: absolute;
  top: 9px;
  right: 4px;
}
.mk-tabs .dot.err {
  background: var(--err);
}
.mk-ws-b {
  padding: 20px 28px 0;
}
.mk-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
}
.mk-day {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 90px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  min-width: 0;
}
.mk-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid;
  border-color: var(--line-2);
  background: var(--panel-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: default;
}
.mk-pill i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  flex: none;
}
.mk-pill.st-draft {
  opacity: 0.6;
  border-style: dashed;
}
.mk-pill.st-live {
  background: var(--neon-soft);
}
.mk-proj {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.mk-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mk-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  user-select: none;
}
.mk-checks label.on {
  border-color: var(--neon-line);
  background: var(--neon-soft);
  color: var(--text);
}
.mk-checks label i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.mk-checks label .dim {
  font-size: 10px;
}
.mk-checks input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mk-checks label:focus-within {
  box-shadow: 0 0 0 2px var(--neon-soft);
}
.mk-range {
  accent-color: var(--neon);
}
.mk-mini {
  display: flex;
  gap: 18px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.mk-mini b {
  color: var(--neon);
  font-size: 15px;
}
.mk-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}
.mk-drop:hover {
  border-color: var(--neon-dim);
  color: var(--text);
}
.mk-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  max-width: 640px;
}
.mk-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
}
.mk-step i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 11px var(--mono);
  font-style: normal;
  border: 1px solid var(--line-2);
}
.mk-step.on {
  color: var(--text);
}
.mk-step.on i {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: var(--glow);
}
.mk-step.done {
  color: var(--muted);
}
.mk-step.done i {
  background: var(--neon);
  color: var(--neon-ink);
  border-color: var(--neon);
}
.mk-prog-label {
  color: var(--text);
}
.mk-prog-bar {
  height: 6px;
  border-radius: 6px;
  background: var(--panel-3);
  overflow: hidden;
}
.mk-prog-bar i {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--neon-dim),
      var(--neon));
  transition: width 0.6s ease;
  box-shadow: 0 0 12px var(--neon);
}
.mk-spin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  border-top-color: var(--neon);
  animation: mkspin 0.8s linear infinite;
}
@keyframes mkspin {
  to {
    transform: rotate(360deg);
  }
}
.mk-bb {
  --bb-ink: #17181a;
  --bb-mut: #5f646b;
  background: #fbfaf7;
  color: var(--bb-ink);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  font-family: var(--bb-b);
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 30px 80px -40px #000;
}
.mk-bb .in {
  background: #fff;
  color: #111;
  border-color: #d9d9d4;
}
.mk-bb .dim {
  color: #8b8f94;
}
.bb-cover {
  padding: 48px 48px 0;
  background:
    radial-gradient(
      120% 120% at 100% 0%,
      color-mix(in srgb, var(--bb-a) 22%, transparent),
      transparent 60%),
    var(--bb-p);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bb-cover img {
  height: 64px;
  max-width: 220px;
  object-fit: contain;
  align-self: flex-start;
  border-radius: 12px;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
}
.bb-cover h2 {
  font-family: var(--bb-h);
  font-size: 42px;
  line-height: 1.05;
  margin: 8px 0 0;
  letter-spacing: -0.5px;
}
.bb-cover p {
  margin: 0;
  font-size: 17px;
  opacity: 0.92;
  max-width: 640px;
}
.bb-strip {
  display: flex;
  height: 14px;
  margin: 26px -48px 0;
}
.rv-brand .bb-strip {
  margin: 6px 0 10px;
  border-radius: 6px;
  overflow: hidden;
}
.bb-sec {
  padding: 34px 48px;
  border-top: 1px solid #ecebe6;
}
.bb-sec-h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.bb-n {
  font: 600 11px var(--mono);
  color: var(--bb-p);
  letter-spacing: 1px;
}
.bb-sec-h h3 {
  font-family: var(--bb-h);
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.2px;
}
.bb-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bb-txt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.bb-txt p {
  margin: 0;
}
.bb-l {
  font: 600 10px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bb-mut);
}
.bb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bb-chips span {
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bb-p, var(--neon)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--bb-p, var(--neon)) 30%, transparent);
  font-size: 12.5px;
}
.bb-ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bb-ul.ok li::marker {
  content: "\2713   ";
  color: #1f9d55;
}
.bb-ul.err li::marker {
  content: "\2715   ";
  color: #d64545;
}
.bb-personas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.bb-persona {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ecebe6;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bb-pav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--bb-p);
  flex: none;
}
.bb-pf {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bb-pf span {
  font: 600 9.5px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bb-mut);
}
.bb-pf p {
  margin: 0;
  font-size: 12.5px;
}
.bb-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 80px;
  border: 1px dashed #cfcfc8;
  border-radius: 12px;
  background: transparent;
  color: var(--bb-mut);
  cursor: pointer;
}
.bb-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.bb-logo {
  height: 140px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #ecebe6;
}
.bb-logo.light {
  background: #fff;
}
.bb-logo.dark {
  background: #15171a;
  color: #aaa;
}
.bb-logo img {
  max-height: 70px;
  max-width: 70%;
  object-fit: contain;
}
.bb-logo span {
  font: 10px var(--mono);
  color: #8b8f94;
}
.bb-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.bb-sw {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bb-sw-c {
  height: 92px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: copy;
  position: relative;
}
.bb-sw-c input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.bb-sw .mono {
  font-size: 10.5px;
  color: var(--bb-mut);
}
.bb-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 14px;
}
.bb-h-demo {
  font-family: var(--bb-h);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
}
.bb-b-demo {
  font-family: var(--bb-b);
  font-size: 14px;
}
.bb-note {
  margin: 4px 0 0;
  color: var(--bb-mut);
  font-size: 12px;
}
.mk-bb-wrap {
  display: flex;
  flex-direction: column;
}
.mk-viewbar {
  margin-bottom: 12px;
}
.mk-viewbar .seg button {
  gap: 5px;
  padding: 0 10px;
  white-space: nowrap;
}
.mk-viewbar .seg {
  max-width: 100%;
  overflow-x: auto;
}
.mk-filters {
  margin-bottom: 10px;
}
.mk-filters select.in {
  width: auto;
  min-width: 130px;
}
.mk-sheet {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  max-height: calc(100vh - 300px);
  background: var(--panel);
}
.mk-sheet.small-t {
  max-height: none;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.mk-sheet table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}
.mk-sheet th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel-2);
  color: var(--muted);
  font: 600 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line-2);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.mk-sheet td {
  padding: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
  max-width: 380px;
}
.mk-sheet td .cv {
  padding: 7px 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  white-space: pre-wrap;
  min-height: 30px;
}
.mk-sheet td.mk-num {
  padding: 7px 8px;
  text-align: right;
}
.mk-sheet td:focus {
  outline: 2px solid var(--neon);
  outline-offset: -2px;
}
.mk-sheet td.editing {
  outline: 2px solid var(--neon);
  outline-offset: -2px;
  background: #070b09;
}
.mk-sheet td.editing .in {
  border: 0;
  border-radius: 0;
  height: 100%;
  min-height: 30px;
  box-shadow: none;
}
.mk-sheet .sticky-c {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--panel-2);
  padding: 7px 8px;
  min-width: 40px;
  text-align: right;
  box-shadow: inset -3px 0 0 var(--ch, transparent);
}
.mk-sheet th.sticky-c {
  z-index: 3;
}
.mk-sheet tr:hover td {
  background: rgba(57, 255, 20, 0.03);
}
.mk-sheet tr.grp td {
  background: var(--bg-2);
  padding: 7px 8px;
  color: var(--text);
  position: sticky;
  top: 31px;
  z-index: 1;
}
.mk-sheet tr.grp td.sticky-c {
  z-index: 2;
}
.mk-sheet tr.st-approved .c-status,
.mk-sheet tr.st-live .c-status {
  background: rgba(57, 255, 20, 0.05);
}
.mk-sheet td.c-topic .cv {
  font-weight: 600;
}
.mk-sheet td.c-note .cv {
  color: var(--warn);
}
.mk-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.mk-cal-h {
  background: var(--panel-2);
  padding: 6px 8px;
  font: 600 10px var(--mono);
  color: var(--muted);
}
.mk-cal-d {
  background: var(--panel);
  min-height: 112px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.mk-cal-d.off {
  background: var(--bg-2);
}
.mk-cal-d .n {
  font: 600 11px var(--mono);
  color: var(--muted);
}
.mk-cal-d .mk-pill {
  cursor: grab;
}
.mk-ev {
  font-size: 10px;
  color: var(--warn);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn.flip svg {
  transform: rotate(180deg);
}
.mk-kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.mk-col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 240px;
  max-height: 70vh;
  overflow: auto;
}
.mk-col-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 6px;
}
.mk-kcard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid;
  cursor: grab;
}
.mk-kcard b {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.mk-summary {
  display: flex;
  flex-direction: column;
}
.mk-sum-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mk-sum-h h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.mk-sum-strat {
  font-size: 14px;
  line-height: 1.6;
  max-width: 860px;
  margin: 4px 0 16px;
  color: var(--text);
}
.mk-month b.mono {
  min-width: 110px;
}
.mk-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 220px;
  padding: 16px 14px 10px;
}
.mk-bars.short {
  height: 150px;
}
.mk-bcol {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
  min-width: 22px;
}
.mk-bcol .stack {
  width: 100%;
  max-width: 46px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  min-height: 2px;
}
.mk-bcol .stack i {
  display: block;
  min-height: 0;
}
.mk-bcol .v {
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}
.mk-bcol .l {
  font: 10px var(--mono);
  color: var(--dim);
}
.mk-menu {
  position: relative;
  display: inline-flex;
}
.mk-menu-pop {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 20;
  width: 300px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 20px 50px -16px #000;
  display: flex;
  flex-direction: column;
}
.mk-menu-pop button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.mk-menu-pop button span {
  font-size: 11px;
  color: var(--muted);
}
.mk-menu-pop button:hover {
  background: var(--neon-soft);
}
.mk-work {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.mk-wcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid;
  border-radius: 10px;
  background: var(--panel);
}
.mk-wcard p {
  margin: 0;
  line-height: 1.45;
}
.mk-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv {
  height: 100%;
  overflow: auto;
  background: #f4f5f2;
  color: #16181a;
  font-size: 14px;
  --line: #e3e5e0;
  --line-2: #d4d8d2;
  --muted: #5d636a;
  --panel: #fff;
  --panel-2: #f1f3ef;
  --text: #16181a;
  --neon-soft: rgba(38, 181, 13, 0.12);
  --neon-line: rgba(38, 181, 13, 0.45);
  --neon: #1f9d0c;
  padding-bottom: 190px;
}
.rv .in {
  background: #fff;
  color: #111;
  border-color: #d4d8d2;
}
.rv .muted,
.rv .dim {
  color: #6a7077;
}
.rv .chip {
  color: #444;
}
.rv .claim {
  background: #fff;
  border-color: #cfe9c9;
  color: #1c3d15;
  margin-top: 10px;
}
.rv .claim.err {
  border-color: #f2c4c4;
  color: #7a1b1b;
}
.rv-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.rv-top img {
  height: 26px;
  max-width: 120px;
  object-fit: contain;
}
.rv-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rv-hero h1 {
  margin: 4px 0 6px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.rv-hero p {
  margin: 0;
  line-height: 1.5;
}
.rv-hero .mk-eyebrow {
  color: #1f7d0c;
}
.rv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rv-card p {
  margin: 0;
  line-height: 1.6;
}
.rv-card .bb-chips span {
  --bb-p: #1f9d0c;
}
.rv-months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.rv-months > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 10px;
  background: #f6f7f4;
}
.rv-filter .seg {
  background: #fff;
  overflow-x: auto;
  max-width: 100%;
}
.rv-filter .seg button.on {
  color: #1f7d0c;
}
.rv-filter .seg button {
  white-space: nowrap;
}
.mk-cmts summary {
  cursor: pointer;
  list-style: none;
}
.mk-cmts summary::-webkit-details-marker {
  display: none;
}
.rv-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rv-row {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid;
  border-radius: 12px;
  overflow: hidden;
}
.rv-row.approved {
  box-shadow: inset 0 0 0 1px rgba(31, 157, 12, 0.5);
}
.rv-row.changes {
  box-shadow: inset 0 0 0 1px rgba(214, 69, 69, 0.5);
}
.rv-row-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  flex-wrap: wrap;
}
.rv-row-h b {
  min-width: 180px;
  font-weight: 600;
}
.rv-row-h svg.rot {
  transform: rotate(90deg);
}
.rv-row-b {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rv-cap {
  white-space: pre-wrap;
  background: #f6f7f4;
  padding: 10px;
  border-radius: 8px;
}
.rv-row-a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: #fafbf9;
}
.rv-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d4d8d2;
  background: #fff;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rv-btn.on.ok {
  background: #1f9d0c;
  border-color: #1f9d0c;
  color: #fff;
}
.rv-btn.on.err {
  background: #d64545;
  border-color: #d64545;
  color: #fff;
}
.rv-cmt p {
  margin: 2px 0 0;
}
.rv-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.rv-bar textarea.in {
  min-height: 30px;
  height: 30px;
  resize: none;
}
.rv-bar .btn.primary {
  background: #1f9d0c;
  border-color: #1f9d0c;
  color: #fff;
  box-shadow: none;
}
.rv-bar .btn {
  background: #fff;
  color: #222;
  border-color: #d4d8d2;
}
.rv-bar .btn.ghost {
  border-color: transparent;
  background: transparent;
}
.rv-err {
  grid-column: 1 / -1;
  color: #b42318;
  font-size: 12px;
}
.rv-msg {
  max-width: 420px;
  margin: 18vh auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 16px;
}
.rv-msg.err {
  color: #7a1b1b;
}
.rv .mk-spin {
  border-color: #d4d8d2;
  border-top-color: #1f9d0c;
}
.rv .bb-persona {
  background: #f9faf8;
}
@media (max-width: 1100px) {
  .mk-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mk-tr {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .mk-tr > :nth-child(4),
  .mk-tr > :nth-child(5) {
    display: none;
  }
}
@media (max-width: 820px) {
  body {
    overflow: auto;
  }
  .mk-top .mk-burger {
    display: inline-flex;
  }
  .mk-hide-sm {
    display: none !important;
  }
  .mk-nav .mk-only-sm {
    display: flex;
  }
  .mk-switch .kbd {
    display: none;
  }
  .mk-nav-i {
    text-decoration: none;
  }
  .mk-top {
    gap: 8px;
    padding: 0 10px;
  }
  .mk-top .logo .wordmark {
    display: none;
  }
  .mk-switch {
    min-width: 0;
    flex: 1;
  }
  .mk-nav {
    position: fixed;
    top: var(--topbar);
    bottom: 0;
    left: 0;
    z-index: 25;
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    box-shadow: 20px 0 60px -20px #000;
  }
  .mk-nav.open {
    transform: none;
  }
  .mk-main {
    padding: 16px 16px 60px;
  }
  .mk-ws {
    margin: -16px -16px 0;
  }
  .mk-ws-h {
    padding: 14px 16px 8px;
  }
  .mk-tabs {
    padding: 0 8px;
    top: -16px;
  }
  .mk-ws-b {
    padding: 16px 16px 0;
  }
  .mk-cols,
  .bb-2,
  .bb-type,
  .bb-logos {
    grid-template-columns: minmax(0, 1fr);
  }
  .mk-head h1,
  .mk-title-in {
    font-size: 19px;
  }
  .mk-title-in {
    width: 100%;
    min-width: 0;
  }
  .mk-week {
    grid-template-columns: minmax(0, 1fr);
  }
  .mk-day {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .mk-audit > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .mk-cal-d {
    min-height: 64px;
  }
  .mk-cal-d .mk-pill {
    font-size: 0;
    padding: 0;
    height: 6px;
    border: 0;
  }
  .mk-cal-d .mk-pill i {
    width: 100%;
    height: 6px;
  }
  .mk-ev {
    font-size: 0;
    height: 3px;
    background: var(--warn);
  }
  .bb-cover,
  .bb-sec {
    padding-left: 20px;
    padding-right: 20px;
  }
  .bb-strip {
    margin-left: -20px;
    margin-right: -20px;
  }
  .bb-cover h2 {
    font-size: 30px;
  }
  .rv-bar {
    grid-template-columns: 1fr;
  }
  .rv-bar .row {
    justify-content: flex-end;
  }
  .rv-row-h b {
    min-width: 0;
    flex-basis: 100%;
  }
}
.mk-lib {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mk-lib.big .asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.mk-gen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-2);
}
.mk-gen textarea.in {
  min-height: 52px;
}
.mk-todo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 12px;
}
.mk-designs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px;
  align-items: start;
}
.mk-design {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  cursor: pointer;
}
.mk-design:hover {
  border-color: var(--neon-dim);
}
.mk-design .pv {
  width: 100%;
  max-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-3);
  color: var(--dim);
}
.mk-design .pv img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mk-design .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mk-design .acts {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  gap: 2px;
  background: rgba(6, 9, 8, 0.8);
  border-radius: 6px;
}
.mk-design:hover .acts,
.mk-design:focus-within .acts {
  display: flex;
}
.mk-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.mk-size-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  text-align: center;
}
.mk-size-grid button.on {
  border-color: var(--neon);
  box-shadow: var(--glow);
}
.mk-size-grid .box {
  width: 64px;
  max-height: 80px;
  border: 2px solid var(--neon-dim);
  border-radius: 4px;
  background: var(--neon-soft);
  margin-bottom: 6px;
}
.mk-sizes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mk-sizes label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 11.5px;
}
.mk-sizes label.on {
  border-color: var(--neon-line);
  background: var(--neon-soft);
}
.mk-sizes label em {
  display: block;
  font-style: normal;
  color: var(--dim);
  font-size: 10px;
}
.mk-sizes input {
  accent-color: var(--neon);
}
.mk-rowref {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--bg-2);
}
.mk-rowref p {
  margin: 0;
}
.mk-wthumb {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--panel-3);
}
.mk-day-row {
  margin-bottom: 18px;
}
.mk-day-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  text-transform: capitalize;
}
.mk-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}
.mk-post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.mk-post .pv {
  width: 100%;
  max-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-3);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.mk-post .pv img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.mk-post .pv:hover {
  outline: 2px solid var(--neon-dim);
}
.mk-post .pv.empty {
  border: 1px dashed var(--line-2);
  background: var(--bg-2);
}
.mk-post .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.4;
}
.mk-post b.mk-clamp {
  -webkit-line-clamp: 2;
}
.mk-post p {
  margin: 0;
}
.mk .seg button {
  white-space: nowrap;
}
.mk-dsheet {
  max-height: calc(100vh - 260px);
  margin-bottom: 14px;
}
.mk-dsheet td.c-img {
  padding: 6px;
  width: 124px;
}
.mk-imgacts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 112px;
  margin-top: 6px;
}
.mk-imgacts button {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font: 500 11.5px var(--font, inherit);
  cursor: pointer;
  white-space: nowrap;
}
.mk-imgacts button:hover {
  color: var(--text);
  border-color: var(--line-3, var(--muted));
}
.mk-imgacts button.ai {
  color: var(--neon);
  border-color: color-mix(in srgb, var(--neon) 40%, transparent);
  background: color-mix(in srgb, var(--neon) 8%, transparent);
}
.mk-imgacts button.ai:hover {
  background: color-mix(in srgb, var(--neon) 16%, transparent);
}
.mk-thumb {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-3);
  cursor: pointer;
  overflow: hidden;
  color: var(--dim);
}
.mk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mk-thumb:hover {
  border-color: var(--neon);
  box-shadow: var(--glow);
}
.mk-thumb.empty {
  border-style: dashed;
  background: var(--bg-2);
}
.mk-thumb.empty span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}
.mk-thumb.empty em {
  font-style: normal;
}
.mk-thumb.empty:hover {
  color: var(--neon);
}
.mk-dsheet td .cv {
  -webkit-line-clamp: 4;
  max-width: 260px;
}
.mk-dsheet td.c-cap .cv {
  min-width: 240px;
}
.mk-dsheet td.c-topic .cv {
  font-weight: 600;
  min-width: 180px;
}
.mk-thumb.sm {
  width: 56px;
  height: 56px;
}
.mk-sheet td.c-img.sm {
  padding: 4px;
  width: 64px;
}
.mk-pick-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  max-height: 46vh;
  overflow: auto;
}
.mk-pick-grid .asset {
  border: 0;
  padding: 0;
  cursor: pointer;
}
.mk-sitefix {
  flex-wrap: wrap;
}
.mk-sitefix .in {
  width: 240px;
  flex: none;
}
.bs {
  --r: 18px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 18px;
  font-family: var(--bf);
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 40px 100px -50px #000;
}
.bs h1,
.bs h2,
.bs h4,
.bs h5,
.bs .h,
.bs .bs-quote,
.bs .bs-messages .lead {
  font-family: var(--hf);
}
.bs-label {
  display: block;
  font: 600 10.5px var(--mono);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 10px;
}
.bs-wordmark {
  font-family: var(--hf);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
}
.bs-cover {
  position: relative;
  min-height: 560px;
  padding: 56px 64px 40px;
  background: var(--p);
  color: var(--onp);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  overflow: hidden;
}
.bs-cover-glow {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70%;
  height: 140%;
  background:
    radial-gradient(
      closest-side,
      color-mix(in srgb, var(--a) 55%, transparent),
      transparent);
  opacity: .55;
  pointer-events: none;
}
.bs-cover-photo {
  position: absolute;
  inset: 0 0 0 52%;
  background-size: cover;
  background-position: center;
  opacity: .9;
  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 45%);
  mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 45%);
}
.bs-cover-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-end;
}
.bs-cover-logo .card {
  display: inline-flex;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
}
.bs-cover-logo img {
  height: 72px;
  max-width: 260px;
  object-fit: contain;
  display: block;
}
.bs-cover-logo .naked {
  height: 84px;
}
.bs-kicker {
  font: 600 11px var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .8;
  margin-top: 28px;
}
.bs-cover h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .95;
  letter-spacing: -1.5px;
  font-weight: 800;
}
.bs-tag {
  margin: 0;
  font-size: clamp(17px, 2vw, 24px);
  opacity: .92;
  max-width: 560px;
}
.bs-cover-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.bs-cover-chips i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--onp) 40%, transparent);
}
.bs-toc {
  position: relative;
  z-index: 1;
  align-self: end;
  list-style: none;
  margin: 0;
  padding: 20px 22px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 30%, transparent);
  backdrop-filter: blur(14px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}
.bs-toc > span {
  font: 600 10px var(--mono);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 4px;
}
.bs-toc li b {
  font: 600 11px var(--mono);
  opacity: .7;
  margin-right: 10px;
}
.bs-sec {
  padding: 64px 64px 56px;
}
.bs-sec.paper {
  background: var(--paper);
}
.bs-sec.tint {
  background: var(--tint);
}
.bs-sec.ink {
  background: var(--ink);
  color: #F4F4F2;
}
.bs-sec.ink .bs-label {
  color: color-mix(in srgb, #fff 55%, transparent);
}
.bs-sec-h {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--p);
}
.bs-sec.ink .bs-sec-h {
  border-color: var(--a);
}
.bs-sec-h .bs-num {
  font: 800 54px/1 var(--hf);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--a);
}
.bs-sec-h h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.6px;
  line-height: 1.05;
}
.bs-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.bs-2.tight {
  gap: 20px;
  margin-top: 18px;
  align-items: start;
}
.bs-quote {
  margin: 0 0 28px;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.12;
  color: var(--p);
  letter-spacing: -0.5px;
  max-width: 900px;
}
.bs-statement {
  padding: 26px;
  border-radius: var(--r);
  background: var(--tint);
}
.bs-statement.alt {
  background: var(--p);
  color: var(--onp);
}
.bs-statement.alt .bs-label {
  color: color-mix(in srgb, var(--onp) 70%, transparent);
}
.bs-statement .bs-label {
  margin-top: 0;
}
.bs-statement p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}
.bs-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.bs-value {
  padding: 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
}
.bs-value b {
  font: 700 12px var(--mono);
  color: var(--a);
}
.bs-value h4 {
  margin: 6px 0 4px;
  font-size: 18px;
  line-height: 1.25;
}
.bs-value p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.bs-personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.bs-persona {
  padding: 22px;
  border-radius: var(--r);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, .5);
  border-top: 5px solid var(--p);
}
.bs-persona-h {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}
.bs-persona-h .av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--p);
  color: var(--onp);
  font: 800 20px var(--hf);
  flex: none;
}
.bs-persona-h h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}
.bs-persona-h span {
  font-size: 12.5px;
  color: var(--muted);
}
.bs-persona .bs-label {
  margin: 10px 0 2px;
}
.bs-persona p {
  margin: 0;
  font-size: 13.5px;
}
.bs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.bs-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tinta);
  font-size: 12px;
}
.bs-tags.big span {
  padding: 7px 14px;
  font-size: 14px;
  background: var(--p);
  color: var(--onp);
}
.bs-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 28px;
}
.bs-traits span {
  font: 800 clamp(24px, 3.2vw, 40px)/1.1 var(--hf);
  color: var(--a);
}
.bs-traits span:nth-child(even) {
  color: #fff;
}
.bs-dodont {
  padding: 24px;
  border-radius: var(--r);
  background: color-mix(in srgb, #fff 6%, transparent);
}
.bs-dodont h4 {
  margin: 0 0 12px;
  font-size: 18px;
}
.bs-dodont.do h4 {
  color: #5BD39A;
}
.bs-dodont.dont h4 {
  color: #FF7A7A;
}
.bs-dodont ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
}
.bs-dodont.light {
  background: #fff;
  border: 1px solid var(--line);
  margin-top: 18px;
}
.bs-dodont.light.do h4 {
  color: #1F8F5A;
}
.bs-dodont.light.dont h4 {
  color: #C9302C;
}
.bs-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.bs-messages p {
  margin: 0;
  font-size: 18px;
  padding-left: 16px;
  border-left: 3px solid var(--a);
}
.bs-messages .lead {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  border: 0;
  padding: 0;
  color: var(--p);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.bs-usp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.bs-usp > div {
  padding: 18px;
  border-radius: var(--r);
  background: var(--tint);
}
.bs-usp b {
  font: 700 12px var(--mono);
  color: var(--p);
}
.bs-usp p {
  margin: 6px 0 0;
  font-size: 14px;
}
.bs-comp {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.bs-comp > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.bs-comp p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.bs-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.bs-logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bs-logo > div {
  height: 200px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  padding: 24px;
}
.bs-logo img {
  max-width: 76%;
  max-height: 110px;
  object-fit: contain;
}
.bs-logo.on-paper > div {
  background: #fff;
  border: 1px solid var(--line);
}
.bs-logo.on-brand > div {
  background: var(--p);
  color: var(--onp);
}
.bs-logo.on-ink > div {
  background: var(--ink);
  color: #fff;
}
.bs-logo figcaption {
  font: 600 10.5px var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.bs-clearspace {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bs-clearspace .box {
  padding: 34px;
  border: 1.5px dashed var(--a);
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 8px,
      color-mix(in srgb, var(--a) 10%, transparent) 8px 9px),
    #fff;
  display: grid;
  place-items: center;
}
.bs-clearspace .box img {
  max-height: 70px;
  max-width: 80%;
  outline: 1.5px solid var(--p);
  outline-offset: 0;
}
.bs-clearspace span {
  font: 600 10.5px var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.bs-rules,
.bs-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
}
.bs-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.bs-swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 210px;
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid rgba(0, 0, 0, .06);
  text-align: left;
  cursor: copy;
  font: inherit;
  transition: transform .15s;
}
.bs-swatch:hover {
  transform: translateY(-3px);
}
.bs-swatch.primary {
  grid-column: span 2;
}
.bs-swatch .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: auto;
}
.bs-swatch .role {
  font: 600 10px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .8;
  padding-top: 4px;
}
.bs-swatch b {
  font: 700 19px var(--hf);
}
.bs-swatch .codes {
  font: 12px/1.5 var(--mono);
  opacity: .85;
}
.bs-swatch .aa {
  flex: none;
  display: flex;
  align-items: baseline;
  font: 600 11px var(--mono);
}
.bs-swatch .aa em {
  font: 800 22px var(--hf);
  font-style: normal;
  margin-right: 4px;
}
.bs-proportion {
  display: flex;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bs-proportion i {
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  min-width: 0;
}
.bs-proportion span {
  font: 600 11px var(--mono);
}
.bs-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bs-specimen {
  padding: 28px;
  border-radius: var(--r);
  background: color-mix(in srgb, #fff 6%, transparent);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bs-specimen .aa {
  font-size: clamp(90px, 12vw, 150px);
  line-height: .9;
  color: var(--a);
}
.bs-specimen .aa.h,
.bs-specimen .glyphs.h {
  font-family: var(--hf);
  font-weight: 800;
}
.bs-specimen .aa.b,
.bs-specimen .glyphs.b {
  font-family: var(--bf);
}
.bs-specimen b {
  font-size: 20px;
}
.bs-specimen .bs-label {
  margin: 0;
}
.bs-specimen .glyphs {
  font-size: 15px;
  opacity: .8;
  line-height: 1.7;
  margin-top: 8px;
}
.bs-scale {
  display: flex;
  flex-direction: column;
  border-top: 1px solid color-mix(in srgb, #fff 18%, transparent);
}
.bs-scale > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, #fff 18%, transparent);
}
.bs-scale span {
  font: 600 10.5px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .6;
}
.bs-scale p {
  margin: 0;
  line-height: 1.15;
}
.bs-scale .h {
  font-family: var(--hf);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.bs-scale .b {
  font-family: var(--bf);
  line-height: 1.6;
}
.bs-note {
  margin: 16px 0 0;
  font-size: 14px;
  opacity: .8;
}
.bs-mood {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  margin-bottom: 8px;
}
.bs-mood > div {
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: var(--tint);
}
.bs-mood > div:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.bs-mood.n1 {
  grid-template-columns: 1fr;
}
.bs-mood.n1 > div:first-child {
  grid-column: auto;
}
.bs-mood.n2 > div:nth-child(2) {
  grid-column: span 2;
  grid-row: span 2;
}
.bs-apps {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.2fr;
  gap: 22px;
  align-items: start;
}
.bs-app {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bs-app figcaption {
  font: 600 10.5px var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.bs-post {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--p);
  color: var(--onp);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6);
}
.bs-post .img {
  flex: 1.2;
  background: var(--tinta) center / cover;
}
.bs-post .body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bs-post .logo img,
.bs-story .logo img {
  height: 24px;
  max-width: 110px;
  object-fit: contain;
}
.bs-post .logo .bs-wordmark,
.bs-story .logo .bs-wordmark {
  font-size: 15px;
}
.bs-post h5 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.bs-post .btn,
.bs-story .btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--a);
  color: var(--ona);
  font: 700 12px var(--bf);
}
.bs-story {
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--p) center / cover;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6);
}
.bs-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--ink) 30%, transparent),
      transparent 35%,
      color-mix(in srgb, var(--p) 85%, transparent) 75%);
}
.bs-story > * {
  position: relative;
}
.bs-story h5 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.05;
}
.bs-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bs-card {
  aspect-ratio: 1.75;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px -28px rgba(0, 0, 0, .6);
}
.bs-card.front {
  background: #fff;
  border: 1px solid var(--line);
}
.bs-card.back {
  background: var(--p);
  color: var(--onp);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-size: 13px;
}
.bs-card .logo img {
  height: 34px;
  max-width: 160px;
  object-fit: contain;
}
.bs-card .site {
  font: 600 12px var(--mono);
  color: var(--muted);
}
.bs-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bs-buttons .btn {
  padding: 12px 22px;
  border-radius: 999px;
  font: 700 14px var(--bf);
}
.bs-buttons .btn.p {
  background: var(--p);
  color: var(--onp);
}
.bs-buttons .btn.a {
  background: var(--a);
  color: var(--ona);
}
.bs-buttons .btn.o {
  border: 2px solid var(--p);
  color: var(--p);
}
.bs-foot {
  display: flex;
  justify-content: space-between;
  padding: 18px 64px;
  background: var(--ink);
  color: color-mix(in srgb, #fff 60%, transparent);
  font: 600 11px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .bs-cover {
    grid-template-columns: 1fr;
    padding: 36px 22px 28px;
    min-height: 0;
  }
  .bs-cover-photo {
    inset: 0;
    opacity: .25;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .bs-sec {
    padding: 40px 22px;
  }
  .bs-2,
  .bs-type,
  .bs-logos,
  .bs-apps {
    grid-template-columns: 1fr;
  }
  .bs-swatch.primary {
    grid-column: auto;
  }
  .bs-comp > div,
  .bs-scale > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .bs-mood {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }
  .bs-foot {
    padding: 14px 22px;
    flex-direction: column;
    gap: 4px;
  }
}
.bs-cover-logo .card .bs-wordmark {
  color: var(--ink);
}
.mk-needs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mk-need {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-2);
  cursor: pointer;
}
.mk-need.on {
  border-color: var(--neon);
  box-shadow: var(--glow);
}
.mk-need b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}
.mk-need-slot {
  flex: none;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1.5px dashed var(--line-3, var(--line-2));
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--dim);
  cursor: pointer;
  overflow: hidden;
}
.mk-need-slot:hover {
  color: var(--neon);
  border-color: var(--neon);
}
.mk-need-slot.full {
  border-style: solid;
}
.mk-need-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mk-need-slot span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.mk-need-slot em {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.3;
}
.mk-need .mk-link {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.mk-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mk-ref {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
}
.mk-ref img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mk-ref > button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 10px;
  cursor: pointer;
}
.mk-refs.pick .mk-ref {
  width: 52px;
  height: 52px;
  cursor: pointer;
}
.mk-refs.pick .mk-ref:hover {
  border-color: var(--neon);
}
.mk-thumb {
  position: relative;
}
.mk-slide-n {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font: 600 10px var(--mono);
  font-style: normal;
}
.mk-slides {
  display: flex;
  gap: 3px;
  width: 112px;
  margin-top: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mk-slides button {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--dim);
  font: 10px var(--mono);
  overflow: hidden;
  cursor: pointer;
}
.mk-slides button:hover {
  border-color: var(--neon);
}
.mk-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mk-nav-row {
  position: relative;
  display: flex;
  align-items: center;
}
.mk-nav-row .mk-nav-c {
  flex: 1;
  min-width: 0;
  padding-right: 28px;
}
.mk-nav-del {
  position: absolute;
  right: 2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  opacity: 0;
}
.mk-nav-row:hover .mk-nav-del,
.mk-nav-del:focus-visible {
  opacity: 1;
}
.mk-nav-del:hover {
  color: var(--err, #ff5c5c);
  background: var(--panel-3);
}
@media (hover: none) {
  .mk-nav-del {
    opacity: .7;
  }
}
.mk-sizesel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 4px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
}
.mk-sizesel select {
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.mk-size-n {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font: 600 9px var(--mono);
  font-style: normal;
}
.mk-filedrop {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 12.5px;
}
.mk-filedrop > span:nth-child(2) {
  flex: 1;
  min-width: 220px;
}
.mk-filedrop.over {
  border-color: var(--neon);
  color: var(--text);
  box-shadow: var(--glow);
}
.mk-job {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 112px;
  margin-bottom: 4px;
  padding: 4px 6px;
  border: 1px solid var(--neon-line, var(--line-2));
  border-radius: 6px;
  background: color-mix(in srgb, var(--neon) 7%, var(--panel-2));
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--text);
}
.mk-post .mk-job {
  width: auto;
}
.mk-job .mk-spin {
  flex: none;
  width: 12px;
  height: 12px;
  border-width: 2px;
}
.mk-job span {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mk-job button {
  flex: none;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  cursor: pointer;
}
.mk-job.done {
  border-color: var(--neon);
  color: var(--neon);
}
.mk-job.error {
  border-color: var(--err, #ff5c5c);
  background: color-mix(in srgb, #ff5c5c 10%, var(--panel-2));
}
.mk-jobs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mk-jobs-chip .mk-spin {
  width: 11px;
  height: 11px;
  border-width: 2px;
}
.mk-jobs-chip button {
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.vs {
  --vs-bg: #0b0d0c;
  --vs-panel: #131614;
  --vs-panel2: #1a1e1b;
  --vs-line: rgba(255,255,255,.07);
  --vs-line2: rgba(255,255,255,.13);
  --vs-text: #eef2ef;
  --vs-muted: #8b958e;
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr) auto;
  background: var(--vs-bg);
  color: var(--vs-text);
  font: 13px/1.4 var(--font, Inter, system-ui, sans-serif);
}
.vs button {
  font: inherit;
  color: inherit;
}
.vs .grow {
  flex: 1;
}
.vs-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--vs-line);
  background: linear-gradient(#141815, #101311);
}
.vs-back {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--vs-line2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.vs-back:hover {
  background: var(--vs-panel2);
}
.vs-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}
.vs-logo {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background:
    linear-gradient(
      135deg,
      var(--neon),
      #3ad7ff);
  color: #08100b;
}
.vs-title {
  min-width: 0;
  width: 280px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--vs-text);
  font: 600 14px var(--font, inherit);
}
.vs-title:hover {
  border-color: var(--vs-line2);
}
.vs-title:focus {
  outline: none;
  border-color: var(--neon);
  background: var(--vs-panel);
}
.vs-pill {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--vs-panel2);
  color: var(--vs-muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.vs-export {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--neon);
  color: #07110a !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 6px 22px color-mix(in srgb, var(--neon) 35%, transparent);
}
.vs-export:hover {
  filter: brightness(1.08);
}
.vs-export:disabled {
  opacity: .45;
  cursor: default;
  box-shadow: none;
}
.vs-body {
  display: grid;
  grid-template-columns: 64px 300px minmax(0, 1fr) 312px;
  min-height: 0;
}
.vs-left {
  display: contents;
}
.vs-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px;
  border-right: 1px solid var(--vs-line);
  background: #0e110f;
}
.vs-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vs-muted);
  font-size: 10.5px !important;
  cursor: pointer;
}
.vs-tabs button:hover {
  color: var(--vs-text);
  background: var(--vs-panel);
}
.vs-tabs button.on {
  color: var(--neon);
  background: color-mix(in srgb, var(--neon) 12%, transparent);
}
.vs-pane,
.vs-right {
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--vs-panel);
}
.vs-pane {
  border-right: 1px solid var(--vs-line);
}
.vs-right {
  border-left: 1px solid var(--vs-line);
}
.vs-pane::-webkit-scrollbar,
.vs-right::-webkit-scrollbar,
.vs-tl-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.vs-pane::-webkit-scrollbar-thumb,
.vs-right::-webkit-scrollbar-thumb,
.vs-tl-scroll::-webkit-scrollbar-thumb {
  background: var(--vs-line2);
  border-radius: 8px;
}
.vs-lead {
  margin: 0;
  color: var(--vs-muted);
  font-size: 12.5px;
}
.vs textarea,
.vs input:not([type=range]):not([type=checkbox]):not([type=color]) {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--vs-line2);
  border-radius: 9px;
  background: var(--vs-bg);
  color: var(--vs-text);
  font: 12.5px/1.45 var(--font, inherit);
  resize: vertical;
}
.vs textarea:focus,
.vs input:focus {
  outline: none;
  border-color: var(--neon);
}
.vs input[type=range] {
  accent-color: var(--neon);
}
.vs-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  border: 1.5px dashed var(--vs-line2);
  border-radius: 12px;
  text-align: center;
  color: var(--vs-muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: .15s;
}
.vs-drop b {
  color: var(--vs-text);
  font-size: 13px;
}
.vs-drop:hover,
.vs-drop.over {
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 6%, transparent);
}
.vs-drop-ic {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--neon) 14%, transparent);
  color: var(--neon);
  margin-bottom: 4px;
}
.vs-warn {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 180, 60, .1);
  color: #ffc670;
  font-size: 12px;
}
.vs-clips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.vs-clip {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: 9px;
  overflow: hidden;
  background: #000;
  cursor: grab;
  outline: 1px solid var(--vs-line);
}
.vs-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}
.vs-clip:hover img {
  transform: scale(1.05);
}
.vs-clip.gone {
  opacity: .35;
}
.vs-clip em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 6px 5px;
  font: 500 10px var(--font, inherit);
  font-style: normal;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-dur {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font: 600 10px var(--mono, monospace);
}
.vs-ai {
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 0 5px;
  border-radius: 5px;
  background:
    linear-gradient(
      135deg,
      var(--neon),
      #3ad7ff);
  color: #07110a;
  font-size: 9.5px;
  font-weight: 800;
}
.vs-clip-acts {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: .15s;
}
.vs-clip:hover .vs-clip-acts {
  opacity: 1;
}
.vs-clip-acts button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111 !important;
  cursor: pointer;
}
.vs-clip-acts button:first-child {
  background: var(--neon);
}
.vs-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 0;
  border-radius: 11px;
  background:
    linear-gradient(
      135deg,
      var(--neon),
      #3ad7ff);
  color: #07110a !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--neon) 25%, transparent);
}
.vs-cta:hover {
  filter: brightness(1.07);
}
.vs-cta:disabled {
  opacity: .45;
  cursor: default;
}
.vs-recipes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.vs-recipes button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--vs-line2);
  border-radius: 10px;
  background: var(--vs-panel2);
  text-align: left;
  cursor: pointer;
}
.vs-recipes button span {
  font-size: 18px;
}
.vs-recipes button b {
  font-size: 12.5px;
}
.vs-recipes button em {
  font-style: normal;
  color: var(--vs-muted);
  font-size: 10.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vs-recipes button:hover,
.vs-recipes button.on {
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 8%, var(--vs-panel2));
}
.vs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vs-field > span {
  font-size: 11.5px;
  color: var(--vs-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.vs-formula {
  display: grid;
  gap: 1px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--vs-line);
}
.vs-formula div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  padding: 7px 10px;
  background: var(--vs-panel2);
  font-size: 11.5px;
}
.vs-formula b {
  color: var(--neon);
  font-family: var(--mono, monospace);
  font-size: 11px;
}
.vs-formula span {
  color: var(--vs-muted);
}
.vs-seg3 {
  display: flex;
  padding: 3px;
  gap: 3px;
  border-radius: 9px;
  background: var(--vs-bg);
  border: 1px solid var(--vs-line);
}
.vs-seg3 button {
  flex: 1;
  padding: 6px 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vs-muted) !important;
  cursor: pointer;
  font-size: 12px !important;
  white-space: nowrap;
}
.vs-seg3 button.on {
  background: var(--vs-panel2);
  color: var(--vs-text) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 2px 8px rgba(0, 0, 0, .4);
}
.vs-note {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--vs-panel2);
  color: var(--vs-muted);
  font-size: 11.5px;
}
.vs-note b {
  color: var(--vs-text);
}
.vs-tpls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vs-tpls > button {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--vs-line2);
  border-radius: 12px;
  background: var(--vs-panel2);
  text-align: left;
  cursor: pointer;
}
.vs-tpls > button:hover,
.vs-tpls > button.on {
  border-color: var(--neon);
}
.vs-tpls > button.on {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--neon) 30%, transparent);
}
.vs-tpls b {
  font-size: 12.5px;
  padding: 0 2px;
}
.vs-tpls em {
  font-style: normal;
  color: var(--vs-muted);
  font-size: 10.5px;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vs-tpls i {
  display: flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-size: 10px;
  color: var(--neon);
  padding: 0 2px;
}
.vs-tpl-pv {
  position: relative;
  aspect-ratio: 9 / 11;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  background:
    radial-gradient(
      circle at 30% 20%,
      #3b4a40,
      #121614 70%);
}
.vs-tpl-pv span {
  font: 800 10px var(--font, inherit);
  padding: 2px 6px;
  border-radius: 4px;
}
.vs-tpl-pv .l1 {
  background: var(--a);
  color: #111;
}
.vs-tpl-pv .l3 {
  background: var(--p);
  color: #fff;
  border-radius: 99px;
  padding: 3px 10px;
}
.vs-tpl-pv .l2 {
  color: #fff;
  -webkit-text-stroke: .6px #000;
  font-size: 11px;
}
.tp-viral {
  background:
    radial-gradient(
      circle at 70% 20%,
      #5b2a6e,
      #12101a 70%);
}
.tp-viral .l2 {
  background: #fff;
  color: #111;
  -webkit-text-stroke: 0;
}
.tp-sale {
  background:
    radial-gradient(
      circle at 50% 30%,
      #6e3a1c,
      #1a100c 70%);
}
.tp-sale .l2 {
  background: var(--a);
  color: #111;
  -webkit-text-stroke: 0;
}
.tp-phonk {
  background:
    radial-gradient(
      circle at 50% 50%,
      #26262e,
      #050506 70%);
}
.tp-phonk .l1 {
  background: transparent;
  color: #fff;
  -webkit-text-stroke: .6px #000;
}
.tp-story {
  background: linear-gradient(#1e2a36, #0c1117);
  justify-content: flex-end;
  gap: 5px;
}
.tp-vlog {
  background:
    radial-gradient(
      circle at 30% 70%,
      #5a4632,
      #17120d 70%);
}
.tp-vlog .l1,
.tp-vlog .l2 {
  background: #fff;
  color: #111;
  -webkit-text-stroke: 0;
}
.tp-clean {
  background:
    linear-gradient(
      160deg,
      #2c3330,
      #151917);
}
.tp-clean .l1 {
  background: transparent;
  color: #fff;
  -webkit-text-stroke: .6px #000;
}
.vs-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vs-line);
}
.vs-sec:last-child {
  border-bottom: 0;
}
.vs-sec h5 {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--vs-muted);
  font-weight: 700;
}
.vs-sec h5 .small {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.vs-slider {
  display: grid;
  grid-template-columns: 92px 1fr 30px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--vs-muted);
}
.vs-slider b {
  text-align: right;
  color: var(--vs-text);
  font-size: 11px;
}
.vs-tracks {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vs-track-i,
.vs-lib-i {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--vs-line);
  border-radius: 10px;
  background: var(--vs-panel2);
  cursor: pointer;
}
.vs-track-i:hover,
.vs-lib-i:hover {
  border-color: var(--vs-line2);
}
.vs-track-i.on,
.vs-lib-i.on {
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 8%, var(--vs-panel2));
  color: var(--neon);
}
.vs-track-i div,
.vs-lib-i div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.vs-track-i b,
.vs-lib-i b {
  font-size: 12.5px;
  color: var(--vs-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-track-i em,
.vs-lib-i em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--vs-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-aud {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--vs-bg);
  color: var(--neon) !important;
  cursor: pointer;
}
.vs-aud:hover {
  background: var(--neon);
  color: #07110a !important;
}
.vs-use {
  flex: none;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--vs-line2);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-size: 11.5px !important;
}
.vs-use:hover {
  border-color: var(--neon);
  color: var(--neon) !important;
}
.vs-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--vs-line2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--vs-text);
  white-space: nowrap;
}
.vs-mini:hover,
.vs-mini.on {
  border-color: var(--neon);
  color: var(--neon);
}
.vs-sfx {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.vs-sfx.sm {
  grid-template-columns: repeat(2, 1fr);
}
.vs-sfx button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px;
  border: 1px solid var(--vs-line);
  border-radius: 8px;
  background: var(--vs-panel2);
  cursor: pointer;
  font-size: 11px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-sfx button span {
  font-size: 13px;
}
.vs-sfx button:hover {
  border-color: var(--vs-line2);
}
.vs-sfx button.on {
  border-color: var(--neon);
  color: var(--neon) !important;
  background: color-mix(in srgb, var(--neon) 8%, var(--vs-panel2));
}
.vs-lib {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vs-lib-q {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 0 10px;
  border: 1px solid var(--vs-line2);
  border-radius: 9px;
  background: var(--vs-bg);
  color: var(--vs-muted);
}
.vs-lib-q input {
  border: 0 !important;
  background: transparent !important;
}
.vs-lib-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.vs-lib-tags button {
  padding: 3px 9px;
  border: 1px solid var(--vs-line);
  border-radius: 99px;
  background: transparent;
  color: var(--vs-muted) !important;
  cursor: pointer;
  font-size: 11px !important;
}
.vs-lib-tags button:hover {
  color: var(--vs-text) !important;
}
.vs-lib-tags button.on {
  border-color: var(--neon);
  color: var(--neon) !important;
}
.vs-lib-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 340px;
  overflow: auto;
}
.vs-pause {
  display: inline-block;
  width: 10px;
  height: 12px;
  border-left: 3.5px solid currentColor;
  border-right: 3.5px solid currentColor;
  box-sizing: border-box;
}
.vs-pause.sm {
  width: 8px;
  height: 9px;
  border-width: 0 2.5px;
}
.vs-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(
      ellipse at 50% 40%,
      #18201b,
      var(--vs-bg) 70%);
}
.vs-phone {
  position: relative;
  flex: 1;
  min-height: 0;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: 22px;
  padding: 6px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 80px rgba(0, 0, 0, .6);
}
.vs-phone canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  cursor: pointer;
}
.vs-safe {
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border-radius: 17px;
  overflow: hidden;
}
.vs-safe i {
  position: absolute;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, .07) 0 6px,
      transparent 6px 12px);
  border: 1px dashed rgba(255, 255, 255, .18);
}
.vs-safe i.r {
  right: 0;
  top: 38%;
  bottom: 20%;
  width: 15%;
  border-right: 0;
}
.vs-safe i.b {
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
}
.vs-safe span {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 9px;
  color: rgba(255, 255, 255, .45);
}
.vs-bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: .2s;
}
.vs-phone:hover .vs-bigplay {
  opacity: 1;
}
.vs-empty {
  position: absolute;
  inset: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: var(--vs-muted);
  font-size: 12px;
}
.vs-empty b {
  color: var(--vs-text);
  font-size: 14px;
}
.vs-transport {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}
.vs-transport > button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--vs-panel2);
  cursor: pointer;
}
.vs-transport > button.main {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #000 !important;
}
.vs-transport > button:disabled {
  opacity: .4;
}
.vs-transport .mono {
  font: 600 12.5px var(--mono, monospace);
}
.vs-transport .mono i {
  color: var(--vs-muted);
  font-style: normal;
}
.vs-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--vs-muted);
  cursor: pointer;
  white-space: nowrap;
}
.vs-toggle input {
  accent-color: var(--neon);
}
.vs-insp-h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vs-insp-h b {
  font-size: 14px;
}
.vs-insp-h button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--vs-panel2);
  color: var(--vs-muted) !important;
  cursor: pointer;
}
.vs-insp-h button:hover {
  color: var(--vs-text) !important;
  background: var(--vs-line2);
}
.vs-num {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--neon);
  color: #07110a;
  font: 800 11px var(--mono, monospace);
}
.vs-styles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.vs-styles button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border: 1px solid var(--vs-line);
  border-radius: 9px;
  background: var(--vs-panel2);
  cursor: pointer;
}
.vs-styles button span {
  font: 800 13px var(--font, inherit);
  padding: 1px 6px;
  border-radius: 4px;
}
.vs-styles button em {
  font-style: normal;
  font-size: 9px;
  color: var(--vs-muted);
  text-align: center;
  line-height: 1.15;
}
.vs-styles button.on {
  border-color: var(--neon);
}
.vs-styles .st-hook span {
  background: var(--a);
  color: #111;
}
.vs-styles .st-box span {
  background: #fff;
  color: #111;
}
.vs-styles .st-body span {
  color: #fff;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke;
  text-shadow: 0 0 2px #000;
}
.vs-styles .st-cta span {
  background: var(--p);
  color: #fff;
  border-radius: 99px;
}
.vs-styles .st-none span {
  color: var(--vs-muted);
  text-decoration: line-through;
}
.vs-trim {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vs-trim-bar {
  position: relative;
  height: 40px;
  border-radius: 7px;
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-color: #000;
  overflow: hidden;
  margin-bottom: 4px;
}
.vs-trim-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}
.vs-trim-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  border: 2px solid var(--neon);
  border-radius: 6px;
  box-shadow: 0 0 0 999px transparent;
  background: color-mix(in srgb, var(--neon) 12%, transparent);
}
.vs-colors {
  display: flex;
  gap: 10px;
}
.vs-colors label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--vs-muted);
}
.vs-colors input {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--vs-line2);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.vs-tips {
  margin: 0;
  padding-left: 16px;
  color: var(--vs-muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vs kbd {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--vs-line2);
  font: 10.5px var(--mono, monospace);
  color: var(--vs-text);
}
.vs-tl {
  border-top: 1px solid var(--vs-line);
  background: #0e110f;
}
.vs-tl-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--vs-line);
}
.vs-tl-bar button {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vs-muted) !important;
  cursor: pointer;
  font-size: 12px !important;
}
.vs-tl-bar button:hover {
  background: var(--vs-panel2);
  color: var(--vs-text) !important;
}
.vs-tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}
.vs-tl-in {
  position: relative;
  padding-bottom: 8px;
  min-width: 100%;
  cursor: text;
  user-select: none;
}
.vs-ruler {
  position: relative;
  height: 22px;
  border-bottom: 1px solid var(--vs-line);
}
.vs-ruler span {
  position: absolute;
  top: 0;
  height: 100%;
  padding-left: 4px;
  border-left: 1px solid var(--vs-line2);
  font: 10px var(--mono, monospace);
  color: var(--vs-muted);
  line-height: 22px;
}
.vs-track {
  position: relative;
  margin-top: 6px;
}
.vs-track.cap {
  height: 22px;
}
.vs-track.vid {
  height: 58px;
}
.vs-track.mus {
  height: 26px;
}
.vs-tl-cap {
  position: absolute;
  top: 0;
  height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: #6b4cff;
  color: #fff !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.vs-tl-cap.st-hook {
  background: #d89b14;
}
.vs-tl-cap.st-cta {
  background: #e2508a;
}
.vs-tl-cap.st-box {
  background: #4a5bd8;
}
.vs-tl-cap.on {
  box-shadow: 0 0 0 2px #fff;
}
.vs-tl-clip {
  position: absolute;
  top: 0;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: #222;
  background-size: auto 100%;
  background-repeat: repeat-x;
  cursor: pointer;
  overflow: hidden;
}
.vs-tl-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, .6));
}
.vs-tl-clip span {
  position: absolute;
  left: 6px;
  bottom: 3px;
  z-index: 1;
  font: 600 10px var(--mono, monospace);
  color: #fff;
}
.vs-tl-clip i {
  position: absolute;
  right: 4px;
  top: 3px;
  z-index: 1;
  font-style: normal;
  font-size: 11px;
}
.vs-tl-clip:hover {
  border-color: rgba(255, 255, 255, .4);
}
.vs-tl-clip.on {
  border-color: #fff;
  box-shadow: 0 0 0 1px var(--neon);
}
.vs-tl-mus {
  position: absolute;
  top: 0;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      #0f5c4a,
      #13705a);
  color: #c9ffe9;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
}
.vs-wave {
  flex: 1;
  height: 14px;
  opacity: .45;
  background:
    repeating-linear-gradient(
      90deg,
      #c9ffe9 0 2px,
      transparent 2px 5px);
  mask:
    linear-gradient(
      transparent,
      #000 30%,
      #000 70%,
      transparent);
}
.vs-sfxmark {
  position: absolute;
  top: 3px;
  transform: translateX(-50%);
  z-index: 2;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a2f2c;
  border: 1px solid var(--vs-line2);
  font-size: 11px;
}
.vs-tl-empty {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vs-muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.vs-head {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 3;
  pointer-events: none;
}
.vs-head i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .6);
}
.vs-head i::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 12px;
  border-radius: 3px 3px 50% 50%;
  background: #fff;
}
.vs-busy {
  position: fixed;
  left: 50%;
  bottom: 210px;
  transform: translateX(-50%);
  z-index: 401;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(20, 24, 21, .94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--vs-line2);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .6);
}
.vs-busy button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--vs-line2);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .vs-body {
    grid-template-columns: 56px 260px minmax(0, 1fr) 270px;
  }
  .vs-pill {
    display: none;
  }
}
@media (max-width: 860px) {
  .vs {
    grid-template-rows: 52px minmax(0, 1fr) auto;
  }
  .vs-body {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    overflow: auto;
  }
  .vs-tabs {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--vs-line);
    overflow-x: auto;
  }
  .vs-tabs button {
    flex: 1;
  }
  .vs-stage {
    height: 62vh;
    order: -1;
  }
  .vs-pane,
  .vs-right {
    overflow: visible;
    border: 0;
  }
  .vs-title {
    width: 140px;
  }
  .vs-brand {
    display: none;
  }
}
.mk-vchip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 112px;
  margin-top: 6px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--neon) 40%, transparent);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--neon);
  cursor: pointer;
  font: 600 11px var(--font, inherit);
}
.mk-vchip img {
  width: 22px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}
.mk-vchip span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.vs-cta.ghost {
  background: transparent;
  color: var(--neon) !important;
  border: 1px solid color-mix(in srgb, var(--neon) 45%, transparent);
  box-shadow: none;
}
.vs-trim-h {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  z-index: 2;
  cursor: ew-resize;
  background: rgba(255, 255, 255, .0);
}
.vs-trim-h.l {
  left: 0;
  border-radius: 6px 0 0 6px;
}
.vs-trim-h.r {
  right: 0;
  border-radius: 0 6px 6px 0;
}
.vs-tl-clip:hover .vs-trim-h,
.vs-tl-clip.on .vs-trim-h {
  background: rgba(255, 255, 255, .85);
}
.vs-trim-h::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 35%;
  bottom: 35%;
  width: 3px;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
}
.vs-tl-clip {
  cursor: grab;
  touch-action: none;
}
.vs-tl-clip.drag {
  cursor: grabbing;
  opacity: .85;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  z-index: 3;
}
.vs-phone canvas {
  touch-action: none;
}
.vs-sfxmark.voice {
  background: #3b2a6e;
}
.vs-right select,
.vs-pane select {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--vs-line2);
  border-radius: 9px;
  background: var(--vs-bg);
  color: var(--vs-text);
}
.vs code {
  font: 11px var(--mono, monospace);
  color: var(--neon);
}

/* studio/styles.css */
:root {
  --bg: #060908;
  --bg-2: #090d0b;
  --panel: #0c120e;
  --panel-2: #111a14;
  --panel-3: #16211a;
  --line: #182619;
  --line-2: #233825;
  --text: #e8f5ec;
  --muted: #8fa796;
  --dim: #5d7265;
  --neon: #39ff14;
  --neon-2: #5cff3d;
  --neon-dim: #26b50d;
  --neon-ink: #04140a;
  --neon-soft: rgba(57, 255, 20, 0.12);
  --neon-line: rgba(57, 255, 20, 0.38);
  --glow: 0 0 0 1px rgba(57, 255, 20, 0.35), 0 0 28px -8px rgba(57, 255, 20, 0.6);
  --warn: #ffc53d;
  --err: #ff5c5c;
  --info: #6fb7ff;
  --sans:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  --mono:
    "JetBrains Mono",
    ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
  --r: 8px;
  --r-sm: 6px;
  --topbar: 48px;
  --statusbar: 26px;
  --left: 252px;
  --right: 300px;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 12.5px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--neon);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
::selection {
  background: var(--neon);
  color: var(--neon-ink);
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 9px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}
.mono {
  font-family: var(--mono);
}
.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.small {
  font-size: 11px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row.wrap {
  flex-wrap: wrap;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--neon-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.eyebrow .act {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  cursor: pointer;
}
.eyebrow .act:hover {
  color: var(--neon);
}
.kbd {
  font-family: var(--mono);
  font-size: 10px;
  background: #050807;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition:
    border-color 0.12s,
    background 0.12s,
    transform 0.08s,
    box-shadow 0.12s;
  user-select: none;
}
.btn:hover {
  border-color: var(--neon-dim);
  background: var(--panel-3);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.primary {
  background: var(--neon);
  color: var(--neon-ink);
  border-color: var(--neon);
  box-shadow: 0 0 20px -6px rgba(57, 255, 20, 0.8);
}
.btn.primary:hover {
  background: var(--neon-2);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.ghost:hover {
  background: var(--panel-2);
  border-color: var(--line-2);
}
.btn.danger {
  color: var(--err);
}
.btn.danger:hover {
  border-color: rgba(255, 92, 92, 0.5);
}
.btn.sm {
  height: 26px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 500;
}
.btn.xs {
  height: 22px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 500;
}
.btn.block {
  width: 100%;
}
.btn.icon {
  width: 30px;
  padding: 0;
}
.btn.icon.sm {
  width: 26px;
}
.btn.icon.xs {
  width: 22px;
}
.btn.on {
  background: var(--neon-soft);
  border-color: var(--neon-line);
  color: var(--neon);
}
.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.btn.sm svg,
.btn.xs svg {
  width: 13px;
  height: 13px;
}
.split {
  display: inline-flex;
}
.split .btn:first-child {
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.split .btn:last-child {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  border-left: 0;
  padding: 0 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field > label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.field > label .hint {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.in,
input.in,
select.in,
textarea.in {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  background: #070b09;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  outline: none;
  min-width: 0;
}
textarea.in {
  height: auto;
  min-height: 64px;
  padding: 6px 8px;
  resize: vertical;
  line-height: 1.45;
}
.in:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px var(--neon-soft);
}
.in::placeholder {
  color: var(--dim);
}
select.in {
  appearance: none;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--muted) 50%),
    linear-gradient(
      135deg,
      var(--muted) 50%,
      transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 24px;
}
.num {
  position: relative;
  display: flex;
  align-items: center;
  height: 28px;
  background: #070b09;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
}
.num:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px var(--neon-soft);
}
.num .lb {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  padding: 0 0 0 7px;
  min-width: 14px;
  cursor: ew-resize;
  user-select: none;
}
.num input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.num .sfx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  padding-right: 7px;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  height: 28px;
  background: #070b09;
}
.seg button {
  flex: 1;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
}
.seg button svg {
  width: 14px;
  height: 14px;
}
.seg button:hover {
  color: var(--text);
}
.seg button.on {
  background: var(--neon-soft);
  color: var(--neon);
}
.seg.block {
  display: flex;
  width: 100%;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
}
.toggle .sw {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: var(--line-2);
  position: relative;
  transition: background 0.15s;
  flex: none;
}
.toggle .sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.15s, background 0.15s;
}
.toggle.on .sw {
  background: var(--neon-dim);
}
.toggle.on .sw::after {
  transform: translateX(13px);
  background: var(--neon-ink);
}
.swatch {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 6px 0 4px;
  background: #070b09;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  min-width: 0;
}
.swatch:hover {
  border-color: var(--neon-dim);
}
.swatch .sq {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex: none;
  background-image:
    linear-gradient(
      45deg,
      #333 25%,
      transparent 25%),
    linear-gradient(
      -45deg,
      #333 25%,
      transparent 25%),
    linear-gradient(
      45deg,
      transparent 75%,
      #333 75%),
    linear-gradient(
      -45deg,
      transparent 75%,
      #333 75%);
  background-size: 8px 8px;
  background-position:
    0 0,
    0 4px,
    4px -4px,
    -4px 0;
  position: relative;
  overflow: hidden;
}
.swatch .sq i {
  position: absolute;
  inset: 0;
}
.swatch .v {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swatch input[type=color] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}
.swatch .tk {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--neon);
  border: 1px solid var(--neon-line);
  border-radius: 3px;
  padding: 0 4px;
}
.colorpop {
  position: absolute;
  z-index: 20;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 10px;
  width: 232px;
  box-shadow: 0 16px 50px -16px #000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.colorpop .tokens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.colorpop .tokens button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 2px;
  cursor: pointer;
  color: var(--muted);
  font-size: 9.5px;
  font-family: var(--mono);
}
.colorpop .tokens button:hover,
.colorpop .tokens button.on {
  border-color: var(--neon-line);
  color: var(--neon);
}
.colorpop .tokens i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
}
.chip.on {
  color: var(--neon);
  border-color: var(--neon-line);
  background: var(--neon-soft);
}
.chip.warn {
  color: var(--warn);
  border-color: rgba(255, 197, 61, 0.4);
}
.chip.err {
  color: var(--err);
  border-color: rgba(255, 92, 92, 0.4);
}
.badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge.mailchimp {
  color: #ffe01b;
  border-color: rgba(255, 224, 27, 0.35);
}
.badge.klaviyo {
  color: #9ef0c0;
  border-color: rgba(158, 240, 192, 0.35);
}
.app {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.topbar {
  height: var(--topbar);
  display: grid;
  grid-template-columns: minmax(160px, var(--left)) 1fr minmax(200px, var(--right));
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      #0a100c,
      var(--bg));
  padding: 0 8px;
  gap: 8px;
}
.topbar .l,
.topbar .c,
.topbar .r {
  overflow: hidden;
}
.topbar .c {
  flex-wrap: nowrap;
}
@media (max-width: 1180px) {
  .topbar .r .btn span,
  .topbar .variant .k,
  .topbar .r .client-pill .t {
    display: none;
  }
  .topbar .r .client-pill {
    max-width: 40px;
    padding: 0 10px;
  }
}
@media (max-width: 1000px) {
  .topbar .row[style],
  .topbar .zoomc .tool:last-child {
    display: none;
  }
}
.topbar .l,
.topbar .c,
.topbar .r {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.topbar .c {
  justify-content: center;
}
.topbar .r {
  justify-content: flex-end;
}
.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
}
.logo svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 7px rgba(57, 255, 20, 0.55));
}
.logo .sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  font-weight: 500;
  margin-left: 2px;
}
.pname {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  height: 28px;
  padding: 0 8px;
  font-weight: 600;
  min-width: 0;
  width: 100%;
  max-width: 220px;
  outline: none;
  text-overflow: ellipsis;
}
.pname:hover {
  border-color: var(--line-2);
}
.pname:focus {
  border-color: var(--neon);
  background: #070b09;
}
.tools {
  display: inline-flex;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 3px;
}
.tool {
  width: 32px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tool:hover {
  color: var(--text);
  background: var(--panel-2);
}
.tool.on {
  color: var(--neon);
  background: var(--neon-soft);
  box-shadow: inset 0 0 0 1px var(--neon-line);
}
.tool svg {
  width: 16px;
  height: 16px;
}
.tool .k {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--dim);
}
.tool.on .k {
  color: var(--neon);
}
.zoomc {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 3px;
}
.zoomc .z {
  font-family: var(--mono);
  font-size: 11px;
  width: 52px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
}
.variant {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 3px;
  gap: 2px;
}
.variant button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.variant button.on {
  background: var(--neon-soft);
  color: var(--neon);
  box-shadow: inset 0 0 0 1px var(--neon-line);
}
.variant button .k {
  font-family: var(--mono);
  font-size: 9.5px;
  opacity: 0.7;
}
.client-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  max-width: 190px;
  position: relative;
}
.client-pill:hover {
  border-color: var(--neon-dim);
}
.client-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  flex: none;
}
.client-pill .dot.off {
  background: var(--dim);
  box-shadow: none;
}
.client-pill .t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 11.5px;
}
.client-pill select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: var(--left) 1fr var(--right);
  min-height: 0;
}
.panel {
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel.right {
  border-right: 0;
  border-left: 1px solid var(--line);
}
.ptabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 6px;
}
.ptab {
  flex: 1;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.ptab:hover {
  color: var(--text);
}
.ptab.on {
  color: var(--neon);
  border-bottom-color: var(--neon);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}
.ptab .n {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
}
.ptab.on .n {
  color: var(--neon);
}
.pbody {
  flex: 1;
  overflow: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card.glow {
  box-shadow: var(--glow);
  border-color: var(--neon-line);
}
.section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.statusbar {
  height: var(--statusbar);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  background: var(--bg-2);
}
.statusbar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulse 2.4s ease-in-out infinite;
}
.statusbar .dot.dirty {
  background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
  animation: none;
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.canvas-wrap {
  position: relative;
  overflow: hidden;
  touch-action: none;
  background: #0a0d0b;
  background-image: radial-gradient(rgba(57, 255, 20, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  cursor: default;
  outline: none;
}
.canvas-wrap.tool-hand {
  cursor: grab;
}
.canvas-wrap.tool-hand.panning {
  cursor: grabbing;
}
.canvas-wrap.tool-rect,
.canvas-wrap.tool-text,
.canvas-wrap.tool-image {
  cursor: crosshair;
}
.canvas-wrap canvas.board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.canvas-wrap.dropping::after {
  content: "Th\1ea3  \1ea3nh \111\1ec3  th\eam";
  position: absolute;
  inset: 10px;
  border: 2px dashed var(--neon);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--neon);
  font-weight: 700;
  background: rgba(57, 255, 20, 0.06);
  pointer-events: none;
}
.text-editor {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 1px solid var(--neon);
  background: transparent;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  word-wrap: break-word;
  caret-color: var(--neon);
  z-index: 5;
}
.canvas-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.canvas-empty > div {
  pointer-events: auto;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.ctx {
  position: fixed;
  z-index: 40;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 4px;
  min-width: 190px;
  box-shadow: 0 18px 50px -14px #000;
}
.ctx button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}
.ctx button:hover {
  background: var(--neon-soft);
  color: var(--neon);
}
.ctx button:disabled {
  opacity: 0.4;
  cursor: default;
}
.ctx button .k {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}
.ctx hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}
.layers {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.layer {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 6px 0 4px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text);
  user-select: none;
  border: 1px solid transparent;
}
.layer:hover {
  background: var(--panel-2);
}
.layer.on {
  background: var(--neon-soft);
  border-color: var(--neon-line);
}
.layer.hov {
  background: var(--panel-3);
}
.layer.hidden {
  opacity: 0.45;
}
.layer .caret {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  flex: none;
}
.layer .caret svg {
  width: 10px;
  height: 10px;
  transition: transform 0.12s;
}
.layer .caret.open svg {
  transform: rotate(90deg);
}
.layer .ico {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex: none;
}
.layer.on .ico {
  color: var(--neon);
}
.layer .nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.layer .nm input {
  width: 100%;
  height: 20px;
  background: #070b09;
  border: 1px solid var(--neon);
  border-radius: 4px;
  padding: 0 4px;
  outline: none;
  font-size: 12px;
}
.layer .tag {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--neon-dim);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 0 4px;
}
.layer .acts {
  display: none;
  gap: 2px;
}
.layer:hover .acts,
.layer .acts.show {
  display: inline-flex;
}
.layer .acts button {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.layer .acts button:hover {
  color: var(--neon);
  background: var(--panel-3);
}
.layer .acts button svg {
  width: 12px;
  height: 12px;
}
.layer .acts button.on {
  color: var(--warn);
}
.layer.drop-before {
  box-shadow: 0 -2px 0 var(--neon);
}
.layer.drop-after {
  box-shadow: 0 2px 0 var(--neon);
}
.blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.block-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  cursor: pointer;
  text-align: left;
  color: var(--text);
}
.block-tile:hover {
  border-color: var(--neon-dim);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.2);
}
.block-tile .pv {
  height: 30px;
  border-radius: 3px;
  background: var(--panel-3);
  position: relative;
  overflow: hidden;
}
.block-tile .pv i {
  position: absolute;
  background: var(--line-2);
  border-radius: 2px;
}
.block-tile .pv i.g {
  background: var(--neon-dim);
  opacity: 0.8;
}
.block-tile .nm {
  font-weight: 600;
  font-size: 11.5px;
}
.block-tile .ds {
  color: var(--dim);
  font-size: 10px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.asset {
  position: relative;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070b09;
  cursor: pointer;
}
.asset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.asset:hover {
  border-color: var(--neon-dim);
}
.asset .del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 0;
  color: #fff;
  display: none;
  cursor: pointer;
  font-size: 11px;
}
.asset:hover .del {
  display: block;
}
.asset .nm {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 9px;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropzone {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 14px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
}
.dropzone:hover,
.dropzone.over {
  border-color: var(--neon);
  color: var(--neon);
  background: var(--neon-soft);
}
.props {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prop-h {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prop-h .ico {
  width: 16px;
  height: 16px;
  color: var(--neon);
}
.prop-h input {
  flex: 1;
}
.aligns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.aligns .btn {
  width: 100%;
}
.textarea-text {
  font-family: var(--sans);
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 11.5px;
}
.check.click {
  cursor: pointer;
}
.check.click:hover {
  border-color: var(--line-2);
}
.check .lv {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 3px;
  flex: none;
  margin-top: 2px;
}
.check.error .lv {
  background: rgba(255, 92, 92, 0.15);
  color: var(--err);
}
.check.warn .lv {
  background: rgba(255, 197, 61, 0.15);
  color: var(--warn);
}
.check.info .lv {
  background: rgba(111, 183, 255, 0.15);
  color: var(--info);
}
.check.ok .lv {
  background: var(--neon-soft);
  color: var(--neon);
}
.check .m {
  flex: 1;
}
.score {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ring {
  width: 58px;
  height: 58px;
  position: relative;
  flex: none;
}
.ring svg {
  transform: rotate(-90deg);
}
.ring .v {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}
.sug {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.sug .lv {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 3px;
  flex: none;
  margin-top: 2px;
  letter-spacing: 0.4px;
}
.sug.fix .lv {
  background: rgba(255, 197, 61, 0.15);
  color: var(--warn);
}
.sug.tip .lv {
  background: rgba(111, 183, 255, 0.15);
  color: var(--info);
}
.sug.good .lv {
  background: var(--neon-soft);
  color: var(--neon);
}
.sug .t {
  font-weight: 600;
  font-size: 11.5px;
}
.sug .d {
  color: var(--muted);
  margin-top: 2px;
  font-size: 11px;
}
.sug.good .d {
  display: none;
}
.progress {
  height: 6px;
  background: var(--panel-3);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.progress > i {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--neon-dim),
      var(--neon));
  box-shadow: 0 0 10px var(--neon);
  transition: width 0.15s;
}
.progress > i.indet {
  width: 30% !important;
  animation: indet 1.2s ease-in-out infinite;
}
@keyframes indet {
  0% {
    margin-left: -30%;
  }
  100% {
    margin-left: 100%;
  }
}
.log {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  max-height: 110px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.5;
  padding: 8px;
  background: #050807;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.log .ok {
  color: var(--neon);
}
.log .er {
  color: var(--err);
}
.result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  background: var(--neon-soft);
  border: 1px solid var(--neon-line);
  font-size: 11.5px;
}
.result .ic {
  color: var(--neon);
  font-size: 16px;
}
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 3, 0.72);
  backdrop-filter: blur(4px);
  z-index: 30;
  display: grid;
  place-items: center;
  animation: fade 0.15s ease-out;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  width: min(92vw, 720px);
  max-height: 88vh;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px #000, var(--glow);
  display: flex;
  flex-direction: column;
  animation: up 0.18s ease-out;
}
.modal.wide {
  width: min(94vw, 1040px);
}
.modal.narrow {
  width: min(92vw, 480px);
}
@keyframes up {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.modal-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.modal-h h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}
.modal-b {
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-f {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tpl {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.tpl:hover,
.tpl.on {
  border-color: var(--neon);
  box-shadow: var(--glow);
}
.tpl .pv {
  aspect-ratio: 3 / 2.6;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.tpl .pv img,
.tpl .pv canvas {
  width: 100%;
  display: block;
}
.tpl .pv.blank {
  background:
    repeating-linear-gradient(
      45deg,
      #0f1611 0 8px,
      #0c120e 8px 16px);
  display: grid;
  place-items: center;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}
.tpl .meta {
  padding: 8px 10px;
}
.tpl .meta .nm {
  font-weight: 700;
  font-size: 12px;
}
.tpl .meta .ds {
  color: var(--muted);
  font-size: 11px;
}
.presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.preset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.preset:hover,
.preset.on {
  border-color: var(--neon);
  color: var(--text);
}
.preset i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid;
}
.preview-frame {
  background: #e9ebe9;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  justify-content: center;
  overflow: auto;
  max-height: 70vh;
}
.preview-frame iframe {
  border: 0;
  background: #fff;
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transition: width 0.2s;
}
.preview-frame.dark {
  background: #1c1f1d;
}
.profile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
}
.profile.on {
  border-color: var(--neon-line);
  box-shadow: inset 3px 0 0 var(--neon);
}
.perm {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.shortcuts div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}
.shortcuts .ks {
  display: inline-flex;
  gap: 3px;
}
.home {
  height: 100%;
  overflow: auto;
}
.home-top {
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.home-body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.4px;
  line-height: 1.15;
}
.hero h1 em {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.5);
}
.hero p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 560px;
  font-size: 13px;
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.proj {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.12s, transform 0.12s;
}
.proj:hover {
  border-color: var(--neon-line);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.proj .pv {
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.proj .pv img {
  width: 100%;
  display: block;
}
.proj .pv .blank {
  position: absolute;
  inset: 0;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  color: var(--dim);
}
.proj .meta {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.proj .meta .nm {
  font-weight: 700;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj .meta .dt {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}
.proj.new {
  border-style: dashed;
  border-color: var(--line-2);
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--muted);
  gap: 8px;
}
.proj.new:hover {
  color: var(--neon);
}
.proj.new svg {
  width: 28px;
  height: 28px;
}
.empty {
  text-align: center;
  padding: 30px 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.empty .big {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.feature .t {
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature .t svg {
  width: 16px;
  height: 16px;
  color: var(--neon);
}
.feature .d {
  color: var(--muted);
  font-size: 11.5px;
}
.toasts {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 50;
  pointer-events: none;
}
.toast {
  padding: 9px 14px;
  border-radius: 8px;
  background: #0d1510;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 10px 40px -10px #000;
  animation: up 0.18s ease-out;
  max-width: 520px;
}
.toast.ok {
  border-color: var(--neon-line);
}
.toast.err {
  border-color: rgba(255, 92, 92, 0.55);
}
.busy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 8, 0.55);
  display: grid;
  place-items: center;
  z-index: 8;
}
.busy-overlay .box {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 16px 18px;
  width: 320px;
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat {
  flex: 1;
  min-height: 160px;
  max-height: 46vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0;
}
.msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}
.msg.user {
  align-items: flex-end;
}
.msg .bubble {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 92%;
}
.msg.user .bubble {
  background: var(--neon-soft);
  border: 1px solid var(--neon-line);
  border-bottom-right-radius: 3px;
}
.msg.assistant .bubble {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
}
.msg .acts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.chat-input {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}
.chat-input textarea {
  resize: none;
  min-height: 44px;
}
.tpl-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 236px;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
}
.tpl-strip .tpl {
  scroll-snap-align: start;
}
.tpl .pv-skel {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #eef1ee 25%,
      #f7f9f7 50%,
      #eef1ee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.tpl .meta .ds {
  font-size: 10.5px;
  line-height: 1.35;
  margin-top: 2px;
}
.palette-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(
      90deg,
      var(--panel),
      transparent);
}
.home-body {
  max-width: 1180px;
  gap: 32px;
}
.tpl.on .meta .nm {
  color: var(--neon);
}
.asset.on {
  outline: 2px solid var(--neon);
  outline-offset: -2px;
}
.logo .wordmark {
  font-family:
    Poppins,
    Inter,
    sans-serif;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1;
}
.logo .wordmark.studio {
  color: var(--neon);
  font-weight: 600;
  margin-left: 2px;
  text-shadow: 0 0 14px rgba(57, 255, 20, 0.35);
}
.home-top {
  height: 64px;
}
.proj-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.proj-head .eyebrow {
  flex: none;
  margin: 0;
}
.proj-head .eyebrow::after {
  width: 80px;
  flex: none;
}
.proj-head .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.proj-head .search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  height: 36px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--muted);
}
.proj-head .search input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  width: 100%;
}
.proj-head .sort {
  height: 36px;
  min-width: 130px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0 30px 0 12px;
  color: var(--text);
  font-weight: 600;
  appearance: none;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--muted) 50%),
    linear-gradient(
      135deg,
      var(--muted) 50%,
      transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.proj-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.proj {
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      var(--panel),
      #0a0f0c);
}
.proj .frame {
  position: relative;
  margin: 14px 14px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 2.9;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
}
.proj .frame .dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: #0c120e;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  z-index: 2;
}
.proj .frame .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  opacity: 0.85;
}
.proj .frame .dots i:nth-child(2) {
  opacity: 0.55;
}
.proj .frame .dots i:nth-child(3) {
  opacity: 0.3;
}
.proj .frame img.shot {
  width: 100%;
  display: block;
  margin-top: 18px;
}
.proj .frame .phone {
  position: absolute;
  right: 10px;
  bottom: -6px;
  width: 26%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #0c120e;
  border: 2px solid #1f2d23;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 3;
}
.proj .frame .phone img {
  width: 100%;
  display: block;
}
.proj .frame .phone::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 30%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #1f2d23;
  z-index: 2;
}
.proj .meta {
  padding: 12px 14px 4px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 6px 8px;
  align-items: center;
}
.proj .meta .nm {
  font-size: 14px;
}
.proj .meta .sub {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: -4px;
}
.proj .foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 14px;
  color: var(--muted);
  font-size: 11.5px;
}
.proj .foot .prov {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}
.proj .foot .prov i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  color: #04140a;
  background: var(--neon);
}
.proj .foot .dt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
}
.proj.new {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  min-height: 300px;
  padding: 14px;
  gap: 10px;
  border-style: dashed;
}
.proj.new .plus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text);
}
.proj.new .plus .circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--neon);
  color: var(--neon-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px -4px rgba(57, 255, 20, 0.8);
}
.proj.new .plus .circle svg {
  width: 26px;
  height: 26px;
}
.proj.new .plus b {
  font-size: 14px;
}
.proj.new .plus span {
  color: var(--muted);
  font-size: 11.5px;
}
.quick {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quick button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  text-align: left;
}
.quick button:hover {
  border-color: var(--neon-dim);
  background: var(--panel-3);
}
.quick button svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.quick button .chev {
  margin-left: auto;
  color: var(--dim);
}
.feature {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
}
.feature .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--neon-soft);
  border: 1px solid var(--neon-line);
  display: grid;
  place-items: center;
  color: var(--neon);
}
.feature .ic svg {
  width: 22px;
  height: 22px;
}
.feature .t {
  margin-bottom: 4px;
  font-size: 14px;
}
.feature .go {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.feature .go:hover {
  border-color: var(--neon);
  color: var(--neon);
}
.tpl-strip {
  grid-auto-columns: 248px;
}
.home-top .sep {
  width: 1px;
  height: 18px;
  background: var(--line-2);
  margin: 0 2px;
}
.acct {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acct .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--neon);
  color: #04140a;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.acct .who {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.acct .who b {
  font-size: 12px;
}
.acct .who span {
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--mono);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.authtabs {
  width: 100%;
  margin-bottom: 12px;
  height: 32px;
}
.authtabs button.on {
  background: var(--neon-soft);
  color: var(--neon);
}
.claim {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 20px 0;
  padding: 10px 14px;
  border: 1px solid var(--neon-line);
  background: var(--neon-soft);
  border-radius: var(--r);
  font-size: 13px;
}
.claim svg {
  color: var(--neon);
}
@media (max-width: 720px) {
  .acct .who {
    display: none;
  }
  .home-top .btn.ghost.sm[href] {
    display: none;
  }
}
.asset[draggable] {
  cursor: grab;
}
.asset[draggable]:active {
  cursor: grabbing;
}
.google-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}
.google-btn iframe {
  color-scheme: light;
  background: transparent !important;
  border-radius: 999px;
}
.google-btn > div:first-child {
  min-height: 44px;
  display: flex;
  justify-content: center;
}
.google-btn .or {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  color: var(--dim);
  font-size: 11.5px;
}
.google-btn .or::before,
.google-btn .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}
.catalog {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px;
}
.crow {
  display: grid;
  grid-template-columns: 22px 44px minmax(0, 1fr) 110px 60px 60px 24px;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.crow:hover {
  background: var(--panel-2);
}
.crow.on {
  background: var(--neon-soft);
}
.crow .cimg {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--dim);
}
.crow .cimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crow .cname {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.crow .cname b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.crow .cnum {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  text-align: right;
}
.crow .del {
  border: 0;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}
.crow .del:hover {
  color: var(--err);
}
.pv-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3vh 16px;
}
.pv-panel {
  width: min(960px, 100%);
  height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--neon-line);
  border-radius: 16px;
  box-shadow: 0 40px 120px -30px #000, 0 0 60px -20px rgba(57, 255, 20, 0.4);
  overflow: hidden;
}
.pv-head,
.pv-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.pv-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
}
.pv-body {
  flex: 1;
  overflow: auto;
  background: #1a1d1b;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
}
.pv-body img {
  height: auto;
  box-shadow: 0 30px 80px -20px #000;
  border-radius: 6px;
  background: #fff;
}
.crop-bar {
  position: absolute;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--neon-line);
  border-radius: 8px;
  box-shadow: var(--glow);
  white-space: nowrap;
}
.asset .del.cut {
  right: 24px;
}
.ai-variants .tpl .pv {
  aspect-ratio: 3 / 3.4;
}
.asset.more {
  display: grid;
  place-items: center;
  font: 700 14px var(--mono);
  color: var(--neon);
  background: var(--neon-soft);
  border: 1px dashed var(--neon-line);
  cursor: pointer;
}
.asset.more:hover {
  background: rgba(57, 255, 20, 0.2);
}
.mobilebar {
  display: none;
  height: calc(54px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  align-items: stretch;
  flex: none;
}
.mobilebar button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: 600 10.5px var(--mono);
  cursor: pointer;
}
.mobilebar button svg {
  width: 20px;
  height: 20px;
}
.mobilebar button.on {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}
.pv-body img {
  max-width: 100%;
}
@media (max-width: 820px) {
  html,
  body,
  #root {
    height: 100dvh;
  }
  .topbar {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 0 8px;
    scrollbar-width: none;
  }
  .topbar::-webkit-scrollbar {
    display: none;
  }
  .topbar .l,
  .topbar .c,
  .topbar .r {
    flex: none;
    overflow: visible;
  }
  .topbar .pname {
    max-width: 110px;
  }
  .topbar .tool .k,
  .topbar .variant .k,
  .topbar .client-pill,
  .topbar .row[style] {
    display: none;
  }
  .topbar .zoomc .tool:last-child {
    display: inline-flex;
  }
  .workspace {
    display: block;
    position: relative;
  }
  .canvas-wrap {
    position: absolute;
    inset: 0;
    touch-action: none;
  }
  .panel,
  .panel.right {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 30%;
    z-index: 9;
    border: 0;
    border-top: 1px solid var(--line-2);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -20px 60px -20px #000;
    display: none;
    background: var(--panel);
  }
  .panel.open {
    display: flex;
    animation: up 0.18s ease-out;
  }
  .panel::before {
    content: "";
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--line-2);
    margin: 8px auto 0;
    flex: none;
  }
  .ptab {
    height: 42px;
    font-size: 12.5px;
  }
  .pbody {
    padding: 12px;
    gap: 12px;
  }
  .statusbar {
    display: none;
  }
  .mobilebar {
    display: flex;
  }
  .btn.sm {
    height: 32px;
  }
  .btn.xs {
    height: 26px;
  }
  .in,
  input.in,
  select.in,
  .num,
  .seg,
  .swatch {
    height: 34px;
  }
  .layer {
    height: 34px;
  }
  .layer .acts {
    display: inline-flex;
  }
  .asset .del {
    display: block;
  }
  .tool {
    width: 36px;
    height: 32px;
  }
  .modal-bg {
    place-items: end center;
  }
  .modal,
  .modal.wide,
  .modal.narrow {
    width: 100vw;
    max-height: 94dvh;
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .modal-b {
    padding: 12px 14px;
  }
  .modal-f {
    flex-wrap: wrap;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .modal .grid3,
  .modal .grid2,
  .feature-row,
  .shortcuts {
    grid-template-columns: 1fr;
  }
  .tpl-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .tpl-grid.ai-variants {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 2px 2px 8px;
    scrollbar-width: none;
  }
  .tpl-grid.ai-variants::-webkit-scrollbar {
    display: none;
  }
  .tpl-grid.ai-variants .tpl {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }
  .tpl .meta .btn.block {
    white-space: normal;
    height: auto;
    min-height: 32px;
    padding: 6px 10px;
    line-height: 1.25;
  }
  .pv-overlay {
    padding: 0;
  }
  .pv-panel {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .pv-body {
    padding: 10px;
  }
  .preview-frame {
    padding: 8px;
    max-height: 62dvh;
  }
  .crow {
    grid-template-columns: 22px 44px minmax(0, 1fr) 90px 24px;
    gap: 8px;
  }
  .crow .cnum[title] {
    display: none;
  }
  .colorpop {
    position: fixed;
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
  }
  .chat {
    max-height: none;
  }
  .busy-overlay .box {
    width: min(320px, 90vw);
  }
  .toasts {
    bottom: calc(70px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }
  .toast {
    max-width: 100%;
  }
  .crop-bar {
    transform: none;
    left: 10px !important;
    right: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .home-top {
    height: 56px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 12px;
    gap: 6px;
    scrollbar-width: none;
    position: static;
  }
  .home-top::-webkit-scrollbar {
    display: none;
  }
  .home-top > * {
    flex: none;
  }
  .home-top .grow {
    flex: 1 0 8px;
  }
  .home-body {
    padding: 20px 16px calc(40px + env(safe-area-inset-bottom));
    gap: 22px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero .row {
    flex-wrap: wrap;
  }
  .proj-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .proj.new {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .proj-head {
    flex-wrap: wrap;
  }
  .proj-head .search {
    width: 100%;
  }
  .proj-head .line {
    display: none;
  }
  .tpl-strip {
    grid-auto-columns: 210px;
  }
  .palette-band {
    padding: 12px;
    gap: 12px;
  }
  .feature {
    grid-template-columns: auto 1fr;
  }
  .feature .go {
    display: none;
  }
}
.adm .hero h1 {
  font-size: 28px;
}
.adm-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.adm-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(
      180deg,
      var(--panel),
      #0a0f0c);
}
.adm-tile span {
  font: 600 10.5px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
}
.adm-tile b {
  font-size: 26px;
  line-height: 1.1;
  font-family: var(--sans);
  color: var(--text);
}
.adm-tile i {
  font-style: normal;
  color: var(--muted);
  font-size: 11.5px;
}
.adm-tile.hot {
  border-color: var(--neon-line);
  box-shadow: var(--glow);
}
.adm-tile.hot b {
  color: var(--neon);
}
.adm-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.adm-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 62vh;
  background: var(--panel);
}
.adm-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.adm-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-2);
  text-align: left;
  font: 600 10.5px var(--mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.adm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
}
.adm-table td .mono,
.adm-table td.mono {
  font-size: 11px;
}
.adm-table tr:hover td {
  background: rgba(57, 255, 20, 0.03);
}
.adm-table .n {
  text-align: right;
  font-family: var(--mono);
}
.adm-table button.chip {
  cursor: pointer;
  background: transparent;
}
.adm-table button.chip:hover {
  border-color: var(--neon);
  color: var(--neon);
}
.adm-del {
  border: 0;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.adm-del:hover {
  color: var(--err);
  background: rgba(255, 92, 92, 0.1);
}
@media (max-width: 1100px) {
  .adm-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .adm-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adm-cards {
    grid-template-columns: 1fr;
  }
  .adm-tile b {
    font-size: 22px;
  }
}
.ai-mode {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}
.ai-mode-opt {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.ai-mode-opt b {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.ai-mode-opt span {
  font-size: 11.5px;
  line-height: 1.45;
}
.ai-mode-opt.on {
  border-color: var(--neon-line);
  box-shadow: var(--glow);
}
.ai-mode-opt.on b {
  color: var(--neon);
}
.design-card .pv {
  aspect-ratio: 3 / 3.6;
  background: #0b0b0b;
}
.tpl-grid.ai-variants {
  flex: none;
}
.design-card.st-drawing .pv,
.design-card.st-reviewing .pv {
  box-shadow: inset 0 0 0 1px var(--neon-line);
}
.live-html {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}
.live-html iframe {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: #fff;
}
.pv-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  background:
    repeating-linear-gradient(
      45deg,
      #0f1611 0 8px,
      #0c120e 8px 16px);
}
.pv-wait .progress {
  width: 100%;
}
.stage-chip {
  position: absolute;
  left: 8px;
  top: 8px;
  font: 600 10.5px/1 var(--sans);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(4, 20, 10, .82);
  color: var(--neon);
  border: 1px solid var(--neon-line);
  backdrop-filter: blur(6px);
}
.stage-chip.st-drawing,
.stage-chip.st-reviewing,
.stage-chip.st-converting {
  animation: stagePulse 1.4s ease-in-out infinite;
}
.stage-chip.st-error {
  color: var(--err);
  border-color: rgba(255, 92, 92, .5);
}
.stage-chip.st-queued {
  color: var(--muted);
  border-color: var(--line-2);
}
@keyframes stagePulse {
  50% {
    box-shadow: 0 0 0 4px rgba(57, 255, 20, .12);
  }
}
@media (max-width: 760px) {
  .ai-mode {
    grid-template-columns: 1fr;
  }
}
.design-panel {
  gap: 8px;
}
.dp-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--muted);
}
.dp-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
}
.dp-search .x {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
}
.dp-search:focus-within {
  border-color: var(--neon-line);
}
.dp-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dp-cats .chip {
  cursor: pointer;
  font-size: 11px;
}
.dp-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.sw {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: none;
}
.sw.on {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--neon);
}
.sw.pick {
  background:
    conic-gradient(
      #ff5c5c,
      #ffc53d,
      #39ff14,
      #3dd6ff,
      #8b5cf6,
      #ff5fa2,
      #ff5c5c);
  overflow: hidden;
}
.sw.pick input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.el-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.el-grid.text {
  grid-template-columns: repeat(2, 1fr);
}
.el-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  padding: 6px 4px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  cursor: grab;
  font: inherit;
  transition:
    border-color .12s,
    transform .12s,
    background .12s;
}
.el-tile:hover {
  border-color: var(--neon-line);
  background: var(--panel-3);
  transform: translateY(-1px);
}
.el-tile:active {
  cursor: grabbing;
}
.el-tile.busy {
  opacity: .55;
}
.el-svg {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}
.el-svg svg {
  width: 40px;
  height: 40px;
  overflow: visible;
}
.el-lb {
  font-size: 9.5px;
  line-height: 1.15;
  text-align: center;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.el-text {
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.05;
}
.el-text.t-t-display {
  font-size: 17px;
  font-weight: 900;
}
.el-text.t-t-h2 {
  font-size: 15px;
}
.el-text.t-t-sub {
  font-size: 13px;
  font-weight: 600;
}
.el-text.t-t-body {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.el-text.t-t-eyebrow {
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.el-text.t-t-number {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.el-text.t-t-3d {
  font-size: 15px;
  font-weight: 900;
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, .6),
    2px 2px 0 rgba(0, 0, 0, .5),
    3px 3px 0 rgba(0, 0, 0, .4);
}
.el-text.t-t-neon {
  font-size: 15px;
  text-shadow: 0 0 6px currentColor, 0 0 14px currentColor;
}
.el-text.t-t-outline {
  font-size: 16px;
  font-weight: 900;
  color: transparent !important;
  -webkit-text-stroke: 1px var(--text);
}
.el-text.t-t-shadow {
  font-size: 15px;
  font-weight: 900;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, .18), 6px 6px 0 rgba(255, 255, 255, .08);
}
.ic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.ic-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--panel-2);
  cursor: grab;
  padding: 6px;
}
.ic-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.ic-tile:hover {
  border-color: var(--neon-line);
  background: var(--panel-3);
}
.ic-tile.st {
  padding: 3px;
  background: transparent;
}
.ic-tile.st:hover img {
  transform: scale(1.12) rotate(-4deg);
}
.ic-tile.st img {
  transition: transform .15s;
}
.photo-grid {
  columns: 2;
  column-gap: 6px;
}
.ph-tile {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--panel-2);
  cursor: grab;
  position: relative;
  break-inside: avoid;
}
.ph-tile img {
  width: 100%;
  display: block;
  min-height: 40px;
}
.ph-tile .lic {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font: 600 8.5px/1 var(--mono);
  padding: 3px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  opacity: 0;
  transition: opacity .12s;
}
.ph-tile:hover .lic {
  opacity: 1;
}
.ph-tile:hover {
  border-color: var(--neon-line);
}
.anim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.anim-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  cursor: pointer;
  font: inherit;
  color: var(--muted);
}
.anim-tile:hover:not(:disabled) {
  border-color: var(--neon-line);
}
.anim-tile.off {
  opacity: .45;
  cursor: not-allowed;
}
.anim-tile .demo {
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-2);
}
.anim-tile .demo i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--neon);
  display: block;
}
.anim-tile:hover .demo.k-fade i {
  animation: dFade 1.2s infinite;
}
.anim-tile:hover .demo.k-up i {
  animation: dUp 1.2s infinite;
}
.anim-tile:hover .demo.k-down i {
  animation: dDown 1.2s infinite;
}
.anim-tile:hover .demo.k-left i {
  animation: dLeft 1.2s infinite;
}
.anim-tile:hover .demo.k-right i {
  animation: dRight 1.2s infinite;
}
.anim-tile:hover .demo.k-pop i {
  animation: dPop 1.2s infinite;
}
.anim-tile:hover .demo.k-wipe i {
  animation: dWipe 1.2s infinite;
}
.anim-tile:hover .demo.k-type i {
  animation: dType 1.2s steps(4) infinite;
}
.anim-tile:hover .demo.k-marquee i {
  animation: dMarq 1.2s linear infinite;
}
.demo.k-pulse i {
  animation: dPulse 1.2s ease-in-out infinite;
}
.demo.k-float i {
  animation: dFloat 2.4s ease-in-out infinite;
}
.demo.k-spin i {
  animation: dSpin 2.4s linear infinite;
}
.demo.k-shake i {
  animation: dShake 1.2s ease-in-out infinite;
}
.demo.k-blink i {
  animation: dBlink 1.2s ease-in-out infinite;
}
.demo.k-none i {
  background: var(--dim);
}
@keyframes dFade {
  0% {
    opacity: 0;
  }
  60%, 100% {
    opacity: 1;
  }
}
@keyframes dUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  60%, 100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes dDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  60%, 100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes dLeft {
  0% {
    opacity: 0;
    transform: translateX(14px);
  }
  60%, 100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes dRight {
  0% {
    opacity: 0;
    transform: translateX(-14px);
  }
  60%, 100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes dPop {
  0% {
    opacity: 0;
    transform: scale(.5);
  }
  45% {
    opacity: 1;
    transform: scale(1.15);
  }
  65%, 100% {
    transform: scale(1);
  }
}
@keyframes dWipe {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  60%, 100% {
    clip-path: inset(0);
  }
}
@keyframes dType {
  0% {
    width: 0;
  }
  100% {
    width: 14px;
  }
}
@keyframes dMarq {
  0% {
    transform: translateX(18px);
  }
  100% {
    transform: translateX(-18px);
  }
}
@keyframes dPulse {
  50% {
    transform: scale(1.25);
  }
}
@keyframes dFloat {
  50% {
    transform: translateY(-5px);
  }
}
@keyframes dSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes dShake {
  0%, 45%, 100% {
    transform: none;
  }
  10% {
    transform: rotate(-14deg);
  }
  20% {
    transform: rotate(12deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  40% {
    transform: rotate(4deg);
  }
}
@keyframes dBlink {
  50% {
    opacity: .25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo i {
    animation: none !important;
  }
}
.dp-count {
  font-size: 11px;
  color: var(--muted);
  padding: 8px 10px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  line-height: 1.45;
}
.ic-svg {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ic-svg svg {
  width: 100%;
  height: 100%;
}
.ic-wait {
  width: 60%;
  height: 60%;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      var(--panel-3) 25%,
      var(--line-2) 50%,
      var(--panel-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.ic-grid.d3 {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.ic-tile.d3 {
  background:
    radial-gradient(
      circle at 50% 40%,
      var(--panel-3),
      var(--panel-2));
  padding: 4px;
}
.ic-tile.d3 img {
  transition: transform .15s;
}
.ic-tile.d3:hover img {
  transform: scale(1.12) translateY(-2px);
}
.ic-tile.pp {
  padding: 2px;
  background: #F4F1EA;
  border-radius: 10px;
  overflow: hidden;
}
.ic-tile.pp img {
  border-radius: 8px;
}
.ic-tile.busy {
  opacity: .5;
}
.dp-pals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pal {
  display: flex;
  height: 18px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  padding: 0;
  cursor: pointer;
  background: none;
}
.pal i {
  width: 9px;
  height: 100%;
  display: block;
}
.pal.on {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--neon);
}
.pal.shuffle {
  width: 28px;
  justify-content: center;
  align-items: center;
  color: var(--neon);
  font-size: 13px;
}
.gen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.gen-grid.g-shape3d,
.gen-grid.g-deco,
.gen-grid.g-ribbon,
.gen-grid.g-badge,
.gen-grid.g-bubble,
.gen-grid.g-line,
.gen-grid.g-frame,
.gen-grid.g-spark {
  grid-template-columns: repeat(3, 1fr);
}
.gen-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 5px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  overflow: hidden;
  cursor: grab;
  font: inherit;
}
.gen-tile img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: #fff;
}
.gen-tile.g-shape3d img,
.gen-tile.g-deco img,
.gen-tile.g-ribbon img,
.gen-tile.g-badge img,
.gen-tile.g-bubble img,
.gen-tile.g-line img,
.gen-tile.g-frame img,
.gen-tile.g-spark img {
  aspect-ratio: 1;
  object-fit: contain;
  background: repeating-conic-gradient(#1a2a1e 0 25%, #0c120e 0 50%) 0 0 / 12px 12px;
  padding: 6px;
}
.gen-tile:hover {
  border-color: var(--neon-line);
}
.gen-tile.busy {
  opacity: .5;
}
.client-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.client-bar .cl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.client-bar .cl:hover {
  color: var(--text);
  border-color: var(--neon-line);
}
.client-bar .cl.on {
  color: var(--neon);
  border-color: var(--neon-line);
  background: var(--neon-soft);
}
.client-bar .cl i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
.client-bar .cl.add {
  border-style: dashed;
}
.client-bar .dot,
.client-head .dot,
.proj .meta .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.cl-input {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--neon-line);
  background: var(--panel);
  color: var(--text);
  outline: none;
  min-width: 220px;
}
.client-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
}
.client-head b {
  font-size: 16px;
  cursor: text;
}
.proj .foot .cl-move {
  margin-left: auto;
  max-width: 140px;
  height: 24px;
  font-size: 11px;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0 4px;
}
@media (max-width: 640px) {
  .client-head .dim {
    flex-basis: 100%;
    order: 9;
  }
  .cl-input {
    min-width: 0;
    width: 100%;
  }
}
.aud .home-body {
  gap: 16px;
}
.aud-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.aud-head h1 {
  font-size: 28px;
  margin: 0 0 4px;
}
.aud-head h1 em {
  font-style: normal;
  color: var(--neon);
}
.aud-head p {
  margin: 0;
}
.aud-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.aud-tabs {
  height: 36px;
  align-self: flex-start;
  max-width: 100%;
  overflow-x: auto;
}
.aud-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  white-space: nowrap;
}
.aud-toolbar {
  gap: 8px;
}
.aud-bulk {
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--neon-line);
  background: var(--neon-soft);
  border-radius: 10px;
}
.aud-table {
  max-height: 60vh;
}
.aud-table td .chip {
  font-size: 10.5px;
}
.aud-empty {
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 40px 24px;
}
.aud-empty .small {
  max-width: 460px;
}
.aud-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.aud-card {
  gap: 8px;
}
.aud-card:hover {
  border-color: var(--neon-line);
}
.aud-rule {
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.aud-count {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--neon-soft);
  border: 1px solid var(--neon-line);
  font-size: 13px;
}
.aud-count b {
  color: var(--neon);
  font-size: 18px;
}
.aud-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.aud-preview {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 460px;
}
.aud-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.aud-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px;
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
}
.aud-drop:hover {
  border-color: var(--neon);
  color: var(--neon);
}
.aud-trig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.aud-trig-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
  background: var(--panel);
}
.aud-trig-opt.on {
  border-color: var(--neon-line);
  background: var(--neon-soft);
}
.aud-trig-opt input {
  margin-top: 3px;
}
.aud-step {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
}
.aud-step-n {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px var(--mono);
  color: var(--neon-ink);
  background: var(--neon);
}
.aud-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--line-2);
  padding-left: 10px;
}
.aud-step-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  align-items: baseline;
}
.aud-chart {
  width: 100%;
  height: auto;
  margin-top: 8px;
}
.aud-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
}
@media (max-width: 820px) {
  .aud-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aud-split,
  .aud-trig {
    grid-template-columns: 1fr;
  }
  .aud-head h1 {
    font-size: 22px;
  }
}
.aud-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.aud-groups button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}
.aud-groups button:hover {
  color: var(--text);
  border-color: var(--neon-line);
}
.aud-groups button.on {
  color: var(--neon);
  border-color: var(--neon-line);
  background: var(--neon-soft);
}
.aud-groups button i {
  font-style: normal;
  font: 500 10.5px var(--mono);
  color: var(--dim);
}
.aud-groups button.on i {
  color: var(--neon);
}
.aud-groups button.seg {
  border-style: dashed;
}
.aud-groups button.tag {
  font-weight: 500;
  font-family: var(--mono);
  font-size: 11.5px;
}
.aud-groups button.add {
  border-style: dashed;
  color: var(--neon);
}
.workspace {
  position: relative;
  transition: grid-template-columns .18s ease;
}
@media (min-width: 821px) {
  .workspace.hide-left {
    grid-template-columns: 0 1fr var(--right);
  }
  .workspace.hide-right {
    grid-template-columns: var(--left) 1fr 0;
  }
  .workspace.hide-left.hide-right {
    grid-template-columns: 0 1fr 0;
  }
  .workspace.hide-left > .panel:not(.right),
  .workspace.hide-right > .panel.right {
    visibility: hidden;
    overflow: hidden;
    border: 0;
  }
}
.ws-tog {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 16px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
}
.ws-tog:hover {
  opacity: 1;
  color: var(--neon);
  border-color: var(--neon-line);
}
.ws-tog.l {
  left: var(--left);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  transition: left .18s ease;
}
.ws-tog.r {
  right: var(--right);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  transition: right .18s ease;
}
.workspace.hide-left .ws-tog.l {
  left: 0;
}
.workspace.hide-right .ws-tog.r {
  right: 0;
}
@media (max-width: 820px) {
  .ws-tog {
    display: none;
  }
}
.fx-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.fx-p {
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #F4F1EA;
  color: #1E1650;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
}
.fx-p:nth-child(4n+2),
.fx-p:nth-child(4n+4) {
  background: #1E1650;
  color: #fff;
}
.fx-p:hover {
  border-color: var(--neon);
}
.fx-p.on {
  outline: 2px solid var(--neon);
  outline-offset: 1px;
}
.fontpick {
  position: relative;
}
.fp-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.fp-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-btn:hover {
  border-color: var(--neon-line);
}
.fp-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fp-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.fp-kinds .chip {
  font-size: 10.5px;
  padding: 2px 7px;
  cursor: pointer;
}
.fp-list {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.fp-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  text-align: left;
  cursor: pointer;
}
.fp-item span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-item em {
  font: 10px var(--mono);
  font-style: normal;
  color: var(--dim);
}
.fp-item:hover {
  background: var(--panel-2);
}
.fp-item.on {
  background: color-mix(in srgb, var(--neon) 14%, transparent);
  color: var(--neon);
}
.photo-grid.illus .ph-tile.il img {
  object-fit: contain;
  background: #fff;
}
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.app-card:hover {
  border-color: var(--neon-line);
}
.app-card b {
  font-size: 13px;
}
.app-card span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.app-card svg {
  color: var(--neon);
}
.app-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.app-back svg {
  transform: rotate(180deg);
}
.app-preview {
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
}
.app-preview svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}
.apps .swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.apps .swatch.on {
  border-color: var(--neon);
}
.apps input[type=color] {
  width: 26px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
}
