/* Business Card Maker */
@font-face { font-family: "BCInter"; font-weight: 400; font-display: block; src: url("/vendor/inter-400.woff2") format("woff2"); }
@font-face { font-family: "BCInter"; font-weight: 600; font-display: block; src: url("/vendor/inter-600.woff2") format("woff2"); }

.bc-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 860px) { .bc-layout { grid-template-columns: minmax(0, 1fr); } }
.bc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.bc-grid .field { margin-bottom: 12px; }
.bc-wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .bc-grid { grid-template-columns: minmax(0, 1fr); } }
.bc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; align-items: start; }
.bc-row .field { margin-bottom: 12px; }
.lbl, .bc-design legend { font-weight: 650; font-size: 14px; padding: 0; }
.bc-design fieldset, .bc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bc-logo-box { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.bc-logo-box img { max-height: 40px; max-width: 110px; object-fit: contain; border: 1px dashed var(--line-strong); border-radius: 6px; padding: 3px;
  background: repeating-conic-gradient(#e5e7eb 0 25%, #fff 0 50%) 0 0/10px 10px; }
.bc-logo small { font-size: 12.5px; }

.bc-tpls { margin-bottom: 14px !important; }
#bcTpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
#bcTpls button { display: flex; flex-direction: column; gap: 5px; align-items: stretch; padding: 5px 5px 6px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); font: 600 12.5px var(--body); color: var(--ink-2); }
#bcTpls button:hover { border-color: var(--line-strong); }
#bcTpls button[aria-pressed=true] { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); }
.bc-thumb { display: block; aspect-ratio: 85 / 52; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.18); background: #fff; }
.bc-thumb svg { display: block; width: 100%; height: 100%; }
@media (max-width: 420px) { #bcTpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bc-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bc-swatches button, .bc-custom { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); background: var(--c); cursor: pointer; padding: 0; }
.bc-swatches button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--ink); }
.bc-custom { position: relative; overflow: hidden; background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); }
.bc-custom input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; width: auto; height: auto; }

.bc-stage { margin: 18px 0 0; padding: 18px; border-radius: var(--r-lg); background: color-mix(in oklab, var(--accent) 6%, var(--raised)); border: 1px solid var(--line); }
.bc-stage-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.bc-stage-head .check { margin: 0; }
.bc-note { font-size: 14px; color: var(--ink-2); }
.bc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.bc-cards figure { margin: 0; }
.bc-cards figcaption { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 8px; }
.bc-card { width: 100%; max-width: 460px; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 28px -8px rgba(15, 23, 42, .3); }
.bc-card.guides { border-radius: 0; }
.bc-card svg { display: block; width: 100%; height: 100%; }

.bc-export { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.bc-export-col { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bc-export-col h3 { margin: 0; font-size: 16px; }
.bc-export-col p { margin: 0; font-size: 14px; }
.bc-export-col .field { margin: 0; width: 100%; }
