/* Start a Project (src/pages/start.html + start.js). Concepts C04/C05 in the NOVA language: cream page, white cards,
   heavy uppercase heads, black primary buttons. Not comp-exact: sized in px/rem so the builder reads well at any width. */

body.page-start { background: #f3f2ee; }
.sb { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 18px 40px 80px 57px; min-height: 100vh; }   /* the steps are drawn by start.js: without a floor the footer starts on screen and jumps (Lighthouse CLS 0.20, 10/23) */
.sb__main { min-width: 0; }
.sb__noscript { font-size: 16px; }

/* steps */
.sb__steps { list-style: none; margin: 0 0 26px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.sb__steps li > * { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 99px; background: #e9e7e1; color: #66635d; font-size: 13px; }
.sb__steps a { text-decoration: none; color: #3e3c38; }
.sb__steps a:hover { background: #fff; }
.sb__steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; font: 600 11.5px "Inter", sans-serif; font-style: normal; color: #66635d; }
.sb__steps b { font-weight: 500; }
.sb__steps li.is-done > * { color: #2a2926; }
.sb__steps li.is-done i { background: #111; color: #fff; }
.sb__steps li.is-on > * { background: #111; color: #fff; }
.sb__steps li.is-on i { background: #fff; color: #111; }

/* screen type */
.sb__eyebrow { font-family: var(--display); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #66635d; }
.sb__h1 { margin-top: 8px; font-family: "Inter", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4vw, 46px); line-height: .98; letter-spacing: -.01em; color: #0d0d0d; }
.sb__h1:focus { outline: none; }
.sb__sub { margin-top: 12px; max-width: 58ch; font-size: 16px; line-height: 1.5; color: #57544f; }
.sb__label { margin: 18px 0 8px; font-family: var(--display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #66635d; }
.sb__label em { font-style: normal; text-transform: none; letter-spacing: 0; }
.sb__muted { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: #66635d; }
.sb__muted a, .sb__alt a { text-decoration: underline; text-underline-offset: 3px; color: #111; }
.sb__alt { margin-top: 22px; font-size: 14.5px; color: #57544f; }
.sb__link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: #111; background: none; padding: 0; }

/* doors */
.doors { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.door { position: relative; display: grid; grid-template-rows: 190px auto; text-align: left; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.door:hover, .door:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(30, 25, 20, .16); }
.door__img { position: relative; overflow: hidden; background: linear-gradient(180deg, #ecebe7, #e4e2dd); }
.door__photo { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.door__stack { position: absolute; inset: 0; }
.door__stack img { position: absolute; height: 78%; bottom: 8%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .18)); }
.door__stack img:nth-child(1) { left: 6%; transform: rotate(-8deg); }
.door__stack img:nth-child(2) { left: 32%; bottom: 4%; height: 84%; z-index: 1; }
.door__stack img:nth-child(3) { right: 4%; transform: rotate(7deg); }
.door__txt { padding: 16px 52px 18px 18px; display: grid; gap: 6px; }
.door__txt b { font-family: "Inter", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; font-size: 19px; letter-spacing: -.005em; color: #111; }
.door__txt span { font-size: 14px; line-height: 1.4; color: #57544f; }
.door__go { position: absolute; right: 14px; bottom: 18px; width: 30px; height: 30px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; }
.door__go .arr { width: 13px; height: 13px; }

/* items */
.sb__items { margin-top: 22px; display: grid; gap: 8px; }
.sb__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 10px; background: #fff; }
.sb__item b, .deco header b, .rv__item b { display: block; font-size: 14.5px; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb__item small, .deco header small { display: block; font-size: 12.5px; color: #66635d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb__item button { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: #57544f; }
.sb__thumb { width: 52px; height: 52px; border-radius: 8px; background: #efeeea; overflow: hidden; display: block; flex: 0 0 auto; }
.sb__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sb__thumb img.is-photo { object-fit: cover; mix-blend-mode: normal; }
.tabs { margin-top: 22px; display: flex; gap: 4px; border-bottom: 1px solid #dcd8d1; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 10px 14px 12px; font-size: 14.5px; color: #57544f; white-space: nowrap; position: relative; }
.tabs button[aria-selected="true"] { color: #111; font-weight: 600; }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: #111; }
.tabpanel { padding-top: 16px; }
.pick > input[type="search"] { width: 100%; height: 46px; padding: 0 14px; border-radius: 9px; border: 1px solid #dcd8d1; background: #fff; font-size: 15px; }
.bchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip2 { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid #dcd8d1; background: #faf9f6; font-size: 14px; color: #2c2a27; cursor: pointer; }
.chip2[aria-pressed="true"], .chip2:has(input:checked) { background: #111; border-color: #111; color: #fff; }
.chip2 input { position: absolute; opacity: 0; pointer-events: none; }
.chip2:focus-within { outline: 2px solid #111; outline-offset: 2px; }
.pick__grid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pk { display: grid; gap: 3px; padding: 8px 8px 10px; border-radius: 10px; background: #fff; align-content: start; }
.pk__img { height: 130px; border-radius: 7px; background: linear-gradient(180deg, #f0efeb, #ebe9e4); display: grid; place-items: center; overflow: hidden; }
.pk__img img { max-width: 92%; max-height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.pk__code { margin-top: 6px; font-size: 12px; color: #66635d; }
.pk__name { font-size: 13.5px; font-weight: 500; color: #151515; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk__meta { font-size: 12px; color: #66635d; }
.pk__acts { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pk__add { height: 34px; padding: 0 14px; border-radius: 7px; background: #111; color: #fff; font-size: 13.5px; font-weight: 600; }
.pk__add[aria-pressed="true"] { background: #e9e7e1; color: #2a2926; }
.pk__acts a { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; color: #57544f; }
.own, .help { display: grid; gap: 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--display); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #66635d; padding: 0; }
.own__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fld { display: grid; gap: 6px; font-size: 13.5px; color: #3e3c38; }
.fld em { font-style: normal; color: #66635d; }
.fld input, .fld textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 9px; border: 1px solid #dcd8d1; background: #fff; font-size: 15px; font-family: inherit; color: #111; }
.fld textarea { resize: vertical; }
.fld input:focus, .fld textarea:focus, .pick > input:focus { outline: 2px solid #111; outline-offset: 1px; border-color: #111; }
.fld--qty { max-width: 160px; }
.fld--file input { padding: 10px; }
.fld.is-err input { border-color: #b4362a; }
.fld__err { color: #b4362a !important; font-size: 13px; }
.fld.is-err input:focus { outline-color: #b4362a; border-color: #b4362a; }   /* a field to fix stays red while it has the focus */
/* the note under a field (start.js): the error, or the confirm field's quiet "Matches" (10/26: phone and email typed twice) */
.fld__msg { font-size: 13px; line-height: 1.35; }
.fld__msg:empty { display: none; }
.fld .fld__ok { color: #1f6b3a; font-weight: 600; }
.fld__ok::before { content: ""; display: inline-block; width: 9px; height: 5px; margin: 0 7px 3px 1px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.rv__why { margin: -2px 0 2px; font-size: 13.5px; }
.rv__contact .fld { align-content: start; }   /* a note under one field of a row never stretches its neighbour's input */
.own .btn, .sb__nav .btn, .send__btns .btn { width: auto; height: 50px; padding: 0 22px; font-size: 15px; border-radius: 9px; justify-self: start; }

/* decoration + sizes */
.decos { margin-top: 22px; display: grid; gap: 12px; }
.deco { padding: 16px 18px 18px; border-radius: 12px; background: #fff; }
.deco header { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.deco .sb__label { margin-top: 16px; }
.deco__total { font-size: 13.5px; font-weight: 600; color: #111; white-space: nowrap; }
.stps { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.stp { display: grid; gap: 4px; justify-items: center; font-size: 12.5px; font-weight: 600; color: #3e3c38; }
.stp__ctl { display: flex; align-items: center; border: 1px solid #dcd8d1; border-radius: 9px; overflow: hidden; background: #faf9f6; }
.stp__ctl button { width: 34px; height: 40px; font-size: 18px; color: #111; }
.stp__ctl input { width: 46px; height: 40px; border: 0; border-left: 1px solid #e6e3dd; border-right: 1px solid #e6e3dd; text-align: center; font-size: 15px; background: #fff; -moz-appearance: textfield; }
.stp__ctl input::-webkit-outer-spin-button, .stp__ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* artwork */
.aopts { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aopt { position: relative; display: block; cursor: pointer; }
.aopt input { position: absolute; opacity: 0; }
.aopt > span { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1.5px solid transparent; height: 100%; }
.aopt b { font-size: 15.5px; font-weight: 650; color: #111; }
.aopt small { font-size: 13px; color: #66635d; }
.aopt input:checked + span { border-color: #111; box-shadow: 0 0 0 1px #111 inset; }
.aopt input:focus-visible + span { outline: 2px solid #111; outline-offset: 2px; }
.apanel { margin-top: 14px; }
.drop { position: relative; display: grid; gap: 4px; justify-items: center; padding: 24px 16px; border: 1.5px dashed #b9b4ab; border-radius: 12px; background: #faf9f6; cursor: pointer; text-align: center; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { font-size: 15px; } .drop span { font-size: 13px; color: #66635d; }
.files { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.file { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 9px; background: #fff; font-size: 13px; max-width: 100%; }
.file img, .file i { width: 34px; height: 34px; border-radius: 6px; object-fit: contain; background: #efeeea; display: grid; place-items: center; font: 700 9.5px "Inter", sans-serif; font-style: normal; color: #57544f; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.file button { width: 26px; height: 26px; border-radius: 50%; font-size: 16px; color: #57544f; }
.tog { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #2c2a27; cursor: pointer; }
.tog input { width: 20px; height: 20px; accent-color: #111; }
.tog--inline { margin-top: 26px; }
.pickup { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #fff; font-size: 14px; color: #57544f; }
.pickup b { font-size: 15px; color: #111; }
#namesfld { margin-top: 10px; }

/* review + sent + shared */
.rv { margin-top: 22px; display: grid; gap: 12px; }
.rv__sec { padding: 16px 18px; border-radius: 12px; background: #fff; display: grid; gap: 8px; }
.rv__sec header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rv__sec h3, .send h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; color: #111; }
.rv__sec p { font-size: 14.5px; color: #3e3c38; line-height: 1.5; }
.rv__item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; padding: 6px 0; border-top: 1px solid #efede8; }
.rv__item:first-of-type { border-top: 0; }
.rv__item span:not(.sb__thumb) { display: block; font-size: 13.5px; color: #57544f; line-height: 1.45; }
.rv__links { display: flex; gap: 16px; }
.rv__names { margin: 0; padding: 10px 12px; border-radius: 8px; background: #f6f5f1; font-size: 12.5px; max-height: 160px; overflow: auto; white-space: pre-wrap; }
.rv__notes { font-style: italic; }
.rv__contact { margin-top: 12px; gap: 12px; }
.send { margin-top: 12px; padding: 18px; border-radius: 12px; background: #111; color: #f4f2ee; display: grid; gap: 10px; }
.send h3 { color: #fff; }
.send .sb__muted { color: #c9c7c2; margin: 0; }
.send .sb__muted b { color: #fff; }
.send__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.send .btn--dark { background: #fff; color: #111; }
.send .btn--light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.done { display: grid; gap: 4px; }
.done__check { width: 54px; height: 54px; border-radius: 50%; background: #2c8a52; position: relative; margin-bottom: 12px; }
.done__check::after { content: ""; position: absolute; left: 19px; top: 13px; width: 13px; height: 24px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg); }
.next { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.next li { font-size: 14px; color: #3e3c38; }
.next b { display: block; color: #111; }
.next span { color: #66635d; }

/* nav */
.sb__nav { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sb__back { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; color: #3e3c38; }
.sb__next.is-off { opacity: .4; }
.sb__nav--top { margin: 20px 0 4px; }   /* David 10/23: Back / Continue under the step's heading (start.js paintMain) */

/* summary */
.sb__sum { position: sticky; top: 18px; margin-top: 58px; }
.sb__sum[hidden] { display: none; }
.sb__sumbox { padding: 18px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); display: grid; gap: 8px; }
.sb__sumbox h2 { font-family: "Inter", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; color: #111; }
.sb__sumbox .sb__label { margin: 0; }
.sb__pcs { font-size: 13.5px; color: #66635d; }
.sb__sumbox ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.sb__sumbox li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; }
.sb__sumbox li .sb__thumb { width: 44px; height: 44px; }
.sb__sumbox li b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb__sumbox li small { display: block; font-size: 12px; color: #66635d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb__edit { justify-self: start; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.sb__note { font-size: 12px; color: #66635d; line-height: 1.4; }
.sb__bar { display: none; }

@media (max-width: 1179px) {
  .sb { grid-template-columns: minmax(0, 1fr); padding: 6px 16px 40px; gap: 0; }
  .sb__sum { display: none; }
  .sb__steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 20px; padding: 0 16px; }
  .sb__steps::-webkit-scrollbar { display: none; }
  .sb__steps li > * { white-space: nowrap; }
  .doors { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .door { grid-template-rows: auto; grid-template-columns: 116px minmax(0, 1fr); }
  .door__img { min-height: 118px; }
  .door__stack img { height: 70%; }
  .door__txt { padding: 14px 44px 14px 14px; }
  .door__txt b { font-size: 16.5px; }
  .door__txt span { font-size: 13.5px; }
  .door__go { right: 10px; bottom: auto; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; }
  .own__row, .aopts { grid-template-columns: minmax(0, 1fr); }
  .pick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk__img { height: 110px; }
  .deco { padding: 14px; }
  .own .btn, .sb__nav .btn, .send__btns .btn { height: 50px; }
  .sb__nav--top .sb__next { flex: 1 1 auto; max-width: 320px; justify-content: center; }   /* a full thumb-sized Continue at the top on phones */
  .send__btns .btn { flex: 1 1 100%; }

  /* 10/22 mobile pass: one panel docked on the bottom edge (start.js sets the html classes): the step's Back / Continue at the
     bottom, the project line ("3 items · 18 pcs · View") just above it. Solid, a top divider, safe-area padded. The review step
     keeps its Back in the page: Send to MMM is the action there. */
  html.sb-dock-nav { --dock-h: calc(68px + var(--safe-b)); }
  html.sb-dock-bar { --dock-h: calc(46px + var(--safe-b)); }
  html.sb-dock-nav.sb-dock-bar { --dock-h: calc(114px + var(--safe-b)); }
  html.sb-dock-nav body, html.sb-dock-bar body { padding-bottom: var(--dock-h); }
  html.sb-dock-nav .sb__nav { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; height: calc(68px + var(--safe-b)); margin: 0;
    padding: 9px max(16px, var(--safe-r)) calc(9px + var(--safe-b)) max(16px, var(--safe-l));
    background: #fff; border-top: 1px solid #e2ded6; box-shadow: 0 -8px 22px rgba(30, 25, 20, .06); }
  html.sb-dock-nav .sb__nav .sb__next { flex: 1 1 auto; max-width: 320px; height: 50px; font-weight: 600; }
  .sb__nav .sb__back { display: inline-flex; align-items: center; min-height: 48px; padding-right: 14px; }
  .sb__bar:not([hidden]) { display: block; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 0 max(16px, var(--safe-r)) var(--safe-b) max(16px, var(--safe-l));
    background: #fff; border-top: 1px solid #e2ded6; box-shadow: 0 -8px 22px rgba(30, 25, 20, .06); }
  html.sb-dock-nav .sb__bar:not([hidden]) { bottom: calc(68px + var(--safe-b)); padding-bottom: 0; }
  html.sb-dock-nav.sb-dock-bar .sb__nav { border-top-color: #efede8; box-shadow: none; }
  .sb__bar button { width: 100%; height: 46px; display: flex; align-items: center; gap: 4px; padding: 0; font-size: 14.5px; color: #57544f; }
  .sb__bar button b { color: #111; font-weight: 700; }
  .sb__bar button span { margin-left: auto; padding: 0 2px; font-weight: 600; color: #111; text-decoration: underline; text-underline-offset: 3px; }
  html.sb-dock-nav .toast, html.sb-dock-bar .toast { bottom: calc(var(--dock-h) + 12px); }

  /* tap targets (44 px) and 16 px fields (iOS zooms into anything smaller) */
  .fld input, .fld textarea, .pick > input[type="search"] { font-size: 16px; }
  .chip2 { min-height: 44px; }
  .stp__ctl button { width: 44px; height: 44px; }
  .stp__ctl input { width: 48px; height: 44px; font-size: 16px; }
  .sb__steps li > * { min-height: 40px; }
  .sb__item button { min-height: 44px; padding: 0 4px; }
  .pk__add { height: 44px; padding: 0 16px; font-size: 14px; }
  .pk__acts a { display: inline-flex; align-items: center; min-height: 44px; }
  .file button { width: 44px; height: 44px; margin: -6px -6px -6px 0; font-size: 18px; }
  .tog { min-height: 44px; margin-top: 10px; }
  .rv__sec header { align-items: center; }
  .rv__sec .sb__link, .sb__prefill .sb__link { display: inline-flex; align-items: center; min-height: 44px; }
  .send__alt { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
  .send__alt .sb__link { min-height: 40px; }
  .sb__alt a { white-space: nowrap; }
}
.sb__thumb .sb__own, .pitem__img .sb__own { width: 60%; height: 60%; margin: 20%; fill: none; stroke: #8c8984; stroke-width: 1.4; stroke-linejoin: round; display: block; }
@media (max-width: 560px) { .tcard__qr { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.sb__steps[hidden], .fld[hidden] { display: none; }   /* .fld is a grid: without this the names box showed with its toggle off */
.sb__refs { margin-top: 18px; display: grid; gap: 8px; } .sb__refs .sb__label { margin: 0; }
.sb__prefill { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #fff; font-size: 14px; color: #3e3c38; } .sb__prefill .sb__link { margin-left: 6px; }
.rv__for { margin-bottom: 12px; }
.st a[href^="tel:"], .st a[href^="sms:"] { white-space: nowrap; }   /* a phone number never breaks across lines */
