/* The homepage phone: ZeusCoffer's Zeus Illustrated screens (dark), at the iPhone's 393 × 852 points, scaled with zoom.
   Layouts follow the app's Today, Activity, Plan, Insights and Accounts screens (theme-cleanup-2026-10-25 references);
   colours are the app's (olympus.tsx hero ink, ledger.ts Zeus dark palette, accents.ts Sky). Every class starts with p-. */
.p-device { --z: .78; position: relative; width: calc(417px * var(--z)); height: calc(876px * var(--z)); border-radius: calc(66px * var(--z)); padding: calc(12px * var(--z));
  background: linear-gradient(145deg, #3A3F4A, #15181E 40%, #2A2E36); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 80px -20px rgba(0,0,0,.55), 0 18px 36px -18px rgba(5,166,222,.25); }
.p-screen { zoom: var(--z); position: relative; width: 393px; height: 852px; border-radius: 55px; overflow: hidden; background: #0B0F19; color: #F5F8FF;
  font: 17px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; isolation: isolate; }
.p-screen button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
.p-screen svg { display: block; }
.p-island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; z-index: 30; }
.p-status { position: absolute; inset: 0 0 auto; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 34px 0 52px; z-index: 25; font-weight: 600; font-size: 17px; pointer-events: none; }
.p-status .p-sys { display: flex; gap: 6px; align-items: center; }
.p-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 58px 18px 130px; scrollbar-width: none; }
.p-scroll::-webkit-scrollbar { display: none; }
.p-scroll.p-anim { animation: p-in .32s cubic-bezier(.2,.8,.2,1); }
@keyframes p-in { from { opacity: 0; transform: translateX(var(--dx, 0px)); } to { opacity: 1; transform: none; } }
.p-pulse { opacity: 0; transform-box: fill-box; transform-origin: center; animation: p-pulse 2.6s cubic-bezier(.2,.7,.3,1) 1.6s infinite; }
@keyframes p-pulse { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }
.p-intro .p-line { stroke-dasharray: 1; animation: p-draw 1.3s cubic-bezier(.3,.6,.2,1) both; }
.p-intro .p-area { animation: p-fade .9s ease-out .7s both; }
.p-intro .p-end { animation: p-pop .4s cubic-bezier(.2,1.4,.4,1) 1.2s both; transform-box: fill-box; transform-origin: center; }
.p-intro .p-quiet b { animation: p-up .5s cubic-bezier(.2,.8,.2,1) both; }
.p-intro .p-quiet div:nth-child(2) b { animation-delay: .04s; } .p-intro .p-quiet div:nth-child(3) b { animation-delay: .08s; }
@keyframes p-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes p-fade { from { opacity: 0; } }
@keyframes p-pop { from { transform: scale(0); } }
@keyframes p-up { from { opacity: 0; transform: translateY(8px); } }
.p-row, .p-next, .p-bars button, .p-key button, .p-stack button, .p-tabs button { transition: transform .12s ease-out, background-color .2s; }
.p-row:active, .p-next:active, .p-tabs button:active, .p-chips button:active { transform: scale(.97); }
.p-check { transition: background-color .2s, border-color .2s, transform .3s cubic-bezier(.2,1.6,.4,1); }
.p-paid .p-check { transform: scale(1.12); }

/* App header: wordmark pill on the left, action pill on the right (glass). */
.p-top { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 16px; }
.p-pill { display: flex; align-items: center; height: 50px; border-radius: 25px; background: rgba(40,46,60,.72); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.p-word { padding: 0 16px; font: 700 26px/1 Georgia, serif; letter-spacing: -1.3px; color: #F5F8FF; }
.p-acts { gap: 2px; padding: 0 6px; }
.p-acts button { width: 44px; height: 44px; display: grid; place-items: center; position: relative; border-radius: 22px; }
.p-acts .p-badge::after { content: ""; position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #FF5A5F; border: 2px solid #232836; }
.p-ava { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; position: relative; background: #2E6B4E; }
.p-ava img { position: absolute; width: 71px; max-width: none; left: -16.6px; top: -2.4px; }
.p-greet { font-size: 17px; color: #F5F8FF; margin: 0 0 18px; font-weight: 600; }
.p-greet span { color: #A9B4CC; font-weight: 400; }
.p-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; }
.p-large { font-size: 34px; font-weight: 700; letter-spacing: -.6px; }
.p-month { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 20px; background: rgba(28,36,53,.9); border: 1px solid rgba(255,255,255,.08); font-size: 16px; }
.p-month i { color: #05A6DE; font-style: normal; font-size: 18px; padding: 0 4px; }
.p-search { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 23px; padding: 0 16px; background: rgba(28,36,53,.9); border: 1px solid rgba(255,255,255,.08); color: #8F9AB3; margin-bottom: 18px; }

/* The night card: every tab's hero (HeroSurface in olympus.tsx). */
.p-card { position: relative; border-radius: 24px; padding: 22px 22px 8px; background: radial-gradient(75% 60% at 85% 0%, rgba(110,139,255,.20), transparent 70%), linear-gradient(162deg, #121A3A, #0B1128); border: 1px solid rgba(255,255,255,.09); }
.p-eyebrow { color: #A3ACC6; font-size: 13px; font-weight: 600; letter-spacing: 1px; white-space: nowrap; text-transform: uppercase; }
.p-label { color: #A3ACC6; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-label button { width: 32px; height: 32px; display: grid; place-items: center; margin: -6px -6px -6px 0; }
.p-fig { display: flex; align-items: baseline; margin: 10px 0 2px; font-weight: 600; letter-spacing: -1.6px; transition: color .3s; }
.p-fig b { font-size: 62px; font-weight: 600; line-height: 1.02; }
.p-fig small { font-size: 40px; color: #A3ACC6; font-weight: 500; letter-spacing: -.6px; }
.p-cap { color: #A3ACC6; font-size: 15px; }
.p-coral { color: #FF8E7E; } .p-mint { color: #5FD6A8; } .p-gold { color: #E9C46A; } .p-faint { color: #7F89A5; }
.p-quiet { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); }
.p-quiet > div { padding: 0 8px; border-left: 1px solid rgba(255,255,255,.09); }
.p-quiet > div:first-child { padding-left: 0; border: 0; }
.p-quiet span { display: block; color: #A3ACC6; font-size: 13px; white-space: nowrap; }
.p-quiet b { display: block; font-size: 21px; font-weight: 600; margin-top: 2px; }
.p-link { display: block; padding: 14px 0; min-height: 44px; font-size: 16px; font-weight: 600; color: #F4F6FB; }
.p-chip { display: inline-flex; flex: none; white-space: nowrap; height: 28px; align-items: center; padding: 0 11px; border-radius: 14px; font-size: 14px; font-weight: 500; color: #5FD6A8; background: rgba(95,214,168,.12); border: 1px solid rgba(95,214,168,.28); }

/* Pace chart */
.p-chart { position: relative; margin: 14px 0 0; touch-action: pan-y; cursor: crosshair; }
.p-chart-top { display: flex; justify-content: space-between; font-size: 14px; color: #7F89A5; margin-bottom: 6px; }
.p-chart-top b { font-weight: 600; }
.p-axis { display: flex; justify-content: space-between; font-size: 13px; color: #7F89A5; margin-top: 4px; }

/* Freshness line, Next card and lists */
.p-fresh { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; margin: 6px 0 12px; color: #A9B4CC; font-size: 14px; }
.p-next { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; background: linear-gradient(rgba(233,196,106,.10), rgba(233,196,106,.10)), #1A2030; min-height: 72px; transition: transform .25s, opacity .25s; }
.p-next.p-gone { transform: translateX(-110%); opacity: 0; }
.p-dot { width: 40px; height: 40px; flex: none; border-radius: 20px; display: grid; place-items: center; }
.p-next .p-dot { background: rgba(233,196,106,.14); }
.p-next .p-k { color: #E9C46A; font-size: 13px; font-weight: 600; }
.p-next .p-t { font-size: 17px; font-weight: 600; margin: 1px 0; }
.p-next .p-d { color: #A9B4CC; font-size: 13px; }
.p-grow { flex: 1; min-width: 0; }
.p-sect { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 10px; }
.p-sect h4 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.3px; }
.p-sect button, .p-sect span { color: #05A6DE; font-size: 16px; }
.p-sect span.p-faint { color: #A9B4CC; font-size: 15px; }
.p-list { border-radius: 18px; background: #141A28; overflow: hidden; }
.p-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 64px; border-top: 1px solid rgba(255,255,255,.06); transition: background-color .2s, opacity .3s; }
.p-row:first-child { border-top: 0; }
.p-row:active { background: rgba(255,255,255,.04); }
.p-row .p-t { font-size: 17px; font-weight: 500; }
.p-row .p-d { color: #A9B4CC; font-size: 14px; }
.p-row .p-amt { font-size: 17px; font-weight: 600; white-space: nowrap; }
.p-init { width: 40px; height: 40px; flex: none; border-radius: 20px; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: #05A6DE; background: #10354A; }
.p-row.p-paid { opacity: .55; }
.p-row.p-paid .p-amt { text-decoration: line-through; }
.p-check { width: 26px; height: 26px; border-radius: 13px; border: 2px solid #3A4560; flex: none; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.p-paid .p-check { background: #22E3A0; border-color: #22E3A0; }
.p-group { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px; }
.p-group .p-t { font-size: 18px; font-weight: 600; }
.p-group .p-d { color: #A9B4CC; font-size: 14px; }
.p-caret { transition: transform .25s; color: #A9B4CC; margin-left: 10px; }
.p-open .p-caret { transform: rotate(180deg); }

/* Activity week bars */
.p-weekrow { display: flex; justify-content: space-between; color: #A3ACC6; font-size: 15px; margin-top: 18px; }
.p-weekrow b { color: #F4F6FB; font-weight: 600; }
.p-weekval { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.p-weekval b { font-size: 24px; font-weight: 600; }
.p-weekval span { color: #A3ACC6; font-size: 15px; }
.p-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.p-track i { display: block; height: 100%; border-radius: 3px; background: #F4F6FB; transition: width .4s; }
.p-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 104px; margin-top: 14px; }
.p-bars button { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.p-bars i { display: block; border-radius: 8px; background: rgba(169,180,204,.34); transition: background-color .2s, height .4s; min-height: 4px; }
.p-bars .p-on i { background: #F4F6FB; }
.p-blabels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; color: #A3ACC6; font-size: 13px; text-align: center; margin-top: 6px; }
.p-blabels .p-on { color: #F4F6FB; font-weight: 600; }

/* Plan bar */
.p-stack { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; margin: 18px 0 10px; background: rgba(255,255,255,.08); }
.p-stack button { height: 100%; transition: opacity .2s; }
.p-stack.p-sel button:not(.p-on) { opacity: .3; }
.p-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; color: #A3ACC6; font-size: 14px; }
.p-legend i, .p-key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.p-hint { color: #7F89A5; font-size: 14px; margin-top: 10px; min-height: 36px; }

/* Insights */
.p-donut { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.p-key { display: grid; gap: 7px; }
.p-key button { display: flex; align-items: center; font-size: 15px; color: #F4F6FB; transition: opacity .2s; }
.p-key button span { margin-left: auto; color: #A3ACC6; }
.p-key.p-sel button:not(.p-on) { opacity: .35; }
.p-donut path { transition: opacity .2s; }
.p-ask .p-row .p-t { font-size: 16px; font-weight: 500; line-height: 1.3; }
.p-bolt { width: 40px; height: 40px; flex: none; border-radius: 20px; display: grid; place-items: center; background: #16285A; }

/* Accounts */
.p-nw { height: 10px; border-radius: 5px; display: flex; gap: 3px; overflow: hidden; margin: 16px 0 4px; }
.p-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
.p-cards::-webkit-scrollbar { display: none; }
.p-bank { flex: none; width: 320px; scroll-snap-align: start; border-radius: 22px; overflow: hidden; background: #101827; border: 1px solid rgba(255,255,255,.08); }
.p-bank-top { display: flex; align-items: center; gap: 12px; height: 70px; padding: 0 18px; font-size: 20px; font-weight: 600; }
.p-bank-top span { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.92); }
.p-bank-body { padding: 18px; }
.p-bank-body .p-r { display: flex; justify-content: space-between; align-items: baseline; }
.p-bank-body .p-n { font-size: 19px; font-weight: 600; }
.p-bank-body .p-last { color: #A9B4CC; font-size: 15px; letter-spacing: 1px; }
.p-bank-body .p-bal { margin-top: 34px; }
.p-bank-body .p-bal span { color: #A9B4CC; font-size: 15px; }
.p-bank-body .p-bal b { font-size: 30px; font-weight: 600; letter-spacing: -.6px; }
.p-bank-body .p-bal b small { font-size: 20px; color: #A9B4CC; font-weight: 500; }
.p-used { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); margin-top: 12px; overflow: hidden; }
.p-used i { display: block; height: 100%; background: #FF8E7E; }

/* Tab bar and floating add */
.p-tabs { position: absolute; left: 22px; right: 22px; bottom: 26px; height: 70px; border-radius: 35px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px; z-index: 20;
  background: rgba(30,36,50,.97); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08); }
.p-lens { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 5); border-radius: 30px; background: rgba(10,14,24,.72); transition: transform .38s cubic-bezier(.3,1.3,.5,1); }
.p-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 500; color: #F5F8FF; }
.p-tabs button[aria-selected="true"] { color: #05A6DE; font-weight: 600; }
.p-fab { position: absolute; right: 18px; bottom: 116px; width: 62px; height: 62px; border-radius: 31px; display: grid; place-items: center; z-index: 21; background: #0A4A63; border: 1.5px solid #05A6DE; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .2s, opacity .2s; }
.p-fab:active { transform: scale(.92); }
.p-fab.p-off { opacity: 0; transform: scale(.6); pointer-events: none; }

/* Sheet (Add expense, Ask Zeus) */
.p-shade { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.p-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 60px; z-index: 41; background: #111726; border-radius: 14px 14px 0 0; transform: translateY(102%); transition: transform .42s cubic-bezier(.2,.9,.2,1); display: flex; flex-direction: column; }
.p-on-sheet .p-shade { opacity: 1; pointer-events: auto; }
.p-on-sheet .p-sheet { transform: none; }
.p-on-sheet .p-scroll { transform: scale(.94) translateY(8px); border-radius: 24px; filter: brightness(.7); }
.p-scroll { transition: transform .42s cubic-bezier(.2,.9,.2,1), filter .42s; transform-origin: 50% 0; }
.p-grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); margin: 7px auto 0; flex: none; }
.p-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; flex: none; }
.p-sheet-head h5 { margin: 0; font-size: 17px; font-weight: 600; }
.p-sheet-head button { height: 40px; padding: 0 16px; border-radius: 20px; background: #1C2435; font-size: 16px; }
.p-sheet-head .p-save { background: #05A6DE; color: #00121C; font-weight: 600; }
.p-sheet-head .p-save:disabled { opacity: .4; cursor: default; }
.p-sheet-body { padding: 6px 16px 40px; overflow-y: auto; flex: 1; scrollbar-width: none; }
.p-form { border-radius: 16px; background: #1A2133; padding: 4px 16px; margin-bottom: 14px; }
.p-field { display: flex; justify-content: space-between; align-items: center; min-height: 50px; border-top: 1px solid rgba(255,255,255,.07); font-size: 16px; }
.p-field:first-child { border: 0; }
.p-field span:last-child { color: #A9B4CC; }
.p-field .p-pillv { background: #283047; color: #F5F8FF; padding: 5px 10px; border-radius: 10px; }
.p-amount { display: flex; align-items: baseline; gap: 4px; padding: 10px 0 6px; }
.p-amount span { font-size: 34px; color: #8F9AB3; font-weight: 500; }
.p-amount input { all: unset; width: 100%; font-size: 44px; font-weight: 600; letter-spacing: -1px; color: #F5F8FF; caret-color: #05A6DE; -webkit-user-select: text; user-select: text; }
.p-amount input::placeholder { color: #4A5570; }
.p-small { color: #A9B4CC; font-size: 14px; padding: 10px 0 2px; }
.p-payee { all: unset; display: block; width: 100%; font-size: 17px; padding: 10px 0 12px; border-bottom: 1px solid rgba(255,255,255,.07); color: #F5F8FF; -webkit-user-select: text; user-select: text; }
.p-payee::placeholder { color: #6B7690; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
.p-chips button { height: 34px; padding: 0 14px; border-radius: 17px; background: #10354A; color: #BFE8FA; font-size: 14px; }
.p-chips button[aria-pressed="true"] { background: #05A6DE; color: #00121C; }
.p-seg { display: grid; grid-template-columns: repeat(4, 1fr); background: #232B3F; border-radius: 10px; padding: 2px; margin: 8px 0 12px; font-size: 14px; text-align: center; }
.p-seg span { padding: 7px 0; border-radius: 8px; }
.p-seg span:first-child { background: #3A4560; }
.p-foot { color: #7F89A5; font-size: 13px; padding: 0 4px 12px; }
.p-bubble { margin: 6px 0 16px auto; max-width: 78%; width: fit-content; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: #7D97FF; color: #08102B; font-size: 16px; }
.p-zeus { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.p-zeus .p-bolt { width: 28px; height: 28px; }
.p-answer { font-size: 21px; font-weight: 600; letter-spacing: -.2px; line-height: 1.3; }
.p-answer.p-type { min-height: 56px; }
.p-figs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 14px; font-size: 16px; color: #A3ACC6; }
.p-figs b { color: #F4F6FB; font-weight: 600; margin-left: 4px; }
.p-srcs { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; font-size: 14px; color: #7F89A5; }
.p-srcs div { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; color: #7D97FF; font-weight: 600; font-size: 15px; }
.p-ask-card { border-radius: 22px; padding: 18px; background: linear-gradient(162deg, #121A3A, #0B1128); border: 1px solid rgba(255,255,255,.09); }

/* Toast */
.p-toast { position: absolute; left: 50%; top: 62px; z-index: 50; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 24px;
  background: rgba(30,36,50,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 15px; white-space: nowrap; transition: transform .3s cubic-bezier(.2,1.2,.4,1), opacity .25s; }
.p-toast.p-show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.p-toast button { color: #05A6DE; font-weight: 600; padding: 4px 8px; }
.p-hide-amounts .p-money { filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .p-screen *, .p-screen *::before { transition-duration: 0s !important; animation: none !important; }
}
