/* Kadunagra Strategies — the public portal (on top of hub/assets/hub.css) */
body.pt { background: var(--hub-bg); }
.pt-top { display: flex; align-items: center; gap: 24px; padding: 0 max(16px, calc((100vw - 1180px) / 2)); height: 64px; background: var(--hub-surface); border-bottom: 1px solid var(--hub-border); position: sticky; top: 0; z-index: 20; }
.pt-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--hub-text); text-decoration: none; }
.pt-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #3b74f0, #1f4fbf); color: #fff; font-weight: 800; }
.pt-nav { display: flex; gap: 4px; }
.pt-nav a { padding: 8px 12px; border-radius: 8px; color: var(--hub-muted); text-decoration: none; font-weight: 500; }
.pt-nav a:hover { background: var(--hub-bg); color: var(--hub-text); }
.pt-nav a.on { color: var(--hub-accent); background: color-mix(in srgb, var(--hub-accent) 8%, var(--hub-surface)); }
.pt-user { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pt-me { color: var(--hub-muted); font-size: 14px; }
.pt-main { max-width: 1180px; margin: 0 auto; padding: 28px 16px 48px; }
.pt-foot { max-width: 1180px; margin: 0 auto; padding: 20px 16px 40px; color: var(--hub-muted); font-size: 13px; line-height: 1.55; border-top: 1px solid var(--hub-border); }
.pt-copy { margin-top: 10px; }

.pt-hero { padding: 26px 0 18px; }
.pt-hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.02em; }
.pt-hero p { font-size: 17px; color: var(--hub-muted); max-width: 720px; margin: 0; }
.pt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 26px; }
.pt-step { background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 12px; padding: 14px 16px; }
.pt-step b { display: block; margin-bottom: 4px; } .pt-step span { color: var(--hub-muted); font-size: 13.5px; }
.pt-step i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hub-accent); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; margin-bottom: 8px; }

.pt-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.pt-filters button { border: 1px solid var(--hub-border); background: var(--hub-surface); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--hub-muted); }
.pt-filters button.on { border-color: var(--hub-accent); color: var(--hub-accent); background: color-mix(in srgb, var(--hub-accent) 7%, var(--hub-surface)); }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pt-card { display: flex; flex-direction: column; gap: 12px; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: box-shadow .15s, transform .15s; }
.pt-card:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.pt-card h3 { margin: 0; font-size: 18px; }
.pt-tag { color: var(--hub-muted); font-size: 13.5px; margin: -6px 0 0; min-height: 1.2em; }
.pt-risk { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pt-risk.r-Low { background: #e5f4e4; color: #166534; } .pt-risk.r-Medium { background: #f9eeda; color: #92400e; }
.pt-risk.r-High { background: #f9ece7; color: #9a3412; } .pt-risk.r-Very { background: #fbebeb; color: #991b1b; }
.pt-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-figs div { background: var(--hub-bg); border-radius: 10px; padding: 8px 10px; }
.pt-figs span { display: block; font-size: 11.5px; color: var(--hub-muted); }
.pt-figs b { font-size: 18px; } .pt-pos { color: var(--hub-pos); } .pt-neg { color: var(--hub-neg); }
.pt-spark { width: 100%; height: 70px; }
.pt-years { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-years span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--hub-bg); }
.pt-card .pt-go { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pt-card .pt-go small { color: var(--hub-muted); }

.pt-panel { background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 16px; padding: 22px 24px; max-width: 760px; }
.pt-panel.narrow { max-width: 440px; margin: 20px auto; }
.pt-panel h1, .pt-panel h2 { margin-top: 0; }
.pt-list { display: grid; gap: 10px; margin: 12px 0; }
.pt-choice { display: flex; gap: 12px; align-items: center; border: 1px solid var(--hub-border); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.pt-choice:has(input:checked) { border-color: var(--hub-accent); background: color-mix(in srgb, var(--hub-accent) 5%, var(--hub-surface)); }
.pt-note { color: var(--hub-muted); font-size: 13.5px; }
.pt-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) {
  .pt-steps { grid-template-columns: 1fr 1fr; }
  .pt-top { gap: 10px; height: auto; padding: 10px 16px; flex-wrap: wrap; }
  .pt-user { margin-left: 0; }
}

/* the strategies table (Stage 5's layout) */
.pt-find { margin-left: auto; width: min(280px, 100%); }
.pt-tablewrap { overflow-x: auto; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 14px; }
.pt-table { margin: 0; min-width: 1100px; }
.pt-table th { white-space: nowrap; vertical-align: bottom; }
.pt-table td { vertical-align: top; }
.pt-name { font-size: 15px; } .pt-no { font-size: 12px; color: var(--hub-muted); }
.pt-tag2 { font-size: 12.5px; color: var(--hub-muted); max-width: 220px; margin-top: 4px; }
.pt-table .pt-risk { margin-top: 4px; }
.pt-alpha { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #f9eeda; color: #92400e; font-weight: 700; font-size: 12.5px; }
.pt-muted { color: var(--hub-muted); }
.pt-mem { max-width: 340px; } .pt-chip { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 6px; background: var(--hub-bg); font-size: 12.5px; white-space: nowrap; }
.pt-wf { border-left: 2px solid color-mix(in srgb, var(--hub-accent) 35%, transparent); }
.pt-link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.pt-trend span { margin-right: 2px; line-height: 1; }
.pt-dlg { border: 0; padding: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); width: min(720px, calc(100vw - 32px)); }
.pt-dlg::backdrop { background: rgba(15, 23, 42, .45); }
.pt-dlg-box { padding: 20px 24px; } .pt-dlg-box header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pt-dlg-box h2 { margin: 0 0 6px; font-size: 18px; } .pt-dlg-box footer { display: flex; justify-content: flex-end; margin-top: 12px; }
.pt-dlg .hub-x { border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--hub-muted); }
.pt-chart { width: 100%; height: 220px; margin: 8px 0 12px; } .pt-chart text { font-size: 11px; fill: var(--hub-muted); } .pt-chart .pt-base { stroke: var(--hub-border); stroke-dasharray: 4 4; }
/* a deployed strategy's chart: the strategy (grey) and the customer's own account since it went live (green) */
.pt-live { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hub-border); }
.pt-live-h { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.pt-key { font-size: 12.5px; color: var(--hub-muted); }
.pt-key i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin: 0 5px 2px 8px; vertical-align: middle; }
.pt-chart .pt-grid { stroke: var(--hub-border); }
.pt-zoom-h { margin-top: 6px; font-size: 13px; color: var(--hub-muted); }
.pt-zoom-h b { color: inherit; font-weight: 600; }
.pt-chart.pt-zoom { height: 170px; }
/* the header popups of the strategies table (grid.js: the hub's own, pickgrid.css) in the portal's colours */
#pk-pop { --card: var(--hub-surface); --text: var(--hub-text); --muted: var(--hub-muted); --border: var(--hub-border); --accent: var(--hub-accent); }
.pk-pop { position: absolute; z-index: 50; min-width: 210px; max-width: 300px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); box-shadow: 0 8px 24px rgba(15, 23, 42, .16); font-size: 13px; overflow-y: auto; }
.pk-pop[hidden] { display: none; }
.pk-pop h4 { margin: 0 0 8px; font-size: 13px; }
.pk-pop .muted { color: var(--muted); } .pk-pop .small { font-size: 12px; }
.pk-pop .btn { display: inline-block; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pk-pop .btn:hover { border-color: var(--accent); color: var(--accent); }
.pk-pop .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pk-pop .pk-sorts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pk-pop .pk-sorts .btn { flex: 1; }
.pk-pop .pk-sorts .btn.on { outline: 2px solid var(--accent); }
.pk-pop .pk-sorts .pk-nosort { flex-basis: 100%; }
.pk-pop .pk-sorts .pk-nosort:disabled { opacity: .55; cursor: default; }
.pk-pop .pk-list { max-height: 220px; overflow: auto; display: grid; gap: 3px; margin: 6px 0; padding-right: 6px; }
.pk-pop .pk-list label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.pk-pop .pk-list label[hidden] { display: none; }
.pk-pop .pk-cnt { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pk-pop .pk-range { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.pk-pop input[type=number], .pk-pop input[type=text], .pk-pop input[type=search] { width: 100%; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.pk-pop .pk-setq { margin: 4px 0; }
.pk-pop .pk-links { display: flex; gap: 10px; font-size: 12px; }
.pk-pop .pk-links button { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.pk-pop .pk-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.pk-pop .pk-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.pk-pop .pk-seg button { border: 0; background: none; padding: 3px 9px; font: inherit; font-size: 12px; cursor: pointer; color: var(--muted); }
.pk-pop .pk-seg button + button { border-left: 1px solid var(--border); }
.pk-pop .pk-seg button.on { background: var(--accent); color: #fff; }
.pt-table thead th[data-k] { cursor: pointer; user-select: none; }
.pt-table thead th[data-k]:hover { color: var(--hub-text); }
.pt-table thead th.pk-f { color: var(--hub-accent); }
.pt-table .pk-ind { margin-left: 3px; color: var(--hub-accent); font-size: 9px; }
.pt-table tbody tr[hidden] { display: none; }
.pt-count { flex-basis: 100%; font-size: 12.5px; }
.pt-clear { background: none; border: 0; padding: 0; margin-left: 8px; font: inherit; color: var(--hub-accent); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.pt-clear[hidden] { display: none; }

/* ── the redesigned portal (owner, 2026-11-10): dashboard, account cards, strategy cards, guides ── */
.pt-unit { font-size: .72em; font-weight: 500; color: var(--hub-muted); margin-left: 2px; }
.pt-small { font-size: 12.5px; }
.pt-hello h1 { margin: 0 0 4px; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; }
.pt-hello p { margin: 0 0 20px; }
.pt-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.pt-tile { background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.pt-tile span { font-size: 12.5px; color: var(--hub-muted); font-weight: 500; }
.pt-tile b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pt-tile small { color: var(--hub-muted); font-size: 12.5px; }
.pt-todo { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: color-mix(in srgb, #f59e0b 8%, var(--hub-surface)); border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--hub-border)); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.pt-todo p { margin: 2px 0 0; color: var(--hub-muted); font-size: 13.5px; }
.pt-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 12px; }
.pt-sec-h h1, .pt-sec-h h2 { margin: 0; }
.pt-empty { background: var(--hub-surface); border: 1px dashed var(--hub-border); border-radius: 14px; padding: 28px; text-align: center; color: var(--hub-muted); }
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pt-scard { display: flex; flex-direction: column; gap: 6px; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 14px; padding: 16px 18px; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.pt-scard:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.pt-scard-h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pt-scard-f { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.pt-spark { width: 100%; height: 60px; }
.pt-spark-empty { height: 60px; display: grid; place-items: center; color: var(--hub-muted); font-size: 12.5px; background: var(--hub-bg); border-radius: 8px; }
.pt-chip2 { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pt-chip2.ok { background: #e5f4e4; color: #166534; } .pt-chip2.warn { background: #fdf3dc; color: #92400e; }
.pt-chip2.bad { background: #fbe9e9; color: #991b1b; } .pt-chip2.off { background: var(--hub-bg); color: var(--hub-muted); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; vertical-align: middle; }
.pt-badge.real { background: #e8effd; color: #1e40af; } .pt-badge.demo { background: var(--hub-bg); color: var(--hub-muted); }
.pt-acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.pt-acard, .pt-strat { background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.pt-strat { margin-bottom: 16px; }
.pt-acard header, .pt-strat header, .pt-acard footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.pt-acard h3, .pt-strat h3 { margin: 0 8px 4px 0; display: inline-block; font-size: 18px; }
.pt-acard footer { align-items: center; border-top: 1px solid var(--hub-border); padding-top: 12px; }
.pt-money { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pt-money div { background: var(--hub-bg); border-radius: 10px; padding: 9px 12px; }
.pt-money span { display: block; font-size: 11.5px; color: var(--hub-muted); }
.pt-money b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pt-use { display: grid; gap: 6px; }
.pt-use-row { display: grid; grid-template-columns: 1fr 120px auto; gap: 10px; align-items: center; font-size: 13.5px; }
.pt-bar { height: 6px; background: var(--hub-bg); border-radius: 3px; overflow: hidden; } .pt-bar i { display: block; height: 100%; background: var(--hub-accent); }
.pt-usage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.pt-stack { flex-basis: 100%; display: flex; height: 8px; background: color-mix(in srgb, var(--hub-pos) 25%, var(--hub-bg)); border-radius: 4px; overflow: hidden; }
.pt-stack i { display: block; height: 100%; background: var(--hub-accent); border-right: 2px solid var(--hub-surface); }
.pt-hint { margin: 0; font-size: 13.5px; background: color-mix(in srgb, var(--hub-accent) 6%, var(--hub-surface)); border-radius: 10px; padding: 9px 12px; }
.pt-actions { gap: 8px; }
.pt-this td { font-weight: 600; }
.hub-btn.danger { background: #b42318; border-color: #b42318; color: #fff; }
/* the 4-step guides */
.pt-stepbar { display: flex; gap: 6px; list-style: none; padding: 0; margin: 4px 0 16px; counter-reset: st; }
.pt-stepbar li { flex: 1; counter-increment: st; font-size: 12.5px; color: var(--hub-muted); padding-top: 8px; border-top: 3px solid var(--hub-border); }
.pt-stepbar li::before { content: counter(st) " · "; font-weight: 700; }
.pt-stepbar li.on { color: var(--hub-text); border-top-color: var(--hub-accent); font-weight: 600; }
.pt-stepbar.wide { max-width: 760px; }
.pt-guide .pt-dlg-box footer { gap: 8px; }
.pt-howto { padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; }
.pt-ips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pt-ip { display: inline-flex; align-items: center; gap: 6px; background: var(--hub-bg); border-radius: 8px; padding: 4px 6px 4px 10px; }
.pt-ip code { font-size: 14px; font-weight: 600; }
.pt-checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.pt-checks li::before { content: "⏳ "; }
.pt-acc-pick { display: flex; flex-direction: column; gap: 2px; }
/* the name menu */
.pt-menu { position: relative; }
.pt-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--hub-muted); font-size: 14px; }
.pt-menu summary::-webkit-details-marker { display: none; }
.pt-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hub-accent); color: #fff; font-weight: 700; font-size: 13px; }
.pt-menu-box { position: absolute; right: 0; top: 40px; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .12); padding: 12px; display: grid; gap: 10px; min-width: 220px; z-index: 30; font-size: 13px; }
@media (max-width: 760px) {
  .pt-tiles { grid-template-columns: 1fr 1fr; }
  .pt-money { grid-template-columns: 1fr 1fr; }
  .pt-acards { grid-template-columns: 1fr; }
  .pt-todo { flex-direction: column; align-items: flex-start; }
  .pt-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
}
.pt-money b { white-space: nowrap; font-size: 15px; }
.pt-money .pt-unit { font-size: 10.5px; }
@media (min-width: 761px) { .pt-acard .pt-money { grid-template-columns: repeat(2, 1fr); } }
/* the Dashboard's live view and the Report */
.pt-att { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; text-decoration: none; color: inherit; border: 1px solid; }
.pt-att b { display: block; } .pt-att small { color: var(--hub-muted); font-size: 13px; }
.pt-att-i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 800; flex: none; }
.pt-att.bad { background: #fdf0ef; border-color: #f3c9c4; } .pt-att.bad .pt-att-i { background: #b42318; }
.pt-att.warn { background: #fdf6e7; border-color: #f2dcaa; } .pt-att.warn .pt-att-i { background: #d97706; }
.pt-att.next { background: color-mix(in srgb, var(--hub-accent) 6%, var(--hub-surface)); border-color: color-mix(in srgb, var(--hub-accent) 25%, var(--hub-border)); } .pt-att.next .pt-att-i { background: var(--hub-accent); }
.pt-box { background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 14px; overflow-x: auto; margin-bottom: 8px; }
.pt-tbl { margin: 0; } .pt-tbl th { white-space: nowrap; } .pt-tbl td { vertical-align: middle; }
.pt-tbl .num { font-variant-numeric: tabular-nums; }
.pt-click tbody tr { cursor: pointer; } .pt-click tbody tr:hover { background: var(--hub-bg); }
.pt-pad { padding: 0 14px 10px; margin: 0; }
.pt-side { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.pt-side.long { background: #e5f4e4; color: #166534; } .pt-side.short { background: #fbe9e9; color: #991b1b; }
.pt-sec-h .pt-filters { margin: 0; }
/* the Report */
.pt-rep-acct { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 12px; padding: 10px 16px; margin-bottom: 10px; }
.pt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hub-border); margin: 6px 0 12px; }
.pt-tabs button { border: 0; background: none; padding: 8px 12px; font: inherit; color: var(--hub-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.pt-tabs button.on { color: var(--hub-text); border-bottom-color: var(--hub-accent); font-weight: 600; }
.pt-wide { width: min(1000px, calc(100vw - 32px)); }
.pt-vs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.pt-vs div { background: var(--hub-bg); border-radius: 10px; padding: 10px 12px; } .pt-vs span { display: block; font-size: 12px; color: var(--hub-muted); } .pt-vs b { font-size: 18px; }
.pt-diff { background: #fdf6e7; } .pt-miss { background: #fdf0ef; }
.pt-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.pt-timeline li { display: grid; grid-template-columns: 120px 26px 1fr; gap: 8px; align-items: baseline; padding: 7px 4px; border-bottom: 1px solid var(--hub-border); font-size: 13.5px; }
.pt-timeline time { color: var(--hub-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
/* attention guides the eye (owner, 2026-11-10: the portal should guide the customer, not hide things silently) */
@keyframes pt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, .45); } 50% { box-shadow: 0 0 0 7px rgba(180, 35, 24, 0); } }
@keyframes pt-pulse-amber { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .45); } 50% { box-shadow: 0 0 0 7px rgba(217, 119, 6, 0); } }
@keyframes pt-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pt-att.bad .pt-att-i { animation: pt-pulse 1.6s ease-in-out infinite; }
.pt-att.warn .pt-att-i { animation: pt-pulse-amber 2s ease-in-out infinite; }
.pt-chip2.bad { animation: pt-pulse 1.6s ease-in-out infinite; }
.pt-chip2.bad::first-letter { animation: pt-blink 1.2s step-end infinite; }
.pt-att-go { margin-left: auto; align-self: center; font-weight: 600; font-size: 13px; color: var(--hub-accent); white-space: nowrap; }
.pt-att:hover { filter: brightness(.98); }
tr[data-href] { cursor: pointer; } tr[data-href]:hover { background: var(--hub-bg); }
@media (prefers-reduced-motion: reduce) { .pt-att .pt-att-i, .pt-chip2.bad, .pt-chip2.bad::first-letter { animation: none; } }

/* ── knagra.com's theme (owner, 2026-11-10: the portal looks like the site): its colours, dark by default with the
   same light switch (localStorage 'tradestrat_theme_mode'), Space Grotesk headings, IBM Plex Mono figures ── */
body.pt {
  --hub-bg: var(--ink); --hub-surface: var(--panel); --hub-surface-2: var(--panel2); --hub-border: var(--border);
  --hub-text: var(--bone); --hub-muted: var(--muted); --hub-accent: var(--kadu); --hub-accent-ink: #12141A;
  --hub-accent-soft: color-mix(in srgb, var(--kadu) 16%, transparent); --hub-pos: var(--profit); --hub-neg: var(--loss);
  --hub-warn: var(--kadu); --hub-warn-bg: color-mix(in srgb, var(--kadu) 14%, var(--panel)); --hub-warn-text: var(--bone);
  --hub-font: 'Inter', -apple-system, sans-serif; --hub-shadow: none;
  background: var(--ink); color: var(--bone); font-family: 'Inter', -apple-system, sans-serif;
}
body.pt h1, body.pt h2, body.pt h3, .pt-brand { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.01em; }
body.pt .num, .pt-tile b, .pt-money b, .pt-vs b, .pt-scard-f, .pt-ip code { font-family: 'IBM Plex Mono', monospace; }
.pt-top { background: var(--panel2); border-bottom-color: var(--border); }
.pt-logo { background: var(--kadu); color: #12141A; }
.pt-nav a.on { color: var(--kadu); background: color-mix(in srgb, var(--kadu) 12%, transparent); }
.pt-avatar { background: var(--kadu); color: #12141A; }
body.pt .hub-btn.primary { background: var(--kadu); border-color: var(--kadu); color: #12141A; }
body.pt .hub-btn { background: var(--panel2); border-color: var(--border); color: var(--bone); }
body.pt .hub-table th { color: var(--muted); background: var(--panel2); border-color: var(--border); }
body.pt .hub-table td { border-color: var(--border); }
body.pt input, body.pt select { background: var(--ink); color: var(--bone); border-color: var(--border); }
.pt-dlg, .pt-menu-box { background: var(--panel); color: var(--bone); border: 1px solid var(--border); }
.pt-dlg::backdrop { background: rgba(5, 8, 14, .6); }
.pt-chip2.ok { background: color-mix(in srgb, var(--profit) 16%, transparent); color: var(--profit); }
.pt-chip2.warn { background: color-mix(in srgb, var(--kadu) 18%, transparent); color: var(--kadu); }
.pt-chip2.bad { background: color-mix(in srgb, var(--loss) 20%, transparent); color: var(--loss); }
.pt-chip2.off { background: var(--panel2); color: var(--muted); }
.pt-badge.real { background: color-mix(in srgb, var(--orig) 18%, transparent); color: var(--orig); }
.pt-badge.demo { background: var(--panel2); color: var(--muted); }
.pt-side.long { background: color-mix(in srgb, var(--profit) 16%, transparent); color: var(--profit); }
.pt-side.short { background: color-mix(in srgb, var(--loss) 18%, transparent); color: var(--loss); }
.pt-att { background: var(--panel); }
.pt-att.bad { background: color-mix(in srgb, var(--loss) 10%, var(--panel)); border-color: color-mix(in srgb, var(--loss) 45%, var(--border)); } .pt-att.bad .pt-att-i { background: var(--loss); }
.pt-att.warn { background: color-mix(in srgb, var(--kadu) 9%, var(--panel)); border-color: color-mix(in srgb, var(--kadu) 45%, var(--border)); } .pt-att.warn .pt-att-i { background: var(--kadu); }
.pt-att.next { background: var(--panel); border-color: var(--border); } .pt-att.next .pt-att-i { background: var(--orig); }
.pt-att-go { color: var(--kadu); }
.pt-diff { background: color-mix(in srgb, var(--kadu) 12%, transparent); } .pt-miss { background: color-mix(in srgb, var(--loss) 14%, transparent); }
.pt-stack { background: color-mix(in srgb, var(--profit) 22%, var(--panel2)); } .pt-stack i, .pt-bar i { background: var(--kadu); }
.pt-stack i { border-right-color: var(--panel); }
.pt-hint { background: color-mix(in srgb, var(--kadu) 10%, var(--panel)); }
body.pt .hub-note.ok { background: color-mix(in srgb, var(--profit) 12%, var(--panel)); color: var(--bone); border-color: color-mix(in srgb, var(--profit) 40%, var(--border)); }
body.pt .hub-note.bad { background: color-mix(in srgb, var(--loss) 12%, var(--panel)); color: var(--bone); border-color: color-mix(in srgb, var(--loss) 40%, var(--border)); }
body.pt .hub-note.warn { background: color-mix(in srgb, var(--kadu) 12%, var(--panel)); color: var(--bone); border-color: color-mix(in srgb, var(--kadu) 40%, var(--border)); }
.pt-chart .pt-grid, .pt-chart .pt-base { stroke: var(--border); }
.pt-theme { background: none; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); cursor: pointer; padding: 4px 10px; font-size: 13px; }
@keyframes pt-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--loss) 55%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
@keyframes pt-pulse-amber { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kadu) 55%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
/* the route to a problem: its tab blinks, its row pulses, and the row found by a link is outlined */
.pt-tabs button.pt-alert { color: var(--loss); animation: pt-blink 1.2s ease-in-out infinite; }
.pt-tabs button.pt-alert::after { content: " ●"; }
.pt-miss td:first-child { box-shadow: inset 3px 0 0 var(--loss); animation: pt-blink 1.6s ease-in-out infinite; }
.pt-focus { outline: 2px solid var(--kadu); outline-offset: -2px; }
.pt-att { position: relative; padding-right: 44px; }
.pt-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; }
.pt-x:hover { color: var(--bone); }
td a.pt-cell, .pt-cell { color: inherit; text-decoration: none; display: block; } td a.pt-cell:hover { text-decoration: underline dotted; }
@media (prefers-reduced-motion: reduce) { .pt-tabs button.pt-alert, .pt-miss td:first-child { animation: none; } }
.pt-att-w { position: relative; } .pt-att-w .pt-att { padding-right: 96px; }
.pt-x-f { position: absolute; top: 6px; right: 8px; margin: 0; }
.pt-att-w .pt-att-go { margin-right: 6px; }
.pt-tabs button.pt-alert.on { animation: none; }
.pt-rowmenu { width: 1%; } .pt-rowmenu .pt-menu-box { top: 34px; right: 0; min-width: 240px; }
.pt-rowmenu .pt-menu summary { list-style: none; padding: 2px 10px; }
.pt-menu-box .hub-btn { width: 100%; justify-content: flex-start; text-align: left; }
