/* PROJECT PRIME — Project 45 Days (Upwell-style: calm black, soft cards, one white accent) */
.p45 {
  --p-card: #17181b; --p-card-2: #1f2024; --p-line: rgba(255, 255, 255, .07); --p-line-2: rgba(255, 255, 255, .14);
  --p-txt: #f5f5f7; --p-dim: #8e8e93; --p-faint: #48484d; --p-hi: #ffa21f; --p-no: #2f8cff; --p-lo: #33d6a0; --p-red: #ff453a;
  --p-r: 22px; --p-font: -apple-system, 'SF Pro Text', 'Figtree', system-ui, sans-serif;
  font-family: var(--p-font); color: var(--p-txt); padding-bottom: 40px;
}
.p45 button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.p45 button:focus-visible, .p45 input:focus-visible { outline: 2px solid var(--p-txt); outline-offset: 2px; }
.p45 button:disabled { opacity: .3; cursor: default; }
.p45-card { display: block; width: 100%; background: linear-gradient(180deg, var(--p-card-2), var(--p-card)); border: 1px solid var(--p-line); border-radius: var(--p-r); }
.p45-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 18px; }
.p45-h h1 { font: 800 clamp(34px, 9vw, 44px)/1.05 var(--p-font); letter-spacing: -.02em; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.p45-tools { display: flex; background: var(--p-card-2); border: 1px solid var(--p-line); border-radius: 999px; padding: 4px; }
.p45-tools button, .p45-round { width: 46px; height: 42px; border-radius: 999px; display: grid; place-items: center; font-size: 22px; transition: background .15s var(--ease-out, ease-out); }
.p45-tools button:hover, .p45-round:hover { background: rgba(255, 255, 255, .06); }
.p45-tools button.on { background: rgba(255, 255, 255, .12); }
.p45-tools button:active, .p45-round:active { transform: scale(.94); }
.p45-round { width: 52px; height: 52px; background: var(--p-card-2); border: 1px solid var(--p-line-2); }

/* section head */
.p45-sh { display: flex; align-items: center; gap: 10px; margin: 30px 2px 14px; }
.p45-sh h2 { font: 700 26px/1 var(--p-font); letter-spacing: -.01em; margin: 0; }
.p45-pill { background: var(--p-card-2); color: var(--p-dim); border-radius: 999px; padding: 6px 12px; font: 600 14px var(--p-font); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.p45-sh .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font: 600 15px var(--p-font); white-space: nowrap; }
.p45-sh .more:hover { opacity: .75; }
.p45-none { color: var(--p-dim); margin: 6px 4px; font-size: 15px; }
.p45-empty { padding: 22px; text-align: center; color: var(--p-dim); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; border-style: dashed; }
.p45-empty:hover { color: var(--p-txt); }

/* week strip */
.p45-week { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 14px 12px 14px 14px; margin: 0 0 18px; background: linear-gradient(180deg, #1b1c20, #111214); border: 1px solid var(--p-line); border-radius: 0 0 30px 30px; touch-action: pan-y; }
.p45-week .mo { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 4px 4px 2px; }
.p45-week .mo b { font: 700 15px var(--p-font); letter-spacing: .02em; }
.p45-week .mo span { font: 500 13px var(--p-font); color: var(--p-dim); }
.p45-week .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.p45-week .days button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 12px; border-radius: 16px; color: var(--p-dim); transition: background .15s; }
.p45-week .days button span { font: 500 13px var(--p-font); }
.p45-week .days button b { font: 600 20px var(--p-font); font-variant-numeric: tabular-nums; color: var(--p-txt); }
.p45-week .days button.fut b { color: var(--p-dim); }
.p45-week .days button.on { background: rgba(255, 255, 255, .1); color: var(--p-txt); }
.p45-week .days button:hover:not(.on) { background: rgba(255, 255, 255, .04); }
.p45-week .days button i { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #ff375f; }
.p45-ring { position: relative; width: 54px; height: 54px; display: grid; place-items: center; }
.p45-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.p45-ring circle { fill: none; stroke: #2c2d31; stroke-width: 4; }
.p45-ring circle.v { stroke: var(--p-txt); stroke-linecap: round; }
.p45-ring b { font: 700 17px var(--p-font); font-variant-numeric: tabular-nums; }

/* mood */
.p45-mood { position: relative; padding: 18px 16px 18px; text-align: center; }
.p45-mood h3 { font: 600 19px var(--p-font); margin: 0 0 14px; }
.p45-mood .x { position: absolute; left: 14px; top: 14px; color: var(--p-red); font-size: 20px; }
.p45-mood > div { display: flex; justify-content: center; gap: clamp(6px, 2vw, 12px); }
.p45-mood > div button { width: clamp(44px, 12vw, 54px); aspect-ratio: 1; border-radius: 50%; background: #121315; border: 1px solid var(--p-line); font-size: clamp(22px, 6vw, 28px); transition: transform .15s var(--ease-out, ease-out), background .15s; }
.p45-mood > div button:hover { background: #202125; }
.p45-mood > div button:active { transform: scale(.9); }
.p45-moodset { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 26px; text-align: left; }
.p45-moodset span { flex: 1; font: 500 15px var(--p-font); color: var(--p-dim); }
.p45-moodset .ti { font-size: 16px; color: var(--p-dim); }

/* rows */
.p45-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 4px; margin-bottom: 10px; min-height: 64px; }
.p45-row .tap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 6px 4px 6px 16px; text-align: left; }
.p45-row .em { font-size: 22px; width: 26px; text-align: center; flex: none; }
.p45-row .nm { font: 500 19px/1.25 var(--p-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p45-row.done .nm { color: var(--p-dim); }
.p45-row.td.done .nm { text-decoration: line-through; }
.p45-row .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.p45-row .due { display: inline-flex; align-items: center; gap: 6px; color: var(--p-dim); font: 500 15px var(--p-font); }
.p45-row .due.late { color: var(--p-red); }
.p45-row.td .p45-ck { margin-left: 8px; }
.p45-row.td > .p45-pri { margin-right: 6px; }
.p45-ck { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--p-txt); display: grid; place-items: center; transition: transform .15s var(--ease-out, ease-out), background .15s; }
.p45-ck:hover { background: rgba(255, 255, 255, .06); }
.p45-ck:active { transform: scale(.88); }
.p45-ck.on { background: var(--p-txt); color: #000; font-size: 22px; }
.p45-ck svg { position: absolute; inset: -2.5px; transform: rotate(-90deg); }
.p45-ck svg circle { fill: none; stroke: var(--p-txt); stroke-width: 3; stroke-linecap: round; }
.p45-ck:has(svg) { border-color: var(--p-faint); }
.p45-ck b { font: 700 14px var(--p-font); }
.p45-pri { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #101113; font-size: 16px; }
.p45-pri .ti { -webkit-text-stroke: 1px currentColor; }
.p45-pri.hi { background: var(--p-hi); } .p45-pri.no { background: var(--p-no); } .p45-pri.lo { background: var(--p-lo); }

/* habit cards (list) */
.p45-hc { position: relative; margin-bottom: 14px; }
.p45-hc .tap { display: grid; grid-template-columns: 1fr auto; width: 100%; padding: 22px 20px 20px; text-align: left; row-gap: 4px; }
.p45-hc .hd { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding-right: 54px; margin-bottom: 18px; }
.p45-hc .hd .em { font-size: 26px; width: 30px; text-align: center; }
.p45-hc .hd .nm { font: 600 20px var(--p-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p45-hc .ct { display: flex; flex-direction: column; gap: 2px; }
.p45-hc .ct b { font: 600 28px var(--p-font); font-variant-numeric: tabular-nums; }
.p45-hc .ct span { color: var(--p-dim); font: 500 15px var(--p-font); }
.p45-hc .st { align-self: end; font: 600 16px var(--p-font); color: var(--p-dim); font-variant-numeric: tabular-nums; }
.p45-hc .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: #2c2d31; margin-top: 16px; overflow: hidden; }
.p45-hc .bar u { display: block; height: 100%; background: var(--p-txt); border-radius: inherit; transition: width .3s var(--ease-out, ease-out); }
.p45-hc > .p45-ck, .p45-hc > .p45-mini { position: absolute; top: 16px; right: 16px; }
.p45-hc .p45-ck { width: 34px; height: 34px; border-width: 2.2px; }
.p45-hc.arch { opacity: .75; }

/* habit month grid */
.p45-mnav { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; margin-bottom: 14px; }
.p45-mnav b { font: 600 20px var(--p-font); }
.p45-mnav button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.p45-mnav button:hover:not(:disabled) { background: rgba(255, 255, 255, .06); }
.p45-mnav.flat { padding: 0 0 14px; }
.p45-mnav.flat button { background: var(--p-card-2); }
.p45-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p45-mc { padding: 16px; text-align: left; }
.p45-mc .hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-width: 0; }
.p45-mc .em { font-size: 22px; }
.p45-mc .nm { font: 600 17px var(--p-font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p45-mc .dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; width: min(100%, 150px); margin: 0 auto; }
.p45-mc .dots i { aspect-ratio: 1; border-radius: 50%; background: #55565b; }
.p45-mc .dots i.on { background: var(--p-txt); }
.p45-mc .dots i.fut { background: #2a2b2f; }
.p45-mc .dots i.pad { background: none; }

/* todos */
.p45-ov { padding: 18px 18px 20px; }
.p45-ov h3, .p45-set h3 { font: 600 17px var(--p-font); margin: 0 0 14px; }
.p45-ov > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p45-ov span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--p-dim); font: 500 14px var(--p-font); }
.p45-ov span.mid { border-left: 1px solid var(--p-line); border-right: 1px solid var(--p-line); }
.p45-ov b { font: 600 36px var(--p-font); color: var(--p-txt); font-variant-numeric: tabular-nums; }
.p45-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.p45-tile { --c: var(--p-no); position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px 16px; border-radius: var(--p-r); border: 1px solid var(--p-line); background: radial-gradient(120% 90% at 50% 120%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%), var(--p-card); transition: transform .15s var(--ease-out, ease-out), border-color .15s; }
.p45-tile.hi { --c: var(--p-hi); } .p45-tile.lo { --c: var(--p-lo); }
.p45-tile:hover { border-color: var(--p-line-2); }
.p45-tile:active { transform: scale(.97); }
.p45-tile.on { border-color: color-mix(in srgb, var(--c) 80%, white); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent) inset; }
.p45-tile .top { align-self: stretch; display: flex; justify-content: space-between; align-items: center; color: var(--p-dim); }
.p45-tile b { font: 700 40px/1 var(--p-font); font-variant-numeric: tabular-nums; }
.p45-tile em { font: 600 14px var(--p-font); font-style: normal; padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14); }
.p45-pill.btn:hover { color: var(--p-txt); }

/* stats */
.p45-wk { padding: 20px 18px 16px; }
.p45-wk .hd { display: flex; justify-content: space-between; align-items: flex-start; }
.p45-wk h3 { font: 600 24px var(--p-font); margin: 0 0 4px; }
.p45-wk .hd span { color: var(--p-dim); font: 500 17px var(--p-font); }
.p45-wk .nv { display: flex; gap: 8px; }
.p45-wk .nv button { width: 42px; height: 42px; border-radius: 50%; background: var(--p-card-2); display: grid; place-items: center; font-size: 18px; }
.p45-chart { width: 100%; height: 150px; margin: 18px 0 6px; overflow: visible; }
.p45-chart .ln { fill: none; stroke: var(--p-txt); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.p45-chart .base { stroke: var(--p-faint); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.p45-chart circle { fill: var(--p-txt); }
.p45-wk .lb { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; color: var(--p-dim); font: 500 15px/1.35 var(--p-font); }
.p45-wk .lb em { display: block; font-style: normal; }
.p45-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.p45-trio span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; background: rgba(255, 255, 255, .035); border-radius: 16px; color: var(--p-dim); font: 500 14px var(--p-font); text-align: center; }
.p45-trio b { font: 700 26px var(--p-font); color: var(--p-txt); font-variant-numeric: tabular-nums; }
.p45-trio small { font-size: 15px; color: var(--p-dim); }
.p45-proj, .p45-moodcal { padding: 16px; }
.p45-proj .cells { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.p45-proj .cells i { aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, calc(.07 + var(--r, 0) * .88)); }
.p45-proj .cells i.fut { background: #1c1d20; border: 1px dashed #2c2d31; }
.p45-proj .cells i.now { outline: 2px solid var(--p-txt); outline-offset: 1px; }
.p45-moodcal .cal .wd, .p45-moodcal .cal .gd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.p45-moodcal .cal .wd { color: var(--p-dim); font: 500 13px var(--p-font); margin-bottom: 8px; }
.p45-moodcal .gd span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--p-line); min-height: 54px; }
.p45-moodcal .gd span.pad { background: none; border: 0; }
.p45-moodcal .gd span.fut { opacity: .35; }
.p45-moodcal .gd span.now { border-color: var(--p-txt); }
.p45-moodcal .gd b { font: 500 13px var(--p-font); }
.p45-moodcal .gd em { font-style: normal; font-size: clamp(16px, 5vw, 22px); line-height: 1.2; }

/* settings */
.p45-set { padding: 18px 16px 12px; margin-bottom: 14px; }
.p45-set .ln, .p45-sheet .ln { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 2px; border-top: 1px solid var(--p-line); font: 500 16px var(--p-font); text-align: left; }
.p45-set .ln b { font-weight: 500; color: var(--p-dim); display: inline-flex; align-items: center; gap: 4px; text-align: right; }
.p45-set input[type=date], .p45-sheet input[type=date] { background: var(--p-card-2); border: 1px solid var(--p-line); color: var(--p-txt); border-radius: 10px; padding: 8px 10px; font: 500 15px var(--p-font); color-scheme: dark; }
.tg { width: 50px; height: 30px; border-radius: 999px; background: #39393d; position: relative; flex: none; transition: background .2s; }
.tg::after { content: ''; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease-out, ease-out); }
.tg.on { background: var(--p-lo); }
.tg.on::after { transform: translateX(20px); }
.p45-mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--p-card-2); border: 1px solid var(--p-line-2); font: 600 14px var(--p-font); }
.p45-mini:hover { background: #2a2b30; }
.p45-mini.wide { width: 100%; margin-top: 8px; }
.p45-mini.red { color: var(--p-red); }
.p45-exit { padding: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--p-dim); }
.p45-exit:hover { color: var(--p-txt); }

/* internal nav + fab */
.p45-nav { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b, 0px) + 10px); width: min(calc(100% - 24px), 460px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px; border-radius: 999px; background: rgba(28, 29, 32, .82); border: 1px solid var(--p-line-2); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); }
.p45-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 999px; font: 500 11.5px var(--p-font); color: var(--p-txt); white-space: nowrap; transition: background .15s; }
.p45-nav button .ti { font-size: 24px; }
.p45-nav button.on { background: rgba(255, 255, 255, .12); }
.p45-nav button:hover:not(.on) { background: rgba(255, 255, 255, .05); }
.p45-fab { position: fixed; z-index: 29; right: max(16px, calc(50% - 230px)); bottom: calc(var(--safe-b, 0px) + 92px); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: radial-gradient(circle at 35% 30%, #3a3b40, #18191c 70%); border: 1px solid var(--p-line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); transition: transform .15s var(--ease-out, ease-out); }
.p45-fab:active { transform: scale(.92); }
body.p45-on .shell { padding-bottom: calc(var(--safe-b, 0px) + 170px); }
@media (max-width: 1023px) { body.p45-on .tabs { display: none; } }
@media (min-width: 1024px) {
  .p45 { max-width: 640px; margin: 0 auto; }
  .p45-nav { left: calc(240px + (100% - 240px) / 2); }
  .p45-fab { right: calc((100% - 240px) / 2 - 300px); }
}

/* sheet */
.p45-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; animation: p45f .18s var(--ease-out, ease-out); }
.p45-sheet { width: min(100%, 520px); max-height: 92dvh; overflow-y: auto; background: #18191c; border: 1px solid var(--p-line-2); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 10px 18px calc(var(--safe-b, 0px) + 20px); animation: p45u .22s var(--ease-out, ease-out); }
.p45-sheet .grab { width: 40px; height: 5px; border-radius: 4px; background: #3a3a3e; margin: 0 auto 14px; }
.p45-sheet h3 { font: 700 22px var(--p-font); margin: 0 0 16px; }
.p45-sheet input:not([type=date]) { width: 100%; background: var(--p-card-2); border: 1px solid var(--p-line); border-radius: 14px; padding: 14px; font: 500 17px var(--p-font); color: var(--p-txt); }
.p45-sheet .emrow { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
.p45-sheet .emrow .em { text-align: center; font-size: 24px; padding: 10px 4px; }
.p45-sheet .picks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 12px 0 6px; }
.p45-sheet .picks button { aspect-ratio: 1; border-radius: 12px; background: var(--p-card-2); font-size: 20px; }
.p45-sheet .picks button:hover { background: #2a2b30; }
.p45-sheet .step { display: flex; align-items: center; gap: 14px; }
.p45-sheet .step button { width: 38px; height: 38px; border-radius: 50%; background: var(--p-card-2); display: grid; place-items: center; }
.p45-sheet .step b { min-width: 22px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.p45-sheet .lbl { color: var(--p-dim); font: 600 13px var(--p-font); margin: 16px 2px 8px; }
.p45-sheet .seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p45-sheet .seg3 button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 4px; border-radius: 14px; background: var(--p-card-2); border: 1px solid var(--p-line); font: 600 14px var(--p-font); white-space: nowrap; }
.p45-sheet .seg3 button .p45-pri { width: 20px; height: 20px; font-size: 13px; }
.p45-sheet .seg3 button.on { border-color: var(--p-txt); background: #2a2b30; }
.p45-sheet .ln { margin-top: 12px; }
.p45-save { width: 100%; margin-top: 18px; padding: 15px; border-radius: 16px; background: var(--p-txt); color: #000 !important; font: 700 17px var(--p-font) !important; }
.p45-save:hover { background: #fff; }
.p45-save:active { transform: scale(.98); }
.p45-sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@keyframes p45f { from { opacity: 0; } }
@keyframes p45u { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .p45-scrim, .p45-sheet { animation: p45f .12s linear; } .p45 * { transition: none !important; } }
@media (max-width: 380px) { .p45-row .nm { font-size: 17px; } .p45-tile b { font-size: 32px; } .p45-week .days button b { font-size: 17px; } .p45-ring { width: 46px; height: 46px; } .p45-nav button { font-size: 10px; } }

.p45-sheet .auto { display: flex; align-items: center; gap: 8px; color: var(--p-dim); font: 500 14px var(--p-font); margin: 14px 2px 0; }
.p45-hc .ct b small { font-size: 16px; color: var(--p-dim); }
.p45-row .tx .due { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p45-goal { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; margin-bottom: 4px; text-align: left; }
.p45-goal .hd { display: flex; align-items: center; gap: 12px; }
.p45-goal .hd b { flex: 1; font: 600 18px var(--p-font); }
.p45-goal .hd .ti { color: var(--p-dim); }
.p45-goal .em { font-size: 22px; }
.p45-goal .bar { height: 6px; border-radius: 6px; background: #2c2d31; overflow: hidden; }
.p45-goal .bar u { display: block; height: 100%; background: var(--p-txt); border-radius: inherit; }
.p45-goal .sub { color: var(--p-dim); font: 500 14px/1.4 var(--p-font); }
.p45-goal:hover { border-color: var(--p-line-2); }
.p45-sheet .seg3.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p45-sheet .num { display: inline-flex; align-items: center; gap: 8px; color: var(--p-dim); }
.p45-sheet .num input { width: 84px !important; text-align: right; padding: 9px 10px !important; }

/* compact sizing (Chry 8 nov: everything was too big) */
.p45-h { margin: 2px 2px 14px; }
.p45-h h1 { font-size: clamp(26px, 7vw, 30px); }
.p45-tools { padding: 3px; }
.p45-tools button { width: 38px; height: 34px; font-size: 18px; }
.p45-round { width: 40px; height: 40px; font-size: 18px; }
.p45-sh { margin: 22px 2px 10px; }
.p45-sh h2 { font-size: 19px; }
.p45-pill { padding: 4px 10px; font-size: 12.5px; }
.p45-sh .more { font-size: 13.5px; }
.p45-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.p45-list > .p45-card { margin: 0; }
.p45-week { padding: 10px 10px 10px 12px; border-radius: 0 0 24px 24px; margin-bottom: 14px; }
.p45-week .mo b { font-size: 13px; } .p45-week .mo span { font-size: 11.5px; }
.p45-week .days button { padding: 6px 0 9px; border-radius: 13px; gap: 2px; }
.p45-week .days button span { font-size: 11.5px; }
.p45-week .days button b { font-size: 16px; }
.p45-ring { width: 44px; height: 44px; } .p45-ring b { font-size: 14px; }
.p45-mood { padding: 14px 14px; } .p45-mood h3 { font-size: 16px; margin-bottom: 10px; }
.p45-mood > div button { width: clamp(38px, 10vw, 44px); font-size: clamp(20px, 5vw, 24px); }
.p45-moodset { padding: 10px 14px; font-size: 20px; }
.p45-goal { padding: 12px 14px; gap: 9px; } .p45-goal .hd b { font-size: 15px; } .p45-goal .em { font-size: 18px; } .p45-goal .sub { font-size: 12.5px; } .p45-goal .bar { height: 5px; }
.p45-row { min-height: 52px; padding: 6px 10px 6px 2px; border-radius: 16px; }
.p45-row .tap { gap: 11px; padding: 4px 4px 4px 12px; }
.p45-row .em { font-size: 18px; width: 22px; }
.p45-row .nm { font-size: 15.5px; }
.p45-row .due, .p45-row .tx .due { font-size: 12.5px; gap: 4px; }
.p45-ck { width: 32px; height: 32px; border-width: 2px; }
.p45-ck.on { font-size: 17px; } .p45-ck b { font-size: 11px; }
.p45-pri { width: 22px; height: 22px; font-size: 13px; }
.p45-hc { border-radius: 18px; }
.p45-hc .tap { padding: 14px 14px 13px; }
.p45-hc .hd { gap: 10px; margin-bottom: 10px; padding-right: 40px; }
.p45-hc .hd .em { font-size: 19px; width: 22px; }
.p45-hc .hd .nm { font-size: 15.5px; }
.p45-hc .ct b { font-size: 20px; } .p45-hc .ct b small { font-size: 12.5px; }
.p45-hc .ct span, .p45-hc .st { font-size: 12.5px; }
.p45-hc .bar { margin-top: 10px; height: 3px; }
.p45-hc > .p45-ck, .p45-hc > .p45-mini { top: 11px; right: 11px; }
.p45-hc .p45-ck { width: 28px; height: 28px; }
.p45-mnav { padding: 4px 8px; margin-bottom: 10px; } .p45-mnav b { font-size: 16px; } .p45-mnav button { width: 36px; height: 36px; font-size: 16px; }
.p45-mgrid { gap: 8px; } .p45-mc { padding: 12px; } .p45-mc .hd { gap: 8px; margin-bottom: 10px; } .p45-mc .em { font-size: 17px; } .p45-mc .nm { font-size: 14px; } .p45-mc .dots { gap: 4px; width: min(100%, 120px); }
.p45-ov { padding: 12px 14px 14px; } .p45-ov h3, .p45-set h3 { font-size: 15px; margin-bottom: 10px; } .p45-ov span { font-size: 12px; gap: 3px; } .p45-ov b { font-size: 26px; }
.p45-tiles { gap: 8px; margin-top: 10px; } .p45-tile { padding: 10px 10px 12px; gap: 5px; border-radius: 18px; } .p45-tile b { font-size: 28px; } .p45-tile em { font-size: 12px; padding: 3px 11px; }
.p45-wk { padding: 14px 14px 12px; } .p45-wk h3 { font-size: 17px; } .p45-wk .hd span { font-size: 13.5px; } .p45-wk .nv button { width: 34px; height: 34px; font-size: 15px; }
.p45-chart { height: 110px; margin: 12px 0 4px; } .p45-wk .lb { font-size: 12.5px; }
.p45-trio { gap: 6px; margin-bottom: 10px; } .p45-trio span { padding: 10px 4px; font-size: 12px; border-radius: 12px; } .p45-trio b { font-size: 19px; }
.p45-proj, .p45-moodcal { padding: 12px; } .p45-proj .cells { gap: 4px; } .p45-proj .cells i { border-radius: 6px; }
.p45-moodcal .gd span { min-height: 42px; border-radius: 10px; padding: 4px 0 2px; } .p45-moodcal .gd b { font-size: 11.5px; } .p45-moodcal .gd em { font-size: clamp(14px, 4vw, 18px); }
.p45-set { padding: 12px 14px 8px; margin-bottom: 10px; } .p45-set .ln, .p45-sheet .ln { padding: 9px 2px; font-size: 14.5px; }
.tg { width: 42px; height: 25px; } .tg::after { width: 21px; height: 21px; } .tg.on::after { transform: translateX(17px); }
.p45-mini { padding: 7px 12px; font-size: 13px; }
.p45-exit { padding: 12px; font-size: 14px; }
.p45-empty { padding: 16px; font-size: 14px; }
.p45-none { font-size: 13.5px; }
.p45-nav { width: min(calc(100% - 24px), 380px); padding: 4px; }
.p45-nav button { padding: 6px 2px 5px; font-size: 10px; gap: 2px; }
.p45-nav button .ti { font-size: 19px; }
.p45-fab { width: 48px; height: 48px; font-size: 22px; bottom: calc(var(--safe-b, 0px) + 76px); }
body.p45-on .shell { padding-bottom: calc(var(--safe-b, 0px) + 130px); }
.p45-sheet { padding: 8px 16px calc(var(--safe-b, 0px) + 16px); border-radius: 22px 22px 0 0; } .p45-sheet h3 { font-size: 18px; margin-bottom: 12px; }
.p45-sheet input:not([type=date]) { padding: 11px 12px; font-size: 15px; border-radius: 12px; }
.p45-sheet .picks button { font-size: 17px; border-radius: 10px; } .p45-sheet .seg3 button { padding: 9px 4px; font-size: 13px; border-radius: 12px; }
.p45-save { padding: 12px; font-size: 15px !important; border-radius: 14px; margin-top: 14px; }
@media (min-width: 1024px) {
  .p45 { max-width: 920px; }
  .p45-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p45-mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p45-tiles, .p45-ov { max-width: none; }
  .p45-fab { right: calc((100% - 240px) / 2 - 440px); }
  .p45-scrim { align-items: center; } .p45-sheet { border-radius: 22px; border-bottom: 1px solid var(--p-line-2); }
}
.p45-hc .hd .nm, .p45-row .nm, .p45-mc .nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.dstrip .wkn { display: flex; flex-direction: column; gap: 4px; }
.dstrip .wkn button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: rgba(255, 255, 255, .06); }
.dstrip .wkn button:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.dstrip .days button:disabled { opacity: .35; cursor: default; }
.p45-week .days button span { display: inline-flex; align-items: center; gap: 4px; }
.p45-week .days button span i { position: static; width: 5px; height: 5px; flex: none; }
