/* ==========================================================================
   Copilot Panel storefront — pixel-faithful to Copilot Panel Storyboard.dc.html
   Values transcribed from the design source (see DESIGN-SPEC-copilot-panel.md).
   ========================================================================== */

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #fff; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }

@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes wave    { 0%,100% { transform: scaleY(.32); } 50% { transform: scaleY(1); } }
@keyframes eqv     { 0%,100% { transform: scaleY(.32); } 50% { transform: scaleY(1); } }
@keyframes blink   { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes popin   { 0% { opacity: 0; transform: translateY(6px) scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes gcCarousel { 0%,28% { transform: translateX(0); } 33%,61% { transform: translateX(-25%); } 66%,94% { transform: translateX(-50%); } 100% { transform: translateX(-75%); } }

.shell { height: 100vh; display: flex; overflow: hidden; position: relative; }

/* ======================= STOREFRONT ======================= */
.store { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; position: relative; }

.store-head { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid #e6e1ef; }
.gc-logo { width: 32px; height: 32px; border-radius: 50%; display: block; }
.gc-search { flex: 1; max-width: 340px; display: flex; align-items: center; gap: 8px; background: #f4f1fa; border: 1.5px solid #e6e1ef; border-radius: 999px; padding: 9px 15px; color: #9a8fb0; font-size: 12.5px; }
.gc-links { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .8px; color: #3d1152; text-transform: uppercase; white-space: nowrap; }
.gc-links i { color: #cbbfdd; font-style: normal; }
.gc-account { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; color: #4a3b62; }
.gc-cart { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #ece6fb; color: #5a1d8f; display: grid; place-items: center; cursor: pointer; }
.gc-cart-badge { position: absolute; top: -4px; right: -5px; min-width: 16px; height: 16px; border-radius: 999px; background: #5a1d8f; color: #fff; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; box-sizing: content-box; }
.shell.cart-open .gc-cart { background: #3d1152; color: #fff; }
.shell.cart-open .gc-cart-badge { background: #ffd23f; color: #3d1152; }

.store-cats { display: flex; justify-content: space-between; padding: 10px 24px; color: #3d1152; font-size: 12px; font-weight: 700; border-bottom: 1px solid #e6e1ef; background: #fff; }
.store-cats span { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.store-cats svg { flex-shrink: 0; }

.store-carousel { overflow: hidden; position: relative; border-bottom: 1px solid #e6e1ef; }
.store-carousel-track { display: flex; width: 400%; animation: gcCarousel 15s ease-in-out infinite; }
.store-carousel-track img { width: 25%; display: block; height: auto; }

.store-body { padding: 22px 24px 24px; background: #fff; flex: 1; overflow-y: auto; overflow-x: hidden; }
.store-body h2 { font-size: 22px; line-height: 1.1; margin: 0 0 14px; color: #3d1152; letter-spacing: -.6px; font-weight: 800; }
.store-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { background: #fff; border: 1px solid #eceaf2; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px -16px rgba(40,12,70,.35); display: flex; flex-direction: column; cursor: pointer; }
.pcard-ribbon { font-size: 10.5px; font-weight: 800; text-align: center; padding: 5px 6px; letter-spacing: .4px; }
.pcard-ribbon.best { background: #ffd23f; color: #3d1152; }
.pcard-ribbon.deal { background: #e8451c; color: #fff; }
.pcard-ribbon.none { height: 0; padding: 0; }
.pcard-well { background: #f7f7fb; display: grid; place-items: center; padding: 16px 18px; }
.pcard-well img { width: 100%; max-width: 150px; border-radius: 8px; display: block; box-shadow: 0 6px 16px -10px rgba(0,0,0,.35); }
.pcard-meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.pcard-name { font-size: 13px; font-weight: 800; color: #3d1152; }
.pcard-range { font-size: 12px; font-weight: 600; color: #5c5470; }
.store-section { width: 100%; height: auto; display: block; margin-top: 18px; }

.store-scrim { position: absolute; inset: 0; background: rgba(36,19,56,.32); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 3; }
.shell.cart-open .store-scrim { opacity: 1; pointer-events: auto; }

/* ============ DATA CAPTURE COLUMN (verbatim design: 330px, white) ============ */
.capture-col { width: 0; flex-shrink: 0; overflow: hidden; background: #fff; border-left: 1px solid #e6e1ef; display: flex; flex-direction: column; position: relative; transition: width .25s ease; }
.shell.capture-open .capture-col { width: 330px; }

/* ======================= CART DRAWER (9a) ======================= */
.cart-drawer { width: 0; flex-shrink: 0; overflow: hidden; background: #fff; border-left: 1px solid #e6e1ef; box-shadow: -18px 0 44px -18px rgba(40,12,70,.35); display: flex; flex-direction: column; position: relative; z-index: 4; transition: width .25s ease; }
.shell.cart-open .cart-drawer { width: 380px; }
.cd-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid #efe8f9; }
.cd-head .cd-title { font-size: 16px; font-weight: 800; color: #3d1152; }
.cd-count { font-size: 11px; font-weight: 800; background: #ece6fb; color: #5a1d8f; padding: 3px 8px; border-radius: 999px; }
.cd-close { margin-left: auto; font-size: 18px; color: #9a8fb0; cursor: pointer; line-height: 1; background: none; border: none; }
.cd-banner { margin: 12px 16px 0; display: flex; align-items: center; gap: 9px; background: #f7ecff; border: 1px solid #ecd9ff; border-radius: 11px; padding: 9px 12px; }
.cd-banner .dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffd6ff, #c061ff); flex-shrink: 0; }
.cd-banner span { font-size: 11.5px; line-height: 1.4; color: #5a1d8f; font-weight: 600; }
.cd-items { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.cd-item { display: flex; gap: 11px; border: 1px solid #efe8f9; border-radius: 12px; padding: 11px; }
.cd-chip { width: 62px; height: 40px; border-radius: 7px; color: #fff; display: flex; align-items: flex-end; padding: 5px 7px; font-size: 9px; font-weight: 800; flex-shrink: 0; }
.cd-item-main { min-width: 0; line-height: 1.35; flex: 1; }
.cd-item-name { font-size: 13px; font-weight: 800; color: #241338; }
.cd-item-sub { font-size: 11px; color: #8a7ba8; font-weight: 600; }
.cd-item-actions { display: flex; gap: 12px; margin-top: 5px; font-size: 10.5px; font-weight: 700; color: #5a1d8f; }
.cd-item-actions .rm { color: #c23a3a; cursor: pointer; }
.cd-item-actions span { cursor: pointer; }
.cd-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.cd-price { font-size: 13px; font-weight: 800; color: #241338; font-variant-numeric: tabular-nums; }
.cd-via { font-size: 8.5px; font-weight: 800; letter-spacing: .5px; background: #f7ecff; color: #8a3fd0; padding: 3px 7px; border-radius: 5px; text-transform: uppercase; }
.cd-totals { border-top: 1px solid #efe8f9; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.cd-row { display: flex; justify-content: space-between; font-size: 12px; color: #6b6280; font-weight: 600; }
.cd-row span:last-child { font-variant-numeric: tabular-nums; }
.cd-row.total { font-size: 14.5px; color: #241338; font-weight: 800; }
.cd-checkout { height: 44px; border-radius: 11px; border: none; background: #3d1152; color: #fff; font-weight: 800; font-size: 13.5px; cursor: pointer; margin-top: 2px; }
.cd-keep { text-align: center; font-size: 11px; color: #8a3fd0; font-weight: 700; cursor: pointer; }

/* ======================= COPILOT PANEL ======================= */
.panel { width: 360px; flex-shrink: 0; background: #fff; border-left: 1px solid #e6e1ef; box-shadow: -14px 0 40px -20px rgba(40,12,70,.25); display: flex; flex-direction: column; position: relative; z-index: 1; }
.shell.cart-open .panel { display: none; }
.alex-rail { display: none; }
.shell.cart-open .alex-rail { width: 54px; flex-shrink: 0; background: #fbf7ff; border-left: 1px solid #efe8f9; display: flex; flex-direction: column; align-items: center; padding: 14px 0 12px; gap: 12px; position: relative; z-index: 4; }
.rail-orb { position: relative; width: 26px; height: 26px; }
.rail-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffd6ff, #c061ff); opacity: .5; }
.rail-orb::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, rgba(255,255,255,.95), rgba(255,255,255,.4)); box-shadow: 0 2px 8px rgba(192,97,255,.4); }
.rail-label { writing-mode: vertical-rl; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; color: #9a8fb0; text-transform: uppercase; }
.rail-resume { margin-top: auto; width: 34px; height: 34px; border-radius: 50%; border: none; background: linear-gradient(135deg, #ff4d8d, #c061ff); cursor: pointer; display: grid; place-items: center; }

.p-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #efe8f9; }
.p-dot { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffd6ff, #c061ff); box-shadow: 0 0 10px rgba(192,97,255,.7); animation: breathe 2.6s ease-in-out infinite; }
.p-dot.done { background: radial-gradient(circle at 32% 30%, #d6ffe4, #2fbf6b); box-shadow: 0 0 10px rgba(47,191,107,.7); }
.p-title { line-height: 1.1; }
.p-name { color: #241338; font-weight: 800; font-size: 14px; }
.p-status { color: #9a5cd0; font-size: 11px; font-weight: 600; margin-left: 7px; }
.p-status.done { color: #1c8a4a; }
.p-merchant { margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .6px; background: #f7ecff; color: #8a3fd0; padding: 4px 8px; border-radius: 6px; }
/* Gmail badge — two states. Default (not connected): red call-to-action. */
.p-gmail { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; letter-spacing: .4px; padding: 4px 8px; border-radius: 6px; border: 1px solid transparent; font-family: inherit; cursor: pointer; background: #fdecec; color: #c23a3a; }
.p-gmail .gdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-gmail.connected { background: #eafaf0; color: #1c8a4a; cursor: default; }
.p-gmail.connected .gdot { box-shadow: 0 0 6px rgba(28,138,74,.6); }
.p-gmail + .p-merchant { margin-left: 6px; }

/* Gmail linked — highlighted green success card */
.linked-card { width: 100%; border-radius: 14px; padding: 16px 15px; display: flex; flex-direction: column; align-items: center; gap: 9px; background: rgba(255,255,255,.8); backdrop-filter: blur(6px); border: 2px solid #2fbf6b; box-shadow: 0 12px 30px -14px rgba(47,191,107,.55); animation: popin .3s ease; position: relative; }
.linked-check { width: 44px; height: 44px; border-radius: 50%; background: #eafaf0; color: #1c8a4a; display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: 0 0 0 6px rgba(47,191,107,.15); }
.linked-title { font-size: 14px; font-weight: 800; color: #241338; }
.linked-sub { font-size: 11.5px; color: #4a3b62; font-weight: 600; text-align: center; }

.p-stage { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #fbf7ff, #fff); }
.p-blob { position: absolute; width: 150px; height: 150px; border-radius: 50%; filter: blur(40px); }
.p-blob.pink { left: -30px; top: 20px; background: #ff8fc0; opacity: .4; animation: float 8s ease-in-out infinite; }
.p-blob.blue { right: -30px; top: 120px; background: #8fd6ff; opacity: .35; animation: float 10s ease-in-out infinite reverse; }
.p-stage.done .p-blob.pink { background: #8fe8b0; opacity: .35; }
#stageContent { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* Stage layout variants */
.stage-center { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px 18px 16px; }
.stage-list { flex: 1; display: flex; flex-direction: column; gap: 11px; padding: 18px 16px 14px; min-height: 0; overflow-y: auto; }

/* The orb, four sizes */
.orb { position: relative; flex-shrink: 0; }
.orb.xl { width: 130px; height: 130px; }
.orb.lg { width: 104px; height: 104px; }
.orb.md { width: 64px; height: 64px; }
.orb.sm { width: 44px; height: 44px; }
.orb .b { position: absolute; border-radius: 50%; filter: blur(13px); opacity: .75; }
.orb.lg .b { filter: blur(11px); }
.orb.md .b { filter: blur(9px); }
.orb.sm .b { filter: blur(7px); }
.orb .b1 { background: #ff4d8d; animation: float 6.5s ease-in-out infinite; }
.orb .b2 { background: #c061ff; animation: float 8s ease-in-out infinite reverse; }
.orb .b3 { background: #5ad1ff; opacity: .65; animation: float 9s ease-in-out infinite; }
.orb.done .b1 { background: #2fbf6b; opacity: .7; }
.orb.xl .b1 { width: 74px; height: 74px; left: 8px; top: 4px; }
.orb.xl .b2 { width: 70px; height: 70px; right: 6px; top: 22px; }
.orb.xl .b3 { width: 64px; height: 64px; left: 30px; bottom: 2px; }
.orb.lg .b1 { width: 60px; height: 60px; left: 6px; top: 3px; }
.orb.lg .b2 { width: 56px; height: 56px; right: 5px; top: 18px; }
.orb.lg .b3 { width: 52px; height: 52px; left: 24px; bottom: 1px; }
.orb.md .b1 { width: 38px; height: 38px; left: 3px; top: 1px; }
.orb.md .b2 { width: 36px; height: 36px; right: 2px; top: 10px; }
.orb.md .b3 { width: 32px; height: 32px; left: 15px; bottom: 0; }
.orb.sm .b1 { width: 26px; height: 26px; left: 2px; top: 1px; }
.orb.sm .b2 { width: 24px; height: 24px; right: 1px; top: 7px; }
.orb.sm .b3 { width: 22px; height: 22px; left: 10px; bottom: 0; }
.orb .core { position: absolute; border-radius: 50%; background: radial-gradient(circle at 36% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35)); box-shadow: inset 0 0 14px rgba(255,255,255,.8), 0 6px 18px rgba(192,97,255,.35); animation: breathe 4s ease-in-out infinite; }
.orb.xl .core { inset: 32px; }
.orb.lg .core { inset: 26px; box-shadow: inset 0 0 12px rgba(255,255,255,.8), 0 5px 14px rgba(192,97,255,.35); animation-duration: 3s; }
.orb.md .core { inset: 16px; box-shadow: inset 0 0 10px rgba(255,255,255,.8), 0 4px 12px rgba(192,97,255,.35); animation-duration: 3s; }
.orb.sm .core { inset: 11px; box-shadow: inset 0 0 8px rgba(255,255,255,.8), 0 3px 9px rgba(192,97,255,.35); animation-duration: 3s; }
.orb.done .core { display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #1c8a4a; box-shadow: inset 0 0 12px rgba(255,255,255,.8), 0 5px 14px rgba(47,191,107,.35); }

/* Stage text + chips + glass cards */
.stage-msg { position: relative; text-align: center; color: #4a3b62; font-size: 14.5px; line-height: 1.55; font-weight: 600; max-width: 300px; }
.stage-msg b, .stage-msg strong { color: #241338; font-weight: 800; }
.stage-inline { position: relative; display: flex; align-items: center; gap: 10px; }
.stage-inline .msg { color: #4a3b62; font-size: 12.5px; line-height: 1.45; font-weight: 600; }
.stage-inline .msg b { color: #241338; font-weight: 800; }
.chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 320px; }
.chip { background: rgba(255,255,255,.62); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 6px 18px -12px rgba(40,12,70,.4); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 700; color: #4a3b62; cursor: pointer; }
.glass { position: relative; background: rgba(255,255,255,.62); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 6px 18px -12px rgba(40,12,70,.4); border-radius: 12px; }
.glass.selected { background: rgba(255,255,255,.72); border: 2px solid #c061ff; box-shadow: 0 10px 26px -14px rgba(192,97,255,.55); }
.listening-line { position: relative; display: flex; align-items: center; gap: 8px; color: #9a5cd0; font-size: 12px; font-weight: 700; font-style: italic; }
.wave { display: flex; align-items: center; gap: 2.5px; height: 14px; }
.wave span { width: 2.5px; height: 12px; border-radius: 2px; }
.wave span:nth-child(1) { background: #c98bff; animation: wave 1s ease-in-out infinite; }
.wave span:nth-child(2) { background: #9a5cd0; animation: wave 1s ease-in-out infinite; animation-delay: .2s; }
.wave span:nth-child(3) { background: #c98bff; animation: wave 1s ease-in-out infinite; animation-delay: .4s; }
.wave.tiny { gap: 2px; height: 12px; }
.wave.tiny span { width: 2.5px; height: 10px; }
.caret { display: inline-block; width: 2px; height: 14px; background: #c061ff; margin-left: 2px; vertical-align: -2px; animation: blink 1s step-end infinite; }

/* Materialized mini gift cards (8d) */
.minicards { position: relative; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.minicard { width: 150px; aspect-ratio: 1.586/1; border-radius: 11px; position: relative; overflow: hidden; padding: 9px 10px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; animation: popin .35s ease; }
.minicard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%); }
.minicard .mc-brand { position: relative; font-size: 9px; font-weight: 800; letter-spacing: .6px; display: flex; align-items: center; justify-content: space-between; }
.minicard .mc-amt { position: relative; font-size: 19px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.to-chips { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.to-chip { padding: 9px 11px; border-radius: 11px; }
.to-chip .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: #9a8fb0; font-weight: 700; }
.to-chip .who { font-size: 12.5px; color: #241338; font-weight: 700; margin-top: 2px; }

/* Item rows (8f) + status rows (8i) + person cards (8e) + note cards (8g) */
.rowcard { display: flex; align-items: center; gap: 10px; padding: 9px 11px; }
.rowcard .brandchip { width: 44px; height: 28px; border-radius: 6px; color: #fff; display: grid; place-items: center; font-size: 7.5px; font-weight: 800; letter-spacing: .4px; flex-shrink: 0; }
.rowcard .main { line-height: 1.3; min-width: 0; flex: 1; }
.rowcard .t { font-size: 12.5px; font-weight: 800; color: #241338; }
.rowcard .s { font-size: 10.5px; color: #8a7ba8; font-weight: 600; }
.badge { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; padding: 4px 8px; border-radius: 6px; flex-shrink: 0; }
.badge.now { background: #eafaf0; color: #1c8a4a; }
.badge.now .dot, .badge.sched .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.sched { background: #fdf3e3; color: #a8690f; }
.badge.grey { background: #f2f0f7; color: #6b6280; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.stage-note { position: relative; text-align: center; color: #9a8fb0; font-size: 11.5px; font-weight: 600; font-style: italic; }
.stage-note.top { margin-top: auto; }
.totalrow { position: relative; margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; }
.totalrow .l { font-size: 11.5px; color: #8a7ba8; font-weight: 700; }
.totalrow .r { font-size: 16px; font-weight: 800; color: #3d1152; font-variant-numeric: tabular-nums; }
.totalrow .r small { font-size: 10.5px; color: #9a8fb0; font-weight: 600; }
.notecard { padding: 10px 12px; }
.notecard .nc-head { display: flex; align-items: center; justify-content: space-between; }
.notecard .nc-label { font-size: 10px; font-weight: 800; color: #9a8fb0; text-transform: uppercase; letter-spacing: .5px; }
.notecard .nc-edit { font-size: 10.5px; font-weight: 800; color: #8a3fd0; cursor: pointer; }
.notecard .nc-text { font-size: 12.5px; color: #241338; font-weight: 600; font-style: italic; margin-top: 4px; }

/* Consent card (8b) */
.consent-card { width: 100%; padding: 14px 15px; display: flex; flex-direction: column; gap: 10px; border-radius: 14px; background: rgba(255,255,255,.72); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 10px 26px -14px rgba(40,12,70,.4); position: relative; }
.consent-head { display: flex; align-items: center; gap: 10px; }
.consent-glogo { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid #e6e1ef; display: grid; place-items: center; }
.consent-glogo img { width: 17px; height: auto; display: block; }
.consent-title { font-size: 13.5px; font-weight: 800; color: #241338; line-height: 1.2; }
.consent-sub { font-size: 11px; color: #8a7ba8; font-weight: 600; }
.consent-scopes { display: flex; flex-direction: column; gap: 6px; }
.consent-scope { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4a3b62; font-weight: 600; }
.consent-scope .ok { color: #1c8a4a; font-weight: 800; }
.consent-scope .no { color: #c23a3a; font-weight: 800; }
.consent-google { height: 42px; border-radius: 11px; border: 1px solid #dcd4ec; background: #fff; color: #241338; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; }
.consent-google img { width: 16px; height: auto; display: block; }
.consent-skip { text-align: center; font-size: 11.5px; color: #9a8fb0; font-weight: 700; cursor: pointer; }
.consent-foot { position: relative; font-size: 10.5px; color: #9a8fb0; text-align: center; line-height: 1.45; max-width: 280px; align-self: center; }

/* Pay state (8h) */
.paycard { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-radius: 13px; }
.payline { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: #4a3b62; }
.payline .muted { color: #9a8fb0; }
.payline b { font-variant-numeric: tabular-nums; font-weight: 700; color: #241338; }
.payline.fees { font-size: 11.5px; color: #8a7ba8; border-top: 1px dashed #e6dcf5; padding-top: 8px; }
.payline.total { border-top: 1px solid #efe8f9; padding-top: 8px; align-items: baseline; }
.payline.total .l { font-size: 12px; font-weight: 800; color: #241338; }
.payline.total .r { font-size: 19px; font-weight: 800; color: #3d1152; font-variant-numeric: tabular-nums; }
.paymethods { position: relative; display: flex; flex-direction: column; gap: 6px; }
.paymethods .lbl { font-size: 9px; font-weight: 800; letter-spacing: .8px; color: #9a8fb0; text-transform: uppercase; }
.pm { border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.pm.apple { height: 38px; border: none; background: #111; color: #fff; font-size: 13.5px; gap: 5px; width: 100%; }
.pm.paypal { height: 34px; border: 1.5px solid #e6e1ef; background: #fff; font-size: 13px; font-style: italic; width: 100%; }
.pm.paypal .p1 { color: #003087; } .pm.paypal .p2 { color: #0079c1; }
.pm-row { display: flex; gap: 6px; }
.pm.zip { flex: 1; height: 34px; border: 1.5px solid #e6e1ef; background: #fff; font-size: 11px; font-weight: 700; color: #4a3b62; gap: 5px; }
.pm.zip .z { background: #5c33f5; color: #fff; font-weight: 800; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; }
.pm.klarna { flex: 1; height: 34px; border: 1.5px solid #e6e1ef; background: #fff; font-size: 12px; color: #17120e; }
.pm.klarna .k { background: #ffb3c7; padding: 3px 9px; border-radius: 6px; }
.pm.card { height: 34px; border: 1.5px solid #e6e1ef; background: #fff; font-size: 12px; font-weight: 700; color: #4a3b62; gap: 7px; width: 100%; }
.pm.selected { outline: 2px solid #c061ff; outline-offset: 1px; }
.pay-listen { position: relative; margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 7px; color: #9a5cd0; font-size: 11.5px; font-weight: 700; font-style: italic; }

/* Delivered (8i) */
.done-receipt { position: relative; margin-top: auto; display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 11.5px; color: #8a7ba8; font-weight: 700; }
.done-receipt b { color: #3d1152; font-weight: 800; font-variant-numeric: tabular-nums; }
.statusicon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.statusicon.ok { background: #eafaf0; color: #1c8a4a; }
.statusicon.q { background: #fdf3e3; color: #a8690f; font-size: 11px; }

/* ======================= COMPOSER ======================= */
.p-composer { border-top: 1px solid #efe8f9; padding: 11px 14px; display: flex; flex-direction: column; gap: 8px; }
.p-instruction { background: #f4f1fa; border: 1.5px solid #e6e1ef; border-radius: 12px; padding: 9px 12px; }
.p-instruction.live { background: #f9f6fe; border-color: #e2d5f6; }
.p-instruction.paused { background: #fff; border: 2px solid #c061ff; box-shadow: 0 8px 22px -14px rgba(192,97,255,.55); }
.p-ins-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.p-ins-label { display: inline-flex; align-items: center; gap: 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .7px; color: #9a8fb0; text-transform: uppercase; }
.p-instruction.live .p-ins-label { color: #9a5cd0; }
.p-instruction.paused .p-ins-label { color: #8a3fd0; }
.p-ins-side { font-size: 9.5px; font-weight: 700; color: #9a8fb0; }
.p-instruction.live .p-ins-side { font-weight: 800; color: #8a3fd0; cursor: pointer; }
.p-instruction.paused .p-ins-side { font-weight: 800; color: #1c8a4a; }
.p-ins-text { font-size: 12px; line-height: 1.5; color: #241338; font-weight: 600; min-height: 18px; overflow-wrap: anywhere; }
.p-ins-text.idle { color: #9a8fb0; font-style: italic; }
.p-ins-text s { color: #c23a3a; text-decoration-color: #c23a3a; }
.p-ins-text mark { background: #f0e3ff; color: #5a1d8f; border-radius: 4px; padding: 0 3px; }
.p-ins-text[contenteditable="true"] { outline: none; }
.p-controls { display: flex; align-items: center; gap: 10px; }
.p-controls-hint { font-size: 10.5px; color: #9a8fb0; font-weight: 600; }
.p-ptt { margin-left: auto; height: 40px; padding: 0 15px; border-radius: 999px; border: none; background: linear-gradient(135deg, #ff4d8d, #c061ff); color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12.5px; flex-shrink: 0; cursor: pointer; font-family: inherit; }
.p-eq { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.p-eq span { width: 2.5px; border-radius: 2px; background: #fff; }
.p-eq span:nth-child(1) { height: 7px; } .p-eq span:nth-child(2) { height: 13px; } .p-eq span:nth-child(3) { height: 10px; }
.p-eq.mini span { width: 2px; } .p-eq.mini span:nth-child(1) { height: 6px; } .p-eq.mini span:nth-child(2) { height: 11px; } .p-eq.mini span:nth-child(3) { height: 8px; }
.p-ptt.talking { padding: 0 20px; gap: 3.5px; }
.p-ptt.talking .p-ptt-label { display: none; }
.p-ptt.talking .p-eq { gap: 3.5px; }
.p-ptt.talking .p-eq span { width: 3px; animation: eqv .85s ease-in-out infinite; }
.p-ptt.talking .p-eq span:nth-child(1) { height: 8px; }
.p-ptt.talking .p-eq span:nth-child(2) { height: 14px; animation-delay: .15s; }
.p-ptt.talking .p-eq span:nth-child(3) { height: 10px; animation-delay: .3s; }
.p-ptt.talking .p-eq span:nth-child(4) { height: 16px; animation-delay: .45s; }
.p-ptt.talking .p-eq span:nth-child(5) { height: 9px; animation-delay: .6s; }
.p-ptt.resume { padding: 0 17px; }
.p-ptt.resume .p-eq { display: none; }

/* ======================= JOURNEY STRIP (10b) ======================= */
.p-journey { border-top: 1px solid #efe8f9; background: linear-gradient(180deg, #fdfbff, #fff); padding: 9px 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.p-jtrack { position: relative; width: 256px; }
.p-jline { position: absolute; left: 32px; right: 32px; top: 7px; height: 2px; border-radius: 2px; background: #e9e3f4; }
.p-jfill { position: absolute; left: 32px; top: 7px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ff4d8d, #c061ff); width: 0; transition: width .5s ease; }
.p-jnodes { position: relative; display: flex; justify-content: space-between; }
.p-jnode { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; }
.p-jnode .n { height: 16px; display: grid; place-items: center; }
.p-jnode .n .pending { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #dcd4ec; box-sizing: border-box; }
.p-jnode .n .donec { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #ff4d8d, #c061ff); color: #fff; display: grid; place-items: center; font-size: 7px; font-weight: 800; box-shadow: 0 2px 6px rgba(192,97,255,.4); }
.p-jnode .n .active { position: relative; width: 16px; height: 16px; display: grid; place-items: center; }
.p-jnode .n .active::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffd6ff, #c061ff); opacity: .4; animation: breathe 2s ease-in-out infinite; }
.p-jnode .n .active::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffd6ff, #c061ff); box-shadow: 0 0 8px rgba(192,97,255,.8); }
.p-jnode .lbl { font-size: 8.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #9a8fb0; }
.p-jnode.done .lbl { color: #241338; }
.p-jnode.active .lbl { color: #8a3fd0; }
.p-jcaption { font-size: 9px; color: #9a8fb0; font-weight: 600; text-align: center; }

.p-foot { border-top: 1px solid #efe8f9; background: #fbfafd; padding: 7px 14px; display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
.p-foot span { font-size: 8.5px; font-weight: 700; letter-spacing: .8px; color: #9a8fb0; text-transform: uppercase; }
.p-foot img { height: 9px; display: block; }

/* ======================= CHECKOUT (9b) ======================= */
#checkoutRoot { display: none; }
body.checkout #shell { display: none; }
body.checkout #checkoutRoot { display: flex; flex-direction: column; height: 100vh; background: #f6f2fd; position: relative; }
.co-head { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid #e6e1ef; background: #fff; }
.co-secure { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #4a3b62; }
.co-steps { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0 4px; font-size: 11.5px; font-weight: 700; }
.co-step { display: inline-flex; align-items: center; gap: 6px; }
.co-step .c { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.co-step.done { color: #1c8a4a; } .co-step.done .c { background: #1c8a4a; color: #fff; }
.co-step.cur { color: #3d1152; } .co-step.cur .c { background: #3d1152; color: #fff; }
.co-step.next { color: #9a8fb0; } .co-step.next .c { background: #e6e1ef; color: #8a7ba8; }
.co-bar { width: 44px; height: 2px; border-radius: 2px; }
.co-bar.done { background: #1c8a4a; } .co-bar.next { background: #dcd4ec; }
.co-cols { flex: 1; display: flex; gap: 20px; padding: 18px 40px 20px; overflow: auto; justify-content: center; }
.co-main { width: 520px; display: flex; flex-direction: column; gap: 12px; }
.co-note { display: flex; align-items: center; gap: 9px; background: #f7ecff; border: 1px solid #ecd9ff; border-radius: 11px; padding: 9px 13px; }
.co-note .dot { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffd6ff, #c061ff); flex-shrink: 0; }
.co-note span { font-size: 11.5px; line-height: 1.4; color: #5a1d8f; font-weight: 600; }
.co-card { background: #fff; border: 1px solid #e6e1ef; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.co-card h3 { margin: 0; font-size: 13.5px; font-weight: 800; color: #3d1152; }
.co-recip { display: flex; align-items: center; gap: 10px; border: 1.5px solid #e6e1ef; border-radius: 10px; padding: 10px 12px; }
.co-recip .avatar { width: 26px; height: 26px; font-size: 10px; }
.co-recip .main { line-height: 1.3; flex: 1; min-width: 0; }
.co-recip .t { font-size: 12.5px; font-weight: 800; color: #241338; }
.co-recip .s { font-size: 11px; color: #8a7ba8; font-weight: 600; }
.co-recip .edit { font-size: 10.5px; font-weight: 700; color: #5a1d8f; cursor: pointer; flex-shrink: 0; }
.co-paytabs { display: flex; gap: 9px; }
.co-paytab { flex: 1; border: 1.5px solid #e6e1ef; border-radius: 10px; padding: 11px 12px; font-size: 12px; font-weight: 700; color: #6b6280; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.co-paytab.sel { border-color: #3d1152; background: #f6f2fd; font-weight: 800; color: #241338; }
.co-paytab.sel .chk { margin-left: auto; width: 15px; height: 15px; border-radius: 50%; background: #3d1152; color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.co-side { width: 300px; flex-shrink: 0; }
.co-summary { background: #fff; border: 1px solid #e6e1ef; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.co-line { display: flex; justify-content: space-between; font-size: 12px; color: #4a3b62; font-weight: 600; }
.co-line span:last-child { font-variant-numeric: tabular-nums; }
.co-line.fees { color: #8a7ba8; border-top: 1px solid #efe8f9; padding-top: 9px; }
.co-line.total { font-size: 14.5px; color: #241338; font-weight: 800; }
.co-place { height: 44px; border-radius: 11px; border: none; background: #3d1152; color: #fff; font-weight: 800; font-size: 13.5px; cursor: pointer; margin-top: 2px; }
.co-witness { text-align: center; font-size: 10.5px; color: #9a8fb0; font-weight: 600; cursor: pointer; }
.co-resume { position: absolute; right: 20px; bottom: 18px; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #ecd9ff; box-shadow: 0 14px 34px -14px rgba(40,12,70,.45); border-radius: 999px; padding: 8px 16px 8px 9px; cursor: pointer; }
.co-resume .rail-orb { width: 24px; height: 24px; }
.co-resume .rail-orb::after { inset: 6px; }
.co-resume .t { font-size: 12px; font-weight: 800; color: #241338; line-height: 1.2; }
.co-resume .s { font-size: 9.5px; color: #9a8fb0; font-weight: 700; }

/* Evidence panel reuse (from classic, restyled minimally to tokens) */
#evidencePanel { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
#evidencePanel .ev-scrim { position: absolute; inset: 0; background: rgba(36,19,56,.45); opacity: 0; transition: opacity .2s; }
#evidencePanel .ev-drawer { position: absolute; top: 0; right: -520px; width: 500px; max-width: 94vw; height: 100%; background: #fff; box-shadow: -12px 0 40px rgba(40,12,70,.18); transition: right .25s ease; display: flex; flex-direction: column; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
#evidencePanel.open { pointer-events: auto; }
#evidencePanel.open .ev-scrim { opacity: 1; }
#evidencePanel.open .ev-drawer { right: 0; }
.ev-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #efe8f9; }
.ev-head h3 { margin: 0; font-size: 16px; color: #241338; }
.ev-aep { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #8a3fd0; border: 1px solid #e2d5f6; border-radius: 4px; padding: 2px 6px; vertical-align: middle; margin-left: 6px; }
.ev-close { border: 0; background: none; font-size: 22px; cursor: pointer; color: #9a8fb0; }
.ev-body { overflow-y: auto; padding: 14px 18px 24px; font-size: 13px; color: #4a3b62; }
.ev-empty { color: #8a7ba8; }
.ev-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ev-verify { font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.ev-verify.ok { background: #eafaf0; color: #1c8a4a; }
.ev-verify.bad { background: #fdecec; color: #c23a3a; }
.ev-sealed { font-weight: 700; background: #241338; color: #ffd23f; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.ev-sealed code { color: #ffd23f; }
.ev-open { color: #8a7ba8; font-size: 12px; padding: 3px 0; }
.ev-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #e9e3f4; }
.ev-row.post-seal { background: #fdfbff; }
.ev-seq { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #f4f1fa; color: #4a3b62; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.ev-main { flex: 1; min-width: 0; }
.ev-type { font-weight: 800; color: #241338; }
.ev-actor { font-weight: 600; color: #9a8fb0; font-size: 11px; margin-left: 6px; text-transform: uppercase; letter-spacing: .05em; }
.ev-postseal { font-size: 10px; font-weight: 700; color: #a8690f; background: #fdf3e3; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.ev-detail { color: #4a3b62; margin: 3px 0; line-height: 1.45; overflow-wrap: anywhere; }
.ev-note { color: #8a3fd0; font-size: 11px; }
.ev-hash { font-size: 11px; color: #9a8fb0; overflow-wrap: anywhere; }
.ev-hash code, .ev-detail code { font-size: 11px; background: #f4f1fa; border-radius: 3px; padding: 0 4px; }
.ev-receipts summary { cursor: pointer; color: #8a3fd0; font-size: 12px; margin-top: 3px; }
.ev-receipts ul { margin: 6px 0 0 16px; padding: 0; }
.ev-foot { color: #9a8fb0; font-size: 11px; margin-top: 14px; line-height: 1.5; }

/* ============ THINKING CUE (below the orb, while Alex runs a tool) ============ */
.thinking-cue {
  position: absolute; left: 50%; top: 40%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(6px);
  border: 1px solid #e6e1ef; border-radius: 999px; padding: 8px 15px;
  box-shadow: 0 8px 22px -10px rgba(40,12,70,.35); z-index: 6;
  animation: popin .25s ease;
}
.thinking-cue[hidden] { display: none; }
.thinking-cue .tc-label { font-size: 12.5px; font-weight: 700; color: #6b6280; letter-spacing: .01em; }
.thinking-cue .tc-dots { display: inline-flex; gap: 4px; }
.thinking-cue .tc-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg,#ff4d8d,#c061ff);
  animation: tcbounce 1.1s ease-in-out infinite;
}
.thinking-cue .tc-dots span:nth-child(2) { animation-delay: .18s; }
.thinking-cue .tc-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes tcbounce { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
