/* ===== Agent side, rebuilt to match design/agent-preview-r1 (Austin approved Nov 5) =====
   Everything is scoped under .pp (page wrapper, and the overlays that live on <body>) so the office and ProCasa screens are untouched.
   Text floor: 15px for words, 13px for mono labels (the app's rule), so a few preview sizes of 12.5 to 14 are 13 to 15 here. */
.portal:has(.pp) .p-top .in, .portal:has(.bk) .p-top .in, .portal:has(.pp) .p-main { max-width: 1240px; }
.portal:has(.pp) .p-main { padding-top: 28px; }
.pp { --pp-mute: var(--ink-3); --pp-stage: var(--wall); --pp-shadow: 0 1px 2px rgba(16,24,40,.12), 0 8px 24px rgba(16,24,40,.10); --pp-mint: #7bdfc6; color: var(--ink); font-size: 16px; line-height: 1.5; }
.pp * { box-sizing: border-box; }
.pp h1 { font-size: 30px; line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 600; }
.pp h2 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: 0; }
.pp .sub { color: var(--ink-2); margin-top: 4px; font-size: 16px; font-weight: 400; }
.pp .mono { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.pp .btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); padding: 9px 16px; font-weight: 600; font-size: 15px; height: auto; min-height: 42px; text-decoration: none; justify-content: center; }
.pp .btn:hover { opacity: .9; background: var(--accent); }
.pp .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); opacity: 1; }
.pp .btn.ghost:hover { border-color: var(--ink-2); background: transparent; }
.pp .btn.sm { min-height: 36px; padding: 6px 12px; font-size: 15px; height: auto; }
.pp .btn:disabled { opacity: .4; cursor: not-allowed; }
.pp .link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font-size: inherit; cursor: pointer; }
.pp .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pp .sechd { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin: 36px 0 16px; }
.pp .sechd:first-of-type { margin-top: 0; }
.pp .sechd .mono { color: var(--pp-mute); }
.pp .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.pp .card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); min-width: 0; }
.pp .stage { background: var(--pp-stage); height: 280px; display: flex; align-items: center; justify-content: center; padding: 18px; position: relative; border: 0; width: 100%; cursor: zoom-in; overflow: hidden; text-decoration: none; }
.pp .stage canvas { max-width: 100%; box-shadow: var(--pp-shadow); display: block; transition: transform .2s; background: transparent; }
.pp .stage:hover canvas { transform: translateY(-3px); }
.pp .stage .view { position: absolute; right: 10px; bottom: 10px; background: rgba(17,20,24,.78); color: #fff; font-size: 13px; padding: 4px 8px; border-radius: 4px; opacity: 0; transition: opacity .15s; }
.pp .stage:hover .view, .pp .stage:focus-visible .view { opacity: 1; }
.pp .fan { position: relative; width: 100%; height: 100%; }
.pp .fan canvas { position: absolute; top: 50%; left: 50%; max-width: 62%; }
.pp .fan canvas:nth-child(1) { transform: translate(-78%,-50%) rotate(-5deg); }
.pp .fan canvas:nth-child(2) { transform: translate(-22%,-46%) rotate(4deg); }
.pp .stage:hover .fan canvas:nth-child(1) { transform: translate(-80%,-52%) rotate(-6deg); }
.pp .stage:hover .fan canvas:nth-child(2) { transform: translate(-20%,-48%) rotate(5deg); }
.pp .cb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pp .eyebrow { color: var(--pp-mute); }
.pp .ct { font-weight: 600; font-size: 17px; line-height: 1.3; }
.pp .cd { color: var(--ink-2); font-size: 15px; }
.pp .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.pp .done { color: var(--ink); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp .dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; }
/* coming up */
.pp .cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.pp .calc { display: grid; grid-template-columns: 52px 84px minmax(0,1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.pp .calc .d { text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.pp .calc .d b { display: block; font-size: 24px; line-height: 1; }
.pp .calc .th { height: 64px; display: flex; align-items: center; justify-content: center; background: var(--pp-stage); border-radius: 4px; border: 0; padding: 6px; cursor: zoom-in; overflow: hidden; }
.pp .calc .th canvas { max-height: 100%; max-width: 100%; box-shadow: var(--pp-shadow); }
@media (max-width: 520px) { .pp .calc { grid-template-columns: 52px 72px 1fr; } .pp .calc .btn { grid-column: 1/-1; } }
.pp .auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border: 1px solid var(--line); border-radius: 6px; }
.pp .auto .ar { padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-left: 1px solid var(--line); }
.pp .auto .ar:first-child { border-left: 0; }
@media (max-width: 960px) { .pp .auto .ar { border-left: 0; border-top: 1px solid var(--line); } .pp .auto .ar:first-child { border-top: 0; } }
.pp .swt { position: relative; width: 46px; height: 26px; border-radius: 13px; background: #c9ccd2; border: 0; flex: none; padding: 0; }
.pp .swt::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.pp .swt[aria-checked="true"] { background: var(--accent); }
.pp .swt[aria-checked="true"]::after { left: 23px; }
.pp .more { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; flex-wrap: wrap; }
.pp .strip { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pp .strip canvas { box-shadow: var(--pp-shadow); background: #fff; }
/* tabs */
.pp .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; overflow: visible; }
.pp .tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--ink-2); font-size: 15px; margin-bottom: -1px; height: auto; }
.pp .tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.pp .tl { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; margin: 2px 0 4px; }
.pp .tl i { height: 3px; background: var(--line); display: block; }
.pp .tl i.on { background: var(--ink); }
.pp .tl i.now { background: var(--accent); }
.pp .status { font-size: 15px; color: var(--ink-2); }
.pp .status b { color: var(--ink); }
.pp .photo { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--pp-stage); border: 0; padding: 0; width: 100%; display: block; cursor: pointer; }
.pp .photo canvas { width: 100%; height: 100%; display: block; }
.pp .photo .lab { position: absolute; left: 10px; bottom: 10px; background: rgba(17,20,24,.82); color: #fff; font-size: 13px; padding: 4px 8px; border-radius: 4px; }
.pp .sqs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.pp .sqs span { display: inline-flex; align-items: center; gap: 6px; }
.pp .sqs i { width: 9px; height: 9px; border: 1.5px solid var(--ink-2); display: inline-block; }
.pp .sqs i.y { background: var(--ink); border-color: var(--ink); }
.pp .lsent { display: flex; flex-direction: column; gap: 2px; color: var(--ink-2); margin-bottom: 14px; }
/* profile */
.pp .prof { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; }
@media (max-width: 900px) { .pp .prof { grid-template-columns: minmax(0,1fr); gap: 28px; } }
.pp .pwho { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.pp .pwho canvas { width: 96px; height: 96px; border-radius: 6px; object-fit: cover; display: block; }
.pp .pwho .n { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.pp .row2 { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.pp .row2 span:first-child { color: var(--ink-2); }
.pp .row2 span:last-child { text-align: right; overflow-wrap: anywhere; }
.pp .fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.pp .fld label { font-size: 15px; color: var(--ink-2); }
.pp .fld input { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); min-width: 0; width: 100%; height: auto; }
.pp .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp .look { margin-top: 34px; border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 16px 18px; }
@media (max-width: 760px) { .pp .look { grid-template-columns: 1fr; } }
.pp .look .mini { display: flex; align-items: flex-end; gap: 8px; }
.pp .look .mini canvas { box-shadow: var(--pp-shadow); background: #fff; }
.pp .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pp .chip { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; padding: 0; background: none; }
.pp .chip i { width: 18px; height: 26px; display: block; }
.pp .inl-sw { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line-2); vertical-align: -1px; margin-right: 3px; }
/* overlays on <body> */
.pp-ov { position: fixed; inset: 0; background: rgba(10,12,16,.72); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pp-ov .lb { background: var(--bg); border-radius: 8px; max-width: min(1100px,100%); max-height: 100%; display: grid; grid-template-columns: minmax(0,1fr) 300px; overflow: hidden; }
@media (max-width: 800px) { .pp-ov { padding: 12px; } .pp-ov .lb { grid-template-columns: 1fr; overflow: auto; } }
.pp-ov .big { background: var(--pp-stage); display: flex; align-items: center; justify-content: center; padding: 28px; min-height: 50vh; position: relative; }
.pp-ov .big canvas { box-shadow: var(--pp-shadow); background: transparent; display: block; }
.pp-ov .lb .side { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pp-ov .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 20px; padding: 0; }
.pp-ov .nav.l { left: 12px; } .pp-ov .nav.r { right: 12px; }
.pp-ov .ask textarea { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); margin-bottom: 8px; }
.pp-ov .x, .pp-sheet .x { background: none; border: 0; font-size: 24px; color: var(--ink-2); width: 40px; height: 40px; padding: 0; }
.pp-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px,100%); background: var(--bg); color: var(--ink); z-index: 60; transform: translateX(102%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
.pp-sheet.on { transform: none; }
.pp-sheet .sh { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.pp-sheet .sb { padding: 8px 20px; overflow: auto; flex: 1; }
.pp-sheet .sf { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pp-sheet .sf > div { display: flex; justify-content: space-between; gap: 12px; }
.pp-sheet .li { display: grid; grid-template-columns: 22px 64px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp-sheet .li canvas { box-shadow: var(--pp-shadow); background: transparent; max-width: 64px; }
.pp-sheet .li.off { opacity: .45; }
.pp-sheet .qty { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.pp-sheet select, .pp-sheet input[type=text] { font: inherit; font-size: 15px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); height: auto; max-width: 100%; }
.pp-sheet .ship { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pp-sheet .ship label { font-size: 15px; color: var(--ink-2); }
.pp-sheet .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); padding: 9px 16px; font-weight: 600; font-size: 15px; min-height: 42px; height: auto; }
.pp-sheet .btn:disabled { opacity: .4; cursor: not-allowed; }
.pp-ov .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); padding: 9px 16px; font-weight: 600; font-size: 15px; min-height: 42px; height: auto; }
.pp-ov .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pp-ov .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pp-ov .ct { font-weight: 600; font-size: 17px; line-height: 1.3; }
.pp-ov .cd { color: var(--ink-2); font-size: 15px; }
.pp-ov .mono { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pp-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 240%); background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 6px; display: flex; gap: 16px; align-items: center; z-index: 70; transition: transform .2s; font-size: 15px; max-width: calc(100% - 24px); flex-wrap: wrap; }
.pp-toast.on { transform: translate(-50%, 0); }
.pp-toast button { background: none; border: 0; color: var(--pp-mint, #7bdfc6); font-weight: 600; padding: 0; font-size: 15px; }
.pp-toast a { color: var(--pp-mint, #7bdfc6); font-weight: 600; }
@media (max-width: 760px) { .pp-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
/* brand kit: one screen, tool rail, canvas of real pieces, slide-out panel */
.bk { position: fixed; left: 0; right: 0; display: grid; grid-template-columns: 76px minmax(0,1fr); background: var(--pp-stage, var(--wall)); z-index: 5; color: var(--ink); }
.bk * { box-sizing: border-box; }
.bk .rail { background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; padding: 10px 6px; }
.bk .rail button { background: none; border: 0; border-radius: 6px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; height: auto; }
.bk .rail button svg { width: 22px; height: 22px; }
.bk .rail button[aria-pressed="true"] { background: var(--wall); color: var(--ink); font-weight: 600; }
.bk .rail .sp { flex: 1; }
.bk .canvas { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.bk .cbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; flex-wrap: wrap; }
.bk .cbar .t { font-weight: 700; font-size: 18px; }
.bk .cbar .sub { font-size: 15px; color: var(--ink-2); }
.bk .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); padding: 6px 12px; font-weight: 600; font-size: 15px; min-height: 36px; height: auto; text-decoration: none; }
.bk .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.bk .board { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 22px; padding: 8px 28px 28px; min-height: 0; transition: padding-left .25s; }
.bk .board.shift { padding-left: 388px; }
.bk .slot { display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; position: relative; }
.bk .slot canvas { box-shadow: var(--pp-shadow, var(--lift)); background: #fff; display: block; flex: none; }
.bk .slot.tall { grid-row: span 2; }
.bk .drawer { position: absolute; top: 0; bottom: 0; left: 0; width: 368px; background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .25s; overflow: auto; padding: 18px 18px 28px; z-index: 3; box-shadow: 8px 0 24px rgba(0,0,0,.06); visibility: hidden; }
.bk .drawer.open { transform: none; visibility: visible; }
.bk .drawer h3 { margin: 0 0 4px; font: 700 18px var(--f); letter-spacing: 0; text-transform: none; color: var(--ink); }
.bk .drawer .dx { position: absolute; right: 10px; top: 10px; background: none; border: 0; font-size: 22px; color: var(--ink-2); width: 36px; height: 36px; padding: 0; }
.bk .drawer .kit-sec { border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; margin: 16px 0 0; background: none; }
.bk .drawer .kit-sec:first-of-type { border-top: 0; margin-top: 8px; }
.bk .drawer .kit-sec h2 { font-size: 15px; margin-bottom: 4px; }
.bk .drawer .bc-start, .bk .drawer .grid2, .bk .drawer .cgrid4, .bk .drawer .lgpair { grid-template-columns: 1fr; display: grid; gap: 10px; }
.bk .drawer .bc-kits { display: grid; grid-template-columns: 1fr; gap: 8px; }
.bk .drawer select, .bk .drawer input[type=text], .bk .drawer input[type=tel], .bk .drawer input[type=email], .bk .drawer input[type=url] { max-width: 100%; }
@media (max-width: 900px) {
  .bk { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; }
  .bk .canvas { grid-row: 1; } .bk .rail { grid-row: 2; order: 2; flex-direction: row; border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; }
  .bk .rail .sp { display: none; } .bk .rail button { flex: 1; min-width: 64px; }
  .bk .board { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: minmax(190px, 28vh); overflow: auto; padding: 8px 16px 20px; gap: 14px; }
  .bk .slot.tall { grid-row: auto; grid-column: 1 / -1; }
  .bk .board.shift { padding-left: 16px; }
  .bk .board.shift { padding-bottom: 46vh; }
  .bk .drawer { top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 44vh; border-right: 0; border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; transform: translateY(102%); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
  .bk .drawer.open { transform: none; }
}
html.bk-open, html.bk-open body { overflow: hidden; }
html.bk-open .to-top { display: none; }
#bk-store { display: none; }
.pp-sheet .qty select { width: auto; min-width: 96px; }
.pp-sheet .li input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.pp-sheet .ship select { width: 100%; }
.pp-sheet .ship input[type=text] { width: 100%; }
.pp select { height: auto; }
.pp .prof > section { border: 0; padding: 0; margin: 0; background: none; }
.pp #ls-form .btn { background: var(--surface); color: var(--ink); border-color: var(--line-2); height: 36px; min-height: 36px; padding: 0 12px; }
.pp #ls-form .btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pp #ls-form { margin-bottom: 20px; }

/* ===== Rounds 3 and 4 (Austin, Nov 5): waiting strip, one Request changes / Customize panel, tagged headshots, bottom-sheet order panel ===== */
.pp .wl { font-weight: 600; }
/* Waiting on you: style A, a thin light row. Easy to swap: only this block and renderWait in agent2.js know about it. */
.pp .strip-a { display: flex; align-items: center; gap: 14px; background: var(--pp-stage); border-radius: 6px; padding: 10px 14px; margin-bottom: 8px; flex-wrap: wrap; }
.pp .strip-a .th { flex: none; width: 58px; height: 58px; background: var(--bg); border: 0; padding: 4px; border-radius: 4px; cursor: zoom-in; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pp .strip-a .th canvas { max-width: 100%; max-height: 100%; box-shadow: var(--pp-shadow); }
.pp .strip-a .tx { flex: 1; min-width: 200px; }
.pp .strip-a .ttl { font-weight: 600; font-size: 16px; }
.pp .ptag2 { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--pp-mute); }
.pp .strip-a .acts { margin: 0; padding: 0; }
/* Top row of Home: Waiting on you, Standing orders, Coming up. Same grid and width as Designed for you. */
.pp .top3 { margin-bottom: 8px; }
.pp .card.mini { padding: 14px 16px; gap: 8px; text-align: left; font: inherit; color: inherit; justify-content: flex-start; align-items: stretch; }
.pp .card.mini .mrow { display: flex; gap: 14px; align-items: center; min-width: 0; }
.pp .card.mini .tx { min-width: 0; flex: 1; }
.pp .card.mini .th { flex: none; width: 150px; height: 150px; background: var(--pp-stage); border: 0; padding: 8px; border-radius: 4px; cursor: zoom-in; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pp .card.mini .th canvas { max-width: 100%; max-height: 100%; box-shadow: var(--pp-shadow); }
.pp .card.mini.wait .ct { font-size: 16px; }
.pp .card.mini .acts { padding-top: 4px; }
.pp .card.mini.caught { justify-content: center; }
.pp .card.mini.jumpc { cursor: pointer; }
.pp .card.mini.jumpc:hover:not(:disabled) { border-color: var(--ink-3); }
.pp .card.mini.jumpc:disabled { cursor: default; }
.pp .card.mini.jumpc .ct { font-size: 20px; }
.pp .card.mini.jumpc .th { width: 64px; height: 64px; padding: 4px; cursor: inherit; }
.pp .card.mini .soh { display: flex; justify-content: space-between; align-items: center; }
.pp .son { font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.pp .sorows { display: flex; flex-direction: column; gap: 6px; }
.pp .sor { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.pp .sor .th, .pp .card.mini.jumpc .sor .th { width: 44px; height: 44px; padding: 2px; flex: none; }
.pp .card.mini .cue { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.pp .sechd { scroll-margin-top: 76px; }
.pp .aicons { display: flex; gap: 8px; margin: 2px 0; }
.pp .aicons .ai { width: 28px; height: 28px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed var(--line); color: var(--ink-3); }
.pp .aicons .ai.on { background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent); }
.pp .aicons .ai .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .pp .card.mini .th { width: 112px; height: 112px; } .pp .card.mini.jumpc .th { width: 56px; height: 56px; } }
/* door hanger hole is drawn as a real cutout by the engine; the stage shows through */
/* preview: panel layout */
.pp-ov .lb { grid-template-columns: minmax(0,1fr) 360px; }
.pp-ov .lb .side { max-height: calc(100vh - 48px); overflow: auto; }
.pp-ov .stack { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pp-ov .stack .btn { justify-content: center; width: 100%; }
.pp-ov .pnlh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pp-ov .pnlh b { font-size: 17px; }
.pp-ov .lbw { position: relative; display: inline-block; line-height: 0; }
.pp-ov .lbw canvas { display: block; }
.pp-ov .lbw .pins { position: absolute; inset: 0; }
.pp-ov .big { overflow: hidden; }
.pp-ov .pin { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; line-height: 26px; text-align: center; transform: translate(-50%,-50%); box-shadow: 0 0 0 3px #fff; cursor: grab; touch-action: none; }
.pp-ov .pinrow .pin { position: static; transform: none; box-shadow: none; cursor: default; }
.pp-ov .pin .px { position: absolute; right: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); border: 0; font-size: 13px; line-height: 20px; padding: 0; display: none; cursor: pointer; }
.pp-ov .pin:hover .px, .pp-ov .pin:focus-within .px { display: block; }
.pp-ov .pinhint { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); background: rgba(17,20,24,.8); color: #fff; font-size: 14px; line-height: 1.2; padding: 5px 10px; border-radius: 4px; white-space: nowrap; }
.pp-ov .lb .big { padding-bottom: 54px; }
.pp-ov .ehd { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.pp-ov .ehd b { font-size: 16px; }
.pp-ov .es { color: var(--ink-2); font-size: 15px; margin-bottom: 6px; }
.pp-ov .qgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-top: 8px; }
.pp-ov .qgrid button { position: relative; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--ink); padding: 9px 4px; font: inherit; font-size: 15px; line-height: 1.2; min-height: 44px; cursor: pointer; }
.pp-ov .qgrid button[aria-expanded="true"] { border-color: var(--ink); background: var(--pp-stage); font-weight: 600; }
.pp-ov .qgrid .dt { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pp-ov .qbody { border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin-top: 8px; }
.pp-ov .qbody label.l { display: block; font-size: 15px; color: var(--ink-2); margin: 8px 0 4px; }
.pp-ov .qbody label.l:first-child { margin-top: 0; }
.pp-ov input[type=text], .pp-ov input[type=date], .pp-ov .qbody select, .pp-ov textarea { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
.pp-ov .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-ov .step { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.pp-ov .step button { width: 38px; height: 38px; border: 0; background: var(--pp-stage); color: var(--ink); font-size: 18px; cursor: pointer; }
.pp-ov .step button:disabled { opacity: .35; cursor: default; }
.pp-ov .step span { flex: 1; text-align: center; font-size: 15px; }
.pp-ov .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-ov .pills button { border: 1px solid var(--line); border-radius: 4px; background: none; color: var(--ink); padding: 6px 10px; font: inherit; font-size: 15px; cursor: pointer; }
.pp-ov .pills button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.pp-ov .tg { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 15px; }
.pp-ov .swt { position: relative; width: 46px; height: 26px; border-radius: 13px; background: #c9ccd2; border: 0; flex: none; padding: 0; cursor: pointer; }
.pp-ov .swt::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.pp-ov .swt[aria-checked="true"] { background: var(--accent); }
.pp-ov .swt[aria-checked="true"]::after { left: 23px; }
.pp-ov .link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.pp-ov .cnt { text-align: right; font-size: 13px; color: var(--pp-mute, var(--ink-3)); margin-top: 3px; }
.pp-ov .ask { border: 1.5px solid var(--ink); border-radius: 6px; padding: 12px; margin-top: 16px; }
.pp-ov .ask h4 { margin: 0; font-size: 16px; }
.pp-ov .ck { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 15px; cursor: pointer; }
.pp-ov .ck input { margin-top: 4px; }
.pp-ov .pinrow { display: grid; grid-template-columns: 26px minmax(0,1fr) 30px; gap: 8px; align-items: center; margin-top: 6px; }
.pp-ov .pinrow .rm, .pp-ov .rm { border: 0; background: none; color: var(--ink-2); font-size: 20px; cursor: pointer; }
.pp-ov .ask textarea { margin-top: 10px; margin-bottom: 0; }
.pp-ov .exp { margin-top: 10px; font-size: 15px; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: 10px; }
.pp-ov .exp .mono { color: var(--accent); }
.pp-ov .ohd { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.pp-ov .ohd:first-of-type { border-top: 0; padding-top: 0; }
.pp-ov .ohrow { display: grid; grid-template-columns: 1fr 30px; gap: 6px; align-items: center; }
/* photos: quality label sits UNDER each photo, never over it */
.pp-ov .thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.pp-ov .phc { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pp-ov .phc button { border: 1.5px solid var(--line); border-radius: 4px; padding: 0; background: none; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.pp-ov .phc button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-ov .phc button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pp-ov .phc button.off { opacity: .45; cursor: not-allowed; }
.pp-ov .ql { font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.pp-ov .ql.bad { color: #b4541b; font-weight: 600; }
.pp-ov .ql.ok::before { content: "✓ "; color: var(--accent); }
.pp-ov .uploadb { margin-top: 10px; cursor: pointer; }
/* colors, layouts, headshots */
.pp-ov .pals { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pp-ov .pal { display: flex; height: 30px; border: 1.5px solid var(--line); border-radius: 5px; overflow: hidden; padding: 0; background: none; cursor: pointer; }
.pp-ov .pal i { flex: 1; display: block; }
.pp-ov .pal[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pp-ov .lthumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-ov .lthumbs button { border: 1.5px solid var(--line); border-radius: 5px; background: var(--pp-stage); padding: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 76px; min-height: 76px; }
.pp-ov .lthumbs button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pp-ov .lthumbs canvas { display: block; box-shadow: var(--pp-shadow); max-width: 110px; max-height: 90px; }
.pp .heads, .pp-ov .heads { display: flex; gap: 10px; flex-wrap: wrap; }
.pp .hs, .pp-ov .hs { border: 1.5px solid var(--line); border-radius: 6px; padding: 4px; background: none; color: var(--ink); width: 88px; text-align: center; font-size: 13px; line-height: 1.3; cursor: pointer; text-decoration: none; display: block; }
.pp .hs .hi, .pp-ov .hs .hi { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 4px; margin-bottom: 4px; position: relative; background: var(--pp-stage); }
.pp .hs .hi img, .pp-ov .hs .hi img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 25%; }
.pp .hs.add .hi, .pp-ov .hs.add .hi { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--ink-2); }
.pp .hs.add { border-style: dashed; color: var(--ink-2); }
.pp-ov .hs[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pp .heads-w { margin: 4px 0 16px; }
/* all layouts */
.pp-ov.layov { z-index: 80; }
.pp-ov .lb2 { background: var(--bg); border-radius: 8px; padding: 22px; max-width: min(1100px,100%); max-height: 100%; overflow: auto; width: 100%; }
.pp-ov .lbh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pp-ov .lgrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px; margin-top: 14px; }
.pp-ov .lgrid button { border: 1.5px solid var(--line); border-radius: 6px; background: var(--pp-stage); padding: 14px; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pp-ov .lgrid button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pp-ov .lgrid canvas { box-shadow: var(--pp-shadow); max-width: 100%; height: auto !important; }
.pp-ov .lgrid .ln { font-weight: 600; font-size: 15px; }
.pp-ov .upw { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 18px; margin-top: 14px; }
.pp-ov .upw canvas { width: 100%; height: auto; background: var(--pp-stage); border-radius: 4px; }
@media (max-width: 700px) { .pp-ov .upw { grid-template-columns: 1fr; } }
.pp-ov input[type=range] { width: 100%; }
/* order sheet: nudge, and a bottom sheet on phones */
.pp-sheet .nudge { margin-top: 8px; font-size: 15px; color: var(--ink-2); border-left: 3px solid var(--accent); padding-left: 10px; }
.pp-sheet .nudge .link { color: var(--ink); text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
@media (max-width: 600px) {
  .pp-sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; border-radius: 14px 14px 0 0; transform: translateY(102%); box-shadow: 0 -8px 30px rgba(0,0,0,.2); }
  .pp-sheet.on { transform: none; }
  .pp-sheet .sh::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
  .pp-sheet { overflow: hidden; }
  .pp-sheet .sh { position: relative; padding-top: 22px; }
}
@media (max-width: 800px) {
  .pp-ov .qgrid { grid-template-columns: repeat(3,1fr); }
  .pp-ov .lb { grid-template-columns: minmax(0,1fr); max-height: 100%; overflow: auto; }
  .pp-ov .big { min-height: 0; padding: 18px 12px 52px; }
  .pp-ov .lb .side { max-height: none; overflow: visible; }
}
.pp .fmt .fl { font-size: 15px; color: var(--ink-2); margin: 10px 0 4px; }
.bk .fmt .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.bk .fmt .pills button { border: 1px solid var(--line); border-radius: 4px; background: none; color: var(--ink); padding: 8px 12px; font: inherit; font-size: 15px; cursor: pointer; min-height: 40px; }
.bk .fmt .pills button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.bk .fmt .fl { font-size: 15px; color: var(--ink-2); margin: 12px 0 4px; }
.bk .tagl { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }

.pp-ov [hidden], .pp [hidden] { display: none !important; }
/* headshot tiles in the brand kit: crops stay inside their tile */
.hs-im { overflow: hidden; display: block; position: relative; }
.hs-im img { transform-origin: 50% 25%; }
.bk .tagl select { width: 100%; }
.pp-ov .money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); padding-left: 10px; }
.pp-ov .money span { color: var(--ink-2); }
.pp-ov .money input[type=text] { border: 0; background: transparent; padding-left: 4px; }

.pp-ov .stack.stickyft { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 4px; margin-top: 10px; border-top: 1px solid var(--line); z-index: 2; }
