/* The drawn app screens in assets/js/screens/*.js. The frame, shared parts
 * and --ph-* colour tokens are in guides.css. */

/* Text helpers */
.ph-card-head { display: block; font-size: 12px; font-weight: 700; }
.ph-strong { font-weight: 700; }
.ph-center { text-align: center; justify-self: center; }
.ph-blue { color: var(--ph-info); }
.ph-green { color: var(--ph-success); }
.ph-label { color: var(--ph-muted); font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ph-intro { color: var(--ph-muted); font-size: 10px; line-height: 1.45; }
.ph-note { font-size: 8.5px; line-height: 1.4; }
.ph-struck { text-decoration: line-through; color: var(--ph-muted); }
.ph-start { justify-self: start; }
.ph-nowrap { flex-wrap: nowrap; overflow: hidden; }
.ph-tight { gap: 5px; }
.ph-inset { padding: 8px 0 2px; border-top: 1px solid var(--ph-surface-soft); }
.ph-form { gap: 10px; }
.ph-count { padding: 2px 7px; border-radius: 999px; background: var(--ph-surface-soft); color: var(--ph-muted); font-size: 9px; font-weight: 700; }
.ph-hint { color: var(--ph-muted); opacity: 0.5; font-size: 10px; }
.ph-cross { flex: none; display: grid; place-content: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(239, 68, 68, 0.14); color: #ef4444; font-size: 9px; font-weight: 800; }
.ph-cross[data-spot] { border-radius: 6px; }
.ph-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ph-rect, .ph-gold-pill.ph-rect { border-radius: 9px; }

/* Buttons */
.ph-rect-button { position: relative; display: grid; place-content: center; padding: 10px; border-radius: 12px; background: var(--ph-gold); color: var(--ph-ink); font-weight: 800; font-size: 11px; text-align: center; }
.ph-rect-button[data-spot] { border-radius: 12px; }
.ph-rect-button.is-disabled { background: var(--ph-border); color: var(--ph-muted); }
.ph-rect-button.is-quiet { background: var(--ph-surface-alt); color: var(--ph-muted); }
.ph-rect-button.is-danger { color: #ef4444; }
.ph-rect-button.is-outline-danger { background: transparent; border: 1px solid rgba(239, 68, 68, 0.35); color: rgba(239, 68, 68, 0.85); }
.ph-rect-button.is-soft-danger { background: rgba(239, 68, 68, 0.14); color: #ef4444; }
.ph-rect-button.is-glass { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; }
.ph-rect-button.is-wide { flex: 2; }
.ph-soft-button { position: relative; padding: 4px 8px; border-radius: 7px; background: rgba(201, 168, 76, 0.16); color: #a8882e; font-size: 9.5px; font-weight: 700; }
.ph-soft-button[data-spot] { border-radius: 7px; }
.ph-plus-square { position: relative; display: grid; place-content: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(201, 168, 76, 0.18); color: #a8882e; font-weight: 800; }
.ph-plus-square[data-spot] { border-radius: 7px; }
.ph-add-chip { position: relative; padding: 3px 7px; border-radius: 7px; background: rgba(201, 168, 76, 0.18); color: #a8882e; font-size: 9px; font-weight: 700; }
.ph-add-chip[data-spot] { border-radius: 7px; }
.ph-sheet-buttons { display: flex; gap: 8px; }
.ph-sheet-buttons > * { flex: 1; }
.ph-bottom-button { position: absolute; left: 12px; right: 12px; bottom: 22px; }

/* Selected-state variants */
.ph-chip.ph-rect { border-radius: 8px; }
.ph-chip.is-selected.is-amber, .ph-value-chip.is-amber { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.ph-chip.is-selected.is-red, .ph-value-chip.is-red { background: #ef4444; border-color: #ef4444; color: #fff; }
.ph-chip.is-selected.is-pale { background: rgba(201, 168, 76, 0.18); color: var(--ph-text); }
.ph-value-chip { padding: 2px 7px; border-radius: 7px; background: var(--ph-gold); color: var(--ph-ink); font-size: 9.5px; font-weight: 800; }
.ph-chips.ph-priority-chips .ph-chip.is-selected.is-none { background: var(--ph-surface); color: var(--ph-muted); }
.ph-chips.ph-priority-chips .ph-chip.is-selected.is-low { background: rgba(59, 130, 246, 0.16); color: #3b82f6; }
.ph-chips.ph-priority-chips .ph-chip.is-selected.is-medium { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.ph-chips.ph-priority-chips .ph-chip.is-selected.is-high { background: rgba(239, 68, 68, 0.16); color: #ef4444; }

/* Sheets */
.ph-bottom-sheet { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 12px 14px 24px; border-radius: 20px 20px 0 0; background: var(--ph-surface); }
.ph-bottom-sheet.ph-tall { top: 90px; align-content: start; overflow: hidden; }
.ph-bottom-sheet.ph-above-pad { bottom: 200px; border-radius: 16px; left: 8px; right: 8px; }
.ph-handle { justify-self: center; width: 34px; height: 4px; border-radius: 999px; background: var(--ph-border); }
.ph-sheet-title { font-size: 13px; }
.ph-sheet-page { position: absolute; left: 0; right: 0; top: 60px; bottom: 0; display: flex; flex-direction: column; padding: 8px 14px 22px; border-radius: 22px 22px 0 0; background: var(--ph-surface); }
.ph-sheet-page .ph-handle { margin-bottom: 6px; }
.ph-sheet-head { padding-bottom: 8px; border-bottom: 1px solid var(--ph-surface-soft); font-size: 13.5px; }
.ph-close { display: grid; place-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ph-surface-alt); color: var(--ph-muted); font-size: 10px; }
.ph-sheet-body { flex: 1; padding-top: 10px; overflow: hidden; align-content: start; }
.ph-sheet-footer { padding-top: 10px; border-top: 1px solid var(--ph-surface-soft); }
.ph-tint { padding: 8px 10px; border-radius: 10px; background: rgba(16, 185, 129, 0.12); }
.ph-wheels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-wheel { display: grid; gap: 3px; text-align: center; }
.ph-wheel small { color: var(--ph-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.ph-wheel span { padding: 4px; border-radius: 7px; color: var(--ph-muted); }
.ph-wheel .is-selected { background: var(--ph-surface-alt); color: var(--ph-gold); font-weight: 800; }
.ph-preview, .ph-summary-box { padding: 8px; border-radius: 10px; background: rgba(201, 168, 76, 0.14); color: #a8882e; font-weight: 700; text-align: center; }
.ph-summary-box { display: grid; gap: 2px; }
.ph-summary-box b { font-size: 18px; }
.ph-summary-box small { color: var(--ph-text); font-weight: 500; }

/* Today */
.ph-habit-row, .ph-task-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; background: var(--ph-surface-alt); }
.ph-task-row { background: transparent; padding: 7px 0; border-top: 1px solid var(--ph-surface-soft); border-radius: 0; }
.ph-habit-row.is-done { background: rgba(201, 168, 76, 0.14); }
.ph-habit-row.is-done b, .ph-task-row.is-done b, .ph-project-task.is-done b { text-decoration: line-through; color: var(--ph-muted); }
.ph-habit-row[data-spot], .ph-task-row[data-spot] { border-radius: 10px; }
.ph-habit-emoji { font-size: 15px; }
.ph-tag-chip { padding: 2px 6px; border-radius: 6px; background: var(--ph-surface-soft); color: var(--ph-muted); font-size: 8.5px; font-weight: 700; white-space: nowrap; }
.ph-tag-chip.is-gold { background: rgba(201, 168, 76, 0.18); color: #a8882e; }
/* A swiped row: the row keeps its width and slides off the left edge, as on iPhone. */
.ph-swipe { position: relative; display: flex; justify-content: flex-end; gap: 4px; overflow-x: clip; }
.ph-swipe > :first-child { flex: 0 0 100%; min-width: 0; }
.ph-swipe-action { position: relative; flex: none; display: grid; place-content: center; justify-items: center; width: 40px; border-radius: 10px; background: var(--ph-surface-alt); font-size: 12px; }
.ph-swipe-action small { font-size: 7.5px; font-weight: 700; color: var(--ph-muted); }
.ph-swipe-action.is-danger { background: rgba(239, 68, 68, 0.14); }
.ph-swipe-action.is-danger small { color: #ef4444; }
.ph-swipe-action.is-blue small { color: #3b82f6; }
.ph-swipe-action.is-green small { color: #22c55e; }
.ph-swipe-action[data-spot] { border-radius: 10px; }
.ph-mood-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 7px; border-radius: 10px; background: var(--ph-surface-alt); }
.ph-mood-row > b { font-size: 10px; color: var(--ph-muted); }
.ph-mood { position: relative; display: grid; justify-items: center; padding: 3px 4px; border-radius: 8px; font-size: 15px; }
.ph-mood small { font-size: 7px; color: var(--ph-muted); }
.ph-mood.is-selected { background: rgba(201, 168, 76, 0.2); }
.ph-mood.is-selected small { color: #a8882e; font-weight: 700; }
.ph-mood[data-spot] { border-radius: 8px; }
.ph-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.ph-cat-tile { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border: 1.5px solid var(--cat); border-radius: 10px; background: var(--ph-surface-alt); font-size: 14px; }
.ph-cat-tile i { position: absolute; top: 4px; left: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--cat); }
.ph-cat-tile small { font-size: 7.5px; font-weight: 700; color: var(--cat); }
.ph-cat-tile[data-spot] { border-radius: 10px; }
.ph-amount { position: relative; justify-self: center; font-size: 30px; font-weight: 800; color: var(--ph-muted); }
.ph-amount[data-spot] { border-radius: 10px; }
.ph-quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ph-quick-amounts span { padding: 5px; border-radius: 8px; background: rgba(201, 168, 76, 0.16); color: #a8882e; text-align: center; font-weight: 700; }
.ph-inline-pad { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ph-inline-pad span { padding: 6px; border-radius: 8px; background: var(--ph-surface-alt); text-align: center; font-size: 13px; font-weight: 600; }
.ph-inline-pad[data-spot] { border-radius: 10px; }
.ph-celebrate { position: absolute; left: 26px; right: 26px; top: 24%; display: grid; gap: 6px; justify-items: center; padding: 20px 16px; border: 1.5px solid rgba(201, 168, 76, 0.6); border-radius: 20px; background: var(--ph-surface); text-align: center; box-shadow: 0 0 30px rgba(201, 168, 76, 0.35); }
.ph-celebrate-emoji { font-size: 34px; }
.ph-celebrate > b { font-size: 18px; color: var(--ph-gold); font-weight: 900; }
.ph-celebrate .ph-muted { font-size: 9.5px; }
.ph-celebrate .ph-rect-button { width: 100%; }

/* Planner */
.ph-month { margin: -4px 0 8px; font-size: 11px; }
.ph-month span { color: rgba(255, 255, 255, 0.7); }
.ph-days { display: flex; gap: 5px; overflow: hidden; }
.ph-day { position: relative; flex: 1; display: grid; justify-items: center; gap: 1px; padding: 5px 0; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.ph-day small { font-size: 7.5px; color: rgba(255, 255, 255, 0.6); }
.ph-day b { font-size: 13px; }
.ph-day i { width: 4px; height: 4px; border-radius: 50%; }
.ph-day i.has-dot { background: var(--ph-gold); }
.ph-day.is-selected { background: var(--ph-gold); color: var(--ph-ink); }
.ph-day.is-selected small { color: rgba(35, 35, 35, 0.7); }
.ph-day.is-selected i.has-dot { background: var(--ph-ink); }
.ph-day[data-spot] { border-radius: 10px; }
.ph-switcher { display: flex; gap: 5px; padding: 8px 12px 0; }
.ph-switcher .ph-pill { flex: 1; text-align: center; padding: 5px 4px; font-size: 9.5px; }
.ph-switcher.is-four .ph-pill { font-size: 8.5px; padding: 5px 2px; }
.ph-project-name { font-size: 13px; }
.ph-project-task { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 0 7px 6px; border-top: 1px solid var(--ph-surface-soft); }
.ph-project-task[data-spot] { border-radius: 8px; }
.ph-priority { position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 2px; }
.ph-subtasks { display: grid; gap: 4px; padding: 0 0 6px 30px; font-size: 10px; }
.ph-subtasks div { display: flex; align-items: center; gap: 6px; }
.ph-subtasks .is-done { color: var(--ph-muted); text-decoration: line-through; }
.ph-square { position: relative; flex: none; display: grid; place-content: center; width: 13px; height: 13px; border: 1.5px solid var(--ph-border); border-radius: 4px; color: #fff; font-size: 8px; font-weight: 800; }
.ph-square.is-gold { background: var(--ph-gold); border-color: var(--ph-gold); color: var(--ph-ink); }
.ph-square[data-spot] { border-radius: 4px; }
.ph-add-row { position: relative; display: flex; gap: 6px; padding: 8px 0 0; border-top: 1px solid var(--ph-surface-soft); color: var(--ph-muted); }
.ph-add-row[data-spot] { border-radius: 8px; }
.ph-quick-add { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--ph-surface-soft); }
.ph-quick-add .ph-field-box { flex: 1; min-height: 0; padding: 4px 8px; }
.ph-plus-small { display: grid; place-content: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-weight: 800; }
.ph-event { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--ph-surface-soft); }
.ph-event > i { width: 4px; align-self: stretch; border-radius: 2px; }
.ph-event[data-spot] { border-radius: 8px; }
.ph-event-head { display: flex; gap: 10px; }
.ph-event-head > i { width: 4px; border-radius: 2px; }
.ph-event-head b { font-size: 14px; }
.ph-heat-row { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--ph-surface-soft); }
.ph-heat { display: grid; grid-template-columns: repeat(7, 10px); gap: 2px; margin-top: 4px; }
.ph-heat i { position: relative; width: 10px; height: 10px; border-radius: 2px; }
.ph-heat .is-d { background: rgba(201, 168, 76, 0.8); }
.ph-heat .is-m, .ph-heat .is-f { background: var(--ph-surface-soft); }
.ph-heat .is-t { background: var(--ph-surface-soft); outline: 1px solid var(--ph-gold); }
.ph-heat i[data-spot] { border-radius: 2px; outline-offset: 2px; }
.ph-heat i[data-spot]::after { top: -18px; right: -18px; }
.ph-emoji-tile { flex: none; display: grid; place-content: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(201, 168, 76, 0.14); font-size: 14px; }
.ph-badge { padding: 3px 7px; border-radius: 999px; font-size: 8.5px; font-weight: 700; }
.ph-badge.is-gold { background: rgba(201, 168, 76, 0.18); color: #a8882e; }
.ph-badge.is-red { background: rgba(239, 68, 68, 0.14); color: #ef4444; }
.ph-details { gap: 6px; font-size: 10px; }
.ph-swatches { position: relative; display: flex; flex-wrap: wrap; gap: 6px; padding: 2px; }
.ph-swatches i { width: 20px; height: 20px; border-radius: 50%; }
.ph-swatches i.is-selected { box-shadow: 0 0 0 2px var(--ph-surface), 0 0 0 4px var(--ph-text); }
.ph-swatches[data-spot] { border-radius: 10px; }
.ph-sub-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.ph-sub-row + .ph-sub-row { border-top: 1px solid var(--ph-surface-soft); }
.ph-sub-row span:nth-child(2) { flex: 1; }
.ph-sub-row[data-spot] { border-radius: 8px; }

/* Habit editor */
.ph-name-row { gap: 12px; }
.ph-emoji-pick { position: relative; flex: none; display: grid; place-content: center; justify-items: center; width: 46px; height: 46px; border: 2px solid #a8882e; border-radius: 13px; background: rgba(201, 168, 76, 0.16); font-size: 20px; line-height: 1; }
.ph-emoji-pick small { font-size: 7px; color: #a8882e; }
.ph-emoji-pick[data-spot] { border-radius: 13px; }
.ph-underline-input { position: relative; flex: 1; padding: 6px 0; border-bottom: 2px solid var(--ph-gold); font-size: 13px; font-weight: 600; }
.ph-underline-input[data-spot] { border-radius: 4px; }
.ph-emoji-panel { display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: var(--ph-surface-alt); }
.ph-emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.ph-emoji-grid.is-small { grid-template-columns: repeat(8, 1fr); }
.ph-emoji-grid span { position: relative; display: grid; place-content: center; height: 28px; border: 1px solid transparent; border-radius: 8px; background: var(--ph-surface); font-size: 14px; }
.ph-emoji-grid .is-selected { border-color: var(--ph-gold); background: rgba(201, 168, 76, 0.18); }
.ph-emoji-grid span[data-spot] { border-radius: 8px; }
.ph-option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ph-option-grid span { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 3px; border: 1.5px solid var(--ph-border); border-radius: 11px; background: var(--ph-surface-alt); font-size: 12px; text-align: center; }
.ph-option-grid b { font-size: 9px; }
.ph-option-grid small { font-size: 7px; color: var(--ph-muted); letter-spacing: 0; text-transform: none; font-weight: 500; }
.ph-option-grid .is-selected { border-color: var(--ph-gold); background: rgba(201, 168, 76, 0.16); }
.ph-option-grid .is-selected b { color: #a8882e; }
.ph-option-grid span[data-spot] { border-radius: 11px; }
.ph-preview-card { justify-content: flex-start; gap: 10px; }

/* Wealth */
.ph-band { display: grid; gap: 3px; }
.ph-band-label { color: rgba(255, 255, 255, 0.6); font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ph-band-figure { position: relative; justify-self: start; font-size: 24px; font-weight: 800; color: var(--ph-gold); }
.ph-band-figure[data-spot] { border-radius: 8px; }
.ph-band-sub { position: relative; justify-self: start; color: rgba(255, 255, 255, 0.55); font-size: 9px; }
.ph-band-sub[data-spot] { border-radius: 6px; }
.ph-band-row { margin-top: 6px; }
.ph-band .ph-bar { background: rgba(255, 255, 255, 0.15); height: 5px; }
.ph-month-picker { color: rgba(255, 255, 255, 0.7); font-size: 10px; }
.ph-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-tile { position: relative; display: grid; gap: 4px; padding: 9px 8px; border: 1px solid var(--ph-border); border-radius: 13px; background: var(--ph-surface); }
.ph-tile small { color: var(--ph-muted); font-size: 7.5px; font-weight: 700; letter-spacing: 0.04em; }
.ph-tile b { font-size: 13px; }
.ph-tile .ph-bar { height: 4px; }
.ph-tile[data-spot] { border-radius: 13px; }
.ph-cat-row { position: relative; display: grid; grid-template-columns: 8px 58px 1fr auto; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid var(--ph-surface-soft); font-size: 10.5px; }
.ph-cat-row > i { width: 8px; height: 8px; border-radius: 50%; }
.ph-cat-row .ph-bar { height: 5px; }
.ph-cat-row[data-spot] { border-radius: 8px; }
.ph-tx { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--ph-surface-soft); }
.ph-card > .ph-tx:first-child, .ph-card-head + .ph-tx { border-top: 0; }
.ph-tx.is-swiped { flex: 1; }
.ph-tx[data-spot] { border-radius: 8px; }
.ph-goal { display: grid; gap: 5px; padding: 8px 0; border-top: 1px solid var(--ph-surface-soft); }
.ph-account-row { display: flex; align-items: center; gap: 6px; }
.ph-account-row .ph-field-box { flex: 1; min-height: 0; padding: 6px 8px; }
.ph-amount-box { position: relative; display: flex; align-items: baseline; gap: 4px; }
.ph-amount-box b { font-size: 16px; }
.ph-amount-box[data-spot] { border-radius: 10px; }
.ph-topbar { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid var(--ph-surface-soft); font-size: 14px; }
.ph-topbar > .ph-gold { font-size: 20px; line-height: 1; }
.ph-topbar-right { position: relative; margin-left: auto; font-size: 10.5px; }
.ph-topbar-right[data-spot] { border-radius: 6px; }
.ph-row.is-current { background: rgba(201, 168, 76, 0.1); }
.ph-mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.ph-mini-chart i { flex: 1; border-radius: 4px 4px 0 0; }

/* Wellness */
.ph-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.1); }
.ph-stat-strip span { display: grid; justify-items: center; padding: 6px 2px; }
.ph-stat-strip span + span { border-left: 1px solid rgba(255, 255, 255, 0.15); }
.ph-stat-strip b { font-size: 13px; }
.ph-stat-strip small { font-size: 7px; color: rgba(255, 255, 255, 0.55); }
.ph-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ph-mini-grid span { display: grid; gap: 1px; padding: 7px; border: 1px solid var(--ph-surface-soft); border-radius: 10px; background: var(--ph-bg); }
.ph-mini-grid small { color: var(--ph-muted); font-size: 7.5px; font-weight: 700; text-transform: uppercase; }
.ph-mini-grid b { font-size: 12px; }
.ph-mini-grid em { font-style: normal; font-size: 8.5px; }
.ph-mini-grid .is-green { color: var(--ph-success); }
.ph-mini-grid .is-amber { color: #f59e0b; }
.ph-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; height: 90px; margin-top: 8px; }
.ph-chart span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.ph-chart i { width: 70%; border-radius: 4px 4px 0 0; }
.ph-chart small { font-size: 7px; color: var(--ph-muted); }
.ph-entry { position: relative; display: grid; gap: 3px; margin-top: 6px; padding: 8px; border: 1px solid var(--ph-surface-soft); border-radius: 10px; background: var(--ph-bg); }
.ph-entry small { font-size: 9px; }
.ph-entry[data-spot] { border-radius: 10px; }
.ph-lock { font-size: 20px; }
.ph-lock-row { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; }
.ph-lock-row small { font-size: 10px; }
.ph-squares { display: flex; gap: 6px; }
.ph-squares span { position: relative; display: grid; place-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ph-surface-alt); font-weight: 800; }
.ph-squares.is-wide span { width: 48px; }
.ph-squares .is-selected { background: var(--ph-gold); color: var(--ph-ink); }
.ph-squares span[data-spot] { border-radius: 10px; }
.ph-mood-circles { display: flex; justify-content: center; gap: 8px; padding: 14px 0; }
.ph-mood-circles span { position: relative; display: grid; place-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ph-surface-alt); font-size: 18px; }
.ph-mood-circles .is-selected { background: rgba(201, 168, 76, 0.2); box-shadow: 0 0 0 2px var(--ph-gold); }
.ph-journal-text { position: relative; margin: 0 14px; min-height: 120px; font-size: 11.5px; line-height: 1.5; }
.ph-journal-text[data-spot] { border-radius: 8px; }

/* Account screens */
.ph-note-box { padding: 8px; border-radius: 10px; background: rgba(201, 168, 76, 0.12); font-size: 9.5px; }
.ph-nav-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 14px; font-size: 11px; }
.ph-nav-header b { font-size: 13px; }
.ph-hero { display: grid; gap: 4px; justify-items: center; padding: 6px 18px 16px; background: var(--ph-header); color: #fff; text-align: center; }
.ph-hero > span { font-size: 22px; }
.ph-hero b { font-size: 16px; font-weight: 800; }
.ph-hero small { color: rgba(255, 255, 255, 0.75); font-size: 9.5px; }
.ph-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-plan { position: relative; display: grid; justify-items: center; gap: 1px; padding: 14px 6px 10px; border: 1px solid var(--ph-border); border-radius: 14px; background: var(--ph-surface); }
.ph-plan b { font-size: 18px; }
.ph-plan small { font-size: 9px; color: var(--ph-muted); }
.ph-plan.is-selected { border: 2px solid var(--ph-gold); background: var(--ph-header); color: #fff; }
.ph-plan.is-selected b { color: var(--ph-gold); }
.ph-plan.is-selected small { color: rgba(255, 255, 255, 0.8); }
.ph-plan-badge { position: absolute; top: -8px; right: 6px; padding: 2px 6px; border-radius: 6px; background: var(--ph-gold); color: var(--ph-ink) !important; font-size: 7.5px; font-weight: 800; }
.ph-plan[data-spot] { border-radius: 14px; }
.ph-pro-badge { border-color: var(--ph-success); gap: 8px; }
.ph-welcome { display: grid; gap: 6px; justify-items: center; align-content: start; height: calc(100% - 38px); padding: 30px 16px; background: var(--ph-header); color: #fff; text-align: center; }
.ph-welcome > b { font-size: 18px; }
.ph-welcome > small { color: rgba(255, 255, 255, 0.75); font-size: 10px; margin-bottom: 14px; }
.ph-welcome .ph-card { width: 100%; text-align: left; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }
.ph-welcome .ph-card b, .ph-welcome .ph-link { color: #fff; }
.ph-welcome .ph-card .ph-gold { color: var(--ph-gold); }
.ph-logo { display: grid; place-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ph-gold); color: var(--ph-ink); font-size: 26px; font-weight: 900; }
.ph-centered { display: grid; gap: 10px; align-content: center; height: calc(100% - 38px); padding: 0 20px; text-align: center; }
.ph-mail-head { display: grid; gap: 2px; padding-bottom: 6px; }
.ph-mail-line { display: flex; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--ph-surface-soft); font-size: 10.5px; }
.ph-mail-body { position: relative; margin: 10px 14px; font-size: 10.5px; line-height: 1.5; }
.ph-mail-body[data-spot] { border-radius: 8px; }
.ph-send { position: relative; display: grid; place-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ph-info); color: #fff; font-weight: 800; }
.ph-logo.is-small { width: 34px; height: 34px; border-radius: 9px; font-size: 17px; }
.ph-card-head.ph-between { display: flex; }
