/* Tap cards: the designer and its page. Loads after /workshop/workshop.css and uses its palette and fonts. */

.tc-wrap{max-width:1560px; margin:0 auto; padding:0 3vw; position:relative}
.tc-intro{padding-top:5vh; padding-bottom:3vh}
.tc-intro h2{font-family:var(--display); font-weight:400; font-size:clamp(30px,3.4vw,44px); margin:0 0 .2em; color:var(--moon)}
.tc-intro p{margin:0; max-width:62ch; color:#c2ccc6}

/* =====================================================================
   THE STUDIO: tools on the left, the card in the middle, the order on the right
   ===================================================================== */
.studio{display:grid; grid-template-columns:88px 304px minmax(0,1fr) 348px; grid-template-areas:"rail panel stage order";
  border:1px solid var(--line-2); border-radius:6px; background:var(--night-2); overflow:hidden; scroll-margin-top:16px;
  box-shadow:0 40px 80px -50px #000}

.tc-rail{grid-area:rail; display:flex; flex-direction:column; background:#070b0e; border-right:1px solid var(--line)}
.tc-rail button{display:flex; flex-direction:column; align-items:center; gap:7px; padding:15px 4px 12px; background:none; border:0; border-left:3px solid transparent;
  color:var(--fog); font-family:var(--type); font-size:12.5px; letter-spacing:.08em; cursor:pointer; transition:color .2s ease, background .2s ease}
.tc-rail svg{width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.tc-rail button:hover:not(:disabled){color:var(--moon); background:#ffffff08}
.tc-rail button[aria-selected="true"]{color:var(--moon); background:var(--night-2); border-left-color:var(--iris-lt)}
.tc-rail button:disabled{opacity:.32; cursor:default}

.tc-panel{grid-area:panel; padding:22px 18px 26px; border-right:1px solid var(--line); overflow-y:auto; height:0; min-height:100%; /* fills the row without stretching it */ scrollbar-width:thin; scrollbar-color:var(--line-2) transparent}
.tc-panel h3{font-family:var(--display); font-weight:400; font-size:25px; line-height:1.1; margin:0 0 10px; color:var(--moon)}
.tc-help{margin:0 0 14px; font-size:16.5px; line-height:1.45; color:var(--fog)}
.tc-big{display:block; width:100%; text-align:left; margin:0 0 10px; padding:13px 14px; background:var(--steel); border:1px solid var(--line-2); border-radius:4px;
  color:var(--moon); cursor:pointer; transition:border-color .2s ease, background .2s ease}
.tc-big:hover{border-color:var(--iris-lt); background:var(--steel-2)}
.tc-big b{display:block; font-weight:400}
.tc-big small{display:block; margin-top:2px; font-family:var(--type); font-size:12.5px; letter-spacing:.1em; color:var(--fog-2)}
.tc-big.h1 b{font-family:var(--display); font-size:27px; line-height:1.1}
.tc-big.h2 b{font-family:var(--body); font-weight:600; font-size:20px}
.tc-big.h3 b{font-family:var(--type); font-size:13px; letter-spacing:.16em}
.tc-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:0 0 14px}
.tc-grid button{aspect-ratio:1/1; display:grid; place-items:center; background:var(--steel); border:1px solid var(--line-2); border-radius:4px; color:var(--moon); cursor:pointer;
  transition:border-color .2s ease, background .2s ease}
.tc-grid button:hover{border-color:var(--iris-lt); background:var(--steel-2)}
.tc-grid svg{width:54%; height:54%; fill:currentColor; stroke:currentColor; stroke-width:0}
.tc-grid svg.s{fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
.tc-upload{display:block; text-align:center; padding:22px 14px; margin:0 0 12px; border:1px dashed var(--iris-mid); border-radius:4px; background:#5b3f7a1f; color:var(--moon); cursor:pointer;
  font-family:var(--type); font-size:13.5px; letter-spacing:.14em; transition:background .2s ease, border-color .2s ease}
.tc-upload:hover{background:#5b3f7a3a; border-color:var(--iris-lt)}
.tc-upload small{display:block; margin-top:6px; font-size:12.5px; letter-spacing:.08em; color:var(--fog)}
.tc-upload input{position:absolute; width:1px; height:1px; opacity:0; pointer-events:none}
.tc-upload:focus-within{outline:2px solid var(--iris-lt); outline-offset:3px}
.tc-msg{min-height:1em; margin:0 0 10px; font-size:16.5px; color:#f0a9a0}
.tc-msg:empty{display:none}
.tc-label{margin:18px 0 10px; font-family:var(--type); font-size:12.5px; letter-spacing:.2em; color:var(--fog-2)}

.tc-tpls{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.tc-tpl{padding:0; background:none; border:0; cursor:pointer; text-align:left; color:var(--fog)}
.tc-tpl canvas{display:block; width:100%; height:auto; border-radius:4px; border:1px solid var(--line-2); transition:border-color .2s ease, transform .25s ease}
.tc-tpl:hover canvas{border-color:var(--iris-lt); transform:translateY(-2px)}
.tc-tpl span{display:block; margin-top:6px; font-family:var(--type); font-size:12.5px; letter-spacing:.1em}

/* the form fields of the edit and color panels */
.tc-f{display:block; margin:0 0 16px}
.tc-f > span{display:flex; justify-content:space-between; gap:10px; margin:0 0 7px; font-family:var(--type); font-size:12.5px; letter-spacing:.16em; color:var(--fog-2)}
.tc-f output{color:var(--moon); letter-spacing:.06em}
.tc-f textarea,.tc-f select,.tc-f input[type="text"],.tc-order input[type="url"],.tc-order input[type="text"]{
  width:100%; background:#080d11; border:1px solid var(--line-2); border-radius:3px; color:var(--moon); padding:10px 12px;
  font-family:var(--body); font-size:18px; line-height:1.35}
.tc-f textarea{resize:vertical; min-height:74px}
.tc-f textarea:focus,.tc-f select:focus,.tc-f input:focus,.tc-order input:focus{outline:2px solid var(--iris-lt); outline-offset:1px; border-color:var(--iris-lt)}
.tc-f input[type="range"]{width:100%; accent-color:var(--iris-lt); margin:0}
.tc-seg{display:flex; gap:8px}
.tc-seg button,.tc-mini,.tc-tools button{flex:1; font-family:var(--type); font-size:12.5px; letter-spacing:.1em; color:var(--moon); background:var(--steel); border:1px solid var(--line-2);
  border-radius:3px; padding:9px 8px 8px; cursor:pointer; transition:border-color .2s ease, background .2s ease}
.tc-seg button:hover,.tc-mini:hover,.tc-tools button:hover:not(:disabled){border-color:var(--iris-lt)}
.tc-seg button[aria-pressed="true"]{background:var(--iris); border-color:var(--iris-lt)}
.tc-seg button.warn{color:#f0a9a0}
.tc-end{margin-top:22px; padding-top:18px; border-top:1px dashed var(--line-2)}
.tc-inks{display:grid; gap:8px}
.tc-inks button{display:flex; align-items:center; gap:10px; font-family:var(--type); font-size:12.5px; letter-spacing:.12em; color:var(--moon); background:var(--steel);
  border:1px solid var(--line-2); border-radius:3px; padding:8px 10px; cursor:pointer}
.tc-inks button[aria-pressed="true"]{border-color:var(--iris-lt); background:#5b3f7a40}
.tc-inks i{width:22px; height:22px; border-radius:50%; border:1px solid #ffffff55; flex:none}
.tc-swatches{display:grid; grid-template-columns:repeat(6,1fr); gap:8px}
.tc-swatches button{aspect-ratio:1/1; border-radius:50%; border:1px solid #ffffff40; cursor:pointer; padding:0; transition:transform .15s ease}
.tc-swatches button:hover{transform:scale(1.1)}
.tc-swatches button[aria-pressed="true"]{box-shadow:0 0 0 2px var(--night-2), 0 0 0 4px var(--iris-lt)}

/* the card itself */
.tc-stagewrap{grid-area:stage; display:flex; flex-direction:column; min-width:0;
  background:radial-gradient(70% 80% at 50% 45%, #1b262c, #0b1116 78%)}
.tc-tools{display:flex; align-items:center; gap:8px; padding:12px 14px; border-bottom:1px solid var(--line); background:#0b111699}
.tc-tools button{flex:none; padding:8px 12px 7px}
.tc-tools button:disabled{opacity:.35; cursor:default}
.tc-tools .gap{flex:1}
.tc-tools .face{font-family:var(--type); font-size:12.5px; letter-spacing:.16em; color:var(--fog-2)}
#stage{display:block; width:100%; flex:1 1 0; height:0; min-height:clamp(330px,56vh,600px); touch-action:none; outline-offset:-3px}
.tc-foot{display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 18px; padding:11px 16px; border-top:1px solid var(--line); background:#0b111699;
  font-family:var(--type); font-size:12.5px; letter-spacing:.1em; color:var(--fog-2)}
.tc-foot .key{display:inline-flex; align-items:center; gap:8px}
.tc-foot .key::before{content:""; width:22px; border-top:1px dashed var(--fog)}
.tc-foot .key.red::before{height:9px; border:0; background:repeating-linear-gradient(45deg,#ff2424 0 3px,#ffe8e4 3px 6px)}

/* more than one design in a pack: thumbnails under the card, hidden until a second design exists */
.tc-designs{padding:10px 14px 12px; border-top:1px solid var(--line); background:#0b111699}
.tc-drow{display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start}
.tc-dthumb{padding:0; background:none; border:0; cursor:pointer; color:var(--fog-2); text-align:center}
.tc-dthumb canvas{display:block; width:84px; height:auto; border-radius:3px; border:1px solid var(--line-2)}
.tc-dthumb[aria-pressed="true"] canvas{border-color:var(--iris-lt); box-shadow:0 0 0 2px var(--iris-lt)}
.tc-dthumb span{display:block; margin-top:6px; font-family:var(--type); font-size:12.5px; letter-spacing:.06em}
.tc-dthumb[aria-pressed="true"] span{color:var(--moon)}
.tc-dadd{font-family:var(--type); font-size:12.5px; letter-spacing:.12em; color:var(--fog); background:transparent; border:1px dashed var(--line-2);
  border-radius:3px; padding:9px 12px 8px; cursor:pointer; transition:color .2s ease, border-color .2s ease}
.tc-designs.multi .tc-dadd{width:84px; height:49px; padding:0}
.tc-dadd:hover{color:var(--moon); border-color:var(--iris-lt)}
.tc-dctl{display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:12px; font-family:var(--type); font-size:12.5px; letter-spacing:.12em; color:var(--fog)}
.tc-dctl b{font-weight:400; color:var(--moon); min-width:24px; text-align:center; font-size:16px; letter-spacing:0}
.tc-dctl .gap{flex:1}
.tc-dctl button{font-family:var(--type); font-size:12.5px; letter-spacing:.1em; color:var(--moon); background:var(--steel); border:1px solid var(--line-2);
  border-radius:3px; padding:7px 12px 6px; cursor:pointer}
.tc-dctl button:hover:not(:disabled){border-color:var(--iris-lt)}
.tc-dctl button:disabled{opacity:.35; cursor:default}
.tc-dmsg{margin:10px 0 0; font-size:16.5px; line-height:1.4; color:#e3bd82}
.tc-shared{color:#e3bd82}
.tc-qtys label.off{opacity:.38; cursor:default}
.tc-qtys label.off:hover{border-color:var(--line-2)}
.tc-feeline{margin:18px 0 -12px; font-family:var(--type); font-size:12.5px; letter-spacing:.06em; color:var(--fog); white-space:pre-wrap}
.pv-nav{position:absolute; left:0; right:0; bottom:14px; display:flex; justify-content:center; align-items:center; gap:14px;
  font-family:var(--type); font-size:12.5px; letter-spacing:.16em; color:var(--moon)}
.pv-nav[hidden]{display:none}
.pv-nav button{font-size:18px; line-height:1; color:var(--moon); background:#0b1116cc; border:1px solid var(--line-2); border-radius:3px; width:40px; height:34px; cursor:pointer}
.pv-nav button:hover{border-color:var(--iris-lt)}

/* the order */
.tc-order{grid-area:order; padding:22px 20px 24px; border-left:1px solid var(--line); background:linear-gradient(180deg, var(--steel-2), var(--steel))}
.tc-steps{display:flex; gap:6px; margin:0 0 18px; padding:0; list-style:none; font-family:var(--type); font-size:12.5px; letter-spacing:.1em; color:var(--fog-2)}
.tc-steps li{flex:1; padding:7px 4px 6px; text-align:center; border-bottom:2px solid var(--line-2)}
.tc-steps li.on{color:var(--moon); border-bottom-color:var(--iris-lt)}
.tc-order h3{font-family:var(--type); font-weight:400; font-size:12.5px; letter-spacing:.2em; color:var(--iris-lt); margin:20px 0 9px}
.tc-order h3:first-of-type{margin-top:0}
.tc-order > div + div{margin-top:22px}
.tc-note{margin:7px 0 0; font-size:16px; line-height:1.4; color:var(--fog); overflow-wrap:anywhere}
.tc-note.good{color:#a9d6a0} .tc-note.warn{color:#f0a9a0}
.tc-qtys{display:grid; gap:7px}
.tc-qtys label{display:flex; align-items:center; gap:11px; padding:5px 12px; border:1px solid var(--line-2); border-radius:3px; cursor:pointer; transition:border-color .2s ease, background .2s ease}
.tc-qtys label:hover{border-color:var(--iris-lt)}
.tc-qtys label:has(input:checked){border-color:var(--iris-lt); background:#5b3f7a33}
.tc-qtys input{accent-color:var(--iris-lt); margin:0}
.tc-qtys span{flex:1; line-height:1.2}
.tc-qtys span b{font-weight:400; color:var(--moon-2); font-size:18.5px}
.tc-qtys small{display:block; font-family:var(--type); font-size:12.5px; letter-spacing:.08em; color:var(--fog-2)}
.tc-qtys label > b{font-family:var(--type); font-weight:400; font-size:16px; letter-spacing:.04em; color:var(--moon)}

.tc-check{padding:12px 14px; border-radius:3px; border:1px solid var(--line-2); border-left-width:3px; background:#0b111680}
.tc-check b{display:block; font-family:var(--type); font-weight:400; font-size:13px; letter-spacing:.14em; color:var(--moon)}
.tc-check span{display:block; margin-top:4px; font-size:16px; line-height:1.4; color:#c2ccc6}
.tc-check.ok{border-left-color:#8fce83} .tc-check.ok b{color:#a9d6a0}
.tc-check.fit{border-left-color:var(--honey)} .tc-check.fit b{color:#e3bd82}
.tc-check.bad{border-left-color:#ff3b30; background:#ff3b3014} .tc-check.bad b{color:#ff9d94}
.tc-check.busy b{color:var(--fog)}
.tc-issues{list-style:none; margin:8px 0 0; padding:0}
.tc-issues li{display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px dashed var(--line-2); font-size:16px; line-height:1.35; color:#c2ccc6}
.tc-issues li span{flex:1}
.tc-issues b{font-weight:500; color:var(--moon-2)}
.tc-mini{flex:none}
.tc-toggle{display:flex; align-items:flex-start; gap:10px; margin:12px 0 0; font-size:16px; line-height:1.35; color:#c2ccc6; cursor:pointer}
.tc-toggle input{accent-color:var(--iris-lt); margin:4px 0 0; flex:none}
.tc-total{display:flex; align-items:baseline; justify-content:space-between; margin:22px 0 12px; padding-top:16px; border-top:1px solid var(--line-2)}
.tc-total b{font-family:var(--type); font-weight:400; font-size:27px; color:var(--moon)}
.tc-total span{font-family:var(--type); font-size:12.5px; letter-spacing:.14em; color:var(--fog-2)}
.tc-go{width:100%; font-size:15.5px; letter-spacing:.16em; padding:15px 18px}
.tc-order .shipnote{text-align:center}

/* =====================================================================
   THE PRINT PREVIEW
   ===================================================================== */
body.pv-open{overflow:hidden}
.pv{position:fixed; inset:0; z-index:90; background:#05090c; overflow-y:auto; padding:3vh 3vw}
.pv[hidden]{display:none}
.pv-in{position:relative; max-width:1320px; min-height:94vh; margin:0 auto; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:3vw; align-items:center}
.pv .crateclose{position:absolute; top:0; right:0; z-index:2}
.pv-stage{position:relative; perspective:1300px; padding:8vh 3vw; border-radius:6px; min-height:340px; display:grid; place-items:center;
  background:radial-gradient(60% 70% at 50% 40%, #2a383f, #0b1116 75%)}
.pv-card{position:relative; width:min(100%, 760px); aspect-ratio:88.9/50.8; border-radius:3.6% / 6.3%; overflow:visible;
  box-shadow:0 30px 50px -12px rgba(0,0,0,.75);
  transform:rotateX(9deg) rotateY(-13deg); transform-style:preserve-3d; transition:transform .25s ease-out; will-change:transform}
.pv-card canvas{display:block; width:100%; height:100%; border-radius:inherit}
.pv-busy{position:absolute; inset:0; display:none; place-items:center; margin:0; font-family:var(--type); font-size:13.5px; letter-spacing:.2em; color:var(--fog)}
.pv-stage.busy .pv-busy{display:grid}
.pv-stage.busy .pv-card{opacity:0}
.pv-side h2{font-family:var(--display); font-weight:400; font-size:clamp(30px,3.2vw,44px); line-height:1.06; margin:.2em 0 .35em; color:var(--moon)}
.pv-disc{margin:0 0 16px; padding:12px 14px; border-left:2px solid var(--iris-lt); background:#5b3f7a22; font-size:17.5px; line-height:1.45; color:var(--moon-2)}
.pv-side ul{list-style:none; margin:0 0 14px; padding:0; border-top:1px dashed var(--line-2)}
.pv-side li{display:flex; gap:14px; padding:8px 0; border-bottom:1px dashed var(--line-2); font-size:17.5px; line-height:1.35; color:var(--moon-2); overflow-wrap:anywhere}
.pv-side li span{flex:0 0 112px; font-family:var(--type); font-size:12.5px; letter-spacing:.14em; color:var(--fog-2); padding-top:3px}
.pv-side li em{color:#f0a9a0}
.pv-fit,.pv-warn{margin:0 0 12px; font-size:17px; line-height:1.4}
.pv-fit{color:#e3bd82} .pv-warn{color:#ff9d94}
.pv-fit[hidden],.pv-warn[hidden],.pv-side label[hidden],.pv-done[hidden]{display:none}
.pv-side label{display:flex; align-items:flex-start; gap:10px; margin:0 0 10px; font-size:18px; line-height:1.35; color:var(--moon-2); cursor:pointer}
.pv-side label input{accent-color:var(--iris-lt); margin:5px 0 0; flex:none; width:17px; height:17px}
.pv-need{min-height:1em; margin:0 0 10px; font-size:16.5px; color:#f0a9a0}
.pv-need:empty{display:none}
.pv-btns{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}
.pv-btns .add{font-size:15px; padding:14px 20px}
.pv-btns .ghost{font-family:var(--type); font-size:13.5px; letter-spacing:.14em; color:var(--moon); background:transparent; border:1px solid var(--line-2); border-radius:3px; padding:13px 16px; cursor:pointer}
.pv-btns .ghost:hover{border-color:var(--iris-lt)}
.pv-safe{margin:14px 0 0; font-family:var(--type); font-size:12px; letter-spacing:.14em; line-height:1.7; color:var(--fog-2)}
.pv-done{margin:14px 0 0; padding:12px 14px; border:1px solid #ff9d94; border-radius:3px; font-size:17px; line-height:1.45; color:#ff9d94}

/* =====================================================================
   BELOW THE STUDIO: uses, the price sheet, how it works
   ===================================================================== */
.tc-sec{padding-top:10vh}
.tc-sec h2{font-family:var(--display); font-weight:400; font-size:clamp(30px,3.4vw,44px); margin:0 0 .25em; color:var(--moon)}
.tc-sec > p{max-width:62ch; color:#c2ccc6; margin:0 0 28px}
.uses{display:grid; grid-template-columns:repeat(auto-fill, minmax(min(330px,100%),1fr)); gap:18px}
.use{display:flex; flex-direction:column; border:1px solid var(--line); border-radius:4px; padding:20px 22px 20px; background:linear-gradient(180deg, var(--steel-2), var(--steel))}
.use h3{font-family:var(--display); font-weight:400; font-size:25px; line-height:1.1; margin:0 0 8px; color:var(--moon)}
.use p{margin:0 0 16px; font-size:18px; line-height:1.45; color:#c2ccc6; flex:1}
.use button{align-self:flex-start; background:none; border:0; padding:0; cursor:pointer; font-family:var(--type); font-size:13px; letter-spacing:.16em; color:var(--iris-lt)}
.use button:hover{color:var(--moon)}
.moreuses{margin:22px 0 0; font-size:18.5px; color:var(--fog); max-width:70ch}

.sheet{width:100%; max-width:760px; border-collapse:collapse; font-size:19px}
.sheet th,.sheet td{text-align:left; padding:13px 14px; border-bottom:1px dashed var(--line-2)}
.sheet thead th{font-family:var(--type); font-weight:400; font-size:12.5px; letter-spacing:.2em; color:var(--fog-2); border-bottom:1px solid var(--line-2)}
.sheet tbody th{font-family:var(--body); font-weight:500; color:var(--moon-2)}
.sheet td{font-family:var(--type); font-size:16.5px; letter-spacing:.04em; color:var(--moon)}
.sheet td:last-child{color:var(--iris-lt); font-size:13.5px; letter-spacing:.1em}
.sheetnote{margin:18px 0 0; font-size:18px; color:var(--fog); max-width:62ch}
.sheetnote a{color:var(--moon)}

@media (max-width:1240px){
  .studio{grid-template-columns:88px 290px minmax(0,1fr); grid-template-areas:"rail panel stage" "order order order"}
  .tc-order{border-left:0; border-top:1px solid var(--line); display:grid; grid-template-columns:1fr 1fr; gap:0 34px; align-items:start}
  .tc-steps{grid-column:1/-1}
  .tc-order > div + div{margin-top:0}
}
@media (max-width:860px){
  .studio{grid-template-columns:minmax(0,1fr); grid-template-areas:"stage" "rail" "panel" "order"}
  .tc-rail{flex-direction:row; overflow-x:auto; scrollbar-width:none; border-right:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
  .tc-rail button{flex:1 0 76px; border-left:0; border-bottom:3px solid transparent; padding:11px 4px 9px}
  .tc-rail button[aria-selected="true"]{border-bottom-color:var(--iris-lt)}
  .tc-panel{border-right:0; height:auto; min-height:0}
  .tc-order{display:block}
  #stage{flex:none; height:clamp(250px,62vw,420px); min-height:0}
  .tc-tools{flex-wrap:wrap}
  .tc-tools .face{display:none}
  .pv-in{grid-template-columns:1fr; align-items:start; padding-top:54px}
  .pv-stage{padding:5vh 5vw; min-height:0}
}
@media (prefers-reduced-motion:reduce){
  .pv-card{transition:none}
  .tc-tpl canvas,.tc-swatches button{transition:none}
}
