.pf { --you: rgba(197, 206, 219, .46); --cash-hatch: repeating-linear-gradient(135deg, var(--muted) 0 1.5px, transparent 1.5px 5px); }
:root[data-theme="light"] .pf { --you: rgba(59, 68, 82, .34); }
.pf-head { margin-bottom: 1rem; }
.pf-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1rem; }
.pf-tools .bl-acc { max-width: calc(100% + .5rem); margin: -.25rem; padding: .25rem; overflow-x: auto; }
.pf-tools .bl-status { margin: 0; }
.cab .pf-tools p.quiet { margin: 0; }
.pf-signin { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; }
.pf-leaving { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; }
.pf-panel { background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; }
.pf .n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-bot { background: var(--lot); }
.m-you { background: var(--you); }
.m-cash { background: var(--cash-hatch); box-shadow: inset 0 0 0 1px var(--line2); }
.pf .cn-strip { margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: .75rem; }

.pf-top { display: grid; grid-template-columns: 22rem minmax(0, 1fr); gap: 1rem; align-items: stretch; margin-bottom: 1rem; }
.pf-top:has(> .pf-sum[hidden]) { grid-template-columns: minmax(0, 1fr); }
.pf-sum { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1.5rem 1.25rem; }
.pf-ring { position: relative; width: 17.5rem; aspect-ratio: 1; }
.pf-ring svg { display: block; width: 100%; height: 100%; }
.pf-ring :is(circle, path) { fill: none; stroke-width: 17; }
.pf-ring .r-bot { stroke: var(--lot); }
.pf-ring .r-you { stroke: var(--you); }
.pf-ring .r-cash-bg, .pf-ring .r-none { stroke: var(--raise); }
.pf-ring .r-cash { stroke: var(--muted); stroke-dasharray: 1.5 2.5; }
.pf-ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; container-type: inline-size; }
.cab .pf-ring-mid .l { color: var(--muted); font-size: .875rem; font-weight: 600; }
.cab .pf-ring-mid .v { margin-top: .125rem; font-size: min(1.625rem, 62cqi / (var(--n, 10) * .62)); line-height: 1.15; font-weight: 700; font-stretch: 104%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cab .pf-ring-mid .t { margin-top: .25rem; font-size: .9375rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-ring-mid .t span { color: var(--muted); font-weight: 500; }
.cab .pf-ring-mid .w { max-width: 66%; margin-top: .375rem; padding: .0625rem .5rem; color: var(--muted); font-size: .8125rem; line-height: 1.35; border: 1px solid var(--line2); border-radius: 999px; overflow-wrap: anywhere; }
.pf-legend { align-self: stretch; display: grid; gap: .5rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.pf-legend div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.pf-legend dt { display: flex; align-items: center; gap: .5625rem; color: var(--muted); font-size: .9375rem; }
.pf-legend dd { margin: 0; font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-key { flex: none; width: .75rem; height: .75rem; border-radius: 3px; }
.pf-legend.made { margin-top: auto; padding-top: .875rem; }
.pf-legend.made div:first-child dt { color: var(--text); }
.pf-legend:has(+ .made) { margin-bottom: 1rem; }
.pf-legend.made:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.pf-stocks { padding: 1.25rem 1.5rem 1rem; }
.pf-stocks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.pf-sb { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 6.5rem; grid-template-areas: "stock bar value" ". info info"; column-gap: 1.25rem; row-gap: .25rem; align-items: center; padding: .6875rem 0; }
.pf-sb:has(> .pf-note) { grid-template-areas: "stock bar value" ". info info" ". note note"; }
.pf-sb + .pf-sb { border-top: 1px solid var(--line); }
.pf-sb-stock { grid-area: stock; display: flex; flex-direction: column; min-width: 0; }
.pf-sb-stock .symbol { font-size: 1.1875rem; line-height: 1.2; }
.cab .pf-sb-name { color: var(--muted); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-sb-track { grid-area: bar; height: 1.125rem; }
.pf-sb-track svg { display: block; width: 100%; height: 100%; }
.pf-sb-track .bot { fill: var(--lot); }
.pf-sb-track .you { fill: var(--you); }
.pf-sb-v { grid-area: value; text-align: right; font-size: 1.0625rem; font-weight: 700; }
.pf-sb-v.none { color: var(--muted); font-weight: 500; }
.pf-sb-info { grid-area: info; display: flex; flex-wrap: wrap; align-items: center; gap: .125rem 1rem; color: var(--muted); font-size: .875rem; }
.cab a.pf-sb-bot { display: inline-flex; align-items: center; gap: .25rem; color: var(--text); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: .22em; }
.cab a.pf-sb-bot:hover { text-decoration-color: currentColor; }
span.pf-sb-bot { color: var(--text); }
.pf-sb-bot b, .pf-sb-you b { font-weight: 650; font-variant-numeric: tabular-nums; }
a.pf-sb-bot svg { width: .875rem; height: .875rem; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-sb-you b { color: var(--text); }
.pf-sb-info .pill { font-size: .75rem; padding: .0625rem .5rem; }
.cab .pf-note { grid-area: note; margin-top: .375rem; padding: .5rem .875rem; background: var(--warn-t); color: var(--warn-ink); border-radius: .5rem; font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }

.pf-empty { margin-top: .25rem; }
.pf-top > .pf-empty { margin-top: 0; justify-content: center; }
.pf-empty .wait-ico { stroke: var(--muted); }
.pf-gone { display: grid; gap: .75rem; padding: 1.25rem 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; }
.cab .pf-gone p { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.cab .pf-gone .bl-gone { color: var(--text); }

.pf-cal { margin-bottom: 1rem; padding: 1.125rem 1.25rem 1.25rem; }
.pf-cal.busy .pf-grid { opacity: .6; }
.pf-cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: .75rem; }
.pf-month { display: flex; align-items: center; gap: .375rem; }
.cab .pf-month h2 { min-width: 9.5rem; margin: 0; font-size: 1.375rem; text-align: center; }
.cab .pf-month button { width: 2.5rem; min-height: 2.5rem; padding: 0; background: transparent; }
.cab .pf-month button:disabled { border-style: solid; border-color: var(--line); color: var(--faint); }
.pf-month svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-msum { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin: 0; }
.pf-msum div { display: flex; flex-direction: column; align-items: flex-end; }
.pf-msum dt { color: var(--muted); font-size: .875rem; }
.pf-msum dd { margin: 0; font-size: 1.25rem; font-weight: 650; font-stretch: 108%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-msum dd small { margin-left: .125rem; color: var(--muted); font-size: .875rem; font-weight: 500; font-stretch: 100%; }
.pf-ckey { display: flex; flex-wrap: wrap; gap: .375rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; }
.pf-ckey li { display: flex; align-items: center; gap: .5rem; }
.pf-ckey .sw { width: 1.75rem; height: .875rem; border-radius: .25rem; }
.pf-ckey b { color: var(--text); font-weight: 650; }
.pf-ckey .k-start { flex-basis: 100%; }
.pf-ckey li.k-phone { display: none; }
.pf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.05fr); gap: .375rem; }
.pf-dow { padding: 0 .75rem .25rem; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.pf-dow.wk { padding-left: 1rem; }
.pf-c { position: relative; display: flex; flex-direction: column; min-height: 6.75rem; padding: .5rem .75rem .625rem; background: var(--raise); border-radius: .5rem; font-variant-numeric: tabular-nums; }
.c-d { color: var(--muted); font-size: .875rem; font-weight: 650; }
.c-d em { margin-left: .375rem; color: var(--accent); font-style: normal; }
.c-chg { margin-top: auto; font-size: 1.1875rem; font-weight: 700; font-stretch: 106%; line-height: 1.2; }
.c-val { color: var(--muted); font-size: .8125rem; }
.c-bot { display: flex; align-items: baseline; gap: .375rem; margin-top: .375rem; padding-top: .375rem; border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.c-bot b { font-weight: 650; }
.c-start { margin-top: auto; color: var(--muted); font-size: .875rem; font-weight: 600; line-height: 1.25; }
.c-d + .c-val, .c-d + .c-bot { margin-top: auto; }
.u1 { background: color-mix(in srgb, var(--up) 11%, var(--raise)); }
.u2 { background: color-mix(in srgb, var(--up) 21%, var(--raise)); }
.u3 { background: color-mix(in srgb, var(--up) 33%, var(--raise)); }
.d1 { background: color-mix(in srgb, var(--down) 11%, var(--raise)); }
.d2 { background: color-mix(in srgb, var(--down) 21%, var(--raise)); }
.d3 { background: color-mix(in srgb, var(--down) 31%, var(--raise)); }
:root[data-theme="light"] .u1 { background: color-mix(in srgb, var(--up) 8%, var(--raise)); }
:root[data-theme="light"] .u2 { background: color-mix(in srgb, var(--up) 16%, var(--raise)); }
:root[data-theme="light"] .u3 { background: color-mix(in srgb, var(--up) 26%, var(--raise)); }
:root[data-theme="light"] .d1 { background: color-mix(in srgb, var(--down) 8%, var(--raise)); }
:root[data-theme="light"] .d2 { background: color-mix(in srgb, var(--down) 15%, var(--raise)); }
:root[data-theme="light"] .d3 { background: color-mix(in srgb, var(--down) 24%, var(--raise)); }
:root[data-theme="light"] .pf-c .c-val, :root[data-theme="light"] .pf-c .c-bot { color: var(--price); }
.pf-c.today { box-shadow: inset 0 0 0 2px var(--brass-line); }
.pf-c.off { background: transparent; border: 1px dashed var(--line); }
.pf-c.off .c-d { color: var(--faint); font-weight: 500; }
.pf-c.wk { background: var(--panel); border: 1px solid var(--line); padding-left: 1rem; }
.pf-c.wk .c-chg { font-size: 1.0625rem; }
.pf-c.wk.off { border-style: dashed; }
.c-mk { display: none; }
.pf-dayc { display: none; }

@media (max-width: 600px) {
  .pf { padding-top: 1rem; padding-bottom: 2.5rem; }
  .pf-head { margin-bottom: .75rem; }
  .pf-head h1 { font-size: 1.625rem; }
  .pf-tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .5rem; margin-bottom: 1rem; }
  .pf-tools .bl-acc { flex: 1 1 auto; flex-wrap: nowrap; max-width: none; margin-right: -1rem; padding-right: 1rem; }
  .pf-tools .bl-acc .bl-tabs { display: flex; flex: 1 0 auto; }
  .cab .pf-tools .bl-acc .bl-tabs button { flex: 1 0 auto; }
  .pf-top { display: block; margin-bottom: 0; }
  .pf-sum { padding: .5rem 0 1.25rem; background: none; border: 0; border-radius: 0; }
  .pf-ring { width: 15rem; }
  .cab .pf-ring-mid .v { font-size: min(1.5rem, 62cqi / (var(--n, 10) * .62)); }
  .pf-legend { margin-top: 1rem; }
  .pf-stocks { margin-bottom: 1rem; padding: 1rem; }
  .pf-stocks-head { flex-direction: column; gap: 0; }
  .pf-sb { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "stock value" "bar bar" "info info"; row-gap: .375rem; padding: .75rem 0; }
  .pf-sb:has(> .pf-note) { grid-template-areas: "stock value" "bar bar" "info info" "note note"; }
  .pf-sb-stock { flex-direction: row; align-items: baseline; gap: .5rem; }
  .pf-sb-track { height: .75rem; }
  .pf-sb-track:empty { display: none; }
  .cab a.pf-sb-bot, span.pf-sb-bot, .pf-sb-you { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .cab .pf-note { margin-top: .25rem; font-size: .875rem; }
  .pf-top > .pf-empty { margin-bottom: 1rem; }
  .pf-gone { padding: 1rem; }

  .pf-cal { margin: 0 -.25rem 1rem; padding: .875rem .625rem 1rem; }
  .pf-cal-head { flex-direction: column; align-items: stretch; gap: .75rem; }
  .pf-month { justify-content: space-between; }
  .cab .pf-month button { width: 2.75rem; min-height: 2.75rem; }
  .pf-msum { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: 0 .25rem; }
  .pf-msum div { align-items: flex-start; }
  .pf-msum dd { font-size: 1.125rem; }
  .pf-msum dd small { display: block; margin: 0; font-size: .8125rem; }
  .pf-ckey { padding: 0 .25rem; gap: .25rem 1rem; font-size: .8125rem; }
  .pf-ckey .k-bots { flex-basis: 100%; }
  .pf-ckey li.k-phone { display: flex; }
  .pf-ckey li.k-desk { display: none; }
  .pf-ckey .sw { width: 1.25rem; }
  .k-dot { width: .4375rem; height: .4375rem; margin: 0 .40625rem; border-radius: 50%; background: var(--up); }
  .pf-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; }
  .pf-dow { padding: 0 0 .125rem; text-align: center; font-size: .75rem; }
  .pf-dow.wk, .pf-c.wk { display: none; }
  .pf-c { min-height: 0; aspect-ratio: 1 / 1.08; padding: .375rem .375rem .3125rem; border-radius: .4375rem; }
  .pf-c[role="button"] { cursor: pointer; }
  .c-d { color: var(--text); font-size: .8125rem; }
  .c-d em, .c-chg, .c-val, .c-bot, .c-start { display: none; }
  .c-mk { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
  .c-mk svg { width: .75rem; height: .75rem; }
  .c-mk .ar-up { fill: var(--up); }
  .c-mk .ar-down { fill: var(--down); }
  .c-mk i { width: .4375rem; height: .4375rem; border-radius: 50%; }
  .c-mk i.b-up { background: var(--up); }
  .c-mk i.b-down { background: none; box-shadow: inset 0 0 0 1.5px var(--down); }
  .pf-c.today { box-shadow: none; }
  .pf-c.today .c-d { color: var(--accent); }
  .pf-c.picked { box-shadow: inset 0 0 0 2px var(--brass-line); }
  .pf-dayc { display: grid; gap: .5rem; margin-top: .75rem; padding: .875rem 1rem; background: var(--raise); border-radius: .625rem; }
  .cab .pf-dayc h3 { margin: 0 0 .125rem; font-size: 1rem; font-weight: 650; }
  .pf-dayc h3 em { margin-left: .375rem; color: var(--accent); font-style: normal; }
  .pf-dayc dl { display: grid; gap: .375rem; margin: 0; }
  .pf-dayc dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .pf-dayc dt { color: var(--muted); font-size: .9375rem; }
  .pf-dayc dd { margin: 0; font-size: 1.0625rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pf-dayc dd small { color: var(--muted); font-size: .8125rem; font-weight: 500; }
  .cab .pf-dayc p { color: var(--muted); font-size: .875rem; }
}
