.aphead h2, .apwelcome h2 { font-family: var(--sans); } /* in-app screens keep the app font */
.xbtn { width: 34px; height: 34px; border: 0; border-radius: var(--r-full); background: #f4f4f5; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.plan { padding: 40px 36px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
@container pg (max-width: 900px) {
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan { padding: 32px 24px; }
}

/* ============================================ post-signup app flow */
.apov {
  position: fixed; inset: 0; z-index: 95; background: var(--paper);
  display: flex; flex-direction: column; overflow: hidden;
}
.apbar {
  display: flex; align-items: center; gap: 10px; flex: none;
  height: 54px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.apbar img { height: 22px; width: auto; }
.apcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.apcrumb b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apcrumb svg { width: 14px; height: 14px; flex: none; color: var(--line-2); }
.apchip {
  margin-left: auto; flex: none; font-family: var(--sans); font-weight: 600; font-size: 11.5px; color: var(--brand-deep); background: var(--brand-tint);
  padding: 5px 10px; border-radius: var(--r-full);
}
.apscroll { position: relative; flex: 1; overflow-y: auto; }
.apscreen[data-s="10"].on { height: 100%; }
.apscreen { display: none; }
.apscreen.on { display: block; animation: aprise .3s ease both; }
@keyframes aprise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .apscreen.on { animation: none; } }
.apwrap { max-width: 900px; margin: 0 auto; padding: 32px 20px 40px; }

/* welcome */
.apwelcome { min-height: 100%; display: grid; place-items: center; padding: 40px 20px; text-align: center; }
.apmark { width: 52px; height: 52px; border-radius: 15px; background: var(--brand); display: inline-grid; place-items: center; }
.apmark img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.apwelcome h2 { font-size: clamp(28px, 4cqi, 38px); margin-top: 22px; }
.apwelcome p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* desk behind the create modal */
.apdesk { padding: 24px 20px; filter: blur(2px); opacity: .5; pointer-events: none; }
.apdesk-row { display: flex; align-items: center; gap: 10px; }
.apdesk-bar { height: 34px; border-radius: var(--r-sm); background: #ece7dd; }
.apgridghost { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.apghost { height: 132px; border-radius: var(--r-md); background: #f0ebe2; }

.apsheet {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 32px));
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: 0 26px 64px rgba(51,51,51,.24); padding: 18px;
}
.apstage { position: relative; min-height: 460px; overflow: hidden; }
.apsheet-h { display: flex; align-items: center; gap: 10px; }
.apsheet-h b { font-size: 15px; font-weight: 600; }
.apsheet-h .xbtn { margin-left: auto; width: 28px; height: 28px; }
.aplab { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.aplab svg { width: 13px; height: 13px; }
.apfield { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.appin { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.apfield .field { flex: 1; min-width: 0; height: 42px; padding-left: 34px; font-size: 14.5px; }
.apfield .btn { height: 42px; padding: 0 18px; font-size: 14px; border-radius: var(--r-sm); }

.apaerial { position: relative; margin-top: 14px; border-radius: var(--r-sm); overflow: hidden; background: #6f8256; }
.apaerial svg.sat { display: block; width: 100%; height: auto; }
.apctl {
  position: absolute; display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: rgba(253,253,247,.94); border-radius: var(--r-sm); box-shadow: 0 1px 4px rgba(51,51,51,.2);
}
.apctl.tr { top: 8px; right: 8px; }
.apctl.br { bottom: 8px; right: 8px; }
.apctl b { font-family: var(--sans); font-size: 11px; font-weight: 400; padding: 0 6px; }
.apbtn-i { width: 24px; height: 24px; border: 0; background: none; border-radius: 5px; display: inline-grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.apbtn-i:hover { background: rgba(51,51,51,.07); }
.apbtn-i svg { width: 13px; height: 13px; }

/* measuring + report */
.apcanvas { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #6f8256; position: relative; }
.apfacet { opacity: 0; }
.apmeasuring .apfacet, .apdone .apfacet { animation: appop .38s ease forwards; animation-delay: calc(var(--i) * 260ms); }
@keyframes appop { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .apfacet { opacity: 1; animation: none !important; } }
.aptimer {
  position: absolute; left: 10px; top: 10px; font-family: var(--sans); font-size: 12px;
  background: var(--brand); color: var(--paper); padding: 5px 11px; border-radius: var(--r-full);
  font-variant-numeric: tabular-nums;
}
.apsplit { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 18px; align-items: start; }
.apsplit.wide { grid-template-columns: minmax(0, 1fr) 300px; }
.aprail { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 18px; }
.aprail-h { font-family: var(--sans); font-weight: 500; font-size: 10.5px; color: var(--ink-3); margin-bottom: 10px; }
.apkv { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.apkv:last-of-type { border-bottom: 0; }
.apkv b { flex: 1; font-weight: 400; color: var(--ink-2); }
.apkv span { font-weight: 600; font-variant-numeric: tabular-nums; }
.aprow-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.apb { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; }
.apb.brand { background: var(--brand); color: var(--paper); }
.apb.brand:hover { background: var(--brand-hover); }
.apb.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.apb.ghost:hover { border-color: var(--ink); }
.apb.block { width: 100%; }

/* proposal */
.apopts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.apopt { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; background: var(--surface); text-align: left; cursor: pointer; font-family: var(--sans); display: flex; flex-direction: column; gap: 4px; }
.apopt:hover { border-color: var(--line-2); }
.apopt[aria-pressed="true"] { border-color: var(--brand); border-width: 2px; padding: 13px; background: rgba(110,4,189,.04); }
.apsw { display: block; height: 46px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(51,51,51,.12); }
.apopt b { font-size: 14.5px; margin-top: 8px; }
.apopt em { font-style: normal; font-size: 12px; line-height: 1.4; color: var(--ink-3); min-height: 34px; }
.apopt strong { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; margin-top: 4px; }
.apopt .appick { position: absolute; top: -9px; left: 12px; background: var(--brand); color: var(--paper); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-full); }

/* sent */
.apsent { max-width: 480px; margin: 0 auto; text-align: center; padding-top: 24px; }
.aptl { text-align: left; margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 18px 18px 18px 34px; }
.aptli { position: relative; padding-bottom: 16px; font-size: 13.5px; }
.aptli:last-child { padding-bottom: 0; }
.aptli b { display: block; font-weight: 500; }
.aptli span { font-family: var(--sans); font-size: 11px; color: var(--ink-3); }
.aptli::before { content: ""; position: absolute; left: -20px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.aptli:not(:last-child)::after { content: ""; position: absolute; left: -16.2px; top: 15px; bottom: 2px; width: 1.5px; background: var(--brand-soft); }

/* booking */
.apbook { max-width: 720px; margin: 0 auto; }
.apcal { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; margin-top: 24px; align-items: start; }
.apcal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }   /* not .apdays: that is the pipeline cards' "50 days" tag */
.apdow { font-family: var(--sans); font-weight: 500; font-size: 10.5px; color: var(--ink-3); text-align: center; padding-bottom: 4px; }
.apday { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.apday:disabled { border-color: transparent; background: none; color: var(--line-2); cursor: default; }
.apday:not(:disabled):hover { border-color: var(--brand); color: var(--brand); }
.apday[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.apslots { display: flex; flex-direction: column; gap: 8px; }
.apslot { height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.apslot:hover { border-color: var(--brand); color: var(--brand); }
.apslot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--paper); }

@container pg (max-width: 760px) {
  .apsplit, .apsplit.wide, .apcal { grid-template-columns: minmax(0, 1fr); }
  .apmat, .appay, .apeqgrid { grid-template-columns: minmax(0, 1fr) !important; }
  .apfoot { flex-wrap: wrap; gap: 8px 14px; font-size: 11.5px; }
  .apnav { flex-wrap: wrap; }
  .apopts { grid-template-columns: minmax(0, 1fr); }
  .apgridghost { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apwrap { padding: 22px 16px 32px; }
}

/* confidence callout */
.apconf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.apconf-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  border: 1.5px solid #e0b455; border-radius: var(--r-full); background: #fdf6e7;
  font-size: 13.5px; font-weight: 600; color: #7a4a10;
}
.apconf-chip svg { width: 15px; height: 15px; flex: none; }
.apconf-note { font-size: 13.5px; color: var(--ink-3); }
.apdl-note { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }

/* expert design sheet */
.apmodal { position: absolute; inset: 0; z-index: 8; background: rgba(51,51,51,.5); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.apmodal-in { width: 100%; max-width: 460px; background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 28px 70px rgba(51,51,51,.34); }
.apexp { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.apexp-opt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); font-family: var(--sans); cursor: pointer; transition: border-color .15s, background .15s;
}
.apexp-opt:hover { border-color: var(--brand); }
.apexp-opt[aria-pressed="true"] { border-color: var(--brand); border-width: 2px; padding: 13px 15px; background: rgba(110,4,189,.04); }
.apexp-t { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.apexp-t em { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-full); background: var(--brand-tint); color: var(--brand-deep); white-space: nowrap; }
.apexp-d { grid-column: 1; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.apexp-p { grid-row: 1 / span 2; align-self: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.apdisc {
  display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md);
  background: #fdf6e7; border: 1px solid #ecd9ac; font-size: 12.5px; line-height: 1.45; color: #7a4a10;
}
.apdisc svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

/* proposal customize list */
.apcustom { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 16px 18px; }
.apcrow { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.apcrow:last-child { border-bottom: 0; }
.apcrow b { width: 118px; flex: none; font-weight: 600; }
.apcrow span { flex: 1; color: var(--ink-2); }
.apcrow i { font-style: normal; font-weight: 600; color: var(--brand); cursor: pointer; }
.apcrow i:hover { text-decoration: underline; }

/* coach marks */
.apspot { position: absolute; z-index: 20; border-radius: 12px; box-shadow: 0 0 0 3px var(--brand), 0 0 0 9999px rgba(20,16,12,.5); pointer-events: none; transition: all .22s ease; }
.apcoach {
  position: absolute; z-index: 21; width: min(300px, calc(100% - 32px));
  background: var(--surface); border-radius: 14px; padding: 18px;
  box-shadow: 0 20px 48px rgba(51,51,51,.3);
}
.apcoach h4 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.apcoach p { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.apcoach-f { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.apcoach-n { font-family: var(--sans); font-size: 11px; color: var(--ink-3); margin-right: auto; }
.apcoach .apb { height: 36px; padding: 0 16px; font-size: 13.5px; border-radius: 9px; }
@media (prefers-reduced-motion: reduce) { .apspot { transition: none; } }

.apfoot { flex: none; border-top: 1px solid var(--line); background: var(--surface); padding: 12px 16px; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 12px; align-items: center; }
.apfoot button { background: none; border: 0; padding: 0; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--brand); cursor: pointer; }

/* ------------------------------------------- branded proposal deck */
.approp { --pb: #1b3a6b; --pb2: #16305a; }
.appage {
  position: relative; aspect-ratio: 1146 / 886; width: 100%;
  background: #f1f0ee; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; container-type: inline-size; container-name: pp;
}
.appg { position: absolute; inset: 0; display: none; }
.appg.on { display: block; animation: aprise .26s ease both; }
.appg-in { position: absolute; inset: 0; z-index: 1; padding: 7cqi 7cqi 9cqi; }
.apfootline {
  position: absolute; left: 0; right: 0; bottom: 3.4cqi; text-align: center;
  font-size: 1.5cqi; color: var(--ink-3);
}
.apfootline b { color: var(--pb); font-weight: 700; }
.apph { font-size: 3.2cqi; font-weight: 700; letter-spacing: -0.01em; margin: 0; }

/* cover */
.apcover { position: absolute; inset: 0; }
.apcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.apcover-card {
  position: absolute; left: 7cqi; top: 9cqi; width: 52cqi;
  background: #fff; border-radius: 2cqi; padding: 4.6cqi;
}
.apcover-card p { font-size: 2.4cqi; color: #52525b; margin: 0; }
.apcover-card b { display: block; font-size: 3.4cqi; font-weight: 700; margin-top: 2.4cqi; line-height: 1.5; }
.apcover-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2.6cqi; background: var(--pb); }
.aplogo {
  position: absolute; right: 6cqi; top: 6cqi; display: inline-flex; align-items: center; gap: 1.4cqi;
  background: #fff; border-radius: 1.4cqi; padding: 1.6cqi 2.4cqi;
}
.aplogo i { width: 3.4cqi; height: 3.4cqi; border-radius: .9cqi; background: var(--pb); color: #fff; display: inline-grid; place-items: center; font-style: normal; font-size: 1.5cqi; font-weight: 800; }
.aplogo span { font-size: 2cqi; font-weight: 700; letter-spacing: -0.01em; }

/* equipment page */
.apblob { position: absolute; left: -6cqi; top: 16cqi; width: 40cqi; height: 56cqi; background: var(--pb); border-radius: 0 20cqi 20cqi 0; }
.apeqgrid { position: relative; display: grid; grid-template-columns: 38cqi minmax(0, 1fr); gap: 5cqi; align-items: center; margin-top: 8cqi; }
.apaer { position: relative; border-radius: 1.6cqi; overflow: hidden; }
.apaer-ov { position: absolute; inset: 0; width: 100%; height: 100%; }
.apeq-h { display: flex; align-items: baseline; gap: 1.6cqi; flex-wrap: wrap; }
.apeq-h b { font-size: 2.6cqi; font-weight: 700; }
.apeq-h em { font-style: normal; font-size: 1.9cqi; color: var(--ink-3); }
.apeq-row { display: flex; align-items: center; gap: 1.6cqi; margin-top: 2.6cqi; }
.apeq-sw { width: 4cqi; height: 4cqi; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 .2cqi rgba(0,0,0,.18); }
.apeq-row b { display: block; font-size: 1.9cqi; font-weight: 700; }
.apeq-row span { display: block; font-size: 1.6cqi; color: var(--ink-3); }

/* material page */
.apmat { display: grid; grid-template-columns: 30cqi minmax(0, 1fr); gap: 4cqi; margin-top: 4cqi; align-items: start; }
.apswatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4cqi; }
.apswatch { border: .25cqi solid transparent; border-radius: 1.2cqi; padding: 0; background: none; cursor: pointer; overflow: hidden; display: block; }
.apswatch svg { display: block; width: 100%; height: auto; border-radius: .9cqi; }
.apswatch img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .9cqi; }
.apswatch[aria-pressed="true"] { border-color: var(--pb); }
.apmat h4 { margin: 2.4cqi 0 0; font-size: 2.4cqi; font-weight: 700; }
.apmat .apmfg { font-size: 1.8cqi; color: var(--ink-2); margin-top: .6cqi; }
.apmat ul { margin: 2cqi 0 0; padding-left: 2cqi; font-size: 1.6cqi; line-height: 1.7; color: var(--ink-2); }
.aphome { border-radius: 1.6cqi; overflow: hidden; background: #cfd9e2; }
.aphome svg { display: block; width: 100%; height: auto; }
.aphome img { display: block; width: 100%; height: auto; }
.apaer img { display: block; width: 100%; height: auto; }

/* investment page */
.apinv { margin-top: 4cqi; max-width: 62cqi; }
.apinv-r { display: flex; align-items: baseline; gap: 2cqi; padding: 1.8cqi 0; font-size: 2.2cqi; }
.apinv-r span { margin-left: auto; font-variant-numeric: tabular-nums; }
.apinv-r.sub { font-size: 1.8cqi; color: var(--ink-2); padding: .8cqi 0 .8cqi 2.4cqi; }
.apinv-hr { height: .12cqi; background: #d4d4d8; }
.apinv-tot { text-align: right; font-size: 5cqi; font-weight: 700; letter-spacing: -0.02em; margin-top: 3cqi; font-variant-numeric: tabular-nums; }
.apblob2 { position: absolute; right: -4cqi; top: 7cqi; width: 30cqi; height: 66cqi; background: var(--pb); border-radius: 15cqi 0 0 15cqi; }

/* process page */
.approc { display: flex; align-items: flex-start; gap: 1.6cqi; margin-top: 4cqi; background: #e8e7e4; border-radius: 12cqi; padding: 3.4cqi 3cqi; }
.apstep { flex: 1; text-align: center; }
.apstep i { width: 7cqi; height: 7cqi; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; }
.apstep i svg { width: 3.4cqi; height: 3.4cqi; color: var(--ink-2); }
.apstep u { display: block; margin: 1.4cqi auto 0; width: 3cqi; height: 3cqi; border-radius: 50%; background: #dbd8d1; text-decoration: none; font-size: 1.5cqi; line-height: 3cqi; color: var(--ink-2); }
.apstep span { display: block; margin-top: 1cqi; font-size: 1.5cqi; color: var(--ink-2); line-height: 1.3; }
.apnext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4cqi; margin-top: 5cqi; padding-top: 3cqi; border-top: .12cqi solid #d4d4d8; }
.apnext h4 { margin: 0; font-size: 2.8cqi; font-weight: 700; }
.apnext p { margin-top: 1cqi; font-size: 1.8cqi; color: var(--ink-2); line-height: 1.4; }
.apnext .apcon { font-size: 1.9cqi; line-height: 1.9; }
.apnext .apcon a { color: var(--pb); text-decoration: none; font-weight: 600; }

/* payments page */
.appay { display: grid; grid-template-columns: minmax(0, 1fr) 32cqi; gap: 4cqi; margin-top: 3.4cqi; align-items: start; }
.appay-opt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4cqi 2cqi; width: 100%; text-align: left;
  border: .2cqi solid #d4d4d8; border-radius: 1.4cqi; background: #fff; padding: 2.2cqi 2.4cqi;
  font-family: var(--sans); cursor: pointer; margin-bottom: 1.4cqi;
}
.appay-opt[aria-pressed="true"] { border-color: var(--pb); border-width: .35cqi; background: rgba(27,58,107,.05); }
.appay-opt b { grid-column: 1; grid-row: 1; font-size: 2cqi; font-weight: 700; }
.appay-opt em { grid-column: 1; grid-row: 2; font-style: normal; font-size: 1.55cqi; color: var(--ink-3); }
.appay-opt strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: 2.4cqi; font-weight: 700; font-variant-numeric: tabular-nums; }
.appay-sum { background: #fff; border-radius: 1.6cqi; padding: 2.6cqi; }
.appay-sum h4 { margin: 0 0 1.4cqi; font-size: 1.5cqi; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.appay-kv { display: flex; gap: 1.4cqi; font-size: 1.75cqi; padding: 1cqi 0; border-bottom: .1cqi solid #e4e4e7; }
.appay-kv:last-of-type { border-bottom: 0; }
.appay-kv b { flex: 1; font-weight: 400; color: var(--ink-2); }
.appay-kv span { font-weight: 700; font-variant-numeric: tabular-nums; }
.appay-tot { display: flex; align-items: baseline; gap: 1.4cqi; margin-top: 2cqi; padding-top: 1.6cqi; border-top: .18cqi solid #d4d4d8; font-size: 1.8cqi; }
.appay-tot span { margin-left: auto; font-size: 3.2cqi; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.appay-note { margin-top: 2cqi; font-size: 1.5cqi; line-height: 1.5; color: var(--ink-3); }

/* deck nav */
.apnav { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.apdots { display: flex; gap: 6px; }
.apdot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; }
.apdot[aria-pressed="true"] { background: var(--brand); }
.appn { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.apnb { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; display: inline-grid; place-items: center; color: var(--ink-2); }
.apnb:hover { border-color: var(--brand); color: var(--brand); }
.apnb svg { width: 15px; height: 15px; }
.applan { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); background: var(--brand-tint); border-radius: var(--r-sm); padding: 9px 12px; margin-bottom: 14px; }
.applan b { color: var(--brand-deep); }

@container pg (max-width: 760px) {
  .appage { aspect-ratio: auto; }
  .appg { position: relative; inset: auto; }
  .appg-in { position: relative; inset: auto; padding: 5cqi 5cqi 4cqi; }
  .apfootline { position: relative; left: auto; right: auto; bottom: auto; margin-top: 4cqi; font-size: 2.4cqi; }
  .apcover { position: relative; height: 380px; }
  .apblob, .apblob2 { display: none; }
  .apeqgrid, .apmat, .appay { display: block; }
  .apaer, .aphome { margin-bottom: 4cqi; }
  .apswatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .apph { font-size: 5cqi; }
  .apeq-h b { font-size: 4.4cqi; } .apeq-h em { font-size: 3cqi; }
  .apeq-row b { font-size: 3.2cqi; } .apeq-row span { font-size: 2.7cqi; }
  .apeq-sw { width: 7cqi; height: 7cqi; }
  .apmat h4 { font-size: 4cqi; } .apmat .apmfg { font-size: 3cqi; } .apmat ul { font-size: 2.8cqi; }
  .apinv { max-width: none; }
  .apinv-r { font-size: 3.4cqi; } .apinv-r.sub { font-size: 2.9cqi; } .apinv-tot { font-size: 7cqi; }
  .approc { flex-wrap: wrap; gap: 4cqi 2cqi; border-radius: 6cqi; padding: 5cqi 4cqi; }
  .apstep { flex: 0 0 28%; }
  .apstep i { width: 12cqi; height: 12cqi; } .apstep i svg { width: 6cqi; height: 6cqi; }
  .apstep u { width: 5cqi; height: 5cqi; line-height: 5cqi; font-size: 2.6cqi; }
  .apstep span { font-size: 2.6cqi; }
  .apnext { grid-template-columns: minmax(0, 1fr); gap: 4cqi; }
  .apnext h4 { font-size: 4.6cqi; } .apnext p { font-size: 3cqi; } .apnext .apcon { font-size: 3.2cqi; }
  .appay-opt b { font-size: 3.4cqi; } .appay-opt em { font-size: 2.7cqi; } .appay-opt strong { font-size: 4cqi; }
  .appay-sum { margin-top: 4cqi; } .appay-sum h4 { font-size: 2.6cqi; }
  .appay-kv { font-size: 3cqi; } .appay-tot { font-size: 3cqi; } .appay-tot span { font-size: 5.4cqi; }
  .appay-note { font-size: 2.6cqi; }
  .apcover-card { left: 5cqi; top: 6cqi; width: 66cqi; padding: 5cqi; }
  .apcover-card p { font-size: 3.2cqi; } .apcover-card b { font-size: 4.4cqi; }
  .aplogo { right: 4cqi; top: 4cqi; padding: 2cqi 3cqi; }
  .aplogo i { width: 5cqi; height: 5cqi; font-size: 2.2cqi; } .aplogo span { font-size: 3cqi; }
}

/* ------------------------------------------------- workspace / pipeline */
.apdash { display: grid; grid-template-columns: 218px minmax(0, 1fr); height: 100%; min-height: 620px; }
.apside { border-right: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; padding: 14px 10px; }
.apside-top { display: flex; align-items: center; gap: 9px; padding: 2px 8px 16px; }
.apside-top img { height: 21px; width: auto; }
.apside-top .apsi { margin-left: auto; color: var(--ink-3); display: inline-flex; }
.apside-top .apsi svg { width: 15px; height: 15px; }
.apnavi {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; background: none; border: 0;
  font-family: var(--sans); width: 100%; text-align: left;
}
.apnavi svg { width: 15px; height: 15px; flex: none; }
.apnavi:hover { background: rgba(51,51,51,.05); }
.apnavi.on { background: rgba(51,51,51,.07); color: var(--ink); font-weight: 600; }
.apbeta { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: var(--r-full); background: var(--brand-tint); color: var(--brand-deep); }
.apsub { padding: 5px 10px 5px 34px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apside-foot { margin-top: auto; padding-top: 12px; }

.apmain { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.aptopbar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.apav { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--paper); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.aphead { display: flex; align-items: center; gap: 14px; padding: 20px 18px 12px; flex-wrap: wrap; }
.aphead h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.apfilters { display: flex; align-items: center; gap: 10px; padding: 0 18px 14px; flex-wrap: wrap; }
.apsearch { flex: 1; min-width: 180px; max-width: 420px; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); padding: 0 12px; font-family: var(--sans); font-size: 13.5px; }
.apseg2 { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.apseg2 button { border: 0; background: none; padding: 8px 14px; font-family: var(--sans); font-size: 13px; color: var(--ink-2); cursor: pointer; }
.apseg2 button.on { background: rgba(51,51,51,.08); color: var(--ink); font-weight: 600; }

.apboard { display: grid; grid-auto-flow: column; grid-auto-columns: 296px; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 0 18px 20px; align-items: stretch; flex: 1; min-height: 0; }
.apcol { background: #f4f2ee; border-radius: 12px; padding: 12px; min-height: 240px; overflow-y: auto; scrollbar-width: thin; }
.apcol-h { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 11.5px; color: var(--ink-2); margin-bottom: 12px; }
.apcol-h i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.apcol-h span { margin-left: auto; color: var(--ink-3); }
.apcol-empty { font-size: 12.5px; color: var(--ink-3); text-align: center; padding: 26px 0; }
.apcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.apcard-top { display: flex; gap: 10px; }
.apcard-top img { width: 54px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.apcard b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.apcard span { display: block; font-size: 11.5px; line-height: 1.35; color: var(--ink-3); margin-top: 2px; }
.apdays { flex: none; align-self: flex-start; font-size: 10.5px; font-weight: 600; color: var(--ink-2); background: rgba(51,51,51,.06); padding: 3px 7px; border-radius: var(--r-full); white-space: nowrap; }
.aptags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.aptag { font-size: 10.5px; font-weight: 600; color: var(--ink-2); background: rgba(51,51,51,.055); padding: 3px 7px; border-radius: 5px; }
.aptag.warn { background: #fdf3df; color: #7a4a10; }
.aptag.new { background: var(--brand-tint); color: var(--brand-deep); }

@container pg (max-width: 860px) {
  .apdash { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .apside { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; gap: 4px; }
  .apside-top, .apsub { display: none; }
  .apnavi { width: auto; white-space: nowrap; }
  .apside-foot { margin-top: 0; padding-top: 0; display: flex; gap: 4px; }
  .apboard { grid-auto-columns: 84%; }
}
