:root {
  color-scheme: light;
  --canvas: #f3f6fc;
  --paper: #fff;
  --ink: #142640;
  --navy: #101e36;
  --navy-hover: #233e60;
  --muted: #4d5b6c;
  --border: #dce2e7;
  --blue: #2259ce;
  --analyze-orange: #ff9900;
  --analyze-orange-hover: #f18b00;
  --ice: #eaf1ff;
  --round: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 16px/1.55 "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1152px) / 2));
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid var(--navy);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.brand span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: #dce8ff; color: var(--blue); }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
button, input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  background: var(--paper);
  font: inherit;
}
button { cursor: pointer; font-weight: 650; }
button:hover { background: #eaf1ff; border-color: #9eb9ee; }
:focus-visible { outline: 3px solid #2259ce; outline-offset: 3px; }
header button { background: transparent; border-color: #6f8198; }
header button:hover { background: var(--navy-hover); border-color: var(--blue); }
header :focus-visible { outline-color: #9fc1ff; }
nav button { border-color: transparent; color: #e2eaf4; font-size: 14px; }
nav button[aria-current=true] { color: #fff; background: #244577; }
main { max-width: 1200px; margin: auto; padding: 36px 24px 72px; }
h1 { margin: 12px 0 16px; font-size: clamp(36px, 5.3vw, 72px); font-weight: 780; line-height: 1.04; letter-spacing: -.065em; }
h2 { margin: 0; font-size: clamp(22px, 3vw, 31px); letter-spacing: -.045em; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 6vw, 74px);
  background: radial-gradient(ellipse at 91% 30%, #2458a3 0%, transparent 55%), linear-gradient(120deg, #0e1b32 20%, #132f58 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.hero h1 { color: #fff; }
.hero p { max-width: 43ch; color: #cbdaf3; }
.hero input { color: var(--ink); }
.hero :focus-visible { outline-color: #a4c4ff; }
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 18% 7% 13% auto;
  width: 31%;
  min-width: 250px;
  display: flex;
  align-items: end;
  gap: 5%;
  padding: 9% 3% 3%;
  background: repeating-linear-gradient(to top, #a6c4ff44 0 1px, transparent 1px 25%) #1f4385b3;
  border: 1px solid #a6c4ff44;
  border-radius: 12px;
}
.hero-art span { height: var(--height); flex: 1; border-radius: 3px 3px 0 0; background: #759ff1; }
.hero-art span:nth-child(2n) { background: #95b8ff; }
.hero-art span:last-child { background: #c5d8ff; }
.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 2px 5px #101e3626; }
.primary:hover { background: #1743a1; border-color: #1743a1; }
form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
input { max-width: 100%; min-width: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 15px; }
.section-title span, .muted { color: var(--muted); }
.section-title span { font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr)); gap: 14px; }
.card, .panel { padding: 22px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--round); box-shadow: 0 6px 20px #132f5810; }
.card strong { font-size: 24px; letter-spacing: -.045em; }
.card p { margin: .35em 0; color: var(--muted); }
#picks .card { border-top: 3px solid var(--blue); }
#picks button { margin-top: 12px; }
.analyze-button { background: var(--analyze-orange); color: var(--navy); border-color: var(--analyze-orange); }
.analyze-button:hover { background: var(--analyze-orange-hover); border-color: var(--analyze-orange-hover); }
.panel { margin-top: 20px; overflow: auto; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; text-align: left; }
td, th { padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
canvas { display: block; width: 100%; height: 132px; margin: 2px 0 12px; }
canvas.indicator-plot { height: 94px; }
.chart-title { margin: 10px 0 0; }
@media (max-width: 960px) { .hero-art { opacity: .42; right: 3%; } }
@media (max-width: 700px) {
  header { flex-wrap: wrap; padding-inline: 14px; }
  nav { order: 3; width: 100%; }
  nav button { padding: 8px; font-size: 13px; }
  .hero-art { display: none; }
  main { padding: 20px 14px 48px; }
}

.account { max-width: 520px; }
.account form { display: grid; align-items: stretch; margin: 0 0 18px; }
.account label { display: grid; gap: 4px; font-weight: 600; }
.account textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  background: var(--paper);
  font: inherit;
  resize: vertical;
}
button:disabled { opacity: .65; cursor: wait; }

.ticker-button {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--navy);
  border-color: var(--border);
}

#discussion-form { display: grid; max-width: 640px; gap: 8px; }
#discussion-form textarea {
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
}
#discussion-form button { justify-self: start; }
#discussion-comments time { font-size: 14px; color: var(--muted); }
#discussion-comments p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

#community { max-width: 900px; }
.community-heading, .community-actions, .community-tags {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.community-heading { justify-content: space-between; }
.community-heading h1 { font-size: clamp(17px, 2.5vw, 28px); }
.community-compose, .community-replies form { display: grid; gap: 10px; }
.community-compose label, .community-replies label { font-weight: 650; }
.community-tags label { display: grid; gap: 4px; }
#community textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  font: inherit;
  resize: vertical;
}
.community-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.community-meta time { font-size: 14px; color: var(--muted); }
.community-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.community-tag { background: var(--ice); color: #1743a1; padding: 5px 9px; }
.community-replies { margin-top: 14px; padding: 8px 0 0 16px; border-left: 2px solid var(--border); }
.community-replies article { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
#community-more { margin-top: 14px; }

.portfolio-sharing ul { list-style: none; margin: 0; padding: 0; }
.portfolio-sharing li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.portfolio-sharing small { display: block; color: var(--muted); }
#portfolio-share-email { display: block; }
#portfolio-share-view { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border); }

.manual-list-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  align-items: end;
  max-width: 840px;
}
.manual-list-form label { display: grid; gap: 5px; font-weight: 600; }
.manual-list-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
#portfolio-import details, #watchlist-import details { margin-top: 16px; }
#portfolio-import details label, #watchlist-import details label { display: block; margin-top: 10px; }

.symbol-picker { grid-column: 1 / -1; }
.symbol-picker input { width: 100%; }
.symbol-picker ul { margin: 6px 0 0; padding: 4px; list-style: none; border: 1px solid #c7d6ee; border-radius: 10px; background: #fff; box-shadow: 0 9px 24px #132f5817; }
.symbol-picker li { display: grid; grid-template-columns: 20px minmax(44px, .8fr) minmax(0, 3fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 7px; cursor: pointer; }
.symbol-picker li + li { border-top: 1px solid #edf1f8; }
.symbol-picker li:hover, .symbol-picker li[aria-selected=true] { background: #eaf1ff; }
.symbol-picker li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.symbol-picker li small { color: #24509a; font-weight: 700; }
.symbol-status { margin: 4px 0; font-size: .85rem; }
.symbol-status:empty { display: none; }
.manual-symbol-button { font-size: .84rem; padding: 4px 8px; }
.compact-lists { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,520px),1fr)); gap: 12px; align-items: start; }
.compact-list { min-width: 0; overflow: hidden; border-radius: 12px; border: 1px solid #2f4d79; background: #122746; color: #f5f8ff; }
.compact-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; background: linear-gradient(105deg,#18365e,#2452a0); }
.compact-list-heading h3 { margin: 0; font-size: 1rem; }
.compact-list-heading span, .compact-list-note { color: #c1d4f0; font-size: .76rem; }
.compact-list table { table-layout: fixed; margin: 0; }
.compact-list th, .compact-list td { padding: 6px 10px; border-color: #294468; }
.compact-list th { font-size: .73rem; color: #c1d4f0; background: #102140; }
.compact-list th:first-child { width: 56%; }
.compact-list td:not(:first-child), .compact-list th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.compact-list td:not(:first-child) { overflow: hidden; text-overflow: ellipsis; }
.compact-list tbody tr:nth-child(even) { background: #152d50; }
.instrument-button { display: grid; width: 100%; text-align: left; background: none; color: inherit; border-color: transparent; padding: 2px 3px; border-radius: 6px; line-height: 1.3; }
.instrument-button:hover { background: #254776; border-color: transparent; }
.instrument-button:focus-visible { outline-color: #a4c4ff; }
.instrument-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; }
.instrument-identity small { color: #abcaff; font-size: .65rem; letter-spacing: .02em; }
.instrument-company, .instrument-note { color: #c1d4f0; font-size: .73rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.instrument-note { display: block; padding-left: 3px; }
.compact-list-note { margin: 0; padding: 8px 13px; }

.compact-list th:first-child { width: 48%; }
.compact-list th:last-child { width: 76px; }
.compact-list th, .compact-list td { padding-inline: 7px; }
.instrument-button { grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 7px; }
.instrument-text { display: grid; min-width: 0; }
.instrument-logo { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; border-radius: 8px; background: #dbe9ff; color: #193c78; font-size: .7rem; font-weight: 800; }
.instrument-logo img { width: 82%; height: 82%; object-fit: contain; }
.instrument-logo:not(.has-logo) img { visibility: hidden; }
.instrument-logo:not(.has-logo)::before {
  content: "";
  grid-area: 1 / 1;
  width: 60%;
  height: 60%;
  background:
    linear-gradient(currentColor,currentColor) left bottom / 23% 40%,
    linear-gradient(currentColor,currentColor) center bottom / 23% 67%,
    linear-gradient(currentColor,currentColor) right bottom / 23% 95%;
  background-repeat: no-repeat;
}
.instrument-logo img { grid-area: 1 / 1; }
.ticker-with-logo { display: inline-flex; align-items: center; gap: 6px; }
.ticker-with-logo .instrument-logo, .symbol-picker li .instrument-logo {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 5px;
}
.instrument-actions { display: flex; justify-content: flex-end; gap: 3px; }
.instrument-action { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: #e6efff; background: #1b3b68; border-color: #456699; border-radius: 6px; font-size: .85rem; }
.instrument-action:hover { background: #305b97; border-color: #8fb7ff; }
.instrument-action:focus-visible { outline-color: #a4c4ff; }
.instrument-details-row td { white-space: normal; }
.instrument-details { display: grid; grid-template-columns: repeat(auto-fit,minmax(82px,1fr)); gap: 8px; margin: 4px; }
.instrument-details dt { color: #c1d4f0; font-size: .72rem; }
.instrument-details dd { margin: 0; font-weight: 650; }
#price-alert-dialog { width: min(460px,calc(100% - 24px)); padding: 22px; background: var(--paper); color: var(--ink); border: 1px solid var(--border); border-radius: 14px; }
#price-alert-dialog::backdrop { background: #101e36b3; }
#price-alert-form { display: grid; gap: 10px; }
#price-alert-form label { display: grid; gap: 4px; font-weight: 650; }
#price-alert-form select { padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; color: inherit; background: var(--paper); font: inherit; }
.alert-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.alert-note { color: var(--muted); font-size: .83rem; margin: 2px 0; }
#price-alert-status { margin: 0; }

.tv-detail { padding: 6px 2px; }
.tv-detail iframe { display: block; width: 100%; border: 1px solid #2f4d79; border-radius: 8px; background: #101e36; }
.tv-fundamentals-widget { min-width: 0; zoom: .92; }
.tv-fundamentals-widget iframe { box-sizing: border-box; max-width: 100%; }
.tv-detail .tv-info-frame { height: 340px; }
@media (max-width: 520px) {
  .tv-detail .tv-info-frame { height: 420px; }
}
.tv-detail .tv-chart-frame { height: clamp(350px,39vw,420px); margin-bottom: 8px; }
.tv-links { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; }
.tv-detail a { color: #c5dbff; font-size: .76rem; }
.tv-detail p { margin: 5px 0 0; color: #c1d4f0; font-size: .73rem; }

.compact-list th:first-child { width: 35%; }
.compact-list .instrument-quote { overflow: visible; text-align: center; color: #c1d4f0; font-size: .75rem; }
.compact-list .tv-inline-quote { display: block; width: 100%; height: 72px; border: 0; }
.compact-list-note a { color: #cee0fd; }
@media (max-width: 520px) {
  .compact-list table, .compact-list tbody { display: block; }
  .compact-list thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compact-list .instrument-row { display: grid; grid-template-columns: minmax(0,1fr) auto; border-bottom: 1px solid #294468; }
  .compact-list .instrument-row td { min-width: 0; border: 0; }
  .compact-list .instrument-row-actions { grid-column: 2; grid-row: 1; align-self: center; }
  .compact-list .instrument-quote { grid-column: 1 / -1; grid-row: 2; padding: 0 8px; }
  .compact-list .instrument-details-row, .compact-list .instrument-details-row td { display: block; }
}

.compact-list .holding-summary-row > td { padding: 0; border-color: #365781; text-align: left; white-space: normal; }
.holding-strip { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; padding: 4px 9px; background: #102342; }
.holding-terms { display: grid; grid-template-columns: .65fr .8fr 1.6fr; gap: 8px; margin: 0; }
.holding-terms dt { color: #bfd2ef; font-size: .68rem; }
.holding-terms dd { margin: 0; font-size: .84rem; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.holding-quote-note { display: block; color: #bfd2ef; font-weight: 400; font-size: .64rem; }
.holding-gain { color: #a6d7ff; }
.holding-loss { color: #ffadad; }
.holding-edit { width: auto; height: auto; padding: 4px 7px; white-space: nowrap; font-size: .7rem; }
.holding-editor { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit,minmax(105px,1fr)); align-items: end; gap: 7px; margin: 4px 0; }
.holding-editor label { display: grid; gap: 4px; font-size: .74rem; }
.holding-editor input { width: 100%; padding: 5px 7px; color: var(--ink); }
.holding-editor-actions,.holding-editor-note,.holding-editor-status { grid-column: 1 / -1; }
.holding-editor-actions { display: flex; gap: 6px; }
.holding-editor-actions button { padding: 4px 9px; color: var(--navy); font-size: .78rem; }
.holding-editor-actions .primary { color: #fff; }
.holding-editor-note,.holding-editor-status { margin: 0; color: #bfd2ef; font-size: .72rem; }
.holding-editor-status:empty { display: none; }
@media (max-width: 520px) {
  .compact-list .holding-summary-row, .compact-list .holding-summary-row > td { display: block; }
}

.compact-list .instrument-row td { padding-block: 1px; }
.compact-list .instrument-row .instrument-quote { padding-block: 0; }
.compact-list .instrument-button { line-height: 1.18; }
.holding-terms dt { line-height: 1.15; }
.holding-terms dd { line-height: 1.2; }
.holding-strip .holding-edit { padding: 3px 6px; }

.tv-stochastic-legend { display: flex; gap: 12px; margin: 0 2px 4px; color: #e6efff; font-size: .73rem; }
.tv-stochastic-legend span::before { content: ""; display: inline-block; width: 9px; height: 3px; margin-right: 4px; vertical-align: middle; border-radius: 2px; }
.tv-stochastic-legend .stoch-k::before { background: #2196f3; }
.tv-stochastic-legend .stoch-d::before { background: #ff6d00; }

.compact-list {
  --ticker-surface: #1c365b;
  --holding-surface: #102342;
  --listing-accent: #a9ceff;
}
.compact-list tbody tr.instrument-row:nth-child(n) { background: var(--ticker-surface); }
.compact-list .holding-strip { background: var(--holding-surface); }
.compact-list-canada {
  --ticker-surface: #472b37;
  --holding-surface: #2f1e2a;
  --listing-accent: #ffd4db;
  border-color: #875060;
  background: #32202b;
}
.compact-list-canada .compact-list-heading { background: linear-gradient(105deg,#641e32,#9b344a); }
.compact-list-canada th { background: #38212d; }
.compact-list-canada td, .compact-list-canada th { border-color: #704759; }
.compact-list-canada .instrument-action { background: #563347; border-color: #88596d; }
.compact-list-canada .instrument-button:hover, .compact-list-canada .instrument-action:hover { background: #693a50; }
.compact-list-canada .instrument-identity small { color: var(--listing-accent); }
.compact-list th:last-child { width: 101px; }
.reorder-handle { cursor: grab; touch-action: none; user-select: none; font-size: 1rem; letter-spacing: -.14em; }
.reorder-handle:active { cursor: grabbing; }
.compact-list .dragging-stock { opacity: .54; }
.compact-list .drop-before td { box-shadow: inset 0 2px var(--listing-accent); }
.compact-list .drop-after td { box-shadow: inset 0 -2px var(--listing-accent); }

.portfolio-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.portfolio-toolbar h1 { margin: 0; font-size: clamp(26px,4vw,42px); }
.portfolio-toolbar p { margin: 3px 0 0; font-size: .92rem; }
.portfolio-toolbar .primary { flex: none; margin-left: auto; }
#portfolio-import > [role="status"]:empty { display: none; }
@media (max-width: 420px) {
  .portfolio-toolbar { align-items: flex-start; }
  .portfolio-toolbar .primary { padding: 7px 9px; font-size: .84rem; }
}

.holding-gain-positive { color:#34a853; }
.holding-gain-negative { color:#ea4335; }
.compact-list .compact-list-note a { font-size:.7rem; }


.tv-detail .tv-links a { display:inline-flex; align-items:center; min-height:28px; padding:3px 9px; border-radius:6px; background:var(--analyze-orange); color:#201505; font-weight:700; text-decoration:none; }
.tv-detail .tv-links a:hover { background:#ffb340; }
.tv-detail .tv-links a:focus-visible { outline:2px solid white; outline-offset:2px; }

.stock-discussion-button { display:block; margin:4px 0 0 auto; padding:3px 7px; min-height:26px; font-size:.73rem; font-weight:700; }
#stock-discussion > .discussion-back { margin-top:14px; }
#stock-discussion #ticker-discussion { margin-top:10px; }

.stock-summary-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:4px; }
.stock-summary-actions .stock-discussion-button { margin:0; white-space:nowrap; }
.watchlist-strip .holding-terms { grid-template-columns:repeat(auto-fit,minmax(min(100%,80px),1fr)); }
@media (max-width: 480px) {
  .stock-summary-actions { flex-direction:column; align-items:flex-end; }
}

.manual-list-form { max-width: 560px; margin: 10px 0 14px; padding: 14px; gap: 10px 12px; background: #e8f0ff; border: 1px solid #a8bfe9; border-left: 4px solid #315ca5; border-radius: 10px; }
.manual-list-form .manual-card-title { grid-column: 1 / -1; margin: 0; font-size: 1.05rem; color: #18365e; }
.manual-list-form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; font-size: .88rem; }
.manual-list-form label > input { width: 100%; background: #fff; border-color: #91a9d6; }
.manual-list-form label > input:focus-visible { outline: 2px solid #315ca5; outline-offset: 1px; }
.manual-required { font-size: .73rem; color: #345484; font-weight: 650; }
.manual-card-status { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: #182f54; }
.manual-card-status:empty, .manual-list-form[hidden], .manual-list-form label[hidden] { display:none; }
.manual-list-actions { justify-content: flex-end; }

.portfolio-totals { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:8px; margin:0 0 12px; }
.portfolio-total-currency { background:#11284b; color:#f4f8ff; border:1px solid #31517f; padding:9px 12px; border-radius:9px; }
.portfolio-total-currency h2 { margin:0 0 6px; font-size:.8rem; color:#c5daf9; }
.portfolio-total-currency dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:0; }
.portfolio-total-currency dt { font-size:.72rem; color:#c5daf9; }
.portfolio-total-currency dd { margin:2px 0 0; font-size:clamp(.82rem,1.7vw,1.14rem); font-weight:750; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.holding-editor select { width:100%; padding:5px 7px; color:var(--ink); }
.holding-review { grid-column:1 / -1; margin:0; padding:6px 8px; border-left:3px solid #ff9900; color:#fff; }

.instrument-actions .reorder-handle { flex:none; min-width:26px; letter-spacing:0; color:#fff; background:#2b4d7f; }
.compact-list .delete-stock { background:#ea4335; border-color:#ea4335; color:#fff; font-weight:700; display:block; margin:2px 0 4px auto; }
.compact-list .delete-stock:hover { background:#bb3026; border-color:#bb3026; color:#fff; }


.compact-list .instrument-quote .tv-inline-quote { zoom: .8; }

.trade-log-button { padding:3px 8px; margin-top:4px; font-size:.74rem; font-weight:700; }
.trade-log-toolbar { display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; }
.trade-log-toolbar h1, .trade-log-toolbar h2 { margin:0; }
.trade-log-filters, .trade-log-edit { display:flex; align-items:end; flex-wrap:wrap; gap:8px; margin:10px 0; }
.trade-log-filters label, .trade-log-edit label { display:grid; gap:4px; font-size:.85rem; }
.trade-log-results:not(:empty) { border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.trade-log-entry { padding:5px 9px; background:#eef4ff; }
.trade-log-entry:nth-child(even) { background:#f6f9ff; }
.trade-log-entry + .trade-log-entry { border-top:1px solid var(--border); }
.trade-log-entry-line { display:grid; grid-template-columns:minmax(100px,1fr) minmax(120px,2.7fr) auto auto; gap:4px 9px; align-items:center; }
.trade-log-entry-line > p { margin:0; font-size:.8rem; }
.trade-log-entry-line time { white-space:nowrap; }
.trade-log-entry-actions { display:flex; align-items:center; justify-content:end; flex-wrap:wrap; gap:4px; }
.trade-log-entry-actions button { padding:2px 6px; font-size:.75rem; }
@media (max-width: 700px) {
  .trade-log-entry-line { grid-template-columns:minmax(0,1fr) auto; }
  .trade-log-entry-line > p { grid-column:1 / -1; grid-row:2; }
}
.trade-log-entry h2 { font-size:1rem; }
.trade-log-entry p { margin:6px 0; }
.trade-log-entry time, .trade-log-entry summary { font-size:.85rem; }
.trade-log-entry details { margin-top:6px; }
.trade-log-entry ol { margin-bottom:0; }
.trade-log-edit select { min-height:34px; }
.trade-log-edit p { flex-basis:100%; }

.trade-log-export { display:flex; gap:6px; flex-wrap:wrap; }
.trade-log-period { margin:5px 0; font-size:.85rem; color:var(--muted); }

.trade-log-entry-actions .trade-log-remove { background:#ea4335; border-color:#ea4335; color:#fff; font-weight:700; }
.trade-log-entry-actions .trade-log-remove:hover { background:#bb3026; border-color:#bb3026; }


.trade-log-print-results { display:none; }
@media print {
  @page { margin:8mm; }
  body:has(#trade-log:not([hidden])) > :not(main),
  main:has(> #trade-log:not([hidden])) > :not(#trade-log),
  #trade-log .trade-log-export, #trade-log .trade-log-filters,
  #trade-log .trade-log-results { display:none !important; }
  body:has(#trade-log:not([hidden])), #trade-log { margin:0; background:#fff; color:#000; }
  main:has(> #trade-log:not([hidden])) { width:100%; max-width:none; padding:0; }
  #trade-log { font-size:8.5pt; line-height:1.15; }
  #trade-log .trade-log-toolbar h1 { font-size:15pt; line-height:1.08; }
  #trade-log > p { margin:2px 0; font-size:8pt; color:#111; }
  #trade-log .portfolio-totals { margin:3px 0 6px; gap:4px; grid-template-columns:repeat(auto-fit,minmax(40%,1fr)); }
  #trade-log .portfolio-total-currency { padding:3px 5px; border:1px solid #aaa; border-radius:0; background:#fff; color:#000; break-inside:avoid; }
  #trade-log .portfolio-total-currency h2 { margin:0 0 2px; font-size:8pt; color:#000; }
  #trade-log .portfolio-total-currency dt, #trade-log .portfolio-total-currency dd { margin:0; font-size:8pt; }
  #trade-log .portfolio-total-currency dt { color:#111; }
  .trade-log-print-results { display:block; }
  .trade-log-print-table { width:100%; margin:0; border-collapse:collapse; font-size:8pt; }
  .trade-log-print-table thead { display:table-header-group; }
  .trade-log-print-table tbody { break-inside:avoid; }
  .trade-log-print-table th, .trade-log-print-table td { padding:3px 4px; border-bottom:1px solid #bbb; vertical-align:top; }
  .trade-log-print-table th { text-align:left; color:#111; border-bottom:2px solid #333; }
  .trade-log-print-table th:nth-child(n+4), .trade-log-print-table .print-trade-number { text-align:right; }
  .print-trade-number { white-space:nowrap; font-variant-numeric:tabular-nums; }
  .print-realized { font-weight:800; }
  .trade-log-print-table .holding-gain-positive { color:#126731; }
  .trade-log-print-table .holding-gain-negative { color:#9e2525; }
  .trade-log-print-table .print-trade-audit { padding:2px 4px 3px 12px; color:#333; font-size:7.5pt; }
  .print-trade-audit ol { margin:0; padding-left:10px; }
  .print-trade-audit p { display:inline; margin:0 0 0 4px; }
}

.shared-notes-empty { color:#60738e; font-size:.8rem; font-weight:400; }
.shared-notes-button { color:#183e7a; background:#e1ecff; border:1px solid #a7bfeb; padding:3px 8px; font-weight:750; white-space:nowrap; }
.shared-notes-button[aria-expanded="true"] { background:#183e7a; color:#fff; }
.shared-holdings-table .shared-notes-panel { background:#eef4ff; text-align:left; }
.shared-notes-panel ul { margin:4px 0; padding:0; list-style:none; }
.shared-notes-panel li { padding:5px 0; border-bottom:1px solid #c8d8ee; }
.shared-notes-panel time { color:#506784; font-size:.75rem; }
.shared-notes-panel p { margin:2px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.shared-notes-panel p:empty { display:none; }

#portfolio-share-view { max-width:640px; padding:12px; border:1px solid #b7c9e7; border-radius:10px; background:#eef4ff; }
#portfolio-share-view > h3,.shared-profile-activity h4 { margin:0 0 6px; }
#portfolio-share-view table td,#portfolio-share-view table th { padding:4px 7px; }
.shared-profile-activity { margin:10px 0; }
.shared-profile-activity ul { margin:0; padding:0; list-style:none; }
.shared-profile-activity li { display:flex; flex-wrap:wrap; gap:4px 10px; padding:4px 0; border-top:1px solid #c8d8ee; font-size:.82rem; }
.shared-profile-activity time { margin-left:auto; }

#portfolio-share-view { max-width:520px; padding:8px 10px; margin-top:10px; }
#portfolio-share-view > p { margin:4px 0; }
#portfolio-share-view .shared-holdings-table { margin:4px 0; }
#portfolio-share-view .shared-holdings-table th,
#portfolio-share-view .shared-holdings-table td { padding:2px 6px; }
.shared-holdings-table .ticker-button { padding:1px 0; }
.shared-holdings-table th:last-child,.shared-holdings-table td:last-child:not(.shared-notes-panel) { text-align:right; }
.shared-exchange { margin-left:6px; font-size:.68rem; font-weight:600; color:#506784; }
.shared-notes-button,.shared-notes-empty { display:inline-block; padding:2px 7px; border:1px solid transparent; border-radius:5px; font-size:.75rem; line-height:1.2; }
.shared-notes-button { background:#ff9900; border-color:#ff9900; color:#181818; font-weight:800; }
.shared-notes-button:hover,.shared-notes-button[aria-expanded="true"] { background:#ed8900; border-color:#ed8900; color:#181818; }
.shared-notes-empty { background:#e5e8ed; color:#526175; font-weight:500; }
.shared-profile-activity { margin:6px 0; }
.shared-profile-activity li { padding:2px 0; }

.community-stock-search { display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px 9px; max-width:760px; margin:8px 0; padding:10px; border:1px solid #b9ccea; border-radius:9px; background:#eaf1ff; }
.community-stock-search .symbol-picker { flex:1 1 240px; }
.community-stock-search label { display:grid; gap:3px; }
.community-stock-search label[hidden],.community-stock-search button[hidden] { display:none; }
.community-stock-search .symbol-status:empty { display:none; }
#community #ticker-discussion { margin:18px auto 14px; }
.shared-stock-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:8px; margin:6px 0 10px; }
.shared-stock-card { min-width:0; border:1px solid #b8cbea; border-radius:8px; overflow:hidden; background:#fff; }
.shared-stock-header { display:flex; align-items:center; gap:7px; padding:4px 8px; background:#193b68; color:#fff; }
.shared-stock-header button { padding:1px 0; background:transparent; border:0; color:#fff; font-size:.92rem; font-weight:800; }
.shared-stock-header small { color:#d7e6ff; font-size:.72rem; }
.shared-stock-card ul { margin:0; padding:0; list-style:none; }
.shared-stock-card li { padding:6px 8px; border-bottom:1px solid #d4e0f1; }
.shared-stock-card li:nth-child(even) { background:#eff5ff; }
.shared-stock-card li:last-child { border:0; }
.shared-stock-card time,.shared-stock-state { color:#405777; font-size:.74rem; }
.shared-stock-card li p,.shared-stock-state { margin:2px 0 0; overflow-wrap:anywhere; white-space:pre-wrap; }
.shared-stock-card li p { font-size:.84rem; line-height:1.4; }
.shared-stock-state { padding:4px 8px; }

.community-stock-market { max-width:760px; padding:7px 9px; margin:8px 0 10px; border:1px solid #bacdea; border-radius:10px; background:#102849; }
.community-stock-market[hidden] { display:none; }
.community-stock-market .community-stock-quote { max-width:340px; }
.community-stock-market .tv-inline-quote { height:60px; border:0; background:transparent; }
.community-stock-market .tv-chart-frame { height:clamp(275px,40vw,390px); margin:0; }
.community-post-thread { margin:9px 0 13px; }
.community-post-card { padding:8px 11px; border:1px solid #b3c7e8; border-left:4px solid #325f9d; border-radius:8px; background:#e8f1ff; }
.community-post-card > p { margin:5px 0; }
.community-post-thread > .community-replies { margin:3px 0 0 10px; padding:4px 8px; background:#f9fbff; }
#community #discussion-form { padding:8px 10px; border:1px solid #b3c7e8; border-left:4px solid #325f9d; border-radius:8px; background:#e8f1ff; }

#portfolio-share-view { max-width:none; }
#portfolio-share-view .holding-summary-row > td { padding:0; }
.shared-holding-strip { align-items:start; }
.shared-holding-strip ul { margin:0; padding:0; list-style:none; }
.shared-holding-strip li + li { border-top:1px solid var(--listing-accent); }
.shared-holding-strip li { padding:3px 0; }
.shared-holding-strip li p { margin:1px 0 0; font-size:.82rem; line-height:1.3; white-space:pre-wrap; overflow-wrap:anywhere; }
.shared-holding-strip time,.shared-holding-strip .shared-stock-state { color:#d3e0f3; font-size:.72rem; }
.shared-holding-strip .shared-stock-state { margin:2px 0; padding:0; }

#portfolio-share-view { display:grid; grid-template-columns:1fr; gap:10px; background:none; border:0; padding:0; }
#portfolio-share-view[hidden] { display:none; }
@media (min-width:760px) { #portfolio-share-view { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1050px) { #portfolio-share-view { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.circle-member { container: circle-card / inline-size; min-width:0; padding:8px; border:1px solid #b7c9e7; border-radius:9px; background:#eef4ff; }
.circle-member-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 8px; margin-bottom:5px; }
.circle-member-header h3,.circle-member > p { margin:0 0 4px; overflow-wrap:anywhere; }
.circle-member-header button { padding:3px 6px; font-size:.72rem; }
.circle-member .compact-lists { grid-template-columns:minmax(0,1fr); gap:6px; }
.circle-member .compact-list th:last-child { width:92px; }
.circle-member .instrument-actions > button { flex: none; }
.circle-member .circle-row-notes { min-width:44px; white-space:nowrap; }
.circle-member .compact-list .instrument-logo { width:23px; height:23px; }


.community-stock-search { display:block; max-width:560px; padding:0; border:0; background:transparent; }
.community-search-row { display:flex; gap:6px; align-items:flex-start; }
.community-search-row .symbol-picker { position:relative; min-width:0; flex:1; }
.community-search-row .symbol-picker input { height:36px; padding:5px 10px; }
.community-search-row > button { height:36px; padding:4px 8px; white-space:nowrap; }
.community-search-row .symbol-picker ul { position:absolute; z-index:10; top:36px; left:0; right:0; max-height:220px; overflow:auto; }
.community-search-row .symbol-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.community-search-row .symbol-picker:has(ul:not([hidden])) .manual-symbol-button { display:none; }
.community-stock-search > label:not([hidden]) { display:inline-grid; margin:5px 6px 0 0; }

.community-active-tickers { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:7px; max-width:760px; }
.community-active-tickers[hidden] { display:none; }
.community-active-tickers .community-stock-market { margin:0; }
.community-stock-market .stocktalk-ticker-button { background:transparent; border:0; padding:0 2px; color:#f0f6ff; font-weight:750; font-size:.85rem; }
.stocktalk-ticker-heading { color:#f0f6ff; margin:0 2px; font-size:.95rem; }
.community-stock-chart { color:#e4edfc; font-size:.8rem; }
.community-stock-chart summary { cursor:pointer; padding:3px 2px; }
.community-stock-chart[open] { margin-bottom:3px; }

.community-stock-market { width:min(100%,450px); background:#234772; }
.community-active-tickers { max-width:650px; grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr)); }
.community-active-tickers .community-stock-market { width:100%; }
.stocktalk-stock-identity { display:flex; gap:8px; align-items:center; margin:1px 2px 3px; min-width:0; }
.stocktalk-stock-text { min-width:0; }
.stocktalk-stock-title { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.stocktalk-stock-symbol { margin:0; font-size:1rem; font-weight:800; color:#fff; }
button.stocktalk-stock-symbol { border:0; background:transparent; padding:0; text-decoration:underline; }
button.stocktalk-stock-symbol:hover { color:#ffb549; }
.stocktalk-stock-exchange,.stocktalk-stock-company { color:#edf4ff; }
.stocktalk-stock-exchange { font-size:.68rem; }
.stocktalk-stock-identity .stocktalk-stock-company { margin:1px 0 0; font-size:.8rem; }
.stocktalk-stock-company:empty { display:none; }
.community-stock-chart .stocktalk-chart-button { display:block; width:max-content; margin:2px 0 4px auto; padding:3px 8px; border-radius:5px; background:#ff9900; color:#1a160f; font-size:.75rem; font-weight:750; list-style:none; }
.stocktalk-chart-button::-webkit-details-marker { display:none; }
.stocktalk-chart-button:hover { background:#ffb340; }

/* StockTALK collapsed cards share a row for identity and quote. */
.community-stock-market:not([hidden]) { display:grid; grid-template-columns:minmax(0,1fr) minmax(128px,46%); align-items:center; gap:0 5px; padding:3px 7px; }
.community-active-tickers { grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.community-stock-market .stocktalk-stock-identity { gap:5px; margin:0; }
.community-stock-market .instrument-logo { width:24px; height:24px; flex:0 0 24px; }
.stocktalk-stock-title { gap:2px 5px; }
.stocktalk-stock-identity .stocktalk-stock-company { margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.community-stock-market .community-stock-quote { width:100%; min-width:0; }
.community-stock-market .tv-inline-quote { zoom:.76; }
.community-stock-market .community-stock-chart { grid-column:1 / -1; min-width:0; }
.community-stock-chart .stocktalk-chart-button { margin:0 0 1px auto; padding:2px 6px; line-height:1.15; }
.community-stock-chart[open] .tv-chart-frame { margin-top:4px; }

@media (min-width: 760px) {
  #community { --stocktalk-card-width: 450px; }
  #community > .community-stock-search,
  #community > .community-stock-market {
    box-sizing: border-box;
    width: min(100%, var(--stocktalk-card-width));
    max-width: var(--stocktalk-card-width);
    margin-inline: auto;
  }
  #community > .community-active-tickers { margin-inline: auto; }
}

.profile-photo { display:flex; align-items:center; gap:8px; margin:8px 0; }
.profile-photo p { margin:0; font-size:.8rem; }
.profile-photo-button { display:grid; place-items:center; width:46px; height:46px; padding:0; border:1px solid #a5bbdd; border-radius:50%; overflow:hidden; background:#eaf1ff; color:#284778; }
.profile-photo-button img { width:100%; height:100%; object-fit:cover; }
.profile-photo-placeholder { display:block; position:relative; width:24px; height:24px; }
.profile-photo-placeholder::before,.profile-photo-placeholder::after { content:""; position:absolute; left:50%; transform:translateX(-50%); border:1.5px solid currentColor; }
.profile-photo-placeholder::before { top:0; width:7px; height:7px; border-radius:50%; }
.profile-photo-placeholder::after { bottom:1px; width:18px; height:9px; border-radius:10px 10px 3px 3px; }
.profile-photo [hidden] { display:none; }

.profile-photo { flex-wrap:wrap; }
.profile-photo-editor { display:flex; align-items:center; flex-wrap:wrap; gap:12px; width:fit-content; padding:10px; margin:8px 0; border:1px solid #b7c9e7; border-radius:8px; background:#eef4ff; }
.profile-photo-editor[hidden] { display:none; }
.profile-photo-editor canvas { width:100px; height:100px; border-radius:50%; }
.profile-photo-editor label { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:5px; font-size:.82rem; }
.profile-photo-editor input { width:100px; padding:0; }

#profile > h1 { font-size: clamp(18px, 2.5vw, 28px); }

.circle-member-identity { display:flex; align-items:center; gap:7px; min-width:0; }
.circle-member-identity h3 { margin:0; }
.circle-member-avatar { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border-radius:50%; overflow:hidden; background:#dce8fc; color:#284778; }
.circle-member-avatar img { width:100%; height:100%; object-fit:cover; }
.circle-member-avatar .profile-photo-placeholder { transform:scale(.76); }

#profile > h1 { margin:0 0 2px; color:var(--navy); letter-spacing:-.035em; }
#profile > .account, #profile > .portfolio-sharing { margin:0; padding:12px; border-radius:10px; min-width:0; }
#profile > .account { width:100%; max-width:440px; }
#profile .account form { margin:0; gap:7px; }
#profile .account form h2, #profile .account form p { margin:0; }
#profile .account input:not([type="range"]):not([type="file"]),
#profile .portfolio-sharing input[type="email"] { width:100%; min-width:0; padding:6px 8px; }
#profile .profile-session { display:flex; align-items:center; justify-content:space-between; gap:6px; border-bottom:1px solid var(--border); padding-bottom:7px; }
#profile .profile-session p { margin:0; min-width:0; overflow-wrap:anywhere; font-size:.83rem; }
#profile .profile-session button { flex:none; }
#profile .profile-photo { gap:5px; margin:8px 0; }
#profile #profile-photo-status:empty, #profile-status:empty, #profile #portfolio-share-status:empty { display:none; }
#profile #profile-status, #profile #portfolio-share-status { margin:5px 0 0; font-size:.85rem; }
#profile #profile-form { grid-template-columns:minmax(0,1fr); align-items:stretch; }
#profile #profile-form label, #profile #portfolio-share-form label { min-width:0; font-size:.85rem; }
#profile #profile-form button { white-space:nowrap; }
#profile button:not(.profile-photo-button):not(.instrument-button) { font-size:.82rem; padding:5px 8px; }
#profile > .portfolio-sharing h2 { margin:0 0 5px; font-size:1rem; color:var(--navy); }
#profile > .portfolio-sharing > p { margin:4px 0 7px; font-size:.84rem; }
#profile #portfolio-share-form { display:flex; flex-wrap:wrap; align-items:end; gap:6px; margin:0; }
#profile #portfolio-share-form label { flex:1 1 160px; }
#profile > .portfolio-sharing > h3 { margin:9px 0 2px; font-size:.87rem; color:var(--navy); }
#profile .portfolio-sharing li { padding:4px 0; gap:5px; font-size:.82rem; }
#profile:not([hidden]) { display:grid; gap:8px; align-items:start; }
@media (min-width:850px) {
  #profile:has(> .portfolio-sharing:not([hidden])) { grid-template-columns:minmax(0,340px) minmax(0,1fr); column-gap:12px; }
  #profile > h1 { grid-column:1 / -1; }
}
@media (max-width:380px) {
  #profile #profile-form { grid-template-columns:minmax(0,1fr); }
  #profile #profile-form button { justify-self:start; }
}

#portfolio-invitations > li { padding-block:5px; gap:5px 8px; }
.portfolio-invitation-actions { display:flex; flex-wrap:wrap; gap:4px; margin-left:auto; }
.portfolio-invitation-actions button { padding:4px 7px; font-size:.8rem; }

#profile .circle-member { padding:4px 7px; }
#profile .circle-member-header, #profile .circle-member-header h3 { margin:0; }
#profile .circle-member-header h3 { font-size:.88rem; }

#investing-circle > h1 { font-size:clamp(24px,3vw,36px); margin:0 0 10px; color:var(--navy); }
#circle-status:empty { display:none; }
#profile-circle-view { display:grid; gap:5px; margin-top:4px; }
#profile-circle-view > p { margin:0; font-size:.82rem; }

.fun-facts-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.fun-facts-toolbar h1 { margin:0; font-size:clamp(24px,3vw,38px); color:var(--navy); }
#fun-facts-dates { display:flex; flex-wrap:wrap; gap:4px; }
#fun-facts-dates button,.fun-facts-currencies button { padding:4px 7px; font-size:.78rem; }
#fun-facts-dates button[aria-pressed="true"],.fun-facts-currencies button[aria-pressed="true"] { background:#ff9900; color:#201505; border-color:#ff9900; font-weight:750; }
#fun-facts-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.fun-facts-card { min-width:0; border:1px solid #c1d2ed; border-radius:9px; overflow:hidden; background:#f3f7ff; }
.fun-facts-card-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:3px 6px; padding:5px 8px; background:#132f55; color:#fff; }
.fun-facts-card[data-group="holdings"] .fun-facts-card-header { background:#254877; }
.fun-facts-card h2 { margin:0; font-size:.91rem; }
.fun-facts-card ul { margin:0; padding:0 8px; list-style:none; }
.fun-facts-card li { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:2px 0; font-size:.84rem; }
.fun-facts-card li + li { border-top:1px solid #d6e2f4; }
.fun-facts-card .ticker-button { padding:2px 0; font-weight:750; }
.fun-facts-card strong { text-align:right; font-variant-numeric:tabular-nums; }
.fun-facts-empty,#fun-facts-status { margin:5px 8px; font-size:.8rem; }
#fun-facts-status:empty,#fun-facts-sharing-status:empty { display:none; }
.fun-facts-currencies { display:flex; gap:2px; }
.fun-facts-currencies button:not([aria-pressed="true"]) { color:#dfebff; background:transparent; border-color:#7695c1; }
#profile .fun-facts-consent { display:flex; align-items:start; gap:5px; margin:7px 0; font-size:.82rem; }
#profile .fun-facts-consent #fun-facts-value-sharing { width:auto; }
#fun-facts-sharing-status { margin:3px 0; font-size:.8rem; }
@media(max-width:490px) { #fun-facts-grid { grid-template-columns:minmax(0,1fr); } }

.fun-facts-discussion-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px 6px; }
.fun-facts-discussion-actions button { padding:2px 5px; font-size:.73rem; font-weight:700; }
@media (min-width:900px) {
  #fun-facts-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .fun-facts-card[data-group="discussions"] { grid-column:3; grid-row:1 / span 3; }
}

.fun-facts-periods { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
.fun-facts-periods select,.fun-facts-periods button { padding:4px 7px; font-size:.78rem; color:var(--navy); }
.fun-facts-periods button[aria-pressed="true"] { background:#ff9900; color:#201505; border-color:#ff9900; font-weight:750; }

#fun-facts-dates .fun-facts-shortcut,.fun-facts-periods .fun-facts-shortcut { background:#ff9900; color:#201505; border-color:#ff9900; font-weight:750; }
#fun-facts-dates button[aria-pressed="true"],.fun-facts-periods button[aria-pressed="true"] { box-shadow:0 0 0 1px #173659; border-color:#173659; }

.fun-facts-card li > .ticker-button { display:flex; flex:1 1 auto; align-items:center; gap:5px; min-width:0; text-align:left; }
.fun-facts-card .instrument-logo { flex:0 0 19px; width:19px; height:19px; border-radius:4px; font-size:.6rem; }
.fun-facts-card .fun-facts-symbol,.fun-facts-card li > strong,.fun-facts-discussion-actions { flex:none; }
.fun-facts-company { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.73rem; font-weight:500; color:#3e577a; }
.fun-facts-company:empty { display:none; }

#discussion-form, #community #discussion-form { gap:4px; padding:5px 7px; }
.discussion-input-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.discussion-compose-line { display:flex; gap:6px; align-items:flex-start; }
#discussion-form .discussion-compose-line textarea { flex:1; min-width:0; min-height:32px; width:100%; padding:5px 7px; margin:0; font-size:.85rem; line-height:1.3; resize:none; }
.discussion-compose-controls { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
.discussion-compose-controls button { padding:3px 6px; font-size:.76rem; font-weight:700; }
.discussion-compose-controls small { font-size:.69rem; color:#475e7d; }
.discussion-compose-controls button[type="submit"] { margin-left:auto; }
.discussion-compose-controls button[data-sentiment="bullish"][aria-pressed="true"],.discussion-sentiment-tag[data-sentiment="bullish"] { color:#14612c; background:#d9f2df; border-color:#8ec49b; }
.discussion-compose-controls button[data-sentiment="bearish"][aria-pressed="true"],.discussion-sentiment-tag[data-sentiment="bearish"] { color:#a2231a; background:#fce2df; border-color:#dfa29b; }
.discussion-sentiment-tag { margin-left:auto; padding:2px 5px; border:1px solid; border-radius:5px; font-size:.72rem; font-weight:750; }
.fun-facts-card[data-group="bullish"] .fun-facts-card-header { background:#22613a; }
.fun-facts-card[data-group="bearish"] .fun-facts-card-header { background:#8b302e; }

#discussion-comments article { display:grid; grid-template-columns:30px minmax(0,1fr); align-items:start; gap:8px; padding:8px 2px; }
#discussion-comments article + article { border-top:1px solid #e2e9f5; }
.discussion-comment-avatar { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#e3edff; color:#234c85; font-size:.72rem; font-weight:800; }
.discussion-comment-meta { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 7px; }
.discussion-comment-meta strong { color:var(--navy); font-size:.87rem; }
#discussion-comments .discussion-comment-meta time { font-size:.74rem; }
#discussion-comments .discussion-comment-content p { margin:2px 0 0; font-size:.88rem; line-height:1.45; }

#community #discussion-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.discussion-comment-avatar { overflow:hidden; }
.discussion-comment-avatar img { width:100%; height:100%; object-fit:cover; }
#profile .stocktalk-photo-option { display:flex; align-items:flex-start; gap:5px; margin:5px 0; font-size:.82rem; }
#profile #stocktalk-photo-sharing { width:auto; }
#stocktalk-photo-status { font-size:.8rem; margin:3px 0; }
#stocktalk-photo-status:empty { display:none; }

/* Center the composer and feed without surrounding them with a second card. */
#ticker-discussion.panel {
  width:min(100%,450px); margin:10px auto 14px; padding:0;
  background:transparent; border:0; border-radius:0; box-shadow:none; overflow:visible;
}
#ticker-discussion #discussion-form {
  box-sizing:border-box; width:100%; padding:6px 8px; margin:0 0 8px;
  border:1px solid #b3c7e8; border-left:3px solid #325f9d; border-radius:8px; background:#e8f1ff;
}
#discussion-status { margin:4px 0; }
#discussion-status:empty { display:none; }
#discussion-comments { width:100%; }
#community:has(.community-stock-market:not([hidden])) #community-feed {
  width:min(100%,450px); margin-inline:auto;
}

button.latest-ticker-comment { display:block; width:100%; padding:4px 8px; border:1px solid #bfd1ec; border-radius:0; background:#e9f1ff; color:#182f54; text-align:left; font-size:.75rem; line-height:1.35; cursor:pointer; overflow-wrap:anywhere; }
button.latest-ticker-comment:hover { background:#dce9ff; color:#142c51; }
button.latest-ticker-comment:focus-visible { outline:2px solid #234b82; outline-offset:-2px; }
.latest-comment-author { display:flex; align-items:center; gap:5px; }
.latest-comment-author .discussion-comment-avatar { flex:0 0 19px; width:19px; height:19px; font-size:.58rem; }
.latest-comment-body { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; margin-top:2px; }
#picks .latest-ticker-comment { margin-top:6px; border-radius:5px; }

#portfolio .portfolio-total-currency { padding:4px 9px 5px; border-width:3px; }
#portfolio .portfolio-total-currency[data-currency="USD"] { background:#224773; border-color:#548bd3; }
#portfolio .portfolio-total-currency[data-currency="CAD"] { background:#8e414b; border-color:#dc6e7d; }
#portfolio .portfolio-total-currency[data-currency="CAD"] h2,
#portfolio .portfolio-total-currency[data-currency="CAD"] dt { color:#ffe7eb; }
#portfolio .portfolio-total-header { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-bottom:2px; }
#portfolio .portfolio-total-header h2 { margin:0; }
#portfolio .portfolio-total-header .trade-log-button { margin:0; padding:2px 6px; font-size:.72rem; line-height:1.15; }
#portfolio .portfolio-total-currency dd { margin:0; line-height:1.1; }
#portfolio .portfolio-total-currency .holding-gain-positive { color:#82f1a1; }
#portfolio .portfolio-total-currency .holding-gain-negative { color:#ff9b98; }
#portfolio .portfolio-total-currency[data-currency="CAD"] .holding-gain-negative { color:#ffc8c3; }

#portfolio .portfolio-total-currency[data-currency] { background:#eef3fa; color:#122d50; }
#portfolio .portfolio-total-currency[data-currency] h2,
#portfolio .portfolio-total-currency[data-currency] dt { color:#29476d; }
#portfolio .portfolio-total-currency[data-currency] .holding-gain-positive { color:#146333; }
#portfolio .portfolio-total-currency[data-currency] .holding-gain-negative { color:#ab251c; }
.portfolio-title-group { min-width:0; }
#portfolio-title { padding:0; margin:0; border:0; background:transparent; color:inherit; font:inherit; letter-spacing:inherit; text-align:left; overflow-wrap:anywhere; }
#portfolio-title:not(:disabled)::after { content:" ✎"; font-size:.5em; color:#416a99; vertical-align:middle; }
#portfolio-title:disabled { opacity:1; }
#portfolio-name-form { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin:4px 0; }
#portfolio-name-form label { font-size:.78rem; }
#portfolio-name-form input { width:min(100%,220px); padding:4px 6px; }
#portfolio-name-form button { padding:3px 6px; font-size:.78rem; }
#portfolio-name-status:empty { display:none; }

.portfolio-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.portfolio-tabs button {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 12px;
}
.portfolio-tabs button[aria-pressed="true"] {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  font-weight: 800;
}
.portfolio-title-group > #add-portfolio { margin-top: 6px; padding: 4px 9px; }

.portfolio-circle-sharing { margin: 0 0 10px; padding: 6px 9px; border: 1px solid #c8d8ee; border-radius: 8px; background: #f1f6ff; font-size: .84rem; }
.portfolio-circle-sharing summary { cursor: pointer; font-weight: 750; width: fit-content; }
.portfolio-circle-sharing label { display: flex; align-items: center; gap: 6px; margin: 6px 0; }
.portfolio-circle-sharing input { width: auto; }
.portfolio-circle-sharing p { margin: 3px 0; overflow-wrap: anywhere; }
.portfolio-circle-sharing p:empty, #circle-updates-status:empty, #circle-notes-status:empty { display: none; }
.circle-tools { margin-bottom: 10px; }
.circle-tools h2, .circle-note-header h2 { margin: 0; font-size: 1.1rem; }
#circle-updates, #circle-notes-list { max-height: 270px; overflow-y: auto; list-style: none; margin: 4px 0; padding: 0; }
#circle-updates li, #circle-notes-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; border-bottom: 1px solid #d4e1f2; padding: 4px 0; }
#circle-updates button { background: #eef5ff; text-align: left; padding: 3px 6px; font-size: .83rem; }
#circle-updates time, #circle-notes-list time { font-size: .75rem; color: #4d617c; }
#circle-notes { width: min(560px, 92vw); border: 1px solid #a5bad7; border-radius: 12px; padding: 14px; }
#circle-notes::backdrop { background: #12274270; }
.circle-note-header, .circle-note-actions, #circle-notes-list li > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.circle-note-header { justify-content: space-between; margin-bottom: 8px; }
#circle-note-text { display: block; width: 100%; margin: 4px 0 8px; }
#circle-notes-list li > p { flex: 1 0 100%; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.circle-row-notes { width: auto; padding-inline: 5px; }
@container circle-card (max-width: 330px) {
  .circle-member .compact-list table, .circle-member .compact-list tbody { display: block; }
  .circle-member .compact-list thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .circle-member .compact-list .instrument-row {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    border-bottom: 1px solid #294468;
  }
  .circle-member .compact-list .instrument-row td { min-width: 0; border: 0; }
  .circle-member .compact-list .instrument-row-actions { grid-area: 1 / 2; align-self: center; }
  .circle-member .compact-list .instrument-quote { grid-area: 2 / 1 / 3 / -1; }
  .circle-member .compact-list .instrument-details-row,
  .circle-member .compact-list .instrument-details-row td { display: block; }
}

#circle-recent-notes-status:empty { display: none; }
#circle-recent-notes { max-height: 240px; overflow-y: auto; list-style: none; padding: 0; margin: 4px 0; }
#circle-recent-notes li { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid #d4e1f2; font-size: .83rem; }
#circle-recent-notes button { background: #eef5ff; font-size: .8rem; padding: 2px 6px; }
#circle-recent-notes time { font-size: .75rem; color: #4d617c; }
#circle-recent-notes p { margin: 0; flex: 1 0 100%; overflow-wrap: anywhere; }
.holding-circle-notes { margin: 4px; padding: 3px 8px; font-size: .78rem; }

.circle-recent-toolbar, #circle-recent-controls { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; }
.circle-recent-toolbar { justify-content:space-between; margin-top:7px; }
#circle-recent-controls { font-size:.76rem; }
#circle-recent-controls label { display:flex; align-items:center; gap:4px; }
#circle-recent-controls input, #circle-recent-notes input { width:auto; margin:0; }
#circle-delete-recent { padding:2px 6px; font-size:.75rem; }
#circle-updates li, #circle-recent-notes li { display:grid; grid-template-columns:minmax(0,1fr) auto 24px; gap:4px 7px; padding:2px 0; }
#circle-recent-notes li { grid-template-columns:15px minmax(0,1fr) auto 24px; }
#circle-updates .circle-line-link, #circle-recent-notes .circle-line-link { min-width:0; justify-self:start; max-width:100%; overflow:hidden; text-align:left; }
.circle-line-link > span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#circle-updates time, #circle-recent-notes time { font-size:.69rem; white-space:nowrap; }
#circle-updates .circle-dismiss, #circle-recent-notes .circle-dismiss { width:24px; height:24px; padding:0; line-height:1; font-size:1rem; text-align:center; background:transparent; }

.holding-circle-chat-preview {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:6px;
  width:100%; text-align:left; padding:3px 7px; font-size:.76rem; color:#143663; background:#e5f0ff;
}
.holding-circle-chat-preview > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.holding-circle-chat-preview time { font-size:.69rem; white-space:nowrap; }
.holding-circle-chat-button { padding:2px 7px; font-size:.76rem; font-weight:700; }
.holding-circle-chat-button:disabled { opacity:1; color:#4d5a6c; background:#e4e8ef; border-color:#c3cbd7; cursor:default; }
.holding-circle-chat-button.has-circle-chat, .circle-member .circle-row-notes.has-circle-chat {
  background:var(--analyze-orange,#ff9900); border-color:var(--analyze-orange,#ff9900); color:#171717;
}
.holding-circle-chat-button.has-circle-chat:hover, .circle-member .circle-row-notes.has-circle-chat:hover {
  background:#ee8c00; border-color:#ee8c00;
}
.stocktalk-preview-audience { display:block; color:#254975; font-size:.67rem; font-weight:700; margin-bottom:2px; }
.circle-chat-audience { font-size:.78rem; color:#4d617c; margin:4px 0; }
#circle-chat-reply, .circle-chat-quote { border-left:3px solid #749ac6; background:#edf4ff; padding:4px 7px; font-size:.78rem; }
#circle-chat-reply { margin:4px 0; }
#circle-chat-reply-label { display:block; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; }
#circle-chat-post { margin-top:4px; padding:3px 9px; font-size:.82rem; }
.circle-chat-quote { flex:1 0 100%; margin:0; overflow-wrap:anywhere; }
.circle-chat-highlight { background:#f0f6ff; }
#circle-notes-list li button { font-size:.75rem; padding:2px 6px; }

#community-recent { max-width: 760px; margin: 10px auto 0; }
#community-recent h2 { font-size: 1rem; margin: 0 0 4px; }
#community-status:empty { display: none; }
.stockchat-feed { margin: 0; padding: 0; list-style: none; }
.stockchat-feed > li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.stockchat-feed .community-meta { align-items: center; gap: 5px 9px; font-size: .83rem; }
.stockchat-feed .community-meta time { font-size: .73rem; }
.stockchat-feed .community-tag { padding: 2px 6px; }
.stockchat-feed .community-message { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.stockchat-bullish { color: #187138; font-weight: 700; }
.stockchat-bearish { color: #a42621; font-weight: 700; }

#circle-unread-badge { display:inline-flex; align-items:center; justify-content:center; min-width:1.15rem; height:1.15rem; padding:0 .22rem; margin-left:3px; border-radius:999px; background:var(--analyze-orange,#ff9900); color:#17263f; font-size:.69rem; font-weight:800; }
#circle-unread { margin-bottom:8px; padding-bottom:6px; border-bottom:1px solid #d4e1f2; }
#circle-unread-list { margin:4px 0 0; padding:0; list-style:none; max-height:220px; overflow:auto; }
#circle-unread-list li { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:2px 0; }
#circle-unread-list button { min-width:0; text-align:left; padding:3px 6px; font-size:.8rem; }
#circle-unread-list time { flex:none; color:#4d617c; font-size:.69rem; }

#home {
  padding:clamp(16px,3.2vw,42px) clamp(12px,2.6vw,32px) clamp(18px,2.8vw,34px);
  border:1px solid #cedcec; border-radius:24px;
  background:radial-gradient(ellipse at top right,#e4eefb 0%,transparent 57%),#f5f8fd;
}
.weekly-heading { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:12px 20px; margin-bottom:clamp(16px,3vw,30px); }
.weekly-heading h1 { font-size:clamp(1.8rem,4vw,3.35rem); letter-spacing:-.045em; line-height:1.06; margin:0; color:var(--navy); }
.weekly-heading p {
  color:#435d7f; margin:9px 0 0; font-size:.84rem; font-weight:650;
  display:flex; align-items:center; gap:7px;
}
.weekly-heading p::before { content:""; width:18px; height:3px; border-radius:2px; background:var(--analyze-orange); }
.weekly-heading:has(input:focus-visible) input { outline-offset:2px; }
.weekly-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:clamp(8px,1.2vw,14px); align-items:start; }
.weekly-pick { min-width:0; padding:clamp(10px,1.4vw,16px); container-type:inline-size; background:#fff; border:1px solid #d3dfef; border-radius:16px; color:#163152; box-shadow:0 5px 16px #15365b0e; }
.weekly-lead {
  padding:clamp(12px,1.8vw,21px);
  background:radial-gradient(ellipse at 90% 4%,#244d7e 0%,transparent 58%),linear-gradient(150deg,#17365c,#091e3c);
  border-color:#2a4f77; color:#fff; box-shadow:0 12px 25px #122e592b;
}
.weekly-pick-header { display:flex; align-items:center; gap:9px; }
.weekly-pick-header .instrument-logo { flex:none; }
.weekly-lead .instrument-logo { width:42px; height:42px; }
.weekly-pick-identity { flex:1; min-width:0; }
.weekly-pick-identity h2 { margin:0; color:inherit; font-size:1.15rem; }
.weekly-lead h2 { font-size:clamp(1.5rem,3vw,2.15rem); letter-spacing:-.04em; line-height:1; }
.weekly-pick-identity p { margin:2px 0 0; font-size:.8rem; }
.weekly-rating { padding:3px 7px; background:#d8e5f7; color:#142f50; font-size:.72rem; font-weight:800; border-radius:5px; white-space:nowrap; }
.weekly-thesis { margin:5px 0 7px; font-size:.98rem; line-height:1.32; font-weight:500; overflow-wrap:anywhere; }
.weekly-lead .weekly-thesis { font-size:1.04rem; }
.weekly-prices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,116px),1fr)); gap:4px; margin:0; }
.weekly-prices div { min-width:0; padding:5px 6px; border-radius:8px; border:1px solid #56708d; background:#273f5e; color:#fff; text-align:center; }
.weekly-prices .weekly-buy-level { background:#493e35; border-color:#aa8152; color:#ffc16a; }
.weekly-lead .weekly-prices dd { font-size:clamp(.9rem,1.55vw,1.18rem); }
.weekly-prices dd { overflow-wrap:anywhere; }
.weekly-prices dt,.weekly-analysis dt { font-size:.72rem; }
.weekly-prices dd,.weekly-analysis dd { margin:2px 0 0; font-weight:750; font-variant-numeric:tabular-nums; }
.weekly-pick-footer { margin:6px 0 3px; font-size:.85rem; }
.weekly-analysis {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px 8px;
  margin:4px 0 0; padding:5px 0 0; border-top:1px solid #d3dfef;
}
.weekly-lead .weekly-analysis { border-color:#ffffff40; }
.weekly-analysis div { min-width:0; overflow-wrap:anywhere; }
.weekly-analysis dt { font-size:.73rem; opacity:.86; }
.weekly-analysis dd { font-size:.86rem; line-height:1.17; }
@media(max-width:360px) { .weekly-analysis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.weekly-empty { display:grid; place-items:center; min-height:100px; text-align:center; border-style:dashed; color:#526781; background:#eef4fb; box-shadow:none; font-size:.83rem; }
#weekly-archive { margin-top:15px; }
.weekly-archived-edition { margin:8px 0; }
.weekly-archived-edition .weekly-pick { margin:6px 0; }
@media(max-width:720px) { .weekly-grid { grid-template-columns:minmax(0,1fr); } .weekly-lead { grid-row:auto; } }

.weekly-quote { background:#091d37; color:#fff; border:1px solid #406185; border-radius:10px; margin:0 0 5px; overflow:hidden; }
.weekly-quote .tv-inline-quote {
  display:block; width:100%; height:68px; border:0;
}
@media (min-width:380px) {
  .weekly-quote .tv-inline-quote {
    width:88%; height:60px; margin-left:auto; transform:scale(1.13); transform-origin:top right;
  }
  .weekly-quote { min-height:68px; }
}
.weekly-rating.weekly-rating-buy { background:#34a853; color:#092719; padding:5px 10px; font-size:.88rem; }
.weekly-lead .weekly-rating.weekly-rating-buy { font-size:1rem; padding:6px 12px; }

#weekly-admin { grid-column:1 / -1; }
#weekly-admin summary { cursor:pointer; }
#weekly-admin form { margin:8px 0; }
#weekly-admin label { display:block; font-size:.83rem; }
#weekly-admin fieldset { min-width:0; border:1px solid #d3dfef; border-radius:8px; padding:8px; }
#weekly-admin-slots { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:8px; }
#weekly-admin-slots textarea { width:100%; }
.weekly-admin-actions { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
#weekly-admin-preview:not(:empty) { margin:10px 0; }

.weekly-prices .weekly-great-buy-level { color:#8ae4a3; background:#1e493f; border-color:#65c77f; }

/* Homepage pick identities use Microsoft's blue, orange and red palette. */
.weekly-second { background:#00a4ef; border-color:#00a4ef; color:#14243a; }
.weekly-third { background:#ff8c00; border-color:#ff8c00; color:#14243a; }
.weekly-canadian { background:#e81123; border-color:#e81123; color:#fff; }
.weekly-market-label { text-align:center; text-transform:none; margin:0 0 9px; font-size:.76rem; font-weight:800; letter-spacing:.04em; }
.weekly-second .weekly-analysis,.weekly-third .weekly-analysis,.weekly-canadian .weekly-analysis { border-color:#14243a40; }
.weekly-canadian .weekly-analysis dt { opacity:1; }

#weekly-admin-slots fieldset > p:empty { display:none; }

.weekly-prices dt { white-space:nowrap; font-weight:800; }
.weekly-prices dd { font-weight:800; }
.weekly-charts { margin-top:6px; }
.weekly-charts summary { cursor:pointer; width:fit-content; padding:5px 9px; border-radius:6px; background:var(--analyze-orange); color:#102441; font-size:.8rem; font-weight:750; }
.weekly-chart-panel { margin-top:6px; padding:7px; min-width:0; border-radius:8px; background:#102b50; color:#fff; }

.weekly-prices dd { font-size:1rem; }
.weekly-lead .weekly-prices dd { font-size:1.1rem; }
@container (min-width:530px) {
  .weekly-valuation { display:grid; grid-template-columns:minmax(165px,1fr) minmax(352px,2fr); gap:6px; }
  .weekly-valuation .weekly-quote { margin:0; }
  .weekly-valuation .weekly-prices div { display:grid; align-content:center; }
  .weekly-analysis { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

.weekly-column { display:grid; min-width:0; gap:clamp(8px,1.2vw,14px); }

.home-learn { display:flex; flex-direction:column; align-items:start; justify-content:center; background:#34a853; border:1px solid #288441; border-radius:14px; padding:12px 16px; color:#092719; }
.home-learn h2 { font-size:1.08rem; margin:2px 0 4px; }
.home-learn p { margin:0 0 8px; font-size:.87rem; }
.home-learn .home-learn-brand { color:#092719; font-size:.72rem; font-weight:800; margin:0; text-transform:uppercase; letter-spacing:.06em; }
.home-learn button { padding:4px 9px; }
.learn-guide { max-width:720px; margin-top:10px; }
@media (min-width:721px) {
  #picks.weekly-grid { align-items:stretch; }
  #picks .weekly-column { display:flex; flex-direction:column; }
  #picks .home-learn, #picks .weekly-third { flex:1 0 auto; }
}

.site-footer { background:#0c2546; color:#e0ebfa; margin-top:24px; }
.site-footer-inner { max-width:1160px; margin:0 auto; padding:20px clamp(14px,3vw,28px) 12px; }
.site-footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:14px 24px; }
.site-footer-about strong { color:#fff; font-size:1.2rem; }
.site-footer-about p { margin:5px 0 0; font-size:.86rem; max-width:36ch; }
.site-footer nav { display:grid; justify-items:start; align-content:start; gap:4px; }
.site-footer h2 { color:#fff; font-size:.85rem; margin:0 0 2px; }
.site-footer button { color:inherit; background:none; border:none; text-align:left; padding:2px 0; font-size:.82rem; }
.site-footer button:hover { color:#ffc16a; text-decoration:underline; }
.site-footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 14px; margin-top:14px; padding-top:9px; border-top:1px solid #48607c; color:#d4e2f3; }
@media(max-width:540px) { .site-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .site-footer-about { grid-column:1 / -1; } }
@media print { .site-footer { display:none; } }

#footer-info-dialog { width:min(92vw,650px); border:1px solid #c8d6e8; border-radius:12px; }
#footer-info-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.site-footer a { color:inherit; font-size:.82rem; padding:2px 0; }
@media(min-width:760px) { .site-footer-grid.has-footer-info { grid-template-columns:1.5fr 1fr 1fr 1fr; } }

#footer-settings > summary { cursor:pointer; font-size:1rem; }
#footer-settings-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; margin:9px 0 0; }
.footer-editor-group { min-width:0; padding:9px 11px; background:#f5f8fd; border:1px solid #d7e3f1; border-radius:9px; }
.footer-editor-group h2 { color:#17385d; font-size:.92rem; margin:0 0 5px; }
.footer-editor-group > p { font-size:.75rem; color:#526781; margin:0 0 5px; }
#footer-editor-basics { display:grid; gap:5px; }
#footer-settings-fields label { display:grid; gap:2px; font-size:.78rem; font-weight:650; }
#footer-settings-fields input,#footer-settings-fields textarea { width:100%; min-width:0; padding:4px 6px; font-size:.83rem; }
#footer-settings-fields textarea { resize:vertical; }
#footer-editor-pages details { border-top:1px solid #d7e3f1; }
#footer-editor-pages summary { cursor:pointer; padding:5px 0; font-size:.8rem; font-weight:700; }
.footer-page-state { float:right; font-size:.69rem; color:#536982; margin-left:6px; }
.footer-page-state[data-state="visible"] { color:#176039; }
.footer-page-state[data-state="unsaved"] { color:#8a490d; }
.footer-page-input { padding-bottom:5px; }
.footer-editor-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; }
.footer-editor-actions p { margin:0; font-size:.82rem; }
.footer-editor-actions button { margin-left:auto; }
@media(max-width:600px) { #footer-settings-fields { grid-template-columns:minmax(0,1fr); } }

#footer-editor-basics textarea { min-height:7rem; }
#footer-editor-pages textarea { min-height:16rem; }
#footer-settings-fields:has(#footer-editor-pages details[open]) { grid-template-columns:minmax(0,1fr); }
#footer-settings-fields:has(#footer-editor-pages details[open]) #footer-editor-basics {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
}
@media (max-width:600px) { #footer-editor-pages textarea { min-height:13rem; } }

/* StockieTalk identity */
header .brand { flex:0 0 auto; display:flex; align-items:center; text-decoration:none; }
header .brand img { display:block; width:clamp(160px,18vw,210px); height:auto; }
.stockietalk-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:clamp(18px,2.5vw,30px); margin:0 0 20px; border-radius:14px; background:linear-gradient(115deg,#002757,#123d68); color:#fff; }
.stockietalk-intro-copy { flex:1; min-width:0; }
.stockietalk-intro .stockietalk-eyebrow { margin:0 0 6px; font-size:.69rem; letter-spacing:.08em; font-weight:800; color:#a5e39b; }
.stockietalk-intro h1 { margin:0 0 8px; color:#fff; font-size:clamp(1.65rem,3vw,2.7rem); line-height:1.12; letter-spacing:-.045em; }
.stockietalk-intro-copy > p:last-child { margin:0; color:#e4edf8; font-size:.9rem; line-height:1.5; max-width:75ch; }
.weekly-heading h2 { font-size:clamp(1.8rem,4vw,3.35rem); letter-spacing:-.045em; line-height:1.06; margin:0; color:var(--navy); }
.stockietalk-footer-logo { display:block; width:210px; max-width:100%; height:auto; }
.stockietalk-account-logo { display:block; width:220px; max-width:100%; height:auto; margin:0 0 14px; }


header .brand { flex-direction:column; gap:0; align-items:center; }
.stockietalk-brand-slogan { color:#fff; font-size:.66rem; font-weight:550; letter-spacing:0; line-height:1.15; font-style:italic; white-space:nowrap; }
.stockietalk-intro-join { flex:0 1 32%; min-width:0; text-align:center; border-left:1px solid #ffffff38; padding-left:24px; }
.stockietalk-intro-join strong { display:block; font-size:1.02rem; line-height:1.3; color:#fff; }
.stockietalk-intro-join p { margin:6px 0 12px; font-size:.82rem; color:#e4edf8; }
.stockietalk-intro-join button { padding:9px 23px; font-weight:800; }
@media(max-width:700px) { .stockietalk-intro { flex-direction:column; align-items:stretch; gap:16px; } .stockietalk-intro-join { border-left:0; border-top:1px solid #ffffff38; padding:14px 0 0; text-align:left; } }

/* StockieTalk community sub-brand accents */
.stockie-brand-accent { color:#ff9900; font-weight:inherit; }

/* StockieCHAT: modest first-line paragraph indentation, not a shifted comment column. */
#community #discussion-comments .discussion-comment-content p,
#community .stockchat-feed .community-message {
  text-align:left;
  text-indent:1.25em;
  margin-top:5px;
}

/* StockieCHAT: compact centered column, shared by desktop and mobile. */
#community .community-heading {
  display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start;
  gap:0; width:min(100%,450px); margin:0 auto;
}
#community .community-heading > h1 { margin:0 0 10px; }
#community .community-heading > .community-stock-market {
  box-sizing:border-box; flex:none; width:100%; max-width:100%; min-width:0; margin:0;
}
#community .community-heading > .community-stock-search {
  box-sizing:border-box; flex:none; width:100%; max-width:100%; min-width:0; margin:36px 0 8px;
}
#community .community-heading:has(> .community-stock-market[hidden]) > .community-stock-search { margin-top:0; }
@media(max-width:600px) {
  #community .community-heading > .community-stock-search { margin-top:24px; }
}

/* Align the StockieCHAT header, composer and feed with the main content edge. */
#community .community-heading { margin-inline:0 auto; }
#community #ticker-discussion.panel { margin-inline:0 auto; }
#community #community-recent { margin-inline:0 auto; }

/* Main StockieCHAT feed: title and search use the same left edge as latest comments. */
#community:has(.community-stock-market[hidden]) { margin-inline:0 auto; text-align:left; }
#community:has(.community-stock-market[hidden]) > .community-heading { margin-inline:0; align-items:flex-start; text-align:left; }
#community:has(.community-stock-market[hidden]) .community-heading > h1 { align-self:stretch; text-align:left; }
#community:has(.community-stock-market[hidden]) .community-heading > .community-stock-search { margin:0 0 8px; width:100%; align-self:stretch; }
#community:has(.community-stock-market[hidden]) #community-recent { margin-inline:0; width:100%; text-align:left; }

/* StockieTalk registration and country flags */
#profile-country { width:100%; padding:10px 14px; font:inherit; color:inherit; background:#fff; border:1px solid var(--border); border-radius:10px; }
#profile .stockie-profile-check { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:.83rem; font-weight:500; }
#profile .stockie-profile-check input { width:auto; }
.stockie-country-flag { display:inline-flex; vertical-align:middle; margin-inline-start:5px; align-items:center; }
.stockie-country-flag img { display:inline-block; width:17px; height:auto; max-height:13px; object-fit:contain; border-radius:1px; }
.stockie-welcome-actions { display:grid; gap:6px; }
.stockie-welcome-actions button { text-align:left; background:#eaf1ff; }
#stockie-welcome { border-top:1px solid var(--border); padding-top:12px; }

/* Profile: full-width fields and readable checkbox rows in the narrow account panel. */
#profile > .account { overflow-wrap:anywhere; }
#profile .account form { grid-template-columns:minmax(0,1fr); align-items:stretch; gap:9px; }
#profile #profile-form { margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
#profile #profile-setup-title, #profile .account form h2, #stockie-welcome h2 { font-size:1rem; line-height:1.3; letter-spacing:-.015em; }
#profile #profile-form > label:not(.stockie-profile-check) { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; }
#profile #nickname, #profile #profile-country { width:100%; min-width:0; max-width:100%; font-size:.85rem; padding:8px; }
#profile #profile-form > small { font-size:.73rem; line-height:1.4; }
#profile #profile-form > .stockie-profile-check, #profile .fun-facts-consent, #profile .stocktalk-photo-option { display:grid; grid-template-columns:16px minmax(0,1fr); align-items:start; gap:3px 8px; line-height:1.45; font-size:.82rem; font-weight:500; }
#profile #profile-form input[type="checkbox"], #profile .fun-facts-consent input, #profile .stocktalk-photo-option input { width:15px; height:15px; margin:2px 0 0; padding:0; }
#profile-country-preview { grid-column:2; }
#profile-country-preview:empty { display:none; }
#profile #profile-save { justify-self:stretch; white-space:normal; padding:9px 10px; }
#profile .stockietalk-account-logo { height:auto; max-width:100%; }
#profile .profile-session { flex-wrap:wrap; }
#profile .profile-session p { flex:1 1 135px; }
#profile .account > *, #profile #signed-in > *, #profile #profile-form > * { min-width:0; }
#stockie-welcome { margin-top:12px; }

/* Guided registration: one card until the member completes onboarding. */
#profile:not([data-profile-stage="settings"]):not([hidden]) { grid-template-columns:minmax(0,1fr); }
#profile:not([data-profile-stage="settings"]) > .portfolio-sharing { display:none; }
#profile:not([data-profile-stage="settings"]) > .account { max-width:460px; width:100%; padding:20px; }
#profile .stockie-onboarding-step { font-size:.77rem; font-weight:750; color:#31547b; margin:0 0 12px; padding-bottom:8px; border-bottom:2px solid #ff9900; }
#profile .stockie-optional-photo { padding:8px 0 2px; border-top:1px solid var(--border); font-size:.85rem; }
#profile .stockie-optional-photo small { font-weight:400; }
#profile .stockie-optional-photo .profile-photo { margin:6px 0; }
#profile #stockie-profile-settings { margin-top:12px; padding-top:10px; border-top:1px solid var(--border); }
#profile #stockie-profile-settings summary { cursor:pointer; font-size:.88rem; font-weight:700; }
#profile #profile-country-preview { display:inline; }
#profile #stockie-edit-profile { margin-top:10px; width:100%; }
#profile #stockie-welcome h2 { font-size:1.25rem; }
#profile #stockie-welcome { border:0; padding:0; }
#profile #profile-form > .stockie-profile-check { grid-template-columns:16px minmax(0,1fr); }
.stockie-country-slot { display:inline; }

/* Passwordless registration modal: one existing account card, no duplicated forms. */
body.stockie-auth-open { overflow:hidden; }
#stockie-auth-dialog { width:min(460px,calc(100% - 24px)); max-width:none; max-height:calc(100dvh - 24px); padding:0; border:1px solid #cbd8e9; border-radius:16px; background:var(--paper); color:var(--ink); box-shadow:0 18px 65px #101e3666; overflow:auto; }
#stockie-auth-dialog::backdrop { background:#101e3699; }
#stockie-auth-close { position:absolute; z-index:1; top:8px; right:10px; width:32px; height:32px; display:grid; place-items:center; padding:0; line-height:1; font-size:23px; font-weight:400; border:0; color:var(--muted); background:transparent; }
#stockie-auth-close:hover { background:#eaf1ff; }
#stockie-auth-dialog #profile { width:100%; max-width:none; margin:0; padding:0; display:block; }
#stockie-auth-dialog #profile > h1 { display:none; }
#stockie-auth-dialog #profile > .account { width:100%; max-width:none; padding:24px; margin:0; border:0; box-shadow:none; border-radius:16px; overflow:visible; }
#stockie-auth-dialog .stockietalk-account-logo { width:220px; margin:0 auto 14px; }
#stockie-auth-dialog #profile .account form { gap:10px; }
#stockie-auth-dialog #profile .account form h2 { font-size:1.15rem; }
#stockie-auth-dialog #profile #auth-submit, #stockie-auth-dialog #profile #code-submit { padding:10px; }
@media(max-width:480px) { #stockie-auth-dialog #profile > .account { padding:20px 16px; } }

/* Account dropdown: Amazon orange text on navy for readable contrast. */
#stockie-account-nav { position:relative; flex:0 0 auto; min-width:0; }
#stockie-account-nav [hidden] { display:none !important; }
#stockie-account-nav #profile-button, #stockie-member-toggle { color:#FF9900; font-weight:750; border-color:#526d91; }
#stockie-member-toggle { display:flex; align-items:center; gap:6px; padding:5px 8px; max-width:240px; background:transparent; }
#stockie-member-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.84rem; }
#stockie-member-avatar { width:28px; height:28px; border-radius:50%; flex:none; display:grid; place-items:center; background:#eaf1ff; color:#002757; overflow:hidden; }
#stockie-member-avatar img { width:100%;height:100%;object-fit:cover; }
#stockie-member-avatar .profile-photo-placeholder { transform:scale(.75); }
#stockie-member-flag .stockie-country-flag { margin:0; }
.stockie-account-chevron { font-size:17px;line-height:1; }
#stockie-member-menu { position:absolute; z-index:1000; top:calc(100% + 7px); right:0; width:205px; max-width:calc(100vw - 24px); padding:6px; background:#002757; border:1px solid #526d91; border-radius:9px; box-shadow:0 8px 24px #00172b44; }
#stockie-member-menu button { display:block; width:100%; text-align:left; font-size:.85rem; font-weight:700; color:#FFFFFF; padding:10px 12px; border:0; border-radius:5px; }
#stockie-member-menu button:hover,#stockie-member-menu button:focus-visible { background:#244577; }
#stockie-member-menu hr { border:0; border-top:1px solid #526d91; margin:4px 6px; }
#stockie-menu-status { color:#fff; font-size:.75rem; padding:4px 8px; }
@media(max-width:480px){ #stockie-member-toggle{max-width:170px;} #stockie-account-nav{margin-left:auto;} }

/* Align the header slogan with the wordmark, not the entire logo symbol. */



/* Make sign out unmistakable in the account menu and registration/profile card. */
#stockie-member-menu #stockie-menu-signout, #profile #sign-out { background:#FF9900; color:#002757; font-weight:750; border:1px solid #FF9900; border-radius:6px; }
#stockie-member-menu #stockie-menu-signout:hover, #stockie-member-menu #stockie-menu-signout:focus-visible, #profile #sign-out:hover, #profile #sign-out:focus-visible { background:#FFB340; color:#002757; border-color:#FFB340; }
#stockie-member-menu #stockie-menu-signout { text-align:center; margin-top:6px; }
#profile #sign-out { padding:7px 13px; }

/* The slogan is contained within the SVG, with the wordmark centered alongside the symbol. */
header .brand img { width:clamp(210px,21vw,255px); height:auto; }
#stockie-auth-dialog .stockietalk-account-logo { width:300px; max-width:100%; height:auto; }

/* Responsive main header: keep navigation on one line, including FUN Facts. */
body > header { gap:clamp(6px,1vw,16px); padding-inline:clamp(14px,2vw,32px); flex-wrap:nowrap; }
body > header > nav { display:flex; flex:1 1 auto; min-width:0; width:auto; order:0; flex-wrap:nowrap; align-items:center; justify-content:center; gap:clamp(0px,.25vw,4px); overflow-x:auto; scrollbar-width:thin; }
body > header > nav > button { flex:0 0 auto; white-space:nowrap; font-size:clamp(12px,1.05vw,14px); padding:9px clamp(5px,.7vw,12px); }
body > header > .brand { flex:0 0 auto; }
body > header > .brand img { width:clamp(190px,19vw,255px); }
body > header > #admin-nav { flex:0 0 auto; white-space:nowrap; padding-inline:9px; }
@media(max-width:1040px) {
  body > header { flex-wrap:wrap; justify-content:space-between; gap:6px 10px; padding-block:8px; }
  body > header > .brand img { width:clamp(190px,26vw,245px); }
  body > header > #stockie-account-nav { margin-left:auto; }
  body > header > nav { order:3; flex:1 0 100%; width:100%; justify-content:flex-start; padding:2px 0; }
  body > header > nav > button { font-size:13px; padding:8px 10px; }
}
@media(max-width:420px) { body > header > .brand img { width:170px; } body > header #stockie-member-toggle { max-width:140px; } }

#member-admin-search {display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;} #member-admin-query {flex:1 1 230px;min-width:0;} .member-admin-scroll {overflow-x:auto;} #member-admin-table {border-collapse:collapse;width:100%;font-size:.84rem;} #member-admin-table th,#member-admin-table td {padding:9px 10px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap;} #member-admin-table th {background:#002757;color:white;} .member-admin-pages {display:flex;gap:8px;margin-top:10px;} #member-admin-status {font-weight:650;} #member-admin-table td:last-child {font-weight:700;}

#marketing-admin-search{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}#marketing-admin-query{flex:1 1 200px;min-width:0}#marketing-admin-table{width:100%;border-collapse:collapse;font-size:.84rem}#marketing-admin-table th,#marketing-admin-table td{padding:9px 10px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}#marketing-admin-table th{background:#002757;color:#fff}

#archive-admin-table{width:100%;border-collapse:collapse;font-size:.84rem}#archive-admin-table th,#archive-admin-table td{padding:9px 10px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}#archive-admin-table th{background:#002757;color:#fff}#archive-admin-refresh{margin:4px 0 10px}.stockie-export{border-bottom:1px solid var(--border);padding:10px 0;margin-bottom:10px}.stockie-export p{margin:5px 0}

.stockie-delete-area{border-top:1px solid var(--border);padding:14px 0 4px;margin-top:12px}.stockie-delete-area p{margin:5px 0 10px}#stockie-delete-review{color:#b42318;border-color:#e3a19a;font-weight:700;background:#fff}#stockie-delete-dialog{width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:1px solid #d1d9e3;border-radius:12px;background:#fff;color:#002757;box-shadow:0 18px 65px #101e3666}#stockie-delete-dialog::backdrop{background:#101e3699}.stockie-delete-content{padding:22px;font-size:.88rem;line-height:1.5}.stockie-delete-content h2{color:#b42318;font-size:1.35rem;letter-spacing:0;margin:0 0 12px}.stockie-delete-content ul{padding-left:20px;margin:8px 0 12px}.stockie-delete-content label{display:flex;align-items:flex-start;gap:8px;margin:12px 0}.stockie-delete-content input{flex:none;margin-top:4px}.stockie-delete-export{border-block:1px solid #d1d9e3;padding:12px 0}.stockie-delete-export p{margin:5px 0}.stockie-delete-actions{display:flex;flex-wrap:wrap;gap:8px}.stockie-delete-bottom{justify-content:flex-end}.stockie-delete-pending{font-size:.8rem;color:#6b4a10;background:#fff8e8;border:1px solid #e9d5a9;padding:8px;border-radius:6px}#stockie-delete-confirm{background:#b42318;color:#fff;border-color:#b42318}#stockie-delete-confirm:disabled{opacity:.48;cursor:not-allowed}

/* Signed-in profile workspace; onboarding remains unchanged. */
#profile[data-profile-stage="settings"]:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr);gap:14px;max-width:1100px;margin-inline:auto}
#profile[data-profile-stage="settings"]>h1{font-size:26px;margin:0;letter-spacing:-.03em}
#stockie-profile-nav{display:flex;gap:5px;flex-wrap:wrap;padding:5px;background:#002757;border-radius:9px;align-items:center}
#stockie-profile-nav[hidden]{display:none!important}
#profile #stockie-profile-nav button{border:0;border-radius:6px;color:#fff;background:transparent;font-size:.87rem;font-weight:650;padding:10px 15px;white-space:nowrap}
#profile #stockie-profile-nav button[aria-pressed="true"]{background:#fff;color:#002757;box-shadow:inset 0 -3px #FF9900}
#profile #stockie-profile-nav button:hover:not([aria-pressed="true"]){background:#244873}
#profile[data-profile-stage="settings"]>.account{max-width:none;width:100%;padding:22px 26px;border-radius:10px;box-sizing:border-box}
#profile[data-profile-stage="settings"] .stockietalk-account-logo{display:none}
#profile[data-profile-stage="settings"] .profile-session{padding:0 0 12px;margin-bottom:16px}
#profile[data-profile-stage="settings"] #signed-in-email{font-size:.9rem;font-weight:600;color:#52657a}
#profile[data-profile-stage="settings"] #profile-form{border:0;padding:0;margin:0;max-width:620px;gap:12px}
#profile[data-profile-stage="settings"] #profile-setup-title,#profile .stockie-profile-pane h2,#profile[data-profile-stage="settings"] #portfolio-sharing-title{font-size:1.15rem;color:#002757;letter-spacing:-.02em;margin:0 0 8px}
#profile[data-profile-stage="settings"] #nickname,#profile[data-profile-stage="settings"] #profile-country{padding:10px 12px;font-size:.95rem}
#profile[data-profile-stage="settings"] #profile-save{justify-self:start;padding:10px 24px;font-size:.9rem}
#profile[data-profile-stage="settings"] #stockie-profile-settings{border:0;margin:0;padding:0}
#profile[data-profile-stage="settings"] .stockie-profile-pane{max-width:740px;display:none}
#profile[data-profile-stage="settings"][data-profile-tab="privacy"] [data-settings-pane="privacy"],#profile[data-profile-stage="settings"][data-profile-tab="data"] [data-settings-pane="data"]{display:block}
#profile[data-profile-stage="settings"]:not([data-profile-tab="personal"]) #profile-form{display:none}
#profile[data-profile-stage="settings"][data-profile-tab="personal"] #stockie-profile-settings,#profile[data-profile-stage="settings"][data-profile-tab="connections"] #stockie-profile-settings{display:none}
#profile[data-profile-stage="settings"]:not([data-profile-tab="connections"])>.portfolio-sharing{display:none}
#profile[data-profile-stage="settings"][data-profile-tab="connections"]>.account{padding-bottom:14px}
#profile[data-profile-stage="settings"][data-profile-tab="connections"] .profile-session{margin:0;border:0;padding:0}
#profile[data-profile-stage="settings"]>.portfolio-sharing{padding:22px 26px}
#profile .stockie-profile-pane>p{font-size:.88rem;line-height:1.5}
#profile .stockie-profile-pane label{display:flex;align-items:flex-start;gap:10px;padding:12px;background:#f6f8fb;border:1px solid #e0e6ed;border-radius:7px;font-size:.9rem;line-height:1.5;margin:10px 0}
#profile .stockie-profile-pane input[type="checkbox"]{width:16px!important;height:16px;flex:none;margin:3px 0 0;padding:0}
#profile .stockie-profile-pane [role="status"]:empty{display:none}
#profile .stockie-export{padding:12px 0 18px;margin:0;border:0}
#profile .stockie-export button{padding:9px 15px;font-size:.88rem}
#profile .stockie-delete-area{border:1px solid #e7b4ad;background:#fff9f8;border-radius:8px;padding:16px;margin:12px 0 0}
#profile .stockie-delete-area strong{color:#b42318}
#profile #stockie-delete-review{padding:9px 14px}
@media(max-width:600px){#profile[data-profile-stage="settings"]>.account,#profile[data-profile-stage="settings"]>.portfolio-sharing{padding:15px}#profile #stockie-profile-nav button{font-size:.8rem;padding:8px 10px}#stockie-profile-nav{flex-wrap:nowrap;overflow-x:auto} }

/* Vertical profile navigation on desktop, compact horizontal navigation on mobile. */
@media(min-width:761px){
#profile[data-profile-stage="settings"]:not([hidden]){grid-template-columns:225px minmax(0,1fr);column-gap:18px;row-gap:12px;align-items:start}
#profile[data-profile-stage="settings"]>h1{grid-column:1/-1;grid-row:1}
#profile[data-profile-stage="settings"]>#stockie-profile-nav{grid-column:1;grid-row:2 / span 2;flex-direction:column;align-items:stretch;flex-wrap:nowrap;padding:8px;gap:4px;align-self:start}
#profile #stockie-profile-nav button{width:100%;text-align:left;padding:12px 14px;white-space:normal;line-height:1.35}
#profile #stockie-profile-nav button[aria-pressed="true"]{box-shadow:inset 4px 0 #FF9900}
#profile[data-profile-stage="settings"]>.account{grid-column:2;grid-row:2;min-width:0;min-height:310px}
#profile[data-profile-stage="settings"][data-profile-tab="connections"]>.account{min-height:0}
#profile[data-profile-stage="settings"]>.portfolio-sharing{grid-column:2;grid-row:3;min-width:0}
}
@media(max-width:760px){#profile[data-profile-stage="settings"]:not([hidden]){grid-template-columns:minmax(0,1fr)}#profile[data-profile-stage="settings"]>#stockie-profile-nav{flex-direction:row;flex-wrap:nowrap;overflow-x:auto}#profile #stockie-profile-nav button{flex:0 0 auto}}

/* Compact icon rail: full accessible names, pointer/focus tooltips, visible mobile labels. */
#profile #stockie-profile-nav button{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;min-height:46px;padding:6px;border:1px solid transparent}
#profile #stockie-profile-nav button svg{flex:none;display:block}
#profile #stockie-profile-nav button[aria-pressed="true"]{background:#FF9900;color:#002757;box-shadow:none}
#profile #stockie-profile-nav button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
#profile[data-profile-stage="settings"]:not([hidden]){grid-template-columns:64px minmax(0,1fr);column-gap:14px}
#profile[data-profile-stage="settings"]>#stockie-profile-nav{padding:7px;gap:5px;overflow:visible;position:relative;z-index:2}
#profile #stockie-profile-nav button{width:50px;min-width:0;height:48px}
#profile #stockie-profile-nav .profile-nav-short{display:none}
#profile #stockie-profile-nav button::after{content:attr(data-tooltip);position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);background:#002757;color:#fff;border:1px solid #526d91;border-radius:5px;padding:7px 10px;white-space:nowrap;font-size:12px;font-weight:600;pointer-events:none;opacity:0;visibility:hidden;box-shadow:0 2px 8px #0002}
#profile #stockie-profile-nav button:hover::after,#profile #stockie-profile-nav button:focus-visible::after{opacity:1;visibility:visible}
}
@media(max-width:760px),(hover:none),(pointer:coarse){
#profile[data-profile-stage="settings"]:not([hidden]){grid-template-columns:minmax(0,1fr);gap:10px}
#profile[data-profile-stage="settings"]>h1{grid-column:1;grid-row:auto}
#profile[data-profile-stage="settings"]>#stockie-profile-nav{grid-column:1;grid-row:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;overflow:visible}
#profile #stockie-profile-nav button{width:100%;min-width:0;min-height:52px;flex-direction:column;padding:5px 1px;gap:3px}
#profile #stockie-profile-nav .profile-nav-short{display:block;font-size:10px;line-height:1.2;white-space:nowrap}
#profile[data-profile-stage="settings"]>.account,#profile[data-profile-stage="settings"]>.portfolio-sharing{grid-column:1;grid-row:auto;min-height:0}
}
#profile[data-profile-stage="settings"]>.account{padding:16px 20px}
#profile[data-profile-stage="settings"] .profile-session{padding-bottom:8px;margin-bottom:12px}
#profile[data-profile-stage="settings"] #profile-form{gap:9px}
#profile[data-profile-stage="settings"] #profile-setup-title{font-size:1.15rem}

/* Compact aligned profile fields, including narrow touch screens. */
#profile #profile-form>label.profile-inline-field:not(.stockie-profile-check){display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;gap:10px;font-weight:600}
#profile #profile-form>label.profile-inline-field input,#profile #profile-form>label.profile-inline-field select{margin:0;min-width:0;width:100%;box-sizing:border-box}
#profile #profile-form>small{margin-top:-5px;padding-left:155px}
#profile[data-profile-stage="settings"] #profile-form{gap:8px}
@media(max-width:480px){#profile #profile-form>label.profile-inline-field:not(.stockie-profile-check){grid-template-columns:minmax(90px,38%) minmax(0,1fr);gap:8px;font-size:.8rem}#profile #profile-form>small{padding-left:0;margin-top:0}}

#profile #profile-form .stockie-preference{margin:2px 0 4px}#profile #profile-form .stockie-preference label{display:grid;grid-template-columns:16px minmax(0,1fr);gap:8px;align-items:start;line-height:1.45;font-weight:500}#profile #stockie-marketing-status{font-size:.78rem;margin:3px 0 0 24px}#profile #stockie-marketing-status:empty{display:none}

/* The account menu already provides sign-out; omit redundant session header on completed profile pages. */
#profile[data-profile-stage="settings"] .profile-session{display:none}
#profile[data-profile-stage="settings"][data-profile-tab="connections"]>.account:has(#profile-status:empty){display:none}
#profile[data-profile-stage="settings"][data-profile-tab="connections"]>.portfolio-sharing{grid-row:2}
@media(max-width:760px),(hover:none),(pointer:coarse){#profile[data-profile-stage="settings"][data-profile-tab="connections"]>.portfolio-sharing{grid-row:auto}}

/* Admin workspace uses the same compact navigation as My Profile. */
#admin:not([hidden]){display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px 14px;align-items:start}
#admin>h1{grid-column:1/-1;grid-row:1;margin:0;color:#002757;font-size:26px;letter-spacing:-.03em}
#stockie-admin-nav{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:7px;background:#002757;border-radius:9px;position:relative;z-index:2}
#stockie-admin-nav button{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;width:50px;min-width:0;min-height:48px;padding:6px;background:transparent;color:#fff;border:1px solid transparent;border-radius:6px}
#stockie-admin-nav button svg{display:block;flex:none}
#stockie-admin-nav button[aria-pressed="true"]{background:#FF9900;color:#002757}
#stockie-admin-nav button:hover:not([aria-pressed="true"]){background:#244873}
#stockie-admin-nav button:focus-visible{outline:2px solid white;outline-offset:2px}
#stockie-admin-nav .admin-nav-short{display:none}
#stockie-admin-nav button::after{content:attr(data-tooltip);position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);background:#002757;color:#fff;border:1px solid #526d91;border-radius:5px;padding:7px 10px;white-space:nowrap;font-size:12px;font-weight:600;pointer-events:none;opacity:0;visibility:hidden;box-shadow:0 2px 8px #0002}
#stockie-admin-nav button:hover::after,#stockie-admin-nav button:focus-visible::after{opacity:1;visibility:visible}
#admin>details.panel{grid-column:2;grid-row:2;min-width:0;margin:0;padding:16px 20px;display:none}
#admin>details.panel[open]:not([hidden]){display:block}
#admin>details.panel>summary{list-style:none;cursor:default;color:#002757;font-size:1.15rem;margin-bottom:12px;pointer-events:none}
#admin>details.panel>summary::-webkit-details-marker{display:none}
#admin>details.panel>summary::marker{content:""}
#admin .member-admin-scroll{max-width:100%;overflow-x:auto}
@media(max-width:760px),(hover:none),(pointer:coarse){
#admin:not([hidden]){grid-template-columns:minmax(0,1fr);gap:10px}
#stockie-admin-nav{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:4px}
#stockie-admin-nav button{width:100%;min-height:52px;flex-direction:column;padding:5px 1px}
#stockie-admin-nav .admin-nav-short{display:block;font-size:10px;line-height:1.2;white-space:nowrap}
#stockie-admin-nav button::after{display:none}
#admin>details.panel{grid-column:1;grid-row:3;padding:14px;min-width:0}
}

#member-management-dialog{width:min(530px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:1px solid #d1d9e3;border-radius:12px;background:white;color:#002757;box-shadow:0 18px 65px #101e3666}#member-management-dialog::backdrop{background:#101e3699}.member-management-content{padding:20px;font-size:.88rem}.member-management-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.member-management-heading h2{margin:0;font-size:1.25rem}.member-management-heading button{font-size:1.3rem;line-height:1;padding:6px 10px}.member-management-content h3{font-size:.95rem;margin:15px 0 8px}.member-management-content dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:7px 12px;margin:12px 0;padding-bottom:12px;border-bottom:1px solid #d1d9e3}.member-management-content dt{color:#52657a}.member-management-content dd{margin:0;font-weight:650;overflow-wrap:anywhere}.member-management-content textarea{width:100%;box-sizing:border-box;margin:5px 0 8px}.member-management-actions{display:flex;gap:8px}.member-management-actions button{flex:1}#member-suspend{color:#b42318}#member-reactivate{color:#187b32}.member-history-item{border-top:1px solid #d1d9e3;padding:8px 0}.member-history-item p{margin:3px 0;overflow-wrap:anywhere}.member-history-item small{color:#52657a}.member-manage-button{padding:4px 9px;font-size:.8rem;color:#002757;font-weight:650}#member-management-status:empty{display:none}

/* Membership and rewards */
#profile[data-profile-stage="settings"][data-profile-tab="membership"] [data-settings-pane="membership"]{display:block}.pricing-heading{text-align:center;margin:12px 0 22px}.pricing-heading h1{font-size:clamp(25px,4vw,40px);color:#002757;margin:0 0 8px}.pricing-heading p{margin:6px 0}.pricing-preview{background:#fff4df;color:#694000;border:1px solid #ffd493;border-radius:6px;padding:9px 12px;font-size:.85rem}.pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:850px;margin:0 auto 16px}.pricing-plan{display:flex;flex-direction:column;gap:8px;padding:21px;border:1px solid #cad7e5;border-radius:10px;background:#fff;color:#002757}.pricing-plan h2{font-size:1.3rem;margin:0}.pricing-price{font-size:2rem;font-weight:750}.pricing-price small{font-size:.8rem;font-weight:500;color:#53677d}.pricing-plan p{margin:0;font-size:.9rem}.pricing-plan ul{padding:12px 0;list-style:none;margin:0;display:grid;gap:8px;border-top:1px solid #dce5ef}.pricing-plan li:before{content:'✓';color:#218838;font-weight:bold;margin-right:8px}.pricing-pro{border:2px solid #ff9900}.pricing-plan button{margin-top:auto;min-height:40px}.pricing-join{background:#002757;color:white}.pricing-rewards{max-width:850px;margin:0 auto;padding:18px 22px}.pricing-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 15px}.pricing-steps>div,.membership-metrics>div{background:#f1f5f9;border-radius:7px;padding:12px;color:#002757}.pricing-steps p{font-size:.85rem;margin:5px 0 0}.pricing-tiers{width:100%;border-collapse:collapse}.pricing-tiers th,.pricing-tiers td{text-align:left;padding:9px;border-bottom:1px solid #dce5ef}.pricing-tiers th{background:#002757;color:white}.pricing-tiers td:last-child{color:#187b32;font-weight:650}.membership-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.membership-metrics small,.membership-metrics strong{display:block}.membership-metrics strong{font-size:1.2rem;margin-top:5px}.membership-progress{display:grid;gap:5px;margin:14px 0}.membership-progress progress{width:100%;accent-color:#34a853}.membership-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.membership-form-grid label{display:grid;gap:4px;font-size:.85rem}.membership-form-grid input{width:100%;min-width:0;box-sizing:border-box}.membership-form-grid input:invalid{border-color:#b42318}@media(max-width:760px),(hover:none),(pointer:coarse){#profile[data-profile-stage="settings"]>#stockie-profile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}#stockie-admin-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:520px){.pricing-grid,.pricing-steps,.membership-form-grid{grid-template-columns:minmax(0,1fr)}}

/* Three-level membership pricing */
.pricing-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:980px;gap:14px}.pricing-plan{padding:20px;gap:8px}.pricing-plan h2,.pricing-plan .pricing-price,.pricing-plan .pricing-period{text-align:center}.pricing-plan h2{font-size:1.4rem}.pricing-icon{display:flex;justify-content:center;color:#002757;margin:0 0 4px}.pricing-pro .pricing-icon{color:#ff9900}.pricing-guru{border:2px solid #34a853}.pricing-guru .pricing-icon,.pricing-guru-accent,.pricing-guru .pricing-price{color:#187b32}.pricing-guru-button{background:#187b32;color:#fff;border-color:#187b32}.pricing-period{color:#53677d;min-height:20px}.pricing-plan ul{margin-top:8px;min-height:124px}.pricing-billing{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.pricing-toggle{display:inline-flex;border:1px solid #cbd5e1;border-radius:8px;padding:3px;background:#f1f5f9}.pricing-toggle button{background:transparent;border:0;border-radius:5px;padding:8px 17px;font-weight:650;color:#002757}.pricing-toggle button[aria-pressed="true"]{background:#002757;color:#fff}.pricing-toggle button:focus-visible{outline:2px solid #ff9900;outline-offset:2px}#pricing-savings-badge:not([hidden]){background:#e5f5e9;color:#187b32;padding:6px 10px;border-radius:20px;font-size:.8rem;font-weight:650}#pricing-billing-note{text-align:center;color:#187b32;font-weight:600;min-height:20px;margin:12px 0 20px}.pricing-rewards{max-width:980px}.pricing-rewards h2{text-align:center}.pricing-tiers th:last-child,.pricing-tiers td:last-child{text-align:right}.pricing-plan button:disabled{opacity:.65;cursor:not-allowed}.membership-progress button{justify-self:start}@media(max-width:760px){.pricing-grid{grid-template-columns:minmax(0,1fr);max-width:520px}.pricing-plan ul{min-height:0}.pricing-plan{padding:16px}.pricing-rewards{padding:14px}}

/* Business administration */
#stockie-admin-nav{overflow:visible;max-height:none;z-index:10}.business-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:8px 0 16px}.business-metrics>div{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:7px;padding:12px;min-width:0}.business-metrics small,.business-metrics strong{display:block}.business-metrics small{color:#52657a;font-size:.78rem}.business-metrics strong{font-size:1.45rem;color:#002757;margin-top:6px;overflow-wrap:anywhere}.business-toolbar,.business-shortcuts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}.business-toolbar span{flex:1;font-size:.8rem;color:#52657a}.business-toolbar input{flex:1;min-width:120px}.business-table{border-collapse:collapse;width:100%;font-size:.85rem}.business-table th,.business-table td{padding:9px 10px;border-bottom:1px solid #dce5ef;text-align:left;white-space:nowrap}.business-table th{background:#002757;color:#fff}.business-table td{color:#002757}.business-shortcuts button{color:#002757}.business-metrics strong[data-business-value$="_cents"]{font-size:1.15rem}#admin h3{font-size:1rem;margin:15px 0 8px}#admin [data-business-value="reward_accrual_cents"]{color:#187b32}@media(max-width:760px),(hover:none),(pointer:coarse){#stockie-admin-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.business-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:400px){.business-metrics>div{padding:9px}.business-metrics strong{font-size:1.15rem}#stockie-admin-nav .admin-nav-short{font-size:9px}}

/* Keep desktop sidebar tooltips outside the narrow icon rail. */
@media (min-width:761px) and (hover:hover) and (pointer:fine){#stockie-admin-nav button::after{z-index:20;display:block}#stockie-admin-nav button:hover,#stockie-admin-nav button:focus-visible{z-index:21}}

/* Monthly accounting records */
.reward-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:10px 0}.reward-controls label{display:grid;gap:4px;font-size:.8rem;color:#52657a}.reward-controls input{min-height:34px}.reward-controls button{min-height:34px}.reward-statement{border:1px solid #dce5ef;border-radius:7px;padding:12px;margin:8px 0}.reward-statement dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0}.reward-statement dd{margin:0;font-weight:650}.reward-statement dt{color:#52657a}.reward-negative{color:#b42318}.reward-positive{color:#187b32}

#guru-onboarding-dialog{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #dce5ef;border-radius:12px;padding:0;color:#002757;background:#fff}#guru-onboarding-dialog::backdrop{background:#002757aa}.guru-onboarding-content{padding:22px}.guru-onboarding-content h2{text-align:center;margin:8px 0}.guru-onboarding-award{text-align:center;color:#34a853;font-size:40px}.guru-setup-steps{display:grid;gap:9px;margin:15px 0}.guru-setup-steps>div{padding:10px 12px;border:1px solid #dce5ef;border-radius:7px}.guru-setup-steps p{margin:4px 0;font-size:.88rem}.guru-setup-steps small{color:#52657a}.guru-ack{display:flex;gap:8px;align-items:start;font-size:.85rem}.guru-onboarding-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}#guru-preview-panel:not([hidden]){border:1px solid #34a853;border-radius:7px;padding:12px;margin:10px 0;background:#f0faf2}#guru-preview-label{color:#187b32}

.guru-demo-fields{display:grid;gap:10px;margin:14px 0}.guru-demo-fields label{display:grid;gap:4px;font-size:.85rem}.guru-demo-fields input,.guru-demo-fields select{width:100%;box-sizing:border-box;background:#f1f5f9;color:#002757}#guru-onboarding-dialog [hidden]{display:none!important}#guru-step-counter{text-align:center;font-size:.8rem}

#guru-sandbox{border-top:1px solid #b9ddc2;margin-top:14px;padding-top:10px}#guru-sandbox h3{margin:4px 0 8px}#guru-sandbox-status{font-size:.8rem;color:#52657a}#guru-sandbox-metrics strong{color:#187b32}

.stockie-member-name-wrap{display:inline-flex;align-items:baseline;min-width:0;gap:3px}#stockie-member-guru:not([hidden]){display:inline-block;align-self:flex-start;color:#34A853;font-size:.59rem;font-weight:800;line-height:1;letter-spacing:.025em;white-space:nowrap;transform:translateY(-3px)}#stockie-member-guru[hidden]{display:none!important}.pricing-guru-accent{color:#34A853}

/* Keep GURU directly above the flag at all header sizes. */
.stockie-member-status-stack{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:0 0 auto;line-height:1}.stockie-member-status-stack:has(#stockie-member-guru[hidden]):has(#stockie-member-flag:empty){display:none}#stockie-member-guru:not([hidden]){align-self:center;transform:none;font-size:.59rem;line-height:1;color:#34A853;font-weight:800}#stockie-member-flag:not(:empty){display:flex;align-items:center;justify-content:center;line-height:1}#stockie-member-flag:empty{display:none}#stockie-member-name{flex:0 1 auto;min-width:0}

#stockie-upgrade-dialog{width:min(470px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #dce5ef;border-radius:12px;padding:0;background:white;color:#002757}#stockie-upgrade-dialog::backdrop{background:#002757aa}#stockie-upgrade-dialog h3{text-align:center}#stockie-upgrade-dialog .membership-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}

#test-membership-panel{border:1px solid #b9ddc2;border-radius:8px;background:#f4fbf5;padding:12px;margin:14px 0}#test-membership-panel h3{margin:0 0 8px}.test-membership-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0}.test-membership-fields label{display:grid;gap:4px;font-size:.85rem}.test-membership-fields label:first-child{grid-column:1/-1}.test-membership-fields input,.test-membership-fields select{width:100%;box-sizing:border-box}#test-membership-end-wrap[hidden]{display:none!important}#test-membership-history{max-height:180px;overflow:auto}#test-membership-feedback{font-size:.85rem}

/* Compact member administration dialog */
#member-management-dialog{width:min(690px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;border-radius:12px}#member-management-dialog .member-management-content{padding:0 16px 14px;font-size:.82rem}#member-management-dialog .member-management-heading{position:sticky;top:0;z-index:2;background:#002757;color:#fff;margin:0 -16px 12px;padding:13px 16px;border-radius:11px 11px 0 0}#member-management-dialog .member-management-heading-main{display:flex;align-items:center;gap:10px;min-width:0}#member-management-dialog .member-management-heading-main>div{min-width:0}#member-management-dialog .member-management-heading h2{font-size:1.18rem;color:#fff;overflow-wrap:anywhere}#member-detail-subtitle{font-size:.75rem;color:#d8e5f6;margin:3px 0 0;overflow-wrap:anywhere}#member-detail-initials{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#ffffff20;color:#fff;font-size:.95rem;font-weight:750}#member-management-close{background:transparent;color:white;border:1px solid #ffffff55;border-radius:6px;flex:0 0 auto}#member-management-dialog #member-management-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 10px;padding:0;border:0}#member-management-dialog .member-detail-field{min-width:0;background:#f4f7fb;border:1px solid #e1e8f1;border-radius:6px;padding:8px 9px}#member-management-dialog .member-detail-field dt{font-size:.7rem;margin:0 0 4px}#member-management-dialog .member-detail-field dd{font-size:.85rem;line-height:1.25}#member-management-dialog #test-membership-panel{background:#fff;border:1px solid #d8e2ed;border-radius:8px;margin:0 0 9px;padding:10px 12px}#member-management-dialog .member-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}#member-management-dialog .member-section-heading h3{margin:0;font-size:1rem}#member-management-dialog .member-test-label{font-size:.65rem;letter-spacing:.04em;color:#52657a;font-weight:750}#member-management-dialog .member-plan-summary{background:#edf7ef;border-left:3px solid #34a853;border-radius:4px;padding:7px 10px}#member-management-dialog .member-plan-summary small{color:#52657a;font-size:.71rem}#member-management-dialog #test-membership-current{margin:3px 0 0;font-weight:750;font-size:.88rem;color:#187b32;overflow-wrap:anywhere}#member-management-dialog .test-membership-fields{grid-template-columns:1.5fr 1fr 1fr;gap:8px;margin:10px 0}#member-management-dialog .test-membership-fields label:first-child{grid-column:auto}#member-management-dialog .test-membership-fields label{font-size:.73rem;gap:3px;min-width:0}#member-management-dialog .test-membership-fields input,#member-management-dialog .test-membership-fields select{font-size:.79rem;min-width:0;height:34px;padding:5px 6px;border:1px solid #cbd5e1;border-radius:5px}#member-management-dialog .member-management-actions{display:flex;gap:6px;flex-wrap:wrap}#member-management-dialog .member-management-actions button{font-size:.76rem;padding:7px 8px;min-height:34px;border-radius:5px;white-space:normal;flex:1 1 auto}#member-management-dialog #test-membership-assign:not(:disabled){background:#ff9900;color:#002757;border-color:#ff9900;font-weight:750}#member-management-dialog #test-membership-expire:not(:disabled){color:#b42318}#member-management-dialog #test-membership-feedback{margin:6px 0;font-size:.75rem}#member-management-dialog #test-membership-feedback:empty{display:none}#member-management-dialog .member-detail-disclosure{border:0;border-top:1px solid #e1e8f1;padding:0;margin:9px 0 0;background:transparent;border-radius:0}#member-management-dialog .member-detail-disclosure summary{padding:8px 0;cursor:pointer;font-size:.8rem;font-weight:700;color:#002757}#member-management-dialog .member-account-disclosure{border:1px solid #d8e2ed;border-radius:7px;padding:0 11px;margin:7px 0}#member-management-dialog .member-history-item{padding:6px 0;font-size:.78rem}#member-management-dialog .member-history-item small{display:block;font-size:.72rem;margin-top:3px}#member-management-dialog #member-management-history,#member-management-dialog #test-membership-history{padding:0 0 7px;max-height:180px;overflow:auto}#member-management-dialog #member-action-notice{font-size:.75rem;margin:7px 0}#member-management-dialog #member-management-status{margin:5px 0} @media(max-width:540px){#member-management-dialog #member-management-details{grid-template-columns:repeat(2,minmax(0,1fr))}#member-management-dialog .test-membership-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#member-management-dialog .test-membership-fields label:first-child{grid-column:1/-1}#member-management-dialog .member-management-actions button{flex:1 1 calc(50% - 6px)}#member-management-dialog .member-management-content{padding-bottom:10px}}

.member-plan-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0}.member-plan-filters button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 5px;background:#fff;border:1px solid #d5e0ec;border-radius:8px;color:#002757;min-width:0}.member-plan-filters button strong{font-size:1.5rem;line-height:1.2}.member-plan-filters button span{font-weight:700;font-size:.78rem;overflow-wrap:anywhere}.member-plan-filters button[data-member-plan="free"]{color:#64748b}.member-plan-filters button[data-member-plan="pro"]{color:#a35d00}.member-plan-filters button[data-member-plan="guru"]{color:#187b32}.member-plan-filters button[aria-pressed="true"]{border-color:#002757;box-shadow:inset 0 0 0 1px #002757;background:#f1f5f9}.member-plan-note{font-size:.75rem;margin:4px 0 8px}.member-plan-cell{font-weight:700}.member-plan-cell.guru{color:#187b32}.member-plan-cell.pro{color:#a35d00}.member-plan-cell.free{color:#64748b}@media(max-width:540px){.member-plan-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Match member management: four compact clickable category cards and concise register. */
.payout-period-bar{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:0 0 10px}.payout-period-bar label,.payout-date{display:grid;gap:4px;font-size:.75rem;color:#52657a}.payout-period-bar input,.payout-period-bar button{min-height:34px}.payout-date{flex:1;min-width:110px}.payout-date strong{font-size:.9rem;color:#002757;padding:7px 0}.payout-filters button small{font-size:.7rem;font-weight:500;color:#52657a;line-height:1.2;white-space:normal}.payout-filters [data-payout-filter="outstanding"]{color:#b42318}.payout-filters [data-payout-filter="paid"]{color:#187b32}.payout-filters [data-payout-filter="review"]{color:#64748b}.payout-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border:1px solid #dce5ef;border-radius:7px;padding:9px 10px;margin:10px 0}.payout-totals small,.payout-totals strong{display:block}.payout-totals small{font-size:.72rem;color:#52657a}.payout-totals strong{font-size:.95rem;color:#002757;margin-top:3px;overflow-wrap:anywhere}.payout-totals>div:last-child strong{color:#b42318}.payout-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.payout-search input{flex:1 1 200px;min-width:0}.payout-search span{font-size:.75rem;color:#52657a}#reward-admin-status,.payout-footnote{font-size:.75rem;margin:6px 0}.payout-table th,.payout-table td{padding:8px 9px}.payout-table th:nth-child(n+2):nth-child(-n+4),.payout-table td:nth-child(n+2):nth-child(-n+4){text-align:right;font-variant-numeric:tabular-nums}.payout-table td.reward-negative{color:#b42318;font-weight:700}.payout-table td.reward-positive{color:#187b32;font-weight:700}#reward-admin-detail{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:1px solid #dce5ef;border-radius:10px;background:#fff;color:#002757}#reward-admin-detail::backdrop{background:#002757aa}.payout-detail-content{padding:0 14px 14px}.payout-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#002757;color:#fff;margin:0 -14px 10px;padding:12px 14px}.payout-detail-heading h2{font-size:1.05rem;color:#fff;margin:0}.payout-detail-heading button{color:#fff;background:transparent;border-color:#ffffff55}.payout-detail-actions{display:flex;justify-content:flex-end}.payout-detail-content .reward-statement{font-size:.82rem}@media(max-width:540px){.payout-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.payout-period-bar{align-items:center}.payout-date{min-width:95px}}

.sandbox-accounting-panel{border:1px solid #b9ddc2;border-radius:8px;background:#f7fbf8;padding:10px 12px;margin:10px 0;color:#002757}.sandbox-accounting-panel>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:.9rem}.sandbox-accounting-panel>summary span{font-size:.68rem;font-weight:750;color:#187b32}.sandbox-accounting-panel .muted{font-size:.74rem;margin:8px 0}.sandbox-controls{display:flex;align-items:end;gap:7px;flex-wrap:wrap;margin:8px 0}.sandbox-controls label{display:grid;gap:4px;font-size:.73rem;color:#52657a}.sandbox-controls input,.sandbox-controls button{min-height:34px;font-size:.8rem}.sandbox-accounting-panel .business-metrics{margin:8px 0}.sandbox-accounting-panel .business-metrics>div{padding:8px}.sandbox-accounting-panel .business-metrics strong{font-size:1.1rem}#sandbox-status,#sandbox-member-status{font-size:.8rem}#sandbox-export{margin-top:8px}

.guru-journey{border:1px solid #dce5ef;border-radius:9px;overflow:hidden;margin:14px 0;color:#002757;background:#fff}.guru-journey-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#002757;color:white;padding:14px 16px}.guru-journey-heading small{font-size:.65rem;color:#d6e5f5;letter-spacing:.07em}.guru-journey-heading h2{color:white;font-size:1.25rem;margin:4px 0}.guru-journey-heading h2 span{color:#34A853}.guru-journey-heading p{font-size:.8rem;color:#e0ecfa;margin:4px 0}.guru-journey-body{padding:12px 14px}.guru-journey-body .membership-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 10px}.guru-journey-body .membership-metrics>div{padding:9px}.guru-journey-body .membership-metrics strong{font-size:.98rem;overflow-wrap:anywhere}.guru-journey-body .membership-metrics small{font-size:.72rem}.guru-progress-line{display:flex;justify-content:space-between;gap:8px;font-size:.8rem;margin:6px 0}.guru-progress-meter{width:100%;height:9px;display:block;border:0;appearance:none;accent-color:#34A853;background:#e3eaf0;border-radius:6px;overflow:hidden}.guru-progress-meter::-webkit-progress-bar{background:#e3eaf0;border-radius:6px}.guru-progress-meter::-webkit-progress-value{background:#34A853;border-radius:6px}.guru-progress-meter::-moz-progress-bar{background:#34A853;border-radius:6px}.guru-journey-body small{color:#52657a}.guru-journey-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:12px 0}.guru-journey-columns h3{font-size:.9rem;margin:8px 0}.guru-milestone{display:flex;align-items:center;gap:7px;font-size:.8rem;border-bottom:1px solid #edf1f5;padding:8px 0}.guru-milestone small{margin-left:auto;font-size:.7rem}.guru-achieved{color:#187b32;font-weight:bold}.guru-unreached{color:#8291a4}.guru-tier{padding:4px 0}.guru-tier .guru-progress-line strong:last-child{color:#187b32}.guru-journey-next{display:grid;gap:4px;background:#edf7ef;border-left:3px solid #34A853;padding:10px;margin:10px 0;border-radius:4px}.guru-journey-next strong{color:#187b32;font-size:.9rem}.guru-journey-next small{font-size:.75rem}#guru-journey-status{font-size:.76rem;color:#52657a}#guru-journey-test{background:#f0f8f2;border:1px solid #b9ddc2;border-radius:6px;padding:8px;margin:10px 0}.guru-admin-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.guru-admin-filters [data-guru-filter="test"]{color:#187b32}.guru-admin-filters [data-guru-filter="testeligible"],.guru-admin-filters [data-guru-filter="approaching"]{color:#a35d00}.guru-admin-filters [data-guru-filter="risk"]{color:#b42318}.guru-admin-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.guru-admin-tools span{flex:1;font-size:.78rem;color:#52657a}.guru-admin-note{font-size:.75rem}.guru-table-progress{min-width:140px}.guru-table-progress small{display:block;margin-bottom:5px;font-size:.72rem}.guru-state-test,.guru-state-testeligible{color:#187b32!important;font-weight:700}.guru-state-risk{color:#b42318!important;font-weight:700}@media(max-width:600px){.guru-journey-body .membership-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.guru-journey-columns{grid-template-columns:1fr}.guru-admin-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Show just the next attainable reward tier in the member profile. */
.guru-journey-body .membership-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.guru-journey-body #guru-journey-real,.guru-journey-body #guru-journey-test{padding:10px;border:1px solid #dce5ef;border-radius:6px;margin:8px 0}.guru-journey-body #guru-journey-test{border-color:#b9ddc2}.guru-journey-body #guru-journey-real[hidden],.guru-journey-body #guru-journey-test[hidden]{display:none!important}.guru-next-rate{color:#187b32}.guru-journey-heading{padding:10px 14px}.guru-journey-next{padding:8px;margin:8px 0}.guru-journey-body #guru-journey-status{margin:6px 0}@media(max-width:540px){.guru-journey-body .membership-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.guru-journey-body .membership-metrics>div:last-child{grid-column:1/-1}}

/* Persistent private profile progress, independent of the selected tab. */
#profile>#guru-journey{display:none;margin:0;min-width:0}#profile[data-profile-stage="settings"]>#guru-journey:not([hidden]){display:block;grid-column:2;grid-row:2}#profile[data-profile-stage="settings"]>.account{grid-row:3}#profile[data-profile-stage="settings"]>.portfolio-sharing,#profile[data-profile-stage="settings"][data-profile-tab="connections"]>.portfolio-sharing{grid-row:4}#profile[data-profile-stage="settings"]>#stockie-profile-nav{grid-row:2 / span 3}#profile>#guru-journey .guru-journey-heading{padding:9px 14px}#profile>#guru-journey .guru-journey-heading h2{font-size:1.12rem}#profile>#guru-journey .guru-journey-heading small,#profile>#guru-journey .guru-journey-heading p{display:none}#profile>#guru-journey .guru-journey-body{padding:9px 14px}#profile>#guru-journey .guru-journey-body .membership-metrics{margin:0 0 6px}#profile>#guru-journey .guru-journey-body .membership-metrics>div{padding:6px 9px}#profile>#guru-journey .guru-journey-next{margin:6px 0}#profile>#guru-journey #guru-grow-circle{padding:6px 12px;min-height:30px;font-size:.8rem}@media(max-width:760px),(hover:none),(pointer:coarse){#profile[data-profile-stage="settings"]>#guru-journey:not([hidden]),#profile[data-profile-stage="settings"]>#stockie-profile-nav,#profile[data-profile-stage="settings"]>.account,#profile[data-profile-stage="settings"]>.portfolio-sharing,#profile[data-profile-stage="settings"][data-profile-tab="connections"]>.portfolio-sharing{grid-column:1;grid-row:auto}}

.stockie-learn-accent{color:#34A853!important;font-weight:750}.home-learn-brand{color:#002757}.learn-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.learn-heading h1{font-size:clamp(24px,3vw,34px);color:#002757;margin:0}.learn-heading p{color:#52657a;font-size:.85rem;margin:4px 0}.learn-filters{display:flex;align-items:end;gap:8px;flex-wrap:wrap;background:white;padding:10px;border:1px solid #dce5ef;border-radius:8px}.learn-filters label{display:grid;gap:4px;font-size:.75rem;flex:1 1 145px;color:#52657a}.learn-filters input,.learn-filters select{width:100%;min-width:0;min-height:34px}.learn-video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px}.learn-video-card{background:white;border:1px solid #dce5ef;border-radius:8px;overflow:hidden;color:#002757;min-width:0}.learn-thumb{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#002757;text-decoration:none}.learn-thumb img{width:100%;height:100%;object-fit:cover}.learn-thumb span{position:absolute;color:white;background:#002757bb;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;font-size:20px}.learn-video-copy{padding:11px;display:grid;gap:6px}.learn-video-copy h3{font-size:.98rem;margin:0;overflow-wrap:anywhere}.learn-video-copy p{font-size:.8rem;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.learn-video-copy small{font-size:.73rem;color:#52657a}.learn-video-meta{color:#187b32!important;font-weight:650}.learn-video-actions,.learn-pages{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.learn-video-actions button,.learn-video-actions a{font-size:.75rem}.learn-pages{justify-content:flex-end;margin:10px 0}.learn-note,#learn-status{font-size:.78rem}.learn-guides-title{font-size:1.2rem;margin-top:22px;color:#002757}.learn-empty{padding:20px;border:1px dashed #cbd5e1;border-radius:7px;color:#52657a}.growth-dialog{width:min(550px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:1px solid #dce5ef;border-radius:9px;background:white;color:#002757}.growth-dialog::backdrop{background:#002757aa}.growth-heading{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;background:#002757;color:white}.growth-heading h2{font-size:1.1rem;color:white;margin:0}.growth-heading button{background:transparent;color:white;border-color:#ffffff55;font-size:1.2rem}.growth-body{display:grid;gap:9px;padding:14px}.growth-body label{display:grid;gap:4px;font-size:.8rem;font-weight:650}.growth-body input,.growth-body select,.growth-body textarea{width:100%;box-sizing:border-box;min-width:0}.growth-body .muted,.growth-body [role=status]{font-size:.75rem;margin:0}.learn-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.referral-action{display:flex;justify-content:flex-end;margin-top:6px}.referral-action button{background:#ff9900;color:#002757;font-size:.8rem;padding:7px 13px}.referral-invited{background:#edf7ef;color:#187b32;padding:10px;border-radius:6px;font-weight:650}.referral-link-row,.referral-share{display:flex;gap:6px;flex-wrap:wrap}.referral-link-row input{flex:1;min-width:0;font-size:.78rem}.referral-share button{flex:1;font-size:.78rem}#referral-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}#referral-metrics>div{padding:8px}#referral-performance>div{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #e7edf3;font-size:.82rem}.growth-body h3{font-size:.95rem;margin:4px 0}@media(max-width:540px){.learn-form-grid{grid-template-columns:1fr}}

#learn-admin .learn-heading h2{margin:0;font-size:1.15rem;color:#002757}#learn-admin .learn-heading{margin:8px 0 12px}#learn-admin .learn-video-grid{margin-top:10px}#learn-admin .learn-video-actions button{padding:6px 9px}

.learn-admin-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.learn-category-add{display:flex;gap:8px;align-items:flex-end}.learn-category-add label{flex:1}.learn-category-row{display:grid;grid-template-columns:minmax(120px,1fr) 68px 65px auto auto;gap:6px;align-items:center;padding:8px 0;border-bottom:1px solid #dce5ef}.learn-category-row input{min-width:0}.learn-category-row button{font-size:.75rem;padding:6px}.learn-category-row small{font-size:.72rem;color:#52657a}@media(max-width:540px){.learn-category-row{grid-template-columns:minmax(100px,1fr) 62px 65px;}.learn-category-row button{grid-row:2}}

/* StockieLEARN public library: compact category rail and fixed-width video cards. */
#learn .learn-heading{margin:0 0 14px}
.learn-library-layout{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:start;gap:16px}
.learn-sidebar{background:#002757;color:white;border-radius:8px;padding:9px;min-width:0;position:sticky;top:12px}
.learn-sidebar h2{font-size:.71rem;text-transform:uppercase;letter-spacing:.07em;margin:5px 9px 9px;color:#dbe8f5}
#learn-category-menu{display:grid;gap:2px}
#learn-category-menu button{border:0;background:transparent;color:#fff;text-align:left;min-height:32px;border-radius:5px;padding:7px 9px;font-size:.79rem;line-height:1.25;white-space:normal;font-weight:550;width:100%;box-shadow:none}
#learn-category-menu button:hover{background:#ffffff17}
#learn-category-menu button[aria-pressed="true"]{background:#34A853;color:#062c15;font-weight:750}
.learn-library-content{min-width:0}
.learn-library-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:0 0 10px}
.learn-library-heading h2{font-size:1.16rem;color:#002757;margin:0}
.learn-library-heading #learn-status{margin:0;color:#52657a}
#learn .learn-video-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr));gap:12px}
#learn .learn-video-card{max-width:340px;width:100%;box-shadow:0 1px 3px #0027570d}
#learn .learn-video-copy{padding:10px;gap:5px}
#learn .learn-video-copy h3{font-size:.94rem;line-height:1.35}
#learn .learn-video-actions a{font-weight:650;color:#002757}
#learn .learn-empty{grid-column:1/-1;background:#fff}
#learn .learn-pages[hidden],#learn-guides[hidden]{display:none!important}
#learn .learn-guide h1{font-size:1.1rem}
#learn .learn-note{margin-top:14px}
@media(max-width:650px){.learn-library-layout{grid-template-columns:minmax(0,1fr);gap:12px}.learn-sidebar{position:static}.learn-sidebar h2{margin-bottom:5px}#learn-category-menu{grid-template-columns:repeat(2,minmax(0,1fr))}#learn .learn-video-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr))}}

#learn .learn-video-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr));gap:9px;align-items:start}#learn .learn-video-card{max-width:170px}#learn .learn-video-copy{padding:7px;gap:4px}#learn .learn-video-copy h3{font-size:.78rem;line-height:1.3}#learn .learn-video-copy small,#learn .learn-video-actions a{font-size:.67rem}#learn .learn-thumb span{width:30px;height:30px;font-size:15px}.learn-feature-settings{border:1px solid #dce5ef;background:#f6f9fc;border-radius:7px;padding:10px;margin-bottom:12px}.learn-feature-settings h3{margin:0;font-size:1rem;color:#002757}.learn-feature-settings p{font-size:.76rem;margin:5px 0}#learn-feature-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.learn-feature-slot{background:white;border:1px solid #dce5ef;border-radius:5px;padding:8px;display:grid;gap:5px;min-width:0}.learn-feature-slot small{font-size:.7rem;color:#187b32}.learn-feature-slot strong{font-size:.8rem;overflow-wrap:anywhere}.learn-feature-slot button{justify-self:start;font-size:.7rem;padding:4px 7px}.learn-video-actions select{font-size:.75rem;max-width:100%}@media(max-width:650px){#learn .learn-video-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,135px),1fr))}#learn-feature-slots{grid-template-columns:1fr}}
