body.designer { background: var(--soft); min-height: 100vh; display: flex; flex-direction: column; }
.designer h2 { font: 700 12px/1 var(--body); font-stretch: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.designer h2:first-child { margin-top: 0; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.bar .nav-logo img { height: 36px; width: auto; }
.bar-actions { display: flex; align-items: center; gap: 8px; }

.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; font: 600 14px/1 var(--body); padding: 9px 20px; border-radius: 999px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.seg.small { border-radius: 10px; }
.seg.small button { padding: 8px 12px; border-radius: 8px; font-size: 13px; min-width: 36px; justify-content: center; }
.seg svg, .icon-btn svg, .tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover:not([disabled]) { border-color: var(--ink); }
.icon-btn[disabled] { opacity: .35; cursor: default; }

.work { flex: 1; display: grid; grid-template-columns: 290px minmax(0, 1fr) 290px; gap: 18px; padding: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.hint { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

.templates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 352px; overflow-y: auto; padding: 3px; margin: -3px; }
.templates button { padding: 0; border: 2px solid transparent; border-radius: 9px; background: #fff; cursor: pointer; overflow: hidden; box-shadow: 0 0 0 1px var(--line); font: 600 12px/1 var(--body); color: var(--muted); }
.templates span { display: block; padding: 7px 4px; }
.templates button:hover { border-color: var(--green); }
.templates canvas { display: block; width: 100%; height: auto; }

.add-row { display: grid; gap: 8px; }
.tool { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 600 14px/1 var(--body); cursor: pointer; color: var(--ink); text-align: left; }
.tool:hover { border-color: var(--green); color: var(--green); }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; min-width: 0; }
.field input, .field select, .field textarea { font: 400 15px/1.3 var(--body); color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; width: 100%; min-width: 0; }
.field textarea { resize: vertical; }
.field-row { display: flex; gap: 10px; align-items: end; margin: 12px 0; flex-wrap: wrap; }
.field-row .field { flex: 1; margin-bottom: 0; }
.color { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.color input { width: 38px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini { padding: 10px 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: 600 13px/1.1 var(--body); cursor: pointer; color: var(--ink); }
.mini:hover { border-color: var(--ink); }
.mini.danger { color: #b3261e; }
.mini.danger:hover { border-color: #b3261e; }
.wide { width: 100%; }

.stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 10px; position: sticky; top: 78px; }
.card-shell { width: min(100%, 760px); border-radius: 3.7% / 5.9%; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(10, 40, 22, .4), 0 0 0 1px rgba(0,0,0,.06); background: #fff; }
#card { display: block; width: 100%; height: auto; touch-action: none; cursor: default; outline: none; }
.stage-note { color: var(--muted); font-size: 13px; text-align: center; }

dialog { border: 0; border-radius: 18px; padding: 28px; width: min(640px, calc(100% - 28px)); max-height: calc(100dvh - 28px); box-shadow: 0 30px 80px rgba(0,0,0,.3); color: var(--ink); }
dialog::backdrop { background: rgba(16, 19, 17, .55); }
.designer dialog h2 { font: italic 800 26px/1.1 var(--display); font-stretch: 125%; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0 0 10px; }
.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 18px; }
.previews img { width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.tap { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.tap-q { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.tap .seg { margin-bottom: 12px; flex-wrap: wrap; }
.tap .field { margin-bottom: 0; }
.page-info { background: var(--soft); border-radius: 12px; padding: 14px; margin-top: 14px; font-size: 14px; display: grid; gap: 6px; overflow-wrap: anywhere; }
.page-info a { color: var(--green); font-weight: 600; }
.price-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.addon { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; margin-bottom: 10px; cursor: pointer; }
.addon input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green); flex: none; }
.addon small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.price-lines > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 5px 0; color: var(--muted); }
.price-lines .total { color: var(--ink); font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.price-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
#done-estimate { margin-top: 10px; font-weight: 600; }
.people { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.people-fields { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.people-fields .addon { margin: 0; font-weight: 500; }
.people-wrap { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.people-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.people-table th { position: sticky; top: 0; background: var(--soft); text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px; white-space: nowrap; z-index: 1; }
.people-table td { padding: 4px; border-top: 1px solid var(--line); }
.people-table td.n { color: var(--muted); font-size: 12px; text-align: center; width: 34px; cursor: pointer; }
.people-table input { width: 100%; min-width: 110px; font: 400 14px/1.3 var(--body); color: var(--ink); padding: 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.people-table input:hover { border-color: var(--line); }
.people-table input:focus { border-color: var(--green); background: #fff; outline: none; }
.people-table tr.on td { background: var(--green-tint); }
.people-table .x { border: 0; background: none; color: #b3261e; font-size: 17px; cursor: pointer; padding: 4px 8px; }
.people-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.people-actions .addon { margin: 0; font-weight: 500; }
#people-paste-box { margin-top: 10px; display: grid; gap: 8px; justify-items: start; }
#people-paste { width: 100%; font: 400 14px/1.4 var(--body); padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: #b3261e; font-size: 14px; margin: 4px 0 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }

@media (max-width: 1080px) {
  .work { grid-template-columns: 1fr 1fr; }
  .stage { grid-column: 1 / -1; order: -1; position: static; padding: 8px 0; }
}
@media (max-width: 640px) {
  .work { grid-template-columns: 1fr; padding: 12px; }
  .bar { padding: 8px 12px; }
  .bar .nav-logo img { height: 28px; }
  #download { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  dialog { padding: 20px; }
}
/* card colour: white or black PVC */
.seg.cardpick { display: flex; width: 100%; border-radius: 12px; margin-bottom: 10px; }
.seg.cardpick button { flex: 1; justify-content: center; gap: 8px; border-radius: 9px; padding: 10px 8px; }
.swatch { width: 18px; height: 12px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.swatch.white { background: #fff; } .swatch.black { background: #161616; }
/* agreement checkboxes on the send form */
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }
.agree a { color: var(--green); font-weight: 600; }
.public-note { background: #fff8e1; border-radius: 10px; padding: 10px 12px; color: #6b5a1e; }
.public-note a { color: inherit; font-weight: 600; }
