@import url("./photo-template.css");

/* Конструктор «Мастерская сувениров». Все правила внутри .kz — не мешают стилям сайта.
   Токены совпадают с сайтом: бумага, чернила и CMYK-акценты.
   Раскладка «студия»: изделие на всю сцену, интерфейс — плавающие острова. */

@font-face { font-family: 'Rubik'; font-weight: 300 900; font-display: swap; src: url(../src/fonts/rubik-cyrillic-400.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik'; font-weight: 300 900; font-display: swap; src: url(../src/fonts/rubik-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

.kz {
  --paper: #fafaf9; --paper-2: #eff0ec; --card: #ffffff;
  --ink: #101010; --ink-2: #343630; --muted: #595d54;
  --line: #dedfd9; --line-strong: #bbbeb4;
  --c: #364a0b; --c-soft: #f0f5e7; --m: #9b1941; --m-soft: #fdebf0; --y: #c8ff00; --y-soft: #f3ffd1;
  --r: 22px; --r-s: 12px;
  --glass: #fafaf9;
  --isle-shadow: 0 1px 0 rgba(22, 20, 27, .04), 0 10px 30px -12px rgba(22, 20, 27, .28), 0 0 0 1px rgba(22, 20, 27, .06);
  --shadow: 0 1px 0 rgba(22, 20, 27, .04), 0 18px 40px -24px rgba(22, 20, 27, .28);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --panel-w: 320px; --props-w: 300px; --gap: 14px;
  /* студия: мягкий свет сверху и тёплый фон — белое изделие на нём не теряется */
  --studio: #ebede8;

  position: relative; display: block; height: 100%; min-height: 520px; overflow: hidden; isolation: isolate;
  background: var(--studio); color: var(--ink); font: 400 14px/1.4 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
/* тёмное изделие — фон светлее и холоднее, чтобы силуэт читался */
.kz[data-tone='dark'] { --studio: #eeefec; }
.kz *, .kz *::before, .kz *::after { box-sizing: border-box; }
/* сброс через :where — нулевая специфичность, не перебивает классы ниже */
:where(.kz) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.kz) :where(button) { cursor: pointer; background: none; border: 0; padding: 0; }
.kz button:disabled { opacity: .35; cursor: default; }
.kz :focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.kz [hidden] { display: none !important; }
.kz-i { flex: none; display: block; pointer-events: none; }

/* ---------- острова ---------- */
.kz-isle { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--isle-shadow); }

/* ---------- верх ---------- */
.kz-top { position: absolute; left: var(--gap); right: var(--gap); top: var(--gap); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; z-index: 6; }
.kz-top > * { pointer-events: auto; }
.kz-isle-c { position: absolute; left: 50%; transform: translateX(-50%); padding: 4px; border-radius: 999px; }
.kz-mark { position: relative; width: 32px; height: 32px; flex: none; margin: 0 2px 0 4px; }
.kz-mark i { position: absolute; width: 19px; height: 19px; border-radius: 50%; mix-blend-mode: multiply; transition: transform .3s ease; }
.kz-mark i:nth-child(1) { left: 0; top: 2px; background: var(--c); }
.kz-mark i:nth-child(2) { right: 0; top: 2px; background: var(--m); }
.kz-mark i:nth-child(3) { left: 6px; bottom: 0; background: var(--y); }
.kz-isle-l:hover .kz-mark i:nth-child(1) { transform: translate(-2px, -1px); }
.kz-isle-l:hover .kz-mark i:nth-child(2) { transform: translate(2px, -1px); }
.kz-isle-l:hover .kz-mark i:nth-child(3) { transform: translateY(2px); }

.kz-prodchip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: background .15s; }
.kz-prodchip:hover { background: rgba(22, 20, 27, .06); }
.kz-prodchip i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

.kz-sides { display: flex; gap: 2px; }
.kz-side { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.kz-side:hover { color: var(--ink); }
.kz-side { white-space: nowrap; }
.kz-side[aria-expanded='true'] [data-icon='chevronDown'] { transform: rotate(180deg); }
.kz-side-short { display: none; }
.kz-side.is-on { background: var(--ink); color: var(--paper); }
.kz-side i { font-style: normal; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--y); color: var(--ink); display: inline-grid; place-items: center; }
.kz-saved { color: var(--muted); font-size: 12px; margin: 0 4px 0 6px; white-space: nowrap; }

/* ---------- кнопки ---------- */
.kz-ib { width: 38px; height: 38px; border-radius: var(--r-s); display: inline-grid; place-items: center; color: var(--ink-2); transition: background .15s, color .15s; flex: none; }
.kz-ib:hover:not(:disabled) { background: rgba(22, 20, 27, .07); color: var(--ink); }
.kz-ib.is-on { background: var(--ink); color: var(--paper); }
.kz-ib-danger:hover:not(:disabled) { background: var(--m-soft); color: #b30062; }

.kz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background-color .18s; }
.kz-btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--c); color: var(--paper); }
.kz-btn:active:not(:disabled) { transform: none; box-shadow: none; }
.kz-btn-primary { background: var(--m); border-color: var(--m); color: #fff; }
.kz-btn-primary:hover:not(:disabled) { color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.kz-btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); min-height: 38px; padding: 0 14px; font-weight: 500; }
.kz-btn-ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--y); }
.kz-btn-dark { background: var(--ink); color: var(--paper); }
.kz-done { min-height: 38px; }
.kz-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: kz-spin .7s linear infinite; }
@keyframes kz-spin { to { transform: rotate(360deg); } }

/* ---------- инструменты слева ---------- */
.kz-tools { position: absolute; left: var(--gap); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--isle-shadow); z-index: 5; }
.kz-tool {
  --kz-icon-tone: #e8eae4;
  position: relative; display: grid; justify-items: center; align-content: center; gap: 4px;
  width: 64px; min-height: 59px; padding: 7px 2px; border-radius: 12px;
  color: var(--ink); font-size: 11px; line-height: 1.2; font-weight: 550;
  transition: background-color .15s, color .15s;
}
@media (hover: hover) {
  .kz-tool:hover { --kz-icon-tone: #dceab8; background: var(--paper-2); }
}
.kz-tool.is-on {
  --kz-icon-tone: #32372b; --kz-icon-mark: var(--y);
  background: var(--ink); color: white; font-weight: 650;
}
.kz-tool.is-on::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 0 3px 3px 0; background: var(--y);
}
.kz-tool:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- панель инструмента ---------- */
.kz-panel { position: absolute; left: calc(var(--gap) + 86px); top: calc(var(--gap) + 64px); bottom: calc(var(--gap) + 64px); width: var(--panel-w); display: flex; flex-direction: column; border-radius: 22px; background: var(--paper); box-shadow: var(--isle-shadow); z-index: 5;
  opacity: 0; transform: translateX(-12px) scale(.98); visibility: hidden; transition: opacity .18s ease, transform .2s ease, visibility 0s .2s; }
.kz[data-panel]:not([data-panel='']) .kz-panel { opacity: 1; transform: none; visibility: visible; transition: opacity .18s ease, transform .2s ease; }
.kz-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 4px 18px; }
.kz-panel h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.kz-panel-body { overflow: auto; padding: 4px 18px 22px; flex: 1; overscroll-behavior: contain; }
.kz h4 { margin: 18px 0 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kz-note { color: var(--muted); font-size: 12.5px; margin: 8px 0; }
.kz-search { margin: 6px 0 4px; }

.kz-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kz-card { display: grid; gap: 2px; padding: 8px 8px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.kz-card:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.kz-card.is-on { border-color: var(--ink); box-shadow: 3px 3px 0 var(--c), -2px -2px 0 var(--m); }
.kz-card-img { aspect-ratio: 1; border-radius: 10px; background: var(--studio); display: grid; place-items: center; padding: 8px; margin-bottom: 6px; }
.kz-card-img svg { width: 100%; height: 100%; }
.kz-card-t { font-weight: 600; font-size: 13px; line-height: 1.2; }
.kz-card-s { font-size: 11.5px; color: var(--muted); }

.kz-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.kz-swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); transition: transform .15s; flex: none; }
.kz-swatch:hover { transform: scale(1.1); }
.kz-swatch.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16), 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

.kz-drop { width: 100%; display: grid; justify-items: center; gap: 6px; padding: 24px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--card); color: var(--ink-2); text-align: center; transition: border-color .15s, background .15s; }
.kz-drop:hover { border-color: var(--c); background: var(--c-soft); }
.kz-drop b { color: var(--ink); font-size: 15px; }
.kz-tips ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; display: grid; gap: 6px; }

.kz-tpreset { display: block; width: 100%; text-align: left; padding: 13px 16px; margin-bottom: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: var(--fs); font-weight: var(--fw); line-height: 1.15; transition: border-color .15s, box-shadow .15s; }
.kz-tpreset:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--y); }
.kz-tstyles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kz-tstyle { min-height: 74px; display: grid; place-items: center; padding: 10px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .15s, transform .15s; }
.kz-tstyle:hover { border-color: var(--ink); transform: translateY(-1px); }
.kz-tstyle.is-dark { background: var(--ink); }
.kz-tstyle-s { font-size: 19px; line-height: 1.1; text-align: center; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.kz-shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kz-icons { grid-template-columns: repeat(4, 1fr); }
.kz-shape { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 64px; padding: 12px 4px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); transition: border-color .15s, color .15s, transform .15s; }
.kz-shape:hover { border-color: var(--ink); color: var(--m); transform: translateY(-1px); }
.kz-frames .kz-shape { color: var(--c); }

.kz-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kz-tpl { display: grid; gap: 6px; padding: 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.kz-tpl:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 3px 3px 0 var(--m); }
.kz-tpl-img { aspect-ratio: 1; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; }
.kz-tpl-img svg { width: 100%; height: 100%; }
.kz-tpl-t { font-size: 12px; font-weight: 600; padding: 0 4px 2px; line-height: 1.2; }

.kz-layers-h { display: flex; justify-content: space-between; }
.kz-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kz-layer { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.kz-layer.is-on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.kz-layer.is-hidden { opacity: .5; }
.kz-layer .kz-ib { width: 30px; height: 30px; }
.kz-layer-grip { color: var(--line-strong); cursor: grab; }
.kz-layer-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.kz-layer-ico img { width: 100%; height: 100%; object-fit: cover; }
.kz-layer-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.kz-layer-group { display: inline-block; vertical-align: -.15em; margin-right: 4px; }

.kz-projs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kz-proj { display: flex; align-items: center; gap: 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 6px; }
.kz-proj.is-on { border-color: var(--ink); }
.kz-proj-open { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.kz-proj img, .kz-proj-ph { width: 54px; height: 54px; border-radius: 10px; object-fit: contain; background: var(--paper-2); flex: none; }
.kz-proj b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-proj small { color: var(--muted); }

/* ---------- сцена ---------- */
.kz-stagehost, .kz-mughost { position: absolute; inset: 0; z-index: 0; }
.kz-stage { position: absolute; inset: 0; overflow: hidden; }
.kz-svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.kz-svg.is-dragging { cursor: grabbing; }
.kz-svg.is-panning { cursor: grabbing; }
/* мягкая тень под изделием — объём без растровых фото */
.kz-under { filter: drop-shadow(0 18px 22px rgba(40, 30, 10, .16)) drop-shadow(0 2px 3px rgba(40, 30, 10, .1)); }
.kz-mughost { display: grid; place-items: center; padding: 90px 24px; }
.kz-mugcanvas { max-width: min(100%, 720px); max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(40, 30, 10, .18)); }
.kz.is-drop::after { content: 'Отпустите, чтобы добавить'; position: absolute; inset: 12px; border: 2px dashed var(--c); border-radius: var(--r); background: rgba(226, 244, 251, .7); display: grid; place-items: center; font-weight: 600; font-size: 16px; color: #006f99; pointer-events: none; z-index: 30; }

.kz-el { cursor: move; pointer-events: bounding-box; }
.kz-el.is-locked { cursor: default; }
.kz-guide { pointer-events: none; }
.kz-guide-line { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: 1; stroke-dasharray: 5 4; }
.kz-guide.is-active .kz-guide-line { stroke: var(--c); stroke-opacity: .95; stroke-width: 1.5; }
.kz-guide.is-overflow .kz-guide-line { stroke: var(--m); stroke-opacity: 1; stroke-width: 1.5; }
.kz-trim { fill: none; stroke: var(--m); stroke-width: 1; stroke-opacity: .8; }
.kz-safe { fill: none; stroke: var(--c); stroke-width: 1; stroke-dasharray: 2 3; stroke-opacity: .7; }
.kz-snap { stroke: var(--m); stroke-width: 1; }
.kz-area:not(.is-active) .kz-area-bg { cursor: pointer; }
.kz-frame { fill: none; stroke: var(--c); stroke-width: 1.5; pointer-events: none; }
.kz-frame.is-locked { stroke: var(--muted); stroke-dasharray: 4 3; }
.kz-frame-sub { fill: none; stroke: var(--c); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.kz-h { fill: #fff; stroke: var(--c); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.kz-h-nw, .kz-h-se { cursor: nwse-resize; } .kz-h-ne, .kz-h-sw { cursor: nesw-resize; }
.kz-h-n, .kz-h-s { cursor: ns-resize; } .kz-h-e, .kz-h-w { cursor: ew-resize; }
.kz-h-rot { cursor: grab; fill: var(--c); stroke: #fff; }
.kz-h-crop { fill: var(--y); stroke: var(--ink); }
.kz-crop-win { fill: transparent; stroke: var(--y); stroke-width: 2; cursor: move; }
.kz-ghost { cursor: move; }
@media (pointer: coarse) { .kz-h { stroke-width: 2; } }
/* просмотр: без рамок и направляющих — как будет выглядеть вещь */
.kz.is-preview .kz-guides, .kz.is-preview .kz-overlay, .kz.is-preview .kz-ctx, .kz.is-preview .kz-empty { display: none; }

/* ---------- низ: области, масштаб ---------- */
.kz-bottom { position: absolute; left: 50%; bottom: var(--gap); transform: translateX(-50%); z-index: 5; max-width: calc(100% - 2 * var(--gap)); }
.kz-isle-b { flex-wrap: wrap; justify-content: center; border-radius: 999px; padding: 5px; }
.kz-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.kz-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; white-space: nowrap; }
.kz-chip:hover { background: rgba(22, 20, 27, .07); color: var(--ink); }
.kz-chip.is-on { background: var(--ink); color: var(--paper); }
.kz-chips-s { margin: 6px 0; }
.kz-chips-s .kz-chip, .kz-props .kz-chip { height: 30px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); }
.kz-chips-s .kz-chip.is-on { background: var(--ink); border-color: var(--ink); }
.kz-focus { color: var(--ink); font-weight: 600; }
.kz-zoom { display: flex; align-items: center; gap: 2px; padding-left: 4px; border-left: 1px solid var(--line); }
.kz-zoom .kz-ib { width: 34px; height: 34px; border-radius: 50%; }
.kz-zoomv { min-width: 48px; height: 34px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.kz-zoomv:hover { background: rgba(22, 20, 27, .07); }
.kz-colorsbar { position: absolute; right: var(--gap); bottom: var(--gap); gap: 6px; padding: 8px; border-radius: 999px; z-index: 5; }
.kz-colorsbar .kz-swatch { width: 26px; height: 26px; }


.kz-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--paper-2); }
.kz-seg-b { height: 32px; min-width: 34px; padding: 0 9px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-2); font-size: 13px; font-weight: 500; transition: background .15s; }
.kz-seg-b:hover { color: var(--ink); }
.kz-seg-b.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 20, 27, .14); }
.kz-viewseg { background: transparent; border-radius: 999px; }
.kz-viewseg .kz-seg-b { border-radius: 999px; }
.kz-viewseg .kz-seg-b.is-on { background: var(--ink); color: var(--paper); }

/* пустое изделие — приглашение начать */
.kz-empty { position: absolute; left: 50%; bottom: calc(var(--gap) + 72px); transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; padding: 16px 18px 14px; border-radius: 22px; background: rgba(255, 253, 248, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--isle-shadow); z-index: 4; text-align: center; max-width: calc(100% - 32px); animation: kz-up .4s ease both; }
.kz-empty b { font-size: 16px; }
.kz-empty > span { color: var(--muted); font-size: 13px; }
.kz-empty .kz-row { margin-top: 8px; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kz-empty .kz-btn { min-height: 38px; }
@keyframes kz-up { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- панелька над объектом ---------- */
.kz-ctx { position: absolute; left: 0; top: 0; z-index: 7; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .12s; }
.kz-ctx.is-on { opacity: 1; pointer-events: auto; }
.kz:has(.kz-svg.is-dragging) .kz-ctx, .kz:has(.kz-svg.is-panning) .kz-ctx { opacity: 0; pointer-events: none; }
.kz-ctx .kz-ib { width: 34px; height: 34px; color: var(--paper); border-radius: 10px; }
.kz-ctx .kz-ib:hover:not(:disabled) { background: rgba(255, 255, 255, .14); color: #fff; }
.kz-ctx .kz-ib.is-on { background: var(--y); color: var(--ink); }
.kz-ctx .kz-ib-danger:hover:not(:disabled) { background: var(--m); color: #fff; }
.kz-ctx-t { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--paper); }
.kz-ctx-t:hover, .kz-ctx-t.is-on { background: var(--y); color: var(--ink); }

/* ---------- настройки справа ---------- */
.kz-props { position: absolute; right: var(--gap); top: calc(var(--gap) + 64px); bottom: var(--gap); width: var(--props-w); border-radius: 22px; background: var(--paper); box-shadow: var(--isle-shadow); overflow: auto; overscroll-behavior: contain; z-index: 5;
  opacity: 0; transform: translateX(12px); visibility: hidden; transition: opacity .18s ease, transform .2s ease, visibility 0s .2s; }
.kz.has-selection .kz-props { opacity: 1; transform: none; visibility: visible; transition: opacity .18s ease, transform .2s ease; }
.kz-props-body { padding: 4px 18px 24px; }
.kz-props-grip { display: none; }
.kz-props-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 4px; position: sticky; top: 0; background: var(--paper); z-index: 2; }
.kz-props-head b { font-size: 16px; font-weight: 700; }
.kz-sec { padding-bottom: 6px; }
.kz-sec + .kz-sec { border-top: 1px solid var(--line); margin-top: 8px; }
.kz-row { display: flex; align-items: center; gap: 4px; }
.kz-row-wrap { flex-wrap: wrap; gap: 6px; }
.kz-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kz-f { display: grid; gap: 6px; margin: 10px 0; }
.kz-f-l { font-size: 12px; color: var(--muted); font-weight: 500; }
.kz-num-w { display: flex; align-items: center; height: 38px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); padding: 0 10px; transition: border-color .15s; }
.kz-num-w:focus-within { border-color: var(--c); }
.kz-num { width: 100%; min-width: 0; border: 0; background: none; outline: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.kz-num::-webkit-inner-spin-button { display: none; }
.kz-num-w i { font-style: normal; color: var(--muted); font-size: 12px; }
.kz-range-w { display: flex; align-items: center; gap: 10px; }
.kz-range { flex: 1; accent-color: var(--ink); height: 24px; min-width: 0; }
.kz-range-w output { min-width: 60px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.kz-select, .kz-in, .kz-ta { width: 100%; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); padding: 9px 12px; outline: 0; transition: border-color .15s; }
.kz-select:focus, .kz-in:focus, .kz-ta:focus { border-color: var(--c); }
.kz-ta { resize: vertical; min-height: 70px; line-height: 1.35; }

/* выбор шрифта */
.kz-fontbtn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 48px; padding: 0 12px 0 14px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); font-size: 20px; text-align: left; transition: border-color .15s; }
.kz-fontbtn:hover { border-color: var(--ink); }
.kz-fontbtn span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kz-fontlist { margin-top: 8px; padding: 8px; border-radius: 16px; background: var(--paper-2); }
.kz-fonts { display: grid; gap: 4px; max-height: 340px; overflow: auto; overscroll-behavior: contain; margin-top: 4px; }
.kz-font { display: grid; text-align: left; gap: 1px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid transparent; transition: border-color .12s; }
.kz-font:hover { border-color: var(--ink); }
.kz-font.is-on { border-color: var(--m); box-shadow: inset 0 0 0 1px var(--m); }
.kz-font span { font-size: 20px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-font small { font-size: 11px; color: var(--muted); }

.kz-colors { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.kz-sw { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); position: relative; transition: transform .12s; }
.kz-sw:hover { transform: scale(1.1); }
.kz-sw.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16), 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.kz-sw-none { background: #fff linear-gradient(135deg, transparent 46%, var(--m) 46% 54%, transparent 54%); }
.kz-sw-custom { background: conic-gradient(#e5007d, #ffd21f, #2fa34a, #00a0dc, #8a5cf6, #e5007d); overflow: hidden; }
.kz-color-native { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; cursor: pointer; }

.kz-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kz-filter { display: grid; gap: 4px; font-size: 10.5px; color: var(--ink-2); text-align: center; }
.kz-filter img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid transparent; background: var(--paper-2); }
.kz-filter.is-on img { border-color: var(--m); }
.kz-masks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.kz-mask { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.kz-mask:hover { border-color: var(--ink); }
.kz-mask.is-on { background: var(--ink); color: var(--y); border-color: var(--ink); }

.kz-dpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border-left: 4px solid; font-size: 12.5px; }
.kz-dpi b { font-size: 15px; }
.kz-dpi.is-ok { background: #e7f6ec; border-color: #2fa34a; }
.kz-dpi.is-mid { background: var(--y-soft); border-color: #e0b400; }
.kz-dpi.is-low { background: var(--m-soft); border-color: var(--m); }

/* ---------- экран «Готово» ---------- */
.kz-modal { position: absolute; inset: 0; z-index: 20; background: rgba(22, 20, 27, 0); display: flex; justify-content: flex-end; transition: background .2s; }
.kz-modal.is-open { background: rgba(22, 20, 27, .32); }
.kz-finish { width: min(480px, 100%); height: 100%; background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .24s ease; box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .4); }
.kz-modal.is-open .kz-finish { transform: none; }
.kz-finish > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 22px; }
.kz-finish h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.kz-finish-body { overflow: auto; padding: 0 22px 30px; }
.kz-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kz-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.kz-file b { display: block; font-size: 14px; }
.kz-file small { color: var(--muted); font-size: 12px; }
.kz-order .kz-btn-primary { width: 100%; margin-top: 12px; min-height: 50px; font-size: 15px; }
.kz-price { margin: 4px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.kz-price ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; color: var(--ink-2); }
.kz-price li, .kz-price-t { display: flex; justify-content: space-between; gap: 12px; }
.kz-price-t { border-top: 1px solid var(--line); padding-top: 8px; font-size: 15px; }
.kz-price-t b { font-size: 18px; }
.kz-price small { color: var(--muted); display: block; margin-top: 6px; }
.kz-ok { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #e7f6ec; }
.kz-ok p { margin: 6px 0 10px; }
.kz-err { color: #b30062; font-weight: 500; }

/* ---------- уведомления ---------- */
.kz-toast { position: absolute; left: 50%; top: 76px; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; z-index: 30; max-width: min(520px, calc(100% - 32px)); padding: 11px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 13.5px; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.kz-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.kz-toast.is-error { background: #b30062; }
.kz-toast.is-warn { background: #5b4500; }

/* ---------- узкий экран ПК / планшет ---------- */
@media (max-width: 1180px) {
  .kz { --panel-w: 290px; --props-w: 280px; }
  .kz-saved { display: none; }
}
@media (max-width: 1020px) and (min-width: 860px) {
  .kz-isle-c { position: static; transform: none; }
}

/* ---------- телефон ---------- */
@media (max-width: 859px) {
  .kz { --gap: 10px; --sheet-h: min(42vh, 340px); }
  .kz-top { gap: 6px; flex-wrap: wrap; }
  .kz-isle { padding: 4px; border-radius: 14px; }
  .kz-mark { width: 26px; height: 26px; }
  .kz-mark i { width: 16px; height: 16px; }
  .kz-top { flex-wrap: wrap; }
  .kz-isle-l, .kz-isle-r { gap: 0; }
  .kz-prodchip { height: 34px; max-width: 36vw; font-size: 14px; padding: 0 6px 0 8px; }
  .kz-prodchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kz-isle-r .kz-ib { width: 32px; height: 34px; }
  .kz-done span { display: none; }
  .kz-done { padding: 0 12px; min-height: 34px; }
  .kz-isle-c { position: static; transform: none; order: 10; width: 100%; justify-content: stretch; border-radius: 999px; }
  .kz-sides { width: 100%; }
  .kz-side { flex: 1; justify-content: center; height: 32px; padding: 0 8px; }
  .kz-side-full { display: none; }
  .kz-side-short { display: inline; }

  .kz-tools { left: 0; right: 0; top: auto; bottom: 0; transform: none; flex-direction: row; justify-content: space-around; border-radius: 20px 20px 0 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .kz-tool { width: auto; flex: 1; padding: 5px 0 4px; font-size: 10px; border-radius: 9px; gap: 3px; }
  .kz-tool .kz-i { width: 23px; height: 23px; }
  .kz-tool.is-on::before { left: 50%; top: 0; transform: translateX(-50%); width: 14px; height: 2px; border-radius: 0 0 3px 3px; }
  .kz-bottom { bottom: calc(76px + env(safe-area-inset-bottom)); left: var(--gap); right: var(--gap); transform: none; max-width: none; display: flex; justify-content: safe center; }
  .kz-isle-b { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .kz-isle-b::-webkit-scrollbar { display: none; }
  .kz-chips { flex-wrap: nowrap; }
  .kz-zoom { display: none; }
  .kz-colorsbar { display: none; }
  .kz-empty { bottom: calc(132px + env(safe-area-inset-bottom)); padding: 12px 14px; }
  .kz-empty .kz-btn { min-height: 36px; padding: 0 12px; font-size: 13px; }

  /* панели и настройки — шторки снизу над панелью инструментов */
  .kz-panel, .kz-props { left: 0; right: 0; top: auto; width: auto; bottom: calc(64px + env(safe-area-inset-bottom)); max-height: 62%; border-radius: 22px 22px 0 0; transform: translateY(24px); }
  .kz-props { max-height: var(--sheet-h); }
  .kz-props.is-expanded { max-height: 78%; }
  .kz-props-grip { display: block; width: 100%; height: 18px; position: sticky; top: 0; background: var(--paper); z-index: 3; }
  .kz-props-grip::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 8px auto 0; }
  .kz.has-selection[data-panel]:not([data-panel='']) .kz-props { opacity: 0; visibility: hidden; }
  .kz-props-head { top: 18px; }
  .kz-ctx { display: none; }
  .kz-finish { width: 100%; }
  .kz-toast { top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .kz *, .kz *::before, .kz *::after { animation: none !important; transition: none !important; }
}

@font-face { font-family: Onest; font-weight: 100 900; font-display: swap; src: url('../src/fonts/onest-cyrillic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Onest; font-weight: 100 900; font-display: swap; src: url('../src/fonts/onest-latin.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2190-2199; }
@font-face { font-family: 'Merch Oswald'; font-weight: 200 700; font-display: swap; src: url('../src/fonts/merch-oswald.ttf') format('truetype'); }
/* Частые символы интерфейса. Полные лица выше обслуживают остальные символы. */
@font-face { font-family: Onest; font-weight: 100 900; font-display: swap; src: url('../src/fonts/onest-ui-latin.woff2') format('woff2'); unicode-range: U+0020-007E,U+00A0,U+00AB,U+00B0,U+00B7,U+00BB,U+00D7-00D8,U+2010-2015,U+2018-201F,U+2022,U+2026,U+2030,U+20AC,U+2190-2193; }
@font-face { font-family: 'Merch Oswald'; font-weight: 200 700; font-display: swap; src: url('../src/fonts/oswald-ui.woff2') format('woff2'); unicode-range: U+0020-007E,U+00A0,U+00AB,U+00B0,U+00B7,U+00BB,U+00D7-00D8,U+2010-2015,U+2018-201F,U+2022,U+2026,U+2030,U+20AC,U+2190-2193,U+0301,U+0400-045F,U+20BD,U+2116,U+2212; }

.kz { --props-w: clamp(270px, 23vw, 340px); min-height: 0; }
.kz-logo { display: block; width: 98px; height: 36px; object-fit: contain; }
.kz-back { display: inline-grid; place-items: center; width: 40px; height: 44px; flex: none; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.kz-back:hover { background: var(--paper-2); }
.kz-top { top: 0; left: 0; right: 0; padding: 8px var(--gap); background: var(--paper); border-bottom: 1px solid var(--line-strong); align-items: center; }
.kz-top .kz-isle { box-shadow: none; background: transparent; backdrop-filter: none; }
.kz-top .kz-isle-c { background: var(--paper-2); }
.kz-isle, .kz-panel, .kz-props, .kz-tools { box-shadow: 0 1px 3px #10101014, 0 0 0 1px #10101013; }
.kz h3, .kz-finish h3 { font: 550 22px/1.2 'Merch Oswald', sans-serif; margin: 0; }
.kz-btn-primary, .kz-btn-primary:hover:not(:disabled) { color: var(--ink); background: var(--y); border-color: transparent; }
.kz-btn:hover:not(:disabled), .kz-card:hover { transform: none; box-shadow: inset 0 0 0 1px var(--ink); }
.kz-card.is-on { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--y); }
.kz-btn-dark { background: var(--ink); }
.kz-measure { pointer-events: none; }
.kz-measure rect { fill: var(--ink); }
.kz-measure text { fill: white; font-family: Onest, sans-serif; }
.kz-reference { fill: var(--ink); stroke: white; stroke-width: 3px; paint-order: stroke; vector-effect: non-scaling-stroke; }
.kz-empty { bottom: auto; transform: translate(-50%,-50%); padding: 0; background: none; animation: none; box-shadow: none; backdrop-filter: none; }
.kz-empty .kz-btn { min-height: 44px; border: 1px solid var(--ink); }
.kz-add-menu { position: absolute; top: calc(100% + 5px); display: grid; min-width: 160px; padding: 5px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-strong); z-index: 4; }
.kz-add-menu button { text-align: left; padding: 10px; border-radius: 8px; }
.kz-add-menu button:hover { background: var(--paper-2); }
.kz-ctx { display: none; }
.kz-props { display: flex; flex-direction: column; overflow: hidden; }
.kz-props-body { overflow: auto; flex: 1 1 auto; min-height: 0; }
.kz-placements { padding: 16px; border-bottom: 1px solid var(--line); }
.kz-placement-list { margin-top: 8px; display: grid; max-height: min(23vh, 210px); overflow: auto; }
.kz-placement { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 6px; border-bottom: 1px solid var(--line); text-align: left; }
.kz-placement:hover,.kz-placement.is-on { background: var(--paper-2); }
.kz-placement b,.kz-placement small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kz-placement small { color: var(--muted); }
.kz-placement-img { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: white; color: var(--ink); }
.kz-placement-img :is(svg,img) { width: 100%; height: 100%; object-fit: contain; }
.kz-layers-zones { margin: 12px 0; }
.kz-layer-t { text-align: left; }
.kz-props .kz-colorsbar { position: static; display: flex; flex-wrap: wrap; padding: 12px 16px; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.kz-ratio { display: flex; gap: 6px; align-items: center; margin-top: 7px; }
.kz-ratio input,.kz-layer input { accent-color: var(--ink); }
.kz-compare { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.kz-compare .kz-chip { height: auto; min-height: 34px; white-space: normal; }
.kz-compare p { width: 100%; margin: 2px 0; }
.kz-compare p:empty { display: none; }
.kz-task-tabs,.kz-sheet-done { display: none; }
.kz-saved { display: inline; min-width: 4.5em; }
.kz-side { position: relative; }
.kz-sleeves { position: absolute; top: 100%; right: 0; z-index: 2; display: flex; padding: 4px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; }
.kz.is-preview :is(.kz-tools,.kz-props,.kz-panel,.kz-colorsbar,.kz-focus,.kz-zoom,.kz-chips) { display: none; }
.kz.is-preview .kz-stagehost { pointer-events: none; }
.kz.is-preview .kz-viewseg > :first-child { display: none; }
.kz.is-preview .kz-bottom:has(.kz-viewseg[hidden]) { display: none; }

@media (min-width: 860px) {
  .kz .kz-props { opacity: 1; visibility: visible; transform: none; }
  .kz .kz-isle-c { position: static; transform: none; }
  .kz-bottom { left: calc((100% - var(--props-w) + 74px) / 2); }
  .kz.is-preview .kz-bottom { left: 50%; }
  .kz.is-preview .kz-props { display: none; }
}
@media (min-width: 860px) and (max-width: 1160px) {
  .kz-side { padding-inline: 9px; }
  .kz-isle { gap: 2px; }
  .kz-logo { width: 76px; }
  .kz[data-panel]:not([data-panel='']) .kz-props { display: none; }
}
@media (min-width: 860px) and (max-height: 540px) {
  .kz-tools { max-height: calc(100% - 124px); overflow-y: auto; }
  .kz-tool { flex-shrink: 0; min-height: 44px; padding-block: 4px; gap: 2px; }
  .kz-tool .kz-i { width: 23px; height: 23px; }
}
@media (max-width: 859px) {
  .kz { max-height: var(--keyboard-height, 100dvh); }
  .kz-top { padding: 4px 6px; align-items: center; gap: 3px; }
  .kz-isle-l { min-width: 0; flex: 1; }
  .kz-logo { width: 31px; height: 28px; object-fit: cover; object-position: left; flex: none; }
  .kz-prodchip { min-width: 0; padding: 0 2px; gap: 3px; font-size: 12px; }
  .kz-prodchip i { display: none; }
  .kz-prodchip svg { width: 12px; }
  .kz-saved { display: block; position: absolute; right: 12px; top: 100%; color: var(--ink); font-size: 10px; background: var(--paper); border-radius: 0 0 6px 6px; padding: 0 4px; }
  .kz-saved:empty { display: none; }
  .kz-isle-r .kz-ib { width: 36px; height: 44px; }
  .kz-done { min-height: 44px; padding: 0 10px; }
  .kz-done span { display: inline; font-size: 12px; }
  .kz-done svg { display: none; }
  .kz-side { height: 36px; }
  .kz-tools { justify-content: stretch; }
  .kz-tool { min-width: 0; min-height: 44px; }
  .kz-props { bottom: calc(58px + env(safe-area-inset-bottom)); max-height: min(45%, 370px); min-height: 190px; }
  .kz-props.is-expanded { max-height: min(48%, 370px); }
  .kz-props-body { padding: 0 12px 12px; }
  .kz-props > .kz-placements, .kz-props > .kz-colorsbar { display: none; }
  .kz-sheet-done { display: block; align-self: flex-end; padding: 0 12px; border-radius: 9px; min-height: 40px; background: var(--ink); color: white; margin: 5px 8px 4px; }
  .kz-props-head { position: static; padding: 0; }
  .kz-task-tabs { display: flex; flex-wrap: wrap; gap: 4px; position: sticky; top: 0; z-index: 3; padding: 3px 0; background: var(--paper); }
  .kz-task-tabs [aria-pressed="true"] { color: var(--ink); background: var(--y); }
  .kz-sec[data-task]:not(.task-current) { display: none; }
  .kz.has-selection .kz-bottom, .kz[data-panel]:not([data-panel='']) .kz-bottom, .kz[data-panel]:not([data-panel='']) .kz-empty { display: none; }
  .kz-panel { max-height: 53%; bottom: calc(58px + env(safe-area-inset-bottom)); }
  .kz-props input:not([type=checkbox]), .kz-ta { font-size: 16px; }
  .kz .kz-bottom { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .kz .kz-bottom .kz-isle-b { flex-wrap: wrap; justify-content: center; }
  .kz.is-preview .kz-bottom { bottom: 10px; }
  .kz-mughost { padding: 100px 12px 140px; }
  .kz-empty { bottom: auto; }
}
@media (max-height: 520px) and (max-width: 859px) {
  .kz-props,.kz-props.is-expanded { max-height: 54%; min-height: 130px; }
  .kz-props-head { display: none; }
  .kz:has(.kz-ta:focus) .kz-tools { display: none; }
  .kz:has(.kz-ta:focus) .kz-props { bottom: 0; }
}
@media (max-width: 374px) {
  .kz-tools { gap: 0; padding-inline: 2px; }
  .kz-tool { font-size: 9.5px; letter-spacing: -.035em; }
}

.kz[data-tone='dark'] .kz-guide.is-active .kz-guide-line,
.kz[data-tone='dark'] .kz-frame, .kz[data-tone='dark'] .kz-frame-sub { stroke: #c8ff00; }
.kz[data-tone='dark'] .kz-snap { stroke: white; }
.kz-props :is(.kz-btn,.kz-chip) { flex-shrink: 0; }
@media (max-width:859px) {
  .kz-task-tabs .kz-chip,.kz-compare .kz-chip,.kz-props .kz-ib,.kz-finish .kz-ib,.kz-side,.kz-sheet-done { min-height: 44px; }
}

.kz-props-body.is-comparing .kz-sec:not(:has(.kz-compare)) { opacity: .55; }

.kz-tpl-img.kz-photo-card-art { aspect-ratio: 1.18; background: #29282a; padding: 5px; }
.kz-tpl-img.kz-photo-card-art.warm { background: #e8dfd1; }
.kz-photo-card-art > svg, .kz-placement-img > svg { width: 100%; height: 100%; }
