/* "Today" stats screen for the phone demo. Builds on phone.css. */
.ps-head .day { font-size: 11.5px; color: var(--mute); display: block; font-family: var(--sans); }
.ps-head .band { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 500;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 12px -8px rgba(0,0,0,.3); }
.ps-head .band::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #000; }

.ps-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 14px 10px; padding: 3px; border-radius: 11px; background: #e9e8df; }
.ps-tabs button { height: 28px; border: 0; border-radius: 9px; background: transparent; font: 600 12px var(--sans); color: var(--mute); cursor: pointer;
  transition: background .2s ease, color .2s ease; }
.ps-tabs button[aria-selected="true"] { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ps-tabs button i { font-style: normal; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #000; margin-left: 5px; vertical-align: 1px; opacity: 0; }
.ps[data-st="ask"] .ps-tabs button i { opacity: 1; animation: ps-blink 1s ease-in-out infinite; }

.ps-view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.ps-view[hidden] { display: none; }
.ps-view.in { animation: ps-in .3s var(--ease-out); }

.ps-score { margin: 0 14px; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 20px -14px rgba(0,0,0,.3); }
.ps-ring { position: relative; width: 78px; height: 78px; flex-shrink: 0; }
.ps-ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ps-ring circle { fill: none; stroke-width: 7; }
.ps-ring .bg { stroke: #eeede6; }
.ps-ring .fg { stroke: #000; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease-out); }
.ps-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 26px var(--serif); }
.ps-score .k { font-size: 11px; font-weight: 600; color: var(--mute); }
.ps-score .v { font: 400 14.5px/1.25 var(--serif); margin-top: 2px; }
.ps-score .d { display: inline-block; margin-top: 6px; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #f0efe8; }

.ps-tiles { margin: 8px 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ps-tile { background: #fff; border-radius: 14px; padding: 9px 11px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.ps-tile b { display: block; font: 400 20px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.ps-tile span { font-size: 10.5px; color: var(--mute); }
.ps-tile.bump b { animation: ps-bump .5s var(--ease-out); }

.ps-risk { margin: 8px 14px 0; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.ps-risk .h { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--mute); }
.ps-risk .h b { color: #000; }
.ps-risk ul { list-style: none; margin-top: 6px; }
.ps-risk li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #eeede6; font-size: 11px; }
.ps-risk li:first-child { border-top: 0; }
.ps-risk code { font: 11px ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-risk em { font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
.ps-risk em.no { background: #000; color: var(--bg); }
.ps-risk em.ok { background: #f0efe8; }
.ps-risk li.new { animation: ps-in .35s var(--ease-out); }

.ps-sheet .risk { display: none; margin-left: 6px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #000; color: var(--bg); vertical-align: 1px; }
.ps-sheet.is-risky .risk { display: inline-block; }

.phone-note { margin-top: 22px; font: italic 400 19px/1.35 var(--serif); color: var(--ink-2); }

@keyframes ps-bump { 40% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .ps-ring .fg { transition: none; }
  .ps-tile.bump b, .ps-view.in, .ps-risk li.new { animation: none; }
}
