/* ==================================================================
   海报掌柜 · 界面样式
   目标：像一个给商家用的工作台 —— 信息密度适中、焦点永远在预览上。
   ================================================================== */

/* 自托管字体（可选）。放了 web/fonts/hb-sans.woff2 就生效，
   没有则整站与海报都自动回退到系统字，见 web/fonts/README.md */
@font-face {
  font-family: "HB Sans";
  /* woff2 优先（小），没有就用 otf（Source Han Sans 官方发行版就是 otf） */
  src: url("/fonts/hb-sans.woff2") format("woff2"), url("/fonts/hb-sans.otf") format("opentype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --panel: #ffffff;
  --ink: #1b1610;
  --ink-2: #5b5245;
  --ink-3: #938a7d;
  --line: #e8e1d4;
  --line-strong: #d8cfbe;
  --brand: #c8452f;
  --brand-dark: #a8361f;
  --brand-soft: #fbeae5;
  --green: #2f7d5b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 22, 16, 0.05), 0 2px 8px rgba(27, 22, 16, 0.04);
  --shadow-md: 0 2px 6px rgba(27, 22, 16, 0.06), 0 12px 32px rgba(27, 22, 16, 0.08);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", "Noto Sans CJK SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #d9d0c1;
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #bfb4a2;
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* -------------------------------------------------------------- 布局 */

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
  flex: 0 0 auto;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, #d9563c, #a8361f);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(200, 69, 47, 0.32);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.5px;
}
.brand-text span {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-3);
  padding: 6px 11px;
  border-radius: 999px;
  background: #f7f4ee;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.ai-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9c0b1;
  flex: 0 0 auto;
}
.ai-status.on .dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 91, 0.16);
}
.ai-status.partial .dot {
  background: #d99a2b;
  box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.16);
}

.user-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f7f4ee;
  border: 1px solid var(--line);
  font-size: 12.5px;
  white-space: nowrap;
}
.user-chip b {
  font-weight: 600;
  color: var(--ink);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-chip em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0;
}

/* -------------------------------------------------------------- 表单 */

.group {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.group:last-child {
  border-bottom: 0;
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.group-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-3);
  text-transform: none;
}
.group-head .group-title {
  margin-bottom: 0;
}

.field {
  display: block;
  margin-bottom: 12px;
}
.field:last-child {
  margin-bottom: 0;
}
.field > span {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.field > span em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
}

input[type="text"],
select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238d8478' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

input[type="text"]:hover,
select:hover {
  border-color: #c9bfae;
}
input[type="text"]:focus,
select:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 69, 47, 0.12);
}
input::placeholder {
  color: #b6ada0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.72fr;
  gap: 10px;
}
.field-row .field {
  margin-bottom: 0;
}

.hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* 广告法提醒 */
.warn-line {
  margin: 2px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fdf3e3;
  border: 1px solid #f2e0c2;
  color: #8a5a12;
  font-size: 11.5px;
  line-height: 1.55;
}

/* 导出设置 */
.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  margin: 0;
  cursor: pointer;
}

/* ---------------------------------------------------------- 快速模板 */

.preset-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preset-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s;
}
.preset-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.preset-card:active {
  transform: translateY(1px);
}
.preset-swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.preset-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.preset-text strong {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
}
.preset-text em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preset-divider {
  margin: 6px 0 2px;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.preset-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* -------------------------------------------------------- 扫码归因 */

.attr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.attr-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 10px;
  background: #fff;
}
.attr-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.attr-head strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attr-head em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
  flex: 0 0 auto;
}
.attr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0;
}
.attr-label {
  font-size: 11px;
  color: var(--ink-2);
  width: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attr-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--brand-soft);
  overflow: hidden;
}
.attr-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
}
.attr-row.lead .attr-bar i {
  background: var(--brand-dark);
}
.attr-num {
  font-size: 11px;
  color: var(--ink-2);
  width: 30px;
  text-align: right;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.attr-note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
}
.attr-note.warn {
  color: #a05a00;
}
.attr-empty {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* -------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s, background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
  white-space: nowrap;
  user-select: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  background: linear-gradient(155deg, #d1553a, var(--brand-dark));
  color: #fff;
  box-shadow: 0 2px 10px rgba(200, 69, 47, 0.28);
}
.btn.primary:hover {
  box-shadow: 0 4px 16px rgba(200, 69, 47, 0.36);
}

.btn.ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.btn.ghost:hover {
  border-color: #bdb2a0;
  color: var(--ink);
}

.btn.soft {
  background: #f7f4ee;
  border-color: var(--line);
  color: var(--ink-2);
  height: 34px;
  font-size: 12.5px;
  flex: 1 1 0;
  padding: 0 10px;
}
.btn.soft:hover:not(:disabled) {
  background: #efe9df;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn.mini {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: #f3d3c9;
  font-weight: 600;
}
.btn.mini:hover {
  background: #f8ddd5;
}

.btn-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.btn-row:last-child {
  margin-bottom: 0;
}

.spark {
  font-size: 12px;
  line-height: 1;
}

/* -------------------------------------------------------------- 文案建议 */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chips button {
  font-family: inherit;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  background: #fbfaf7;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.chips button:hover {
  border-style: solid;
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

/* -------------------------------------------------------------- 舞台 */

.stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 0 2px;
}

.size-tabs {
  display: inline-flex;
  padding: 3px;
  background: #eae4d9;
  border-radius: 11px;
  gap: 2px;
}
.size-tabs button {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  gap: 1px;
}
.size-tabs button small {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-3);
}
.size-tabs button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.size-tabs button.active small {
  color: var(--ink-3);
}

.stage-meta {
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
}

.canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: radial-gradient(circle at 50% 0%, #faf7f1 0%, var(--paper) 70%);
  border-radius: var(--radius);
  position: relative;
}
.canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background-image: radial-gradient(#ded5c5 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
}

#poster {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 196px);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(27, 22, 16, 0.2), 0 2px 8px rgba(27, 22, 16, 0.08);
  background: #fff;
}

.stage-tip {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  flex: 0 0 auto;
}

/* -------------------------------------------------------------- 风格 */

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  overflow: hidden;
}
.style-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.style-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(200, 69, 47, 0.16);
}
.style-card .swatch {
  display: block;
  height: 44px;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}
.style-card .swatch::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.65);
}
.style-card strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.style-card em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.layout-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s;
}
.layout-card:hover {
  border-color: var(--line-strong);
}
.layout-card.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(200, 69, 47, 0.16);
}
.wire {
  display: block;
  height: 46px;
  border-radius: 7px;
  background: #f7f4ee;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.wire i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #cdc3b2;
}
.wire i:nth-child(1) {
  width: 42%;
  height: 8px;
  background: #a89b85;
}
.wire i:nth-child(2) {
  width: 72%;
}
.wire i:nth-child(3) {
  width: 56%;
}
.wire.center {
  align-items: center;
}
.wire.center i:nth-child(1) {
  align-self: center;
}
.wire.center i:nth-child(2) {
  align-self: center;
}
.wire.center i:nth-child(3) {
  align-self: center;
}
/* 新版式的线框提示：色带 / 大价格块 / 票券 */
.wire i.w-band {
  width: 100%;
  height: 12px;
  border-radius: 3px;
  background: #8f8270;
}
.wire i.w-big {
  width: 100%;
  height: 20px;
  border-radius: 4px;
  background: #a89b85;
}
.wire i.w-card {
  width: 100%;
  height: 16px;
  border-radius: 4px;
  background: transparent;
  border: 1px dashed #b9ae9c;
}
.layout-card strong {
  font-size: 12.5px;
  color: var(--ink);
}
.layout-card em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
}

/* -------------------------------------------------------------- 上传 */

.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: #fbfaf7;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.15s;
}
.upload:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft);
}
.upload img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

/* -------------------------------------------------------------- Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  background: rgba(27, 22, 16, 0.92);
  color: #fff;
  font-size: 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 100;
  max-width: 80vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.err {
  background: rgba(160, 40, 26, 0.95);
}

/* ------------------------------------------------------- 移动端底部 tab */

.mobile-tabs {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  gap: 6px;
}
.mobile-tabs button {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-tabs button.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* -------------------------------------------------------------- 响应式 */

@media (max-width: 1280px) {
  .layout {
    grid-template-columns: 312px minmax(0, 1fr) 272px;
    gap: 12px;
    padding: 12px;
  }
}

@media (max-width: 1080px) {
  .app {
    height: auto;
    min-height: 100dvh;
    /* 给底部 tab 留位置，别让最后一个输入框被挡住 */
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 10px;
  }
  .panel {
    overflow: visible;
  }
  .mobile-tabs {
    display: flex;
  }

  /* 一次只显示一块，靠 body[data-mtab] 切换 */
  body[data-mtab="preview"] .form-panel,
  body[data-mtab="preview"] .style-panel,
  body[data-mtab="edit"] .stage,
  body[data-mtab="edit"] .style-panel,
  body[data-mtab="style"] .stage,
  body[data-mtab="style"] .form-panel {
    display: none;
  }

  /* 顶栏吸顶，滚动时操作按钮始终在 */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
  }
  /* 编辑 / 样式页里不需要大预览占位 */
  .canvas-wrap {
    padding: 12px;
    min-height: 62vh;
  }
  #poster {
    max-height: 68vh;
  }
  .stage-tip {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .brand-text span {
    display: none;
  }
  .ai-status {
    display: none;
  }
  .btn {
    height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }
  .layout {
    padding: 10px;
    gap: 10px;
  }
  .group {
    padding: 14px;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .field-row .field.narrow {
    grid-column: 1 / -1;
  }
  .size-tabs {
    width: 100%;
  }
  .size-tabs button {
    flex: 1;
  }
  .style-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .style-card em {
    display: none;
  }
}
