/* CityTicker Portfolio: the WhatsApp-style messenger from tender-bot (docs/DESIGN.md
   there), scoped under .pf so the editorial wire styles stay untouched.
   Palette follows WhatsApp Web; light and dark. British English, no em dashes. */
.pf {
  --pf-bg: #ffffff;
  --pf-fg: #111b21;
  --pf-muted: #667781;
  --pf-header: #f0f2f5;
  --pf-list: #ffffff;
  --pf-hover: #f5f6f6;
  --pf-sel: #f0f2f5;
  --pf-border: #e9edef;
  --pf-chat: #efeae2;
  --pf-in: #ffffff;
  --pf-out: #d9fdd3;
  --pf-accent: #00a884;
  --pf-primary: #008069;
  --pf-unread: #25d366;
  --pf-link: #027eb5;
  --pf-high: #ea0038;
  --pf-med: #b58105;
  --pf-low: #667781;
  --pf-up: #1daa61;
  --pf-down: #ea0038;
  --pf-wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none'%3E%3Cg stroke='%230b141a' stroke-opacity='.055' stroke-width='1.2'%3E%3Ccircle cx='28' cy='36' r='9'/%3E%3Ccircle cx='150' cy='70' r='16'/%3E%3Ccircle cx='78' cy='168' r='7'/%3E%3Cpath d='M96 24h18M188 150v18M40 120l12 12M170 28l-10 10'/%3E%3C/g%3E%3C/svg%3E");
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--pf-fg);
}
@media (prefers-color-scheme: dark) {
  .pf {
    --pf-bg: #0b141a; --pf-fg: #e9edef; --pf-muted: #8696a0; --pf-header: #202c33; --pf-list: #111b21;
    --pf-hover: #202c33; --pf-sel: #2a3942; --pf-border: #222d34; --pf-chat: #0b141a; --pf-in: #202c33;
    --pf-out: #005c4b; --pf-link: #53bdeb; --pf-high: #f15c6d; --pf-med: #f0c14b; --pf-low: #8696a0;
    --pf-up: #25d366; --pf-down: #f15c6d;
    --pf-wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none'%3E%3Cg stroke='%23ffffff' stroke-opacity='.04' stroke-width='1.2'%3E%3Ccircle cx='28' cy='36' r='9'/%3E%3Ccircle cx='150' cy='70' r='16'/%3E%3Ccircle cx='78' cy='168' r='7'/%3E%3Cpath d='M96 24h18M188 150v18M40 120l12 12M170 28l-10 10'/%3E%3C/g%3E%3C/svg%3E");
  }
}
.pf a { color: var(--pf-link); }
.pf-app { display: grid; grid-template-columns: clamp(280px, 27vw, 400px) minmax(0, 1fr); height: calc(100vh - var(--ct-top, 124px)); min-height: 520px; border-top: 1px solid var(--pf-border); background: var(--pf-bg); }

/* Chat list */
.pf-list { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; background: var(--pf-list); border-right: 1px solid var(--pf-border); }
.pf-list-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--pf-header); min-height: 59px; }
.pf-list-head h1 { font-size: 17px; margin: 0; flex: 1; font-weight: 600; }
.pf-list-head nav { display: flex; gap: 4px; }
.pf-icon { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 10px; border-radius: 16px; color: var(--pf-muted) !important; text-decoration: none; font-size: 13px; }
.pf-icon:hover, .pf-icon.on { background: var(--pf-sel); color: var(--pf-fg) !important; }
.pf-search { padding: 7px 12px; border-bottom: 1px solid var(--pf-border); }
.pf-search input { width: 100%; border: 0; border-radius: 8px; padding: 8px 12px; background: var(--pf-header); color: var(--pf-fg); font: inherit; font-size: 14px; }
.pf-chips { display: flex; gap: 6px; padding: 8px 12px; flex-wrap: wrap; }
.pf-chip { border-radius: 16px; padding: 4px 12px; background: var(--pf-header); color: var(--pf-muted) !important; font-size: 13px; text-decoration: none; }
.pf-chip.on { background: #d9fdd3; color: var(--pf-primary) !important; }
.pf-rows { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.pf-row { display: flex; gap: 12px; align-items: center; padding: 0 14px; text-decoration: none; color: inherit !important; }
.pf-row:hover { background: var(--pf-hover); }
.pf-row.on { background: var(--pf-sel); }
.pf-row-body { flex: 1; min-width: 0; border-bottom: 1px solid var(--pf-border); padding: 11px 0; }
.pf-row-top { display: flex; justify-content: space-between; gap: 8px; }
.pf-row-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row-time { font-size: 12px; color: var(--pf-muted); white-space: nowrap; }
.pf-row-time.hot { color: var(--pf-unread); }
.pf-row-prev { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--pf-muted); margin-top: 2px; }
.pf-row-prev span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pf-unread); flex: none; margin-top: 3px; }
.pf-av { width: 46px; height: 46px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.pf-av.sm { width: 40px; height: 40px; font-size: 13px; }
.pf-av.brief { background: var(--pf-primary); }
.pf-foot { padding: 10px 14px; font-size: 12px; color: var(--pf-muted); border-top: 1px solid var(--pf-border); }

/* Chat */
.pf-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pf-chat-head { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--pf-header); min-height: 59px; border-left: 1px solid var(--pf-border); }
.pf-chat-head .who { flex: 1; min-width: 0; }
.pf-chat-head .name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-chat-head .status { font-size: 13px; color: var(--pf-muted); }
.pf-back { display: none; text-decoration: none; font-size: 22px; color: var(--pf-muted) !important; }
.pf-transcript { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 6% 18px; background-color: var(--pf-chat); background-image: var(--pf-wall); display: flex; flex-direction: column; gap: 6px; }
.pf-day { align-self: center; background: var(--pf-in); color: var(--pf-muted); font-size: 12.5px; padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px .5px rgb(11 20 26 / .13); margin: 6px 0; text-transform: uppercase; }
.pf-banner { align-self: center; max-width: 560px; background: #ffeecd; color: #54471f; font-size: 12.5px; padding: 6px 12px; border-radius: 8px; text-align: center; }
@media (prefers-color-scheme: dark) { .pf-banner { background: #182229; color: #ffd279; } .pf-chip.on { background: #0a332c; } }
.pf-msg { display: flex; }
.pf-msg.out { justify-content: flex-end; }
.pf-bubble { position: relative; max-width: min(78%, 600px); padding: 7px 9px 6px; border-radius: 8px; background: var(--pf-in); box-shadow: 0 1px .5px rgb(11 20 26 / .13); line-height: 1.42; font-size: 14.5px; overflow-wrap: anywhere; }
.pf-msg.in .pf-bubble { border-top-left-radius: 2px; }
.pf-msg.out .pf-bubble { background: var(--pf-out); border-bottom-right-radius: 2px; }
.pf-text { white-space: pre-wrap; }
.pf-meta { float: right; margin: 6px 0 -3px 12px; font-size: 11px; color: var(--pf-muted); }
.pf-sender { font-size: 12.5px; font-weight: 600; color: var(--pf-primary); margin-bottom: 2px; }
.pf-item { min-width: min(520px, 100%); }
.pf-item h3 { margin: 2px 0 4px; font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pf-item .rank { color: var(--pf-muted); font-weight: 600; }
.pf-item .head { font-size: 15px; margin: 2px 0 6px; }
.pf-item .why { color: var(--pf-fg); opacity: .9; margin: 0 0 6px; }
.pf-item .effect { font-size: 13px; color: var(--pf-muted); margin: 0 0 6px; }
.pf-impact { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 10px; padding: 1px 8px; border: 1px solid currentColor; }
.pf-impact.impact-high { color: var(--pf-high); }
.pf-impact.impact-medium { color: var(--pf-med); }
.pf-impact.impact-low { color: var(--pf-low); }
.pf-demo { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 7px; background: #ffeecd; color: #7a5b00; }
.pf-live { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 7px; background: #d9fdd3; color: var(--pf-primary); }
.pf-src { font-size: 13px; margin: 4px 0; }
.pf-src a { text-decoration: none; }
.pf-links { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.pf-links li { margin: 3px 0; }
.pf-links small { color: var(--pf-muted); display: block; }
.pf-follow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; border-top: 1px solid var(--pf-border); padding-top: 8px; }
.pf-follow form { margin: 0; }
.pf-follow button { border: 1px solid var(--pf-border); background: transparent; color: var(--pf-link); border-radius: 16px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.pf-follow button:hover { background: var(--pf-hover); }
.up { color: var(--pf-up); }
.down { color: var(--pf-down); }
.pf-composer { display: flex; gap: 8px; align-items: center; padding: 8px 14px; background: var(--pf-header); }
.pf-composer input[type=text] { flex: 1; border: 0; border-radius: 8px; padding: 11px 14px; background: var(--pf-bg); color: var(--pf-fg); font: inherit; font-size: 15px; }
.pf-send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--pf-accent); color: #fff; font-size: 18px; cursor: pointer; }
.pf-note { font-size: 11.5px; color: var(--pf-muted); text-align: center; padding: 0 14px 8px; background: var(--pf-header); margin: 0; }

/* Drawer-style panes (holdings, alerts, sources) */
.pf-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 40px; background: var(--pf-bg); }
.pf-pane h2 { font-size: 20px; margin: 4px 0 6px; }
.pf-pane h3 { font-size: 15px; margin: 22px 0 8px; }
.pf-pane p.muted, .pf-pane .muted { color: var(--pf-muted); font-size: 13.5px; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pf-table th { text-align: left; color: var(--pf-muted); font-weight: 600; border-bottom: 1px solid var(--pf-border); padding: 6px 8px; white-space: nowrap; }
.pf-table td { border-bottom: 1px solid var(--pf-border); padding: 8px; vertical-align: top; }
.pf-table td.n, .pf-table th.n { text-align: right; white-space: nowrap; }
.pf-table form { margin: 0; }
.pf-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.pf-form label { display: flex; flex-direction: column; font-size: 12px; color: var(--pf-muted); gap: 3px; }
.pf-form input, .pf-form textarea, .pf-form select { border: 1px solid var(--pf-border); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; background: var(--pf-bg); color: var(--pf-fg); }
.pf-form textarea { width: 100%; min-height: 110px; font-family: ui-monospace, monospace; font-size: 12.5px; }
.pf-btn { border: 0; border-radius: 20px; padding: 9px 16px; background: var(--pf-primary); color: #fff !important; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.pf-btn.ghost { background: transparent; color: var(--pf-primary) !important; border: 1px solid var(--pf-border); }
.pf-btn.small { padding: 4px 10px; font-size: 12.5px; }
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pf-card { border: 1px solid var(--pf-border); border-radius: 12px; padding: 12px 14px; background: var(--pf-list); }
.pf-card h4 { margin: 0 0 6px; font-size: 15px; display: flex; justify-content: space-between; gap: 6px; }
.pf-card p { margin: 4px 0; font-size: 13px; color: var(--pf-muted); }
.pf-alert { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pf-border); }
.pf-alert .bell { font-size: 18px; width: 28px; text-align: center; }
.pf-alert.held { opacity: .62; }
.pf-flash { background: #d9fdd3; color: #0a332c; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; margin: 8px 0; }
.pf-flash.err { background: #fde2e4; color: #7a1020; }
.pf-spark { vertical-align: middle; }

/* Phone: list and chat are separate screens, like WhatsApp mobile. */
@media (max-width: 760px) {
  .pf-app { grid-template-columns: minmax(0, 1fr); height: calc(100vh - var(--ct-top, 110px)); }
  .pf-app .pf-list { display: none; }
  .pf-app.show-list .pf-list { display: flex; }
  .pf-app.show-list .pf-chat { display: none; }
  .pf-back { display: inline; }
  .pf-transcript { padding: 10px 3% 14px; }
  .pf-bubble { max-width: 92%; }
  .pf-item { min-width: 0; }
  .pf-pane { padding: 14px; }
  .pf-table .hide-sm { display: none; }
}

/* Download page: planned portfolio apps */
.dl-plan { margin-top: 2.2rem; }
.dl-plan .dl-grid .dl-card .pill.plan { background: #ffeecd; color: #7a5b00; }
.pf-hue-0 { background: #00a884; } .pf-hue-1 { background: #027eb5; } .pf-hue-2 { background: #7f66ff; } .pf-hue-3 { background: #c4532d; }
.pf-hue-4 { background: #d63384; } .pf-hue-5 { background: #1f7a4d; } .pf-hue-6 { background: #b58105; } .pf-hue-7 { background: #5f66cd; }

/* Messenger home (v0.35): country agents, filters, suggestion cards, CT mode. */
.pf-sec { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pf-primary); }
.pf-sec-act { font: inherit; font-size: 12px; text-transform: none; letter-spacing: 0; border: 0; background: none; color: var(--pf-link) !important; cursor: pointer; text-decoration: none; padding: 0; }
.pf-empty { padding: 6px 16px 12px; font-size: 13px; color: var(--pf-muted); }
.pf-count { flex: none; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; background: var(--pf-unread); color: #fff; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.pf-av.mk { font-size: 12px; letter-spacing: .04em; }
.pf-av.macro { background: #3b82f6; }
.pf-av.cmd { background: #b58105; }
.pf-chips { align-items: center; }
.pf-chip { border: 0; font: inherit; font-size: 13px; cursor: pointer; line-height: 1.4; }
.pf-chip b { color: var(--pf-primary); }
.pf-plus { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--pf-accent); color: #fff !important; font-size: 18px; font-weight: 600; line-height: 28px; text-align: center; }
.pf-events { padding-top: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--pf-border); }
.pf-events::-webkit-scrollbar { display: none; }
.pf-chip.ev { white-space: nowrap; font-size: 12.5px; padding: 3px 10px; background: transparent; border: 1px solid var(--pf-border); }
.pf-chip.ev.on { background: #d9fdd3; border-color: #b4e8ab; }
.pf-foot a { text-decoration: none; }
.pf-foot .muted { color: var(--pf-muted); }
.pf-inline { margin: 0; align-self: flex-start; }
.pf-banner.ok { background: #d9fdd3; color: #0a332c; }

/* Story bubbles: ticker chip, company, event tag. */
.ct-chip { display: inline-block; font: 600 11.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; padding: 0 6px; border-radius: 5px; background: #e7f3ef; color: var(--pf-primary, #008069) !important; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.pf-story { min-width: min(460px, 100%); }
.pf-story-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 3px; font-size: 12.5px; }
.pf-story-co { color: var(--pf-muted); font-weight: 600; }
.pf-story-title { display: block; font-size: 15px; font-weight: 600; color: var(--pf-fg) !important; text-decoration: none; margin: 1px 0 3px; }
.pf-story-title:hover { text-decoration: underline; }
.pf-story .why { margin: 0 0 2px; font-size: 13.5px; color: var(--pf-fg); opacity: .85; }
.pf-ev, .pf-cat { font-size: 11px; font-weight: 600; border-radius: 10px; padding: 1px 8px; background: var(--pf-header); color: var(--pf-muted); }
.pf-ev.ev-ma { background: #fde2e4; color: #9b1c31; } .pf-ev.ev-management { background: #ece5ff; color: #5b3fc4; }
.pf-ev.ev-earnings { background: #dbeafe; color: #1d4ed8; } .pf-ev.ev-legal { background: #ffeecd; color: #7a5b00; }
.pf-ev.ev-capital { background: #d9fdd3; color: #0a5c36; } .pf-ev.ev-contracts { background: #e0f2fe; color: #075985; }
.pf-ev.ev-clinical { background: #fce7f3; color: #9d174d; } .pf-ev.ev-meetings { background: #f1f5f9; color: #475569; }
.pf-cat { color: #fff; }
.cat-central-bank { background: #ef4444; } .cat-inflation { background: #ec4899; } .cat-gdp { background: #10b981; }
.cat-employment { background: #8b5cf6; } .cat-trade { background: #f59e0b; } .cat-geopolitical { background: #dc2626; } .cat-earnings { background: #3b82f6; }
.pf-cats { padding: 4px 0; justify-content: center; }
.pf-wide { max-width: min(96%, 860px); width: 100%; }
.pf-rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.pf-rate { border: 1px solid var(--pf-border); border-radius: 10px; padding: 8px 10px; background: var(--pf-bg); }
.pf-rate-top { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.pf-rate-level { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 2px 0; }
.pf-rate.soon { opacity: .6; } .pf-rate.soon .pf-rate-level { font-size: 14px; color: var(--pf-muted); }

/* Suggestion cards above the composer (tender-bot starters). */
.starters { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 4px; background: var(--pf-header); border-top: 1px solid var(--pf-border); }
.starters-grid { flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: thin; }
.starters-grid .starter-card { flex: 0 0 clamp(170px, 19%, 230px); }
.starter-form { margin: 0; display: contents; }
.starter-card { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 1px; align-items: center; text-align: left; border: 1px solid var(--pf-border); border-radius: 12px; padding: 8px 10px; background: var(--pf-bg); color: var(--pf-fg) !important; font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.starter-card:hover { border-color: var(--pf-accent); }
.starter-card .starter-icon { grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e7f3ef; color: var(--pf-primary); font-weight: 700; }
.starter-card strong { font-weight: 600; }
.starter-card .small { font-size: 11.5px; color: var(--pf-muted); }
.starters:not(.starters-grid) .starter-card { grid-template-columns: auto auto; border-radius: 18px; padding: 4px 12px 4px 6px; }
.starters:not(.starters-grid) .starter-card .small { display: none; }
.starters:not(.starters-grid) .starter-card .starter-icon { grid-row: auto; width: 22px; height: 22px; font-size: 12px; }

/* CT mode: list | Live TV | chat (narrower). */
.pf-app.tv-mode { grid-template-columns: clamp(250px, 22vw, 330px) minmax(0, 1fr) clamp(320px, 28vw, 420px); }
.pf-app.tv-mode.tv-collapsed { grid-template-columns: clamp(250px, 22vw, 330px) 44px minmax(0, 1fr); }
.pf-app.tv-mode.tv-wide { grid-template-columns: 0 minmax(0, 1fr) clamp(300px, 25vw, 380px); }
.pf-app.tv-mode.tv-wide .pf-list { display: none; }
.pf-tv { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #0b141a; color: #e9edef; border-right: 1px solid var(--pf-border); }
.pf-tv-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 59px; background: #111b21; }
.pf-tv-head .grow { flex: 1; }
.pf-tv-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #202c33; color: #e9edef !important; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pf-tv-btn:hover { background: #2a3942; }
.pf-tv-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.pf-tv .tv-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: none; margin: 0; background: #000; border-radius: 10px; overflow: hidden; }
.pf-tv .tv-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-tv .lower-third { position: absolute; left: 0; right: 0; top: 0; bottom: auto; padding: 0.7rem 6.5rem 1.6rem 0.9rem; background: linear-gradient(rgb(0 0 0 / .75), transparent); font-size: 14px; pointer-events: none; }
.pf-tv #unmute { position: absolute; top: 10px; right: 10px; bottom: auto; left: auto; width: auto; height: auto; border: 0; border-radius: 16px; padding: 5px 12px; background: #00a884; color: #fff; cursor: pointer; font-size: 13px; }
.pf-tv .live-badge { position: static; background: #ea0038; color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 6px; letter-spacing: .05em; }
.pf-tv-now p { margin: 0 0 6px; font-size: 14px; }
.pf-tv-now small { text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; color: #8696a0; }
.pf-tv .tv-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tv .tv-chip { border: 1px solid #2a3942; background: #111b21; color: #e9edef; border-radius: 14px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; }
.pf-tv .tv-chip.on { border-color: #00a884; color: #25d366; }
.pf-tv-rail { display: none; }
.pf-app.tv-collapsed .pf-tv-head, .pf-app.tv-collapsed .pf-tv-body { display: none; }
.pf-app.tv-collapsed .pf-tv-rail { display: block; writing-mode: vertical-rl; border: 0; background: #111b21; color: #25d366; height: 100%; cursor: pointer; font: 600 13px/1 inherit; letter-spacing: .1em; }
.pf-app.tv-mode .pf-transcript { padding: 12px 10px 14px; }
.pf-app.tv-mode .pf-bubble { max-width: 94%; }
.pf-app.tv-mode .pf-item, .pf-app.tv-mode .pf-story { min-width: 0; }
@media (max-width: 760px) {
  .pf-app.tv-mode, .pf-app.tv-mode.tv-collapsed, .pf-app.tv-mode.tv-wide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .pf-app.tv-mode .pf-list { display: none; }
  .pf-app.tv-mode .pf-tv { border-right: 0; }
  .pf-app.tv-mode .pf-tv-head { min-height: 44px; padding: 4px 10px; }
  .pf-app.tv-mode .pf-tv-now { display: none; }
  .pf-app.tv-mode .pf-tv-body { padding: 0; }
  .pf-app.tv-mode .tv-stage { border-radius: 0; }
  .starters-grid .starter-card { flex-basis: 150px; }
  .starters-grid .starter-card .small { display: none; }
  .pf-story { min-width: 0; }
}

/* Dialogs: Subscribe and Add to watch list. */
.ct-dialog { border: 0; border-radius: 14px; padding: 0; width: min(420px, 92vw); box-shadow: 0 18px 50px rgb(11 20 26 / .35); font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #111b21; }
.ct-dialog::backdrop { background: rgb(11 20 26 / .45); }
.ct-dialog-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; margin: 0; }
.ct-dialog h2 { margin: 0; font-size: 19px; }
.ct-dialog p { margin: 0 0 4px; font-size: 13.5px; color: #667781; line-height: 1.45; }
.ct-dialog label { font-size: 12.5px; color: #667781; }
.ct-dialog input { border: 1px solid #d1d7db; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px; }
.ct-dialog input:focus { outline: 2px solid #00a884; border-color: transparent; }
.ct-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ct-dialog button { border: 0; border-radius: 20px; padding: 9px 18px; background: #008069; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.ct-dialog button.ghost { background: transparent; color: #008069; border: 1px solid #d1d7db; }
