/* Phase C (26-oct-2026): My portfolio and the market cycle panel.
   Same look as the terminal: glass cards, cyan accents, Inter + JetBrains Mono. */
.pc-panel { border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius, 22px); background: linear-gradient(180deg, rgba(17,19,24,.92), rgba(12,13,17,.95)); padding: 20px; margin: 0 0 16px; min-width: 0; }
.pc-sub { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #9aa2ac; font: 500 10px var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; }
.pc-sub::before { content: ""; width: 18px; height: 1px; background: var(--cyan, #4ee1ff); }
.pc-sub b { margin-left: auto; font-size: 12px; letter-spacing: .02em; }
.pc-muted { margin: 8px 0 0; color: #7f8791; font-size: 12px; line-height: 1.5; }
#pf-root .sr-only, .sr-only#pf-live, #pf-root .pc-th .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#cy-root .lockwrap { min-height: 320px; }
#pf-root .up, #cy-root .up { color: var(--green, #69e6a6); } #pf-root .dn, #cy-root .dn { color: var(--red, #ff6b6b); }

/* summary cards */
.pc-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.pc-card { padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(14,16,20,.88); min-width: 0; }
.pc-card span { display: block; color: #8f97a1; font: 500 9.5px var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; }
.pc-card b { display: block; margin-top: 8px; font: 600 21px var(--sans, Inter, sans-serif); color: #f3f6f8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-card b.up { color: var(--green, #69e6a6); } .pc-card b.dn { color: var(--red, #ff6b6b); }
.pc-card small { display: block; margin-top: 4px; color: #9aa2ac; font: 500 11.5px var(--mono, monospace); }

.pc-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; }
.pc-grid > .pc-panel { margin: 0 0 16px; }

/* charts */
.pc-chart { position: relative; height: 180px; }
.pc-chart.tall { height: 240px; }
.pc-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-line { fill: none; stroke: var(--cyan, #4ee1ff); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(78,225,255,.35)); }
.pc-band { stroke: rgba(255,255,255,.14); stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.pc-band.lo { stroke: rgba(78,225,255,.4); } .pc-band.hi { stroke: rgba(255,107,107,.45); }
.pc-blabel { position: absolute; right: 4px; transform: translateY(-120%); color: #8a929c; font: 500 10px var(--mono, monospace); letter-spacing: .04em; background: rgba(12,13,17,.75); padding: 0 4px; border-radius: 4px; }
.pc-blabel.lo { color: #7fdcef; } .pc-blabel.hi { color: #ff9a9a; }
.pc-ymax, .pc-ymin { position: absolute; left: 4px; color: #8a929c; font: 500 10.5px var(--mono, monospace); background: rgba(12,13,17,.7); padding: 0 4px; border-radius: 4px; }
.pc-ymax { top: 0; } .pc-ymin { bottom: 0; }
.pc-xaxis { display: flex; justify-content: space-between; margin-top: 6px; color: #7f8791; font: 500 10.5px var(--mono, monospace); }

/* allocation */
.pc-alloc { margin-top: 22px; }
.pc-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.05); }
.pc-bar i { display: block; height: 100%; }
.pc-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; color: #c3c9d0; font-size: 12.5px; }
.pc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pc-legend i { width: 9px; height: 9px; border-radius: 3px; }
.pc-legend b { color: #8f97a1; font: 500 11.5px var(--mono, monospace); }
.c0 { background: #4ee1ff; } .c1 { background: #8b7cff; } .c2 { background: #69e6a6; } .c3 { background: #f4b860; }
.c4 { background: #ff8fb1; } .c5 { background: #7fa7ff; } .c6 { background: #59606b; }

/* add / edit form */
.pc-form { display: grid; gap: 12px; }
.pc-form-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-form-h h2 { margin: 0; font: 600 16px var(--sans, Inter, sans-serif); color: #f3f6f8; }
.pc-count { color: #8f97a1; font: 500 10.5px var(--mono, monospace); letter-spacing: .08em; }
.pc-f { display: grid; gap: 6px; min-width: 0; }
.pc-f > span { color: #9aa2ac; font-size: 12px; }
.pc-f input { width: 100%; min-height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid rgba(255,255,255,.1); background: rgba(5,6,8,.55); color: #eef2f5; font: 14px var(--sans, Inter, sans-serif); box-sizing: border-box; }
.pc-f input:focus { outline: none; border-color: rgba(78,225,255,.45); box-shadow: 0 0 0 3px rgba(78,225,255,.08); }
.pc-f input:disabled { opacity: .5; }
.pc-coinfix { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 11px; border: 1px solid rgba(78,225,255,.25); background: rgba(78,225,255,.04); }
.pc-coinfix b { color: var(--cyan, #4ee1ff); font: 600 13px var(--mono, monospace); } .pc-coinfix span { color: #aab1ba; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-search { position: relative; }
.pc-res { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto; border-radius: 14px; border: 1px solid rgba(78,225,255,.25); background: rgba(10,12,16,.97); box-shadow: 0 18px 50px rgba(0,0,0,.5); padding: 6px; }
.pc-res[hidden] { display: none; }
.pc-res button { width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #dfe4e9; text-align: left; cursor: pointer; font: 13px var(--sans, Inter, sans-serif); }
.pc-res button:hover, .pc-res button:focus-visible { background: rgba(78,225,255,.08); outline: none; }
.pc-res b { color: var(--cyan, #4ee1ff); font: 600 12px var(--mono, monospace); overflow: hidden; text-overflow: ellipsis; }
.pc-res span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pc-res i { font-style: normal; color: #8f97a1; font: 11.5px var(--mono, monospace); }
.pc-res-note { padding: 10px; color: #8f97a1; font-size: 12.5px; }
.pc-f-act { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-f-act .btn-ice { min-height: 42px; padding: 0 20px; }
.pc-f-act .btn-ice:disabled { opacity: .45; cursor: not-allowed; }
.pc-msg { margin: 0; min-height: 18px; font-size: 12.5px; color: #9aa2ac; }
.pc-msg.ok { color: var(--green, #69e6a6); } .pc-msg.bad { color: var(--amber, #f4b860); }
.pc-msg a { color: var(--cyan, #4ee1ff); }

/* positions */
.pc-table { display: grid; }
.pc-tr { display: grid; grid-template-columns: minmax(130px, 1.3fr) minmax(80px, .9fr) minmax(90px, 1fr) minmax(100px, 1fr) 72px minmax(96px, 1fr) 60px minmax(120px, 1.2fr) auto; gap: 12px; align-items: center; padding: 12px 6px; border-top: 1px solid rgba(255,255,255,.055); font-size: 13px; color: #dfe4e9; }
.pc-tr > span { min-width: 0; overflow-wrap: anywhere; }
.pc-th { border-top: 0; padding-top: 0; color: #7f8791; font: 500 9.5px var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; }
.pc-coin a { display: grid; color: inherit; text-decoration: none; }
.pc-coin b { color: #fff; font: 600 13px var(--mono, monospace); } .pc-coin small { color: #8f97a1; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-coin a:hover b { color: var(--cyan, #4ee1ff); }
.pc-tr small { display: block; font-size: 11px; opacity: .85; }
.pc-ctx { display: grid; gap: 3px; color: #9aa2ac; font-size: 11.5px; }
.pc-ev { color: var(--amber, #f4b860); text-decoration: none; } .pc-ev:hover { text-decoration: underline; }
.pc-stale { display: block; font-style: normal; color: var(--amber, #f4b860); font-size: 10.5px; }
.pc-acts { display: flex; gap: 6px; justify-content: flex-end; }
.btn-ghost.sm { min-height: 32px; padding: 0 10px; font-size: 12px; border-radius: 9px; }
.btn-ghost.danger:hover { color: #ff9a9a; border-color: rgba(255,107,107,.4); }
.pc-empty { padding: 20px 6px; color: #9aa2ac; font-size: 13.5px; line-height: 1.55; }
.pc-empty.big { padding: 34px 10px; text-align: center; }
.pc-locked { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 14px 16px; margin: 0 0 16px; border-radius: 16px; border: 1px dashed rgba(244,184,96,.35); background: rgba(244,184,96,.04); color: #d6dce2; font-size: 13px; }
.pc-locked > span { color: #9aa2ac; } .pc-locked a { color: var(--cyan, #4ee1ff); }
.pc-lk-acts { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }

/* cycle */
.pc-cy-top { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 26px; align-items: center; }
.pc-temp { position: relative; text-align: center; }
.pc-gauge { width: 100%; height: auto; display: block; }
.pc-temp > b { position: absolute; left: 0; right: 0; bottom: 4px; font: 600 40px var(--sans, Inter, sans-serif); color: #fff; letter-spacing: -.02em; }
.pc-temp > span { position: absolute; left: 0; right: 0; bottom: -14px; color: #7f8791; font: 500 10px var(--mono, monospace); }
.pc-temp-txt h2 { margin: 0 0 6px; font: 600 30px var(--sans, Inter, sans-serif); letter-spacing: -.01em; }
.pc-temp-txt p { margin: 0; color: #c3c9d0; font-size: 14px; line-height: 1.55; }
.ph-cold { color: #4ee1ff; } .ph-cool { color: #8fd8ea; } .ph-neutral { color: #e7ebef; } .ph-warm { color: #f4b860; } .ph-hot { color: #ff6b6b; }
.pc-inds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 16px; }
.pc-ind { padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(14,16,20,.88); min-width: 0; }
.pc-ind.ctx { background: rgba(12,13,17,.7); }
.pc-ind-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pc-ind-h h3 { margin: 0; font: 500 13px var(--sans, Inter, sans-serif); color: #c3c9d0; }
.pc-ind-v { display: block; margin: 10px 0 8px; font: 600 24px var(--sans, Inter, sans-serif); color: #fff; }
.pc-ind p { margin: 10px 0 0; color: #858d97; font-size: 12px; line-height: 1.5; }
.pc-chip { flex: none; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: #9aa2ac; font: 500 9.5px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pc-chip.s-very_cold { color: #4ee1ff; border-color: rgba(78,225,255,.45); } .pc-chip.s-cold { color: #8fd8ea; border-color: rgba(143,216,234,.35); }
.pc-chip.s-warm { color: #f4b860; border-color: rgba(244,184,96,.4); } .pc-chip.s-hot { color: #ff6b6b; border-color: rgba(255,107,107,.45); }
.pc-scale { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #4ee1ff, #59606b 50%, #f4b860 78%, #ff6b6b); opacity: .85; }
.pc-scale i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #05080a; border: 2px solid #fff; transform: translate(-50%, -50%); }
.pc-prog { height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.pc-prog i { display: block; height: 100%; background: linear-gradient(90deg, rgba(78,225,255,.4), #4ee1ff); }

/* Macro and liquidity (inside the cycle view) */
#macro-root { margin-top: 26px; }
.mc-head h2 { margin: 0 0 4px; font: 600 20px var(--sans, Inter, sans-serif); color: #fff; }
.mc-head p { margin: 0 0 14px; color: #858d97; font-size: 13px; line-height: 1.5; }
.mc-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 26px; align-items: start; }
.mc-tone h2 { margin: 6px 0 8px; font: 600 28px var(--sans, Inter, sans-serif); }
.mc-tone p { margin: 0 0 12px; color: #c3c9d0; font-size: 13px; line-height: 1.55; }
.mc-tone p.pc-muted { color: #7f8791; font-size: 11.5px; }
.mc-t-tailwind { color: #69e6a6; } .mc-t-headwind { color: #ff6b6b; } .mc-t-mixed { color: #f4b860; }
.mc-sigs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.mc-sig { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); color: #9aa2ac; font-size: 11.5px; }
.mc-sig b { color: #dfe4ea; font-weight: 500; }
.mc-sig.p { border-color: rgba(105,230,166,.35); color: #69e6a6; } .mc-sig.n { border-color: rgba(255,107,107,.4); color: #ff8f8f; }
.mc-nl { min-width: 0; }
.mc-nlch { display: flex; flex-wrap: wrap; gap: 14px; font: 500 12px var(--mono, monospace); }
.mc-nlch .up { color: #69e6a6; } .mc-nlch .dn { color: #ff6b6b; }
.mc-nlchart { height: 150px; margin: 12px 0 8px; position: relative; }
.mc-nlchart svg, .mc-spark svg { width: 100%; height: 100%; display: block; }
.mc-nl p.pc-muted { margin: 6px 0 0; color: #7f8791; font-size: 12px; line-height: 1.5; }
.mc-spark { height: 46px; margin: 10px 0 0; position: relative; }
.mc-ind small.pc-muted { color: #9aa2ac; font: 500 11.5px var(--mono, monospace); }
.mc-date { display: block; margin-top: 8px; color: #626a74; font: 500 9.5px var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase; }
.mc-corr { margin: 4px 0 2px; background: linear-gradient(90deg, #ff6b6b, #59606b 50%, #4ee1ff); }
@media (max-width: 900px) { .mc-top { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1200px) {
  .pc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-tr { grid-template-columns: minmax(110px, 1.2fr) minmax(90px, 1fr) minmax(100px, 1fr) 72px minmax(96px, 1fr) auto; }
  .pc-tr > :nth-child(2), .pc-tr > :nth-child(7), .pc-tr > :nth-child(8) { display: none; }
}
@media (max-width: 900px) {
  .pc-grid { grid-template-columns: minmax(0, 1fr); }
  .pc-cy-top { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 22px; }
  .pc-temp { max-width: 280px; margin: 0 auto; }
  /* positions become cards (tablets and phones: the table would not fit beside the rail) */
  .pc-th { display: none; }
  .pc-tr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; padding: 14px 4px; }
  .pc-tr > :nth-child(2), .pc-tr > :nth-child(7) { display: block; }
  .pc-tr > .pc-ctx { display: grid; }
  .pc-tr > span[data-l]::before { content: attr(data-l); display: block; color: #7f8791; font: 500 9px var(--mono, monospace); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
  .pc-coin { grid-column: 1 / -1; }
  .pc-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .pc-ctx { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .pc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-cards .pc-card:first-child { grid-column: 1 / -1; }
  .pc-card b { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
  .pc-panel { padding: 16px; }
  .pc-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pc-temp-txt h2 { font-size: 26px; }
}
@media (max-width: 380px) {
  .pc-card b { font-size: 18px; }
  .pc-res button { grid-template-columns: 52px minmax(0, 1fr); }
  .pc-res i { display: none; }
}
