:root {
  --paper: #f3eee6;
  --card: #fffdfa;
  --ink: #1e282d;
  --muted: #6e7b80;
  --line: #e4dbd1;
  --line-strong: #d3c7ba;
  --accent: #b5654a;
  --accent-dark: #9c5239;
  --accent-soft: #f5e6df;
  --olive: #6d7a5c;
  --ok: #5b7a5a;
  --shadow: 0 1px 0 rgba(31, 42, 48, 0.04), 0 10px 30px -24px rgba(31, 42, 48, 0.45);
  --radius: 18px;
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, #fbf7f0 0%, rgba(251, 247, 240, 0) 60%),
    radial-gradient(900px 500px at -10% 20%, #f7f1e7 0%, rgba(247, 241, 231, 0) 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- верхняя панель ---------------- */
.topbar {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 28px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 11px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  box-shadow: 0 6px 16px -10px rgba(181, 101, 74, .9);
}

.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-text b {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .14em;
  font-weight: 700;
}
.brand-text span {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .03em;
}

.top-meta {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px rgba(109, 122, 92, .14);
}

/* ---------------- сетка ---------------- */
.layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 28px 48px;
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.controls { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.preview-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 16px; }

/* ---------------- карточки ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow);
  animation: rise .35s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.card-head h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  letter-spacing: .01em;
}
.card-head.small h2 { font-size: 16px; }

.num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .06em;
  transform: translateY(-1px);
}

.badge {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(109, 122, 92, .1);
  border: 1px solid rgba(109, 122, 92, .22);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.quiet { color: var(--muted); background: #f6f2ec; border-color: var(--line); }

/* ---------------- загрузка фото ---------------- */
.dropzone {
  display: block;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: #fbf8f3;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
  overflow: hidden;
  min-height: 132px;
  position: relative;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.dropzone.drag { transform: scale(1.008); }

.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dz-icon {
  width: 40px; height: 40px;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 6px;
  opacity: .85;
}
.dz-empty b { font-size: 13.5px; }
.dz-empty span { color: var(--muted); font-size: 12px; }

#thumb {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  background: #fff;
}

/* ---------------- результат распознавания ---------------- */
.detect {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f4ee;
  border: 1px solid var(--line);
}
.detect-row { display: flex; align-items: baseline; gap: 8px; }
.detect-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted);
}
.detect-row b { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.detect-conf { margin-left: auto; color: var(--accent); font-size: 12px; font-weight: 600; }

.confbar {
  height: 4px; border-radius: 4px; background: #e9e2d8;
  margin: 8px 0 10px; overflow: hidden;
}
.confbar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #c9836b, var(--accent));
  border-radius: 4px;
  transition: width .4s ease;
}
.projection-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 10px;
}
.projection {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.projection img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: contain;
  background: #fbfaf7;
}
.projection figcaption {
  padding: 4px 6px;
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.model-details {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 7px 9px;
}
.model-details summary {
  cursor: pointer;
  font-size: 11.5px;
  color: var(--muted);
}
.model-details img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 7px;
  border-radius: 6px;
  background: #fbfaf7;
}
.attr-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.attr-chip {
  border: 1px solid #ddd4c6;
  background: #fbf8f2;
  color: #6f6254;
  border-radius: 5px;
  font-size: 10.5px;
  padding: 2px 6px;
}
.detect-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.apply-detection {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 11px;
  cursor: pointer;
}
.apply-detection:hover { filter: brightness(.95); }
.detect-note {
  flex: 1;
  min-width: 180px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}
.alt-row { display: flex; flex-wrap: wrap; gap: 6px; }
.alt-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  font-size: 11.5px;
  padding: 3px 9px;
  cursor: pointer;
  transition: .15s;
}
.alt-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- каталог и похожие модели ---------------- */
.catalog-matches {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e7d8ca;
  border-radius: 13px;
  background: linear-gradient(180deg, #fffaf4, #fbf5ec);
}
.draft-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed #e0c9b4;
  border-radius: 13px;
  background: linear-gradient(180deg, #fffdf8, #fbf6ee);
}
.draft-item .catalog-item-title { color: #7a5c3e; }
.catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.catalog-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.catalog-count {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.catalog-note {
  margin: 4px 0 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.catalog-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdfa;
}
.catalog-item-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f4ece2;
  color: #7c6858;
}
.catalog-item-icon.clickable { cursor: pointer; }
.catalog-item-icon.clickable:hover { box-shadow: inset 0 0 0 1px #d8c9b6; }
.catalog-item-icon.loading { opacity: 0.55; }

/* Лист технических эскизов: три проекции выбранной модели. */
.catalog-flats {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdfa;
  padding: 9px 12px 7px;
}
.catalog-flats .catalog-head { margin-bottom: 4px; }
.flats-sheet { background: #fffdfa; border-radius: 8px; }
.flats-sheet svg { width: 100%; height: auto; display: block; }
.flats-sheet svg path { vector-effect: non-scaling-stroke; stroke-width: 1.1; }

.catalog-item-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.catalog-item-icon svg[viewBox="0 0 120 170"] {
  width: 30px;
  height: 42px;
}
.catalog-item-icon svg[viewBox="0 0 120 170"] g,
.catalog-item-icon svg[viewBox="0 0 120 170"] * {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.2;
}
.catalog-item-main { min-width: 0; flex: 1; }
.catalog-item-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.catalog-score {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
}
.catalog-score.low { color: #a58155; }
.catalog-item-summary {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}
.catalog-reasons, .catalog-diffs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.catalog-chip {
  border: 1px solid #e3d9cc;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 9.5px;
  color: #746555;
  background: #fdf9f3;
}
.catalog-chip.diff {
  border-color: #ecd9cd;
  color: #9b6b53;
  background: #fff8f3;
}
.catalog-item .mini {
  align-self: center;
  flex-shrink: 0;
}
.catalog-empty {
  padding: 8px 2px;
  color: var(--muted);
  font-size: 11px;
}
.catalog-browser {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.catalog-browser summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.catalog-browser summary::-webkit-details-marker { display: none; }
.catalog-browser summary::before {
  content: "+";
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  width: 12px;
}
.catalog-browser[open] summary::before { content: "-"; }
.catalog-browser-body { margin-top: 10px; }
.catalog-filter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.field.compact { flex: 1; }
.field.compact select { padding-top: 7px; padding-bottom: 7px; font-size: 12.5px; }
.catalog-browser .catalog-list { max-height: 320px; overflow: auto; padding-right: 2px; }

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---------------- сегменты ---------------- */
.segmented {
  display: flex;
  gap: 4px;
  background: #f2ece3;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.segmented button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 6px;
  border-radius: 9px;
  cursor: pointer;
  transition: .18s;
}
.segmented button svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linejoin: round; stroke-linecap: round;
}
.segmented button[hidden] { display: none !important; }
.segmented.gender-switch { margin-bottom: 10px; }
.segmented button:hover { color: var(--ink); }
.segmented button.active {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 1px 3px rgba(31, 42, 48, .12);
}
.segmented.garments {
  flex-wrap: wrap;
}
.segmented.garments button {
  flex: 1 0 21%;
  min-width: 92px;
}

/* ---------------- поля ---------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.field select, .field input {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e7b80' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
}
.field select:focus, .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 101, 74, .12);
}
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { -moz-appearance: textfield; }

.size-note {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--muted);
  background: #f8f5ef;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  line-height: 1.45;
}

.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 0 0 9px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}
.tabs button.active { color: var(--ink); }
.tabs button.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hidden { display: none !important; }

.advanced {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.advanced summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before {
  content: "+";
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  width: 12px;
}
.advanced[open] summary::before { content: "–"; }
.advanced summary span {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #a79a8c;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 6px;
}
.advanced .grid-2 { margin-top: 12px; }

/* ---------------- стилевые контролы ---------------- */
.style-controls { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }

.control-row { display: flex; flex-direction: column; gap: 6px; }
.control-top {
  display: flex; justify-content: space-between; align-items: baseline;
}
.control-top label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.control-top output {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
}
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: #e9e1d6;
  outline: none;
  margin: 5px 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(31, 42, 48, .3);
  cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  cursor: pointer;
}

.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.length-presets { margin-top: 8px; }
.length-presets .pill { font-size: 11px; padding: 4px 10px; }
.fabric-note {
  margin: 6px 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.pill {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  border-radius: 9px;
  padding: 7px 12px;
  font-family: var(--sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: .15s;
}
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}

.check {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.check input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: .15s;
}
.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------------- кнопки ---------------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
button.primary, button.secondary {
  border-radius: 11px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .18s;
}
button.primary {
  flex: 1;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
button.primary:hover { background: #2c3a41; }
button.primary:disabled { opacity: .55; cursor: default; }
button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
button.secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fffdfa;
}
button.secondary:disabled { opacity: .45; cursor: default; }
button.secondary svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.micro {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------- проекты и модели ---------------- */
.project-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.project-actions button { padding: 10px 10px; font-size: 12.5px; }
.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdfa;
}
.project-item-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.project-item-main b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-item-main span { font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.project-item-actions { display: flex; gap: 5px; flex-shrink: 0; }
button.mini {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  padding: 5px 8px;
  font-family: var(--sans);
  font-size: 10.5px;
  cursor: pointer;
}
button.mini:hover { border-color: var(--accent); color: var(--accent-dark); }
button.mini.danger:hover { border-color: #b0604a; color: #8d3b2c; }

/* ---------------- технологическая карта ---------------- */
.tech-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdfa;
  padding: 10px 12px;
}
.tech-card summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.tech-card summary::marker { color: var(--accent); }
.tech-summary { margin: 9px 0 6px; font-size: 11px; color: var(--muted); line-height: 1.45; }
.tech-card h4 {
  margin: 10px 0 4px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.tech-list { margin: 0; padding-left: 16px; }
.tech-list li { font-size: 11px; line-height: 1.45; color: #3c4549; margin: 3px 0; }
.tech-list li b { font-weight: 600; }
.tech-list li span { display: block; color: var(--muted); font-size: 10.5px; }

/* ---------------- предпросмотр ---------------- */
.preview-card { padding-bottom: 14px; }

.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.preview-head h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 2px;
}
.preview-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.preview-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.switch { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.switch input { accent-color: var(--accent); }
.zoom { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.zoom input[type=range] { width: 92px; }

.preview {
  position: relative;
  min-height: 430px;
  max-height: 78vh;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: #fff;
  background-image: radial-gradient(rgba(31, 42, 48, .055) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 12px;
  scrollbar-width: thin;
}
.preview svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 20px rgba(31, 42, 48, .06));
}
.preview.hide-seam .seam { display: none; }

.empty {
  position: absolute;
  inset: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  padding: 20px;
}
.empty b { color: var(--ink); font-family: var(--serif); font-size: 17px; font-weight: 600; }
.empty span { font-size: 12px; max-width: 300px; line-height: 1.5; }
.empty-art svg {
  width: 120px; height: 142px;
  fill: none; stroke: var(--line-strong); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 10px;
}

.preview-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 20px; height: 0; border-top: 1.5px solid var(--ink); display: inline-block; }
.legend .l-seam { border-top-style: dashed; border-color: #8fa0a6; }
.legend .l-grain { border-color: #5c6b73; position: relative; }
.legend .l-grain::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border: 3px solid transparent; border-left-color: #5c6b73;
}
.legend .l-fold { border-top-style: dashed; border-color: var(--accent); }

.warnings { display: flex; flex-direction: column; gap: 4px; }
.warn {
  font-size: 11px;
  color: #7a5a2e;
  background: #fbf3e4;
  border: 1px solid #f0e2c8;
  border-radius: 7px;
  padding: 4px 8px;
  line-height: 1.4;
}
.warn::before { content: "→ "; color: #b08a4a; }

/* ---------------- таблица деталей ---------------- */
.pieces-card { padding-bottom: 14px; }
table.pieces { width: 100%; border-collapse: collapse; }
table.pieces th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--line);
}
table.pieces th:nth-child(2), table.pieces td:nth-child(2),
table.pieces th:nth-child(3), table.pieces td:nth-child(3) { text-align: right; }
table.pieces td {
  padding: 8px 0;
  border-bottom: 1px solid #f2ece4;
  font-size: 12.5px;
}
table.pieces tr:last-child td { border-bottom: 0; }
table.pieces td:nth-child(2), table.pieces td:nth-child(3) { color: var(--muted); white-space: nowrap; }

.grading-table { margin-top: 12px; overflow-x: auto; }
.grading-table table.pieces { min-width: 640px; }
.grading-table .grade-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); }

/* ---------------- импорт DXF ---------------- */
.dxf-dropzone { margin-bottom: 4px; }
.dxf-dropzone .dz-empty span { font-size: 11px; color: var(--muted); }
.import-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 12px 0 10px;
  font-size: 11px;
  color: var(--muted);
}
.import-meta b { color: var(--ink); font-weight: 600; }
.import-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfa;
  padding: 8px;
  overflow: hidden;
}
.import-preview svg { display: block; width: 100%; max-height: 360px; }
.import-pieces-wrap { margin-top: 10px; overflow-x: auto; }
table.import-pieces { min-width: 560px; }
table.import-pieces th:nth-child(2), table.import-pieces td:nth-child(2),
table.import-pieces th:nth-child(3), table.import-pieces td:nth-child(3),
table.import-pieces th:nth-child(4), table.import-pieces td:nth-child(4),
table.import-pieces th:nth-child(5), table.import-pieces td:nth-child(5) { text-align: right; }
table.import-pieces td { font-size: 11px; vertical-align: top; }
table.import-pieces td:first-child { font-weight: 600; }
table.import-pieces td:nth-child(2) { color: var(--muted); white-space: nowrap; }

/* ---------------- редактор 2D ---------------- */
.editor-card .micro { margin: 0; }
.editor-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) 78px;
  gap: 10px;
  margin-bottom: 10px;
}
.editor-controls .field.compact { min-width: 0; }
.editor-controls .field input { width: 100%; }
.editor-qty { max-width: 90px; }
.editor-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(rgba(228, 219, 209, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 219, 209, .35) 1px, transparent 1px),
    #fffdfa;
  background-size: 24px 24px;
  min-height: 300px;
  overflow: hidden;
  touch-action: none;
}
.editor-stage svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  user-select: none;
  -webkit-user-select: none;
}
.editor-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.editor-cut {
  fill: #fbf8f2;
  stroke: #1f2a30;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.editor-cut.stale { opacity: .25; }
.editor-seam {
  fill: none;
  stroke: #8fa0a6;
  stroke-width: 1;
  stroke-dasharray: 5 3;
  vector-effect: non-scaling-stroke;
}
.editor-piece.selected .editor-cut { stroke: var(--accent); }
.editor-piece.selected .editor-seam { stroke: var(--accent-dark); }
.editor-piece-hit {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  pointer-events: all;
}
.editor-edge-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 9;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: crosshair;
}
.editor-handle {
  fill: #fffdfa;
  stroke: var(--accent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  cursor: grab;
}
.editor-handle:hover,
.editor-handle.active { fill: var(--accent); }
.editor-handle:active { cursor: grabbing; }
.editor-mark {
  fill: none;
  stroke: #b5654a;
  stroke-width: 1;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
  opacity: .72;
  pointer-events: none;
}
.editor-label {
  fill: #5c6b73;
  font-family: var(--sans);
  font-size: 1.05px;
  text-anchor: middle;
  pointer-events: none;
}
.editor-label b {
  fill: #243038;
  font-weight: 600;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.editor-toolbar .mini { min-height: 30px; }
.editor-edge-active {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.editor-edge-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf8f2;
}
.editor-edge-tag {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 8px;
}
.editor-edge-panel .field.compact { min-width: 0; }
.editor-edge-sa { max-width: 110px; }
.editor-edge-sa input { width: 100%; }
.editor-mark-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
}
.editor-mark-active {
  fill: none;
  stroke: #b5654a;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.editor-mark-solid { stroke-dasharray: none; }
.editor-mark-pending {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.editor-pending-point {
  fill: var(--accent);
  stroke: #fffdfa;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.editor-marks-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf8f2;
}
.editor-marks-panel .field.compact { min-width: 0; }
.editor-mark-text { max-width: 200px; }
.editor-mark-text input { width: 100%; }
.editor-toolbar .mini.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: rgba(224, 123, 57, .12);
}

/* ---------------- подсказки ---------------- */
[data-tip] { position: relative; }
[data-tip]:hover::after,
[data-tip]:focus-within::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  background: #243038;
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .2px;
  text-align: left;
  padding: 6px 9px;
  border-radius: 8px;
  width: max-content;
  max-width: min(280px, 80vw);
  z-index: 90;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(31, 42, 48, .22);
  opacity: 0;
  transition: opacity .12s ease .3s;
}
[data-tip]:hover::after,
[data-tip]:focus-within::after { opacity: 1; }
[data-tip]:hover::before,
[data-tip]:focus-within::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #243038;
  z-index: 91;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease .3s;
}
[data-tip]:hover::before,
[data-tip]:focus-within::before { opacity: 1; }
.editor-card .actions { margin-top: 12px; }
.editor-card .warnings { margin-top: 10px; }
.editor-card .warnings:empty { display: none; }

/* ---------------- тост ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 50;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8d3b2c; }

/* скелетон */
.preview.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .7) 40%, transparent 60%);
  background-size: 220% 100%;
  animation: shimmer 1.1s infinite linear;
  pointer-events: none;
}
@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

/* ---------------- адаптив ---------------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 420px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; padding: 12px 16px 40px; }
  .preview-col { position: static; }
  .topbar { padding: 16px 16px 8px; flex-wrap: wrap; }
  .top-meta { display: none; }
  .preview { max-height: 65vh; min-height: 320px; }
}

@media (max-width: 560px) {
  .card { padding: 16px; border-radius: 15px; }
  .grid-2 { grid-template-columns: 1fr; }
  .preview-head { flex-direction: column; }
  .preview-tools { justify-content: flex-start; }
  .actions { flex-direction: column; }
  .legend { gap: 8px 12px; }
  .editor-controls { grid-template-columns: 1fr 1fr; }
  .editor-controls .field:first-child { grid-column: 1 / -1; }
  .editor-qty { max-width: none; }
}

/* ================================================================
 *  Коммерческая инфраструктура: auth, кабинет, тарифы
 * ================================================================ */

/* --- Панель пользователя в шапке --- */
.user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-ghost {
  background: none;
  border: 1px solid rgba(181, 101, 74, 0.35);
  color: #b5654a;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover {
  background: rgba(181, 101, 74, 0.08);
  border-color: #b5654a;
}

.btn-primary {
  background: #b5654a;
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary:hover { background: #a05540; }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.btn-mini {
  background: rgba(181, 101, 74, 0.1);
  border: 1px solid rgba(181, 101, 74, 0.25);
  color: #b5654a;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-mini:hover { background: rgba(181, 101, 74, 0.18); }
.btn-mini.danger { color: #c44; border-color: rgba(204, 68, 68, 0.25); }
.btn-mini.danger:hover { background: rgba(204, 68, 68, 0.08); }

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.user-btn:hover { background: rgba(0, 0, 0, 0.03); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b5654a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
}

.user-name {
  font-size: 14px;
  color: #333;
}

.user-warn {
  color: #e8a800;
  font-size: 14px;
}

/* --- Модальные окна --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 420px;
  width: calc(100% - 32px);
  max-height: 84vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}
.modal-wide {
  max-width: 680px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover { color: #333; }

.modal h2 {
  font-size: 22px;
  margin: 0 0 20px;
  color: #222;
}

/* --- Форма авторизации --- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-field > span {
  font-size: 13px;
  color: #666;
}
.auth-field.compact > span {
  font-size: 12px;
}
.auth-field input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  transition: border 0.15s;
}
.auth-field input:focus {
  outline: none;
  border-color: #b5654a;
}
.auth-field.compact input {
  padding: 8px 12px;
  font-size: 14px;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 8px 0 4px;
  cursor: pointer;
}
.auth-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #b5654a;
}
.auth-checkbox a {
  color: #b5654a;
  text-decoration: none;
}
.auth-checkbox a:hover {
  text-decoration: underline;
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

.auth-toggle {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #666;
}
.auth-toggle a {
  color: #b5654a;
  text-decoration: none;
}
.auth-toggle a:hover { text-decoration: underline; }

.auth-extra {
  margin-top: 8px;
  text-align: center;
}
.auth-link {
  color: #888;
  font-size: 13px;
  text-decoration: none;
}
.auth-link:hover { color: #b5654a; }

.auth-msg {
  text-align: center;
  color: #2a7;
  font-size: 14px;
  padding: 12px;
}

/* --- Личный кабинет --- */
.dash-section {
  margin-bottom: 24px;
}
.dash-section h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: #333;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dash-head h3 { margin: 0; }

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.dash-row > span { color: #888; }

.plan-badge {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.plan-badge.plan-free { background: #eee; color: #666; }
.plan-badge.plan-pro { background: #e8f5e9; color: #2e7d32; }
.plan-badge.plan-business { background: #fff3e0; color: #e65100; }

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8f8f8;
  border-radius: 8px;
  font-size: 14px;
}

.dash-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-item-info b { font-size: 14px; }
.dash-item-meta {
  font-size: 12px;
  color: #999;
}

.dash-empty {
  color: #999;
  font-size: 14px;
  padding: 8px 0;
}

.tag {
  display: inline-block;
  background: #b5654a22;
  color: #b5654a;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 8px;
}
.tag-fav { background: #ffd70022; color: #b8860b; }

.dash-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.dash-actions button { flex: 1; padding: 12px; }

/* --- Тарифы --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.plan-card {
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: border 0.2s;
}
.plan-card:hover { border-color: #ccc; }

.plan-popular {
  border-color: #b5654a;
}

.plan-badge-pop {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #b5654a;
  color: #fff;
  font-size: 11px;
  padding: 3px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.plan-card h3 {
  font-size: 20px;
  margin: 0 0 4px;
}

.plan-price {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0;
  color: #222;
}

.plan-desc {
  font-size: 13px;
  color: #888;
  margin: 0 0 16px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}
.plan-features li {
  font-size: 13px;
  color: #555;
  padding: 4px 0 4px 20px;
  position: relative;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2a7;
  font-weight: 700;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

/* --- Адаптив для модальных окон --- */
@media (max-width: 560px) {
  .modal { padding: 20px; border-radius: 12px; }
  .modal-wide { max-width: 100%; }
  .user-name { display: none; }
  .plans-grid { grid-template-columns: 1fr; }
}

/* --- CAPTCHA --- */
.captcha-box {
  margin: 16px 0;
  padding: 16px 20px;
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.captcha-label {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px;
}
.captcha-widget {
  min-height: 65px;
}

/* --- Footer --- */
footer[role="contentinfo"] {
  margin-top: 40px;
  padding: 30px 20px 20px;
  background: linear-gradient(to bottom, #f8f6f4, #fff);
  border-top: 1px solid #e8e4e0;
}

.footer-info {
  margin-bottom: 20px;
}

.footer-info details {
  margin-bottom: 16px;
}

.footer-info summary {
  cursor: pointer;
  padding: 8px 0;
  color: #b5654a;
  font-size: 15px;
}

.footer-info summary:hover {
  color: #a05030;
}

.footer-info p {
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.footer-info ul {
  margin: 12px 0;
  padding-left: 20px;
}

.footer-info li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}

.footer-links {
  margin: 16px 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #888;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #b5654a;
  text-decoration: underline;
}

.copyright {
  margin-top: 16px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

/* --- Адаптив footer --- */
@media (max-width: 560px) {
  footer[role="contentinfo"] {
    padding: 20px 15px 15px;
  }
  
  .footer-info summary {
    font-size: 14px;
  }
  
  .footer-info ul {
    padding-left: 16px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}


