/* VISUAL POLISH of the Tooth Studio (owner, 18 Nov 2026: "design, styling, gaps, lines, sections are still not 10/10 ... NO TRUST NO
   ORDERS ... do it pixel perfect, visual polishing").
   Measured before (build/measure_polish.py): 9 different corner sizes, 8 different card paddings, 10 different gaps between blocks,
   three button shapes, body text at four line-heights - left over from three style layers stacked on each other.
   This layer sets ONE system on top of them. No markup, text or logic changes. Loaded last.
   The doubled id only raises the weight of these rules above the three earlier layers. */

#dc-tooth-studio#dc-tooth-studio{
  --p-r:18px;            /* cards inside the Studio card */
  --p-rs:14px;           /* panels, fields, buttons inside a card */
  --p-pad:16px;          /* inner padding of a card */
  --p-gap:16px;          /* distance between two blocks */
  --p-line:rgba(15,61,74,.10);
  --p-sh:0 16px 36px -26px rgba(15,61,74,.36),inset 0 1px 0 #fff;
}
@media(min-width:860px){
  #dc-tooth-studio#dc-tooth-studio{--p-r:20px;--p-pad:24px;--p-gap:20px}
}

/* ---------- 1. cards: one corner, one padding, one shadow ---------- */
#dc-tooth-studio#dc-tooth-studio .ts-anchor-preview,
#dc-tooth-studio#dc-tooth-studio .ts-zk-teaser,
#dc-tooth-studio#dc-tooth-studio .ts-zk-pros,
#dc-tooth-studio#dc-tooth-studio .ts-zk-cons,
#dc-tooth-studio#dc-tooth-studio .ts-zk-order,
#dc-tooth-studio#dc-tooth-studio .ts-gap-card,
#dc-tooth-studio#dc-tooth-studio .ts-pass-cell,
#dc-tooth-studio#dc-tooth-studio .ts-two-cards .ts-pass-cell,
#dc-tooth-studio#dc-tooth-studio .ts-measure-guide{border-radius:var(--p-r);padding:var(--p-pad);box-shadow:var(--p-sh)}
#dc-tooth-studio#dc-tooth-studio .ts-arch-card,
#dc-tooth-studio#dc-tooth-studio .ts-order-card,
#dc-tooth-studio#dc-tooth-studio .ts-guide-preview{border-radius:var(--p-r);box-shadow:var(--p-sh)}
#dc-tooth-studio#dc-tooth-studio .ts-ps-gap.is-zk .ts-pass-cell{padding:0;box-shadow:none}

/* ---------- 2. one rhythm between blocks ---------- */
#dc-tooth-studio#dc-tooth-studio .ts-head-row{padding-bottom:var(--p-gap);margin-bottom:var(--p-gap)}
#dc-tooth-studio#dc-tooth-studio .ts-anchor-preview,
#dc-tooth-studio#dc-tooth-studio .ts-zk-teaser,
#dc-tooth-studio#dc-tooth-studio .ts-zk-proscons,
#dc-tooth-studio#dc-tooth-studio .ts-zk-order{margin-top:var(--p-gap)}
#dc-tooth-studio#dc-tooth-studio .ts-zk-proscons,
#dc-tooth-studio#dc-tooth-studio .ts-two-cards{gap:var(--p-gap)}
#dc-tooth-studio#dc-tooth-studio .ts-gap-card{margin-bottom:var(--p-gap)}
#dc-tooth-studio#dc-tooth-studio .ts-gap-card:last-of-type{margin-bottom:0}
#dc-tooth-studio#dc-tooth-studio .ts-pass2 .ts-guide-preview+.ts-guide-preview{margin-top:var(--p-gap)}
#dc-tooth-studio#dc-tooth-studio .ts-sec{margin-bottom:calc(var(--p-gap) + 8px)}
#dc-tooth-studio#dc-tooth-studio .ts-sec:last-child{margin-bottom:0}
#dc-tooth-studio#dc-tooth-studio .ts-zk-cta{margin-top:var(--p-gap);gap:10px}
#dc-tooth-studio#dc-tooth-studio .ts-guide-below{margin-top:calc(var(--p-gap) + 8px)}

/* ---------- 3. a box inside a card is flat: small corner, hairline, no second shadow ---------- */
#dc-tooth-studio#dc-tooth-studio .ts-way-panel{border-radius:var(--p-rs);padding:16px;box-shadow:none;border-color:var(--p-line);margin-top:12px}
#dc-tooth-studio#dc-tooth-studio .ts-way-opt{border-radius:var(--p-rs);padding:12px 14px;box-shadow:none}
#dc-tooth-studio#dc-tooth-studio .ts-way-opt.is-selected{box-shadow:0 0 0 3px rgba(47,127,152,.14)}
#dc-tooth-studio#dc-tooth-studio .ts-gap-readout,
#dc-tooth-studio#dc-tooth-studio .ts-spec-pill,
#dc-tooth-studio#dc-tooth-studio .ts-spec-models,
#dc-tooth-studio#dc-tooth-studio .ts-ruler-help,
#dc-tooth-studio#dc-tooth-studio .ts-zk-rows li,
#dc-tooth-studio#dc-tooth-studio .dc-gap-map{border-radius:var(--p-rs)}
#dc-tooth-studio#dc-tooth-studio .ts-ruler-help{box-shadow:none;padding:16px}
#dc-tooth-studio#dc-tooth-studio .ts-ruler-help .ts-ruler-steps>*{border-radius:12px}
#dc-tooth-studio#dc-tooth-studio .ts-zk-teaser img{border-radius:12px}

/* ---------- 4. buttons: one shape ---------- */
#dc-tooth-studio#dc-tooth-studio .btn,
#dc-tooth-studio#dc-tooth-studio .ts-cta-btn{border-radius:16px;min-height:54px;line-height:1.2;text-wrap:balance}
/* not inside the bottom bar: there the back button is an arrow only on phones (first pass brought its text back by mistake) */
#dc-tooth-studio#dc-tooth-studio .btn.bo:not(.ts-footer-bar .btn){font-size:16px}
#dc-tooth-studio#dc-tooth-studio .ts-spec-edit{min-height:46px;border-radius:var(--p-rs)}
#dc-tooth-studio#dc-tooth-studio .ts-zk-cta .btn{padding:14px 18px;font-size:16px}
#dc-tooth-studio#dc-tooth-studio .ts-stepper-row button{border-radius:12px}
#dc-tooth-studio#dc-tooth-studio .ts-stepper-row input{border-radius:12px}

/* ---------- 5. text: one line-height for reading text, clear steps between sizes ---------- */
#dc-tooth-studio#dc-tooth-studio .ts-card p,
#dc-tooth-studio#dc-tooth-studio .ts-card li,
#dc-tooth-studio#dc-tooth-studio .ts-card dd,
#dc-tooth-studio#dc-tooth-studio .ts-card dt{line-height:1.55}
#dc-tooth-studio#dc-tooth-studio .ts-eyebrow,
#dc-tooth-studio#dc-tooth-studio .ts-anchor-kicker,
#dc-tooth-studio#dc-tooth-studio .ts-zk-kicker,
#dc-tooth-studio#dc-tooth-studio .ts-guide-kicker,
#dc-tooth-studio#dc-tooth-studio .ts-passport-kicker,
#dc-tooth-studio#dc-tooth-studio .ts-spec-label{line-height:1.4}
#dc-tooth-studio#dc-tooth-studio .ts-zk-teaser span:not(.ts-zk-kicker){font-size:16px;line-height:1.5}
#dc-tooth-studio#dc-tooth-studio .ts-way-opt strong{font-size:16.5px;line-height:1.25}
#dc-tooth-studio#dc-tooth-studio .ts-way-opt em{font-size:14.5px;line-height:1.4;margin-top:3px}
#dc-tooth-studio#dc-tooth-studio .ts-way-q{margin-bottom:10px}
#dc-tooth-studio#dc-tooth-studio .ts-chosen{gap:8px;margin-top:10px}
#dc-tooth-studio#dc-tooth-studio .ts-chosen-note{margin-top:10px}

/* ---------- 6. small things that looked unfinished ---------- */
/* the hint under the tooth map was a pill that broke into two lines: plain centred helper text */
#dc-tooth-studio#dc-tooth-studio .ai-aurora-mouth-instruction{margin-top:10px;text-align:center}
#dc-tooth-studio#dc-tooth-studio .ai-aurora-mouth-instruction span{display:block;background:none;border:0;box-shadow:none;padding:0;border-radius:0;font-size:14px;line-height:1.45;font-weight:600;color:#567380;white-space:normal;text-wrap:balance}
#dc-tooth-studio#dc-tooth-studio .ts-jaw-legend{margin-top:8px;justify-content:center}
#dc-tooth-studio#dc-tooth-studio .ts-quick-pills{margin-top:var(--p-gap);padding-top:var(--p-gap);gap:8px}
/* price pill never squeezes the heading */
#dc-tooth-studio#dc-tooth-studio .ts-anchor-head{gap:10px 14px}
#dc-tooth-studio#dc-tooth-studio .ts-price-pill{white-space:nowrap}

@media(max-width:640px){
  #dc-tooth-studio#dc-tooth-studio .ts-card{padding:20px 14px}
  /* the check page header: title, then the price with its note under it, all from the left edge */
  #dc-tooth-studio#dc-tooth-studio .ts-order-card .ts-passport-header{flex-direction:column;align-items:flex-start;gap:10px;padding:18px}
  #dc-tooth-studio#dc-tooth-studio .ts-passport-price{text-align:left;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;width:100%}
  #dc-tooth-studio#dc-tooth-studio .ts-passport-price small{flex:1 1 180px;line-height:1.4;text-align:left}
  /* the order button in the bottom bar stays on one line */
  #dc-tooth-studio#dc-tooth-studio .ts-footer-bar .ts-cta-btn{font-size:15.5px;padding:12px 10px;letter-spacing:-.01em}
  #dc-tooth-studio#dc-tooth-studio .ts-way-ico{width:40px;height:40px;flex:none}
  #dc-tooth-studio#dc-tooth-studio .ts-spec-row{row-gap:12px}
  #dc-tooth-studio#dc-tooth-studio .ts-way-label{font-size:16px}
  #dc-tooth-studio#dc-tooth-studio .ts-way-panel{padding:14px}
}

/* the step tabs sit concentric inside their bar */
#dc-tooth-studio#dc-tooth-studio .ts-stepper .ts-step{border-radius:14px}

/* the gap picture was a bright royal-blue block from the old checkout: in the Studio it takes the site's own deep teal */
#dc-tooth-studio#dc-tooth-studio .dc-gap-map{background:radial-gradient(ellipse at 62% 38%,#2f7186 0%,#1d4552 60%,#16333c 100%)}

/* ---------- 7. second pass, phone screens looked at one by one (18 Nov) ---------- */
/* no single word left alone on the last line */
#dc-tooth-studio#dc-tooth-studio .ts-card p,
#dc-tooth-studio#dc-tooth-studio .ts-card li{text-wrap:pretty}
#dc-tooth-studio#dc-tooth-studio .ts-eyebrow,
#dc-tooth-studio#dc-tooth-studio .ts-guide-kicker,
#dc-tooth-studio#dc-tooth-studio .ts-spec-label{text-wrap:balance}
/* the order header: the decorative wave ran through the product name like a strike-through. Clean deep teal with one soft light. */
#dc-tooth-studio#dc-tooth-studio .ts-passport-header{background:radial-gradient(120% 150% at 100% 0%,rgba(255,255,255,.13) 0%,rgba(255,255,255,0) 58%),var(--grad2)}
@media(max-width:640px){
  /* the guide preview: three real pictures across the card instead of three 48 px stamps */
  #dc-tooth-studio#dc-tooth-studio .ts-guide-toggle{display:flex;flex-direction:column;align-items:stretch;gap:12px;text-align:left}
  #dc-tooth-studio#dc-tooth-studio .ts-guide-toggle-right{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%}
  #dc-tooth-studio#dc-tooth-studio .ts-guide-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}
  #dc-tooth-studio#dc-tooth-studio .ts-guide-thumbs img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:10px;margin:0}
  #dc-tooth-studio#dc-tooth-studio .ts-guide-thumbs img:nth-child(n+4){display:none}
}

/* the zirconia photo guide is a box inside a card: flat like the others, gold hairline kept, and less padding eaten on a phone */
#dc-tooth-studio#dc-tooth-studio .ts-zk-wiz{border-radius:var(--p-rs);box-shadow:none;border-width:1px;margin-top:var(--p-gap)}
#dc-tooth-studio#dc-tooth-studio .ts-zk-wiz .ts-zk-fig img{border-radius:12px}
@media(max-width:640px){
  #dc-tooth-studio#dc-tooth-studio .ts-zk-wiz{padding:14px}
  #dc-tooth-studio#dc-tooth-studio .ts-zk-wiz .ts-zk-rows li{padding:12px 12px 12px 40px}
}

/* the way out of the zirconia photos: the classic crown offer */
#dc-tooth-studio#dc-tooth-studio .ts-zk-alt{margin-top:var(--p-gap);padding:16px;border:1px solid var(--p-line);border-radius:var(--p-rs);background:#f4f9fb}
#dc-tooth-studio#dc-tooth-studio .ts-zk-alt p{margin:0 0 12px;font-size:15.5px;line-height:1.55;color:#2c4853}
#dc-tooth-studio#dc-tooth-studio .ts-zk-alt p strong{color:#12323c}
#dc-tooth-studio#dc-tooth-studio .ts-zk-alt .btn{width:100%}
#dc-tooth-studio#dc-tooth-studio .ts-zk-alt+.ts-zk-nav{margin-top:12px}
/* the photo guide's own button row on a phone: one tidy row like the bottom bar - back arrow + main button; a button alone takes the row */
#dc-tooth-studio#dc-tooth-studio .ts-zk-wiz .ts-alert+.ts-zk-rows{margin-top:10px}
@media(max-width:640px){
  #dc-tooth-studio#dc-tooth-studio .ts-zk-nav{flex-wrap:nowrap;align-items:stretch;gap:10px}
  #dc-tooth-studio#dc-tooth-studio .ts-zk-nav .btn.ts-cta-btn{flex:1;width:auto;min-width:0;padding:12px 14px}
  #dc-tooth-studio#dc-tooth-studio .ts-zk-nav .btn:only-child{flex:1;width:auto}
  #dc-tooth-studio#dc-tooth-studio .ts-zk-nav .btn.bo:not(:only-child){flex:none;width:54px;min-width:54px;padding:0;font-size:0;gap:0}
  #dc-tooth-studio#dc-tooth-studio .ts-zk-nav .btn.bo:not(:only-child)::before{content:"←";font-size:21px;font-weight:800;line-height:1}
}

/* ---------- 9. PC pass, real 1400 px screens looked at one by one (18 Nov) ---------- */
@media(min-width:860px){
  /* zirconia page: the two choices were two stacked buttons of different widths; now two equal buttons side by side */
  #dc-tooth-studio#dc-tooth-studio .ts-zk-cta{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;align-items:stretch;max-width:840px;margin-left:auto;margin-right:auto}
  #dc-tooth-studio#dc-tooth-studio .ts-zk-cta .btn{min-width:0;width:100%}
  #dc-tooth-studio#dc-tooth-studio .ts-zk-cta > :not(.btn){grid-column:1/-1;justify-self:center}
  /* the gap picture filled a whole PC screen with a dark panel: a compact figure, the choice under it stays on the same screen */
  #dc-tooth-studio#dc-tooth-studio .ts-gap-map-wrap{max-width:540px;margin-left:auto;margin-right:auto}
  #dc-tooth-studio#dc-tooth-studio .ts-head-row p{text-wrap:balance}
  /* check page: the width boxes of all teeth stand in one line */
  #dc-tooth-studio#dc-tooth-studio .ts-spec-pill{justify-self:stretch}
  /* guide preview pictures a little bigger */
  #dc-tooth-studio#dc-tooth-studio .ts-guide-thumbs img{width:64px;height:46px;border-radius:9px}
}

/* ==== 10. Denticor 3D AI asks which place is on the photos (audit 18 Nov) ==== */
#dc-tooth-studio#dc-tooth-studio .ts-zk-ask{margin-top:var(--p-gap);padding:16px;border:1px solid rgba(190,150,60,.45);border-radius:var(--p-rs);background:#fdf6e4;display:flex;flex-direction:column;gap:10px}
#dc-tooth-studio#dc-tooth-studio .ts-zk-ask>strong{font-size:18px;line-height:1.3;color:#3d2f0a}
#dc-tooth-studio#dc-tooth-studio .ts-zk-ask p{margin:0;font-size:15.5px;line-height:1.55;color:#4a3a10;text-wrap:pretty}
#dc-tooth-studio#dc-tooth-studio .ts-zk-ask p b{color:#2e2306}
#dc-tooth-studio#dc-tooth-studio .ts-zk-ask .btn{width:100%;white-space:normal;text-align:center}
#dc-tooth-studio#dc-tooth-studio .ts-zk-ask .ts-zk-small{font-size:13.5px;color:#6a5a2c}
#dc-tooth-studio#dc-tooth-studio .ts-zk-wiz .ts-alert+.ts-zk-nav{margin-top:12px}
@media(min-width:860px){#dc-tooth-studio#dc-tooth-studio .ts-zk-ask{max-width:640px}}
#dc-tooth-studio#dc-tooth-studio .ts-zk-stopnav{display:flex;flex-direction:column;gap:10px;margin-top:12px}
#dc-tooth-studio#dc-tooth-studio .ts-zk-stopnav .btn{width:100%;white-space:normal;text-align:center}
@media(min-width:860px){#dc-tooth-studio#dc-tooth-studio .ts-zk-stopnav{flex-direction:row}#dc-tooth-studio#dc-tooth-studio .ts-zk-stopnav .btn{width:auto;flex:1}}
