/* SMOLBUNNY — минималистичная витрина */

:root {
  --bg: #000;
  --fg: #f2f2f2;
  --muted: #7a7a7a;
  --line: #262626;
  --field: #0d0d0d;
  --accent: #f2f2f2;
  --accent-fg: #000;
  --error: #ff5a4f;
  --tile: transparent;
  --font: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-logo: 'Unbounded', 'Geist Mono', sans-serif;
  --ls: .05em;
  --pad: 24px;
  --header-h: 56px;
}
[data-theme="light"] {
  --bg: #fff;
  --fg: #000;
  --muted: #9a9a9a;
  --line: #e5e5e5;
  --field: #fff;
  --accent: #000;
  --accent-fg: #fff;
  --error: #d42a1f;
  --tile: transparent;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs, 12px);
  line-height: 1.5;
  letter-spacing: var(--ls, .02em);
  text-transform: uppercase;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
}
button { background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.muted { color: var(--muted); }
.rub { text-transform: none; white-space: nowrap; }  /* цены: «0 т.р.» строчными */
/* В моноширинном шрифте точка занимает целую клетку — прижимаем точки к буквам, как в обычном наборе */
.rub .unit { letter-spacing: 0; margin-left: .38em; }
.rub .unit i { font-style: normal; margin: 0 -.2em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  background: var(--bg);
}
.logo { font-family: var(--font-logo, var(--font)); font-weight: 600; letter-spacing: .12em; justify-self: start; }
.filters { display: flex; gap: 20px; }
.filters a { color: var(--muted); transition: color .15s; }
.filters a:hover, .filters a.active { color: var(--fg); }
.header-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.hlink { color: var(--fg); }
.hlink:hover { opacity: .6; }
.cart-btn { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Main ---------- */
main { flex: 1; outline: none; }
.page { padding: 24px var(--pad) 64px; }
.narrow { max-width: 460px; margin: 0 auto; }
.mid { max-width: 760px; margin: 0 auto; }
.page-title { font-size: 12px; font-weight: 500; text-align: center; margin: 24px 0 40px; }
.series-note { text-align: center; color: var(--muted); max-width: 520px; margin: 0 auto 32px; }
.series-note:empty { display: none; }
/* Описание серии — одной строкой во всю ширину под фигурками */
.series-line { margin: 48px 0 0; padding: 0;
  text-align: center; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .series-line { white-space: normal; } }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
}
/* Каталог: два ряда вместе с ценами помещаются в первый экран */
.catalog { padding-top: 8px; }
.grid-cat {
  --meta: 54px; --rgap: 28px; --cgap: 32px; --cols: 4;
  --card: clamp(170px, calc((100svh - var(--header-h) - 8px - var(--rgap) - 2 * var(--meta) - 20px) / 2), 1000px);
  max-width: calc(var(--card) * var(--cols) + var(--cgap) * (var(--cols) - 1));
  margin: 0 auto; gap: var(--rgap) var(--cgap);
}
.card { display: block; text-align: center; }
.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tile);
  overflow: hidden;
}
.card-img img, .pimg img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-img img { transform: scale(1.04); }
.card-meta { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.card-meta .price { color: var(--muted); }
.badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; padding: 2px 6px;
  background: var(--fg); color: var(--bg);
}

/* ---------- Product ---------- */
.product { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.pstage { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; }
.pimg { width: min(560px, 80vw); aspect-ratio: 1/1; background: var(--tile); overflow: hidden; }
.parrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 18px;
}
.parrow:hover { opacity: .6; }
.parrow.prev { left: 6%; }
.parrow.next { right: 6%; }
.dots { display: flex; gap: 6px; margin: 18px 0 14px; }
.dots a { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .5; }
.dots a.active { background: var(--fg); opacity: 1; }
.pinfo { width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; gap: 18px; }
.pcode { font-weight: 500; }
.pname { color: var(--muted); }
.pdesc { color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; text-align: left; }
.specs td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs td:last-child { text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 36px; height: 36px; }
.qty button:hover { background: var(--line); }
.qty span { min-width: 32px; text-align: center; }
.prow { display: flex; gap: 10px; align-items: stretch; }
.prow .btn { flex: 1; }
.variants { margin-top: 56px; width: 100%; max-width: 900px; }
.variants-title { text-align: center; margin-bottom: 20px; color: var(--muted); }
.variants .grid { grid-template-columns: repeat(auto-fit, minmax(120px, 160px)); justify-content: center; gap: 24px; }

/* ---------- Buttons / forms ---------- */
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  height: 44px; padding: 0 20px;
  background: var(--accent); color: var(--accent-fg);
  border: 1px solid var(--accent);
  transition: opacity .15s;
  width: 100%;
}
.btn:hover { opacity: .82; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); opacity: 1; }
.link-btn { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { opacity: .6; }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--muted); font-size: 11px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  text-transform: none;
}
.textarea { height: 88px; padding: 10px 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); text-transform: uppercase; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--fg); }
.field.invalid .input, .field.invalid .textarea { border-color: var(--error); }
.err { color: var(--error); font-size: 11px; min-height: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.legal { font-size: 10px; color: var(--muted); line-height: 1.6; }
.legal a { text-decoration: underline; }

.options { display: flex; flex-direction: column; border: 1px solid var(--line); }
.option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; cursor: pointer;
  border-top: 1px solid var(--line);
}
.option:first-child { border-top: 0; }
.option input { accent-color: var(--fg); margin: 0; }
.option:has(input:checked) { background: var(--field); }
.option .price { margin-left: auto; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 10px; color: var(--muted); line-height: 1.6; }
.check input { accent-color: var(--fg); margin: 2px 0 0; }
.check a { text-decoration: underline; }

.tabs { display: flex; justify-content: center; gap: 24px; margin-bottom: 28px; }
.tabs button { color: var(--muted); }
.tabs button.active { color: var(--fg); }

.section-title { margin: 28px 0 12px; font-weight: 500; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 64px; max-width: 1100px; margin: 0 auto; align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); padding: 20px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.line-item:first-child { border-top: 0; }
.thumb { width: 64px; height: 64px; background: var(--tile); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.totals { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 600; margin-top: 4px; }

/* ---------- Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.drawer.open { transform: none; }
.drawer-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px var(--pad); }
.drawer-foot { padding: var(--pad); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.drawer-foot:empty { display: none; }
.cart-item { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { width: 80px; height: 80px; }
.cart-item-info { display: flex; flex-direction: column; gap: 6px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; }
.cart-item .qty button { width: 28px; height: 28px; }
.cart-item .qty span { min-width: 24px; }
.empty { text-align: center; color: var(--muted); padding: 64px 0; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.empty .btn { width: auto; }

/* ---------- Account ---------- */
.orders { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); }
.order { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.order:first-child { border-top: 0; }
.status { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); font-size: 10px; }

/* ---------- Info pages ---------- */
.prose { color: var(--fg); display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 12px; font-weight: 500; margin: 20px 0 0; }
.prose p { margin: 0; color: var(--muted); }
.prose a { text-decoration: underline; }

.success { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; padding-top: 40px; }
.success .big { font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.success .btn { width: auto; }

/* ---------- Subscribe ---------- */
.subscribe { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; text-align: left; }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--pad) 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.footer-links a:hover, .footer-links button:hover { opacity: .6; }
.footer-links .link-btn { text-decoration: none; }
.footer-copy { color: var(--muted); font-size: 10px; }

/* ---------- Cookie / toast ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  width: min(360px, calc(100vw - 32px));
  background: var(--bg); border: 1px solid var(--line);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  font-size: 11px;
}
.cookie p { margin: 0; color: var(--muted); }
.cookie .cookie-title { color: var(--fg); font-weight: 500; }
.cookie a { text-decoration: underline; }
.cookie-actions { display: flex; flex-direction: column; gap: 8px; }
.cookie-actions .btn { height: 38px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--fg); color: var(--bg);
  padding: 10px 16px; transition: all .25s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-cat { --cols: 3; }
  .checkout { grid-template-columns: 1fr; gap: 32px; }
  .summary { position: static; order: -1; }
}
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .header {
    height: auto; grid-template-columns: 1fr auto;
    grid-template-areas: "logo right" "filters filters";
    row-gap: 10px; padding-top: 14px; padding-bottom: 12px;
  }
  .logo { grid-area: logo; }
  .header-right { grid-area: right; gap: 16px; }
  .filters { grid-area: filters; justify-content: center; gap: 18px; }
  .filters:empty { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .grid-cat { max-width: none; }
  .parrow.prev { left: 0; }
  .parrow.next { right: 0; }
  .pimg { width: 78vw; }
  .row2 { grid-template-columns: 1fr; }
  .page-title { margin: 12px 0 28px; }
}

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

/* ---------- Newsletter (bottom sheet) ---------- */
.newsletter {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.newsletter.show { transform: none; }
.nl-inner { max-width: 380px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.nl-title { margin: 0; }
.nl-inner .legal { margin: 0; }
.nl-close { position: absolute; top: 16px; right: var(--pad); }
.nl-close:hover { opacity: .6; }

/* ---------- 3D viewer ---------- */
model-viewer {
  width: 100%; height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: var(--fg);
  --progress-bar-height: 1px;
  cursor: grab;
}
model-viewer:active { cursor: grabbing; }
.hint3d { margin-top: 8px; font-size: 10px; }

/* Плашка примерки шрифта (временно, пока выбираем) */
.font-try {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70;
  display: flex; gap: 14px; align-items: center; white-space: nowrap;
  padding: 10px 14px; font-size: 10px;
  background: var(--fg); color: var(--bg);
}
.font-try a, .font-try button { text-decoration: underline; }

/* ---------- СВОЙ БАННИ ---------- */
.diy-title { font-family: var(--font-logo); font-weight: 700; font-size: 22px; letter-spacing: .12em; text-align: center; margin: 24px 0 12px; }
.diy-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 1100px; margin: 0 auto; }
.diy-tile { background: var(--bg); padding: 28px; min-height: 260px; display: flex; flex-direction: column; gap: 14px; transition: background .2s; }
.diy-tile:hover { background: var(--field); }
.diy-tile-title { font-family: var(--font-logo); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.diy-tile-text { color: var(--muted); line-height: 1.6; }
.diy-tile-go { margin-top: auto; align-self: flex-end; }
.diy-tile:hover .diy-tile-go { text-decoration: underline; }
.diy-steps { list-style: none; padding: 0; margin: 40px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; color: var(--muted); }
.diy-steps li { text-align: center; }
.diy-lead { max-width: none; white-space: nowrap; }
@media (max-width: 720px) { .diy-lead { white-space: normal; } }
.drop { border: 1px dashed var(--muted); min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--fg); background: var(--field); }
.drop.has { border-style: solid; }
.drop img { max-height: 220px; max-width: 100%; object-fit: contain; }
.field.invalid .drop { border-color: var(--error); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 16px 8px; }
.swatch.extra { display: none; }
.swatches.open .swatch.extra { display: flex; }
.swatch em { text-align: center; line-height: 1.3; }
.swatch-own span { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--muted); background: transparent; font-size: 16px; color: var(--fg); }
.swatch-more { align-self: flex-start; color: var(--muted); }
.swatch-more:hover { color: var(--fg); }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 10px; color: var(--muted); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.swatch em { font-style: normal; }
.swatch input:checked + span { outline-color: var(--fg); }
.swatch input:checked ~ em { color: var(--fg); }
.swatch input:focus-visible + span { outline-color: var(--fg); }
@media (max-width: 860px) {
  .diy-tiles, .diy-steps { grid-template-columns: 1fr; }
  .diy-tile { min-height: 0; }
}

/* ---------- СВОЙ: эскиз по центру, настройки слева и справа ---------- */
.diy { padding-top: 12px; }
.diy-head { font-family: var(--font-logo); font-weight: 700; font-size: 18px; letter-spacing: .14em; text-align: center; margin: 4px 0 24px; }
.diy-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px) minmax(0, 1fr); gap: 40px; max-width: 1240px; margin: 0 auto; align-items: start; }
.diy-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.diy-col-center { position: sticky; top: calc(var(--header-h) + 12px); align-items: center; gap: 16px; }
.diy-sketch {
  width: 100%; aspect-ratio: 1;
  background: var(--fg);
  -webkit-mask: url(../img/sketch.png) center / contain no-repeat;
          mask: url(../img/sketch.png) center / contain no-repeat;
  transition: background .5s ease;
}
.diy-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); text-align: center; }
.diy-steps li + li::before { content: '↓'; display: block; color: var(--fg); font-size: 14px; line-height: 1.2; margin-bottom: 4px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); }
.seg label { cursor: pointer; min-width: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 6px; font-family: var(--font-logo); font-weight: 700; letter-spacing: .08em; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg-sm span { font-family: var(--font); font-weight: 500; padding: 9px 4px; font-size: 11px; }
.seg label + label span { border-left: 1px solid var(--line); }
.seg label:hover span { color: var(--fg); }
.seg input:checked + span { background: var(--fg); color: var(--bg); }
.seg input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: -4px; }
.field.invalid .seg { border-color: var(--error); }
.diy-mode-text { color: var(--muted); line-height: 1.6; margin: -2px 0 0; min-height: 3.2em; }
.diy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diy-col .drop { min-height: 0; height: 120px; padding: 10px; gap: 6px; font-size: 10px; }
.diy-col .drop img { max-height: 78px; }
.diy-col .textarea { height: 72px; }
.diy-col .swatches { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 10px 2px; }
.diy-col .swatch span { width: 28px; height: 28px; }
.diy-col .swatch em { font-size: 9px; }
.swatch-own span, .swatch-more span { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--muted); background: transparent; font-size: 11px; color: var(--fg); }
.swatch-more { background: none; border: 0; padding: 0; color: var(--fg); font: inherit; }
.swatch-more span { border-style: solid; border-color: var(--fg); font-weight: 500; }
.swatch-more em { color: var(--fg) !important; }
.swatch-more:hover span { background: var(--fg); color: var(--bg); }
.diy-layout [hidden] { display: none !important; }
.success-full { min-height: calc(100vh - var(--header-h) - 220px); justify-content: center; padding-top: 0; }
.success-full p { margin: 0; line-height: 1.7; }
@media (max-width: 1100px) {
  .diy-layout { grid-template-columns: 1fr 1fr; }
  .diy-col-center { grid-column: 1 / -1; grid-row: 1; position: static; }
  .diy-sketch { width: min(300px, 70vw); }
  .diy-steps { flex-direction: row; gap: 12px; }
  .diy-steps li + li::before { content: '→'; display: inline; margin: 0 12px 0 0; }
}
@media (max-width: 720px) {
  .diy-layout { grid-template-columns: 1fr; gap: 20px; }
  .diy-steps { display: none; }
}

/* СВОЙ: эскиз крупнее, боковые колонки компактнее, шаги одной строкой */
.diy-layout { grid-template-columns: minmax(0, .82fr) minmax(320px, 470px) minmax(0, .82fr); gap: 36px; max-width: 1280px; }
.diy-col { gap: 9px; font-size: 11px; }
.diy-col .field { gap: 4px; }
.diy-col .field label { font-size: 10px; }
.diy-col .input { height: 36px; font-size: 11px; }
.diy-col .textarea { height: 60px; font-size: 11px; padding: 8px 10px; }
.diy-col .drop { height: 104px; }
.diy-col .seg span { padding: 9px 4px; font-size: 11px; }
.diy-col .seg-sm span { padding: 8px 2px; font-size: 10px; }
.diy-col .diy-mode-text { font-size: 10px; min-height: 0; }
.diy-col .check { font-size: 9px; }
.diy-col .btn { height: 42px; }
.diy-steps-line { margin: 28px auto 0; text-align: center; font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.diy-steps-line b { color: var(--fg); font-weight: 400; font-size: 13px; margin: 0 10px; }
@media (max-width: 1100px) {
  .diy-layout { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 560px; }
  .diy-col { display: contents; }
  .diy-col-center { display: flex; order: 1; position: static; }
  .diy-sketch { width: min(300px, 72vw); margin: 0 auto; }
  .diy-col-left > * { order: 3; }
  .diy-col-right > * { order: 4; }
  .diy-col-right > .diy-colors { order: 2; }
  .diy-col-right > #ownColorField { order: 2; }
  .diy-col-left > .seg { margin-top: 10px; }
  .diy-steps-line b { display: block; margin: 2px 0; }
}
