:root {
  color-scheme: dark;
  --background: #0d121a;
  --surface: #141c27;
  --surface-raised: #1a2532;
  --outline: #293543;
  --text: #eff4f8;
  --muted: #a6b4c4;
  --accent: #b6ed70;
  --accent-ink: #18280e;
  --accent-soft: #233529;
  --positive: #82df9e;
  --negative: #faa1a0;
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--background); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
svg { width: 19px; height: 19px; display: block; flex: none; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.85rem, 4vw, 2.55rem); letter-spacing: -.045em; }
h2 { font-size: 1.06rem; }
h3 { font-size: .99rem; }
.skip { position: fixed; top: -50px; left: 1rem; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: .5rem; }
.skip:focus { top: 1rem; }
.shell { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100vh; }
.sidebar { height: 100vh; position: sticky; top: 0; background: #111822; border-right: 1px solid #25303c; display: flex; flex-direction: column; }
.brand { display: inline-flex; gap: .7rem; align-items: center; align-self: flex-start; margin: 1.6rem 1.35rem 2.5rem; font-weight: 850; font-size: 1.3rem; line-height: 1.05; letter-spacing: -.055em; white-space: nowrap; }
.brand span span { color: var(--accent); }
.brand small { display: block; color: var(--muted); margin-top: .3rem; font-size: .56rem; letter-spacing: .16em; font-weight: 700; }
.brandmark { display: block; flex: none; width: 37px; height: 37px; border-radius: 10px; }
.navigation { padding: 0 .8rem; overflow: auto; }
.section-label { color: var(--muted); font-size: .66rem; font-weight: 750; letter-spacing: .12em; margin: 0 .65rem .55rem; }
.room-label { margin-top: 1.65rem; }
.nav, .room-link { display: flex; align-items: center; gap: .65rem; width: 100%; border: 0; color: var(--muted); background: transparent; text-align: left; min-height: 41px; padding: .47rem .65rem; border-radius: 8px; font-weight: 570; }
.nav:hover, .room-link:hover { color: var(--text); background: var(--surface-raised); }
.nav.active { color: var(--accent); background: var(--accent-soft); }
.room-link { min-height: 35px; font-size: .88rem; }
.room-link [data-icon] { display: flex; }
.room-link svg { width: 15px; height: 15px; }
.rooms-all { margin-top: .2rem; }
.room-dot { width: 8px; height: 8px; border-radius: 50%; background: #9d92fa; flex: none; }
.room-dot.gold { background: #f1bd74; }
.room-dot.risk { background: #7ccabc; }
.sidebar-footer { margin-top: auto; color: var(--muted); padding: 1rem 1.25rem; border-top: 1px solid var(--outline); font-size: .8rem; }
.sidebar-footer strong { color: var(--text); }
.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 3; min-height: 67px; display: flex; align-items: center; gap: 1rem; padding: .75rem clamp(1rem, 3vw, 2.65rem); background: #0f1620; border-bottom: 1px solid #25303c; }
.breadcrumb { white-space: nowrap; display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .87rem; }
.breadcrumb svg { width: 13px; height: 13px; }
.breadcrumb strong { color: var(--text); }
.mobile-brand { display: none; }
.search-trigger { margin-left: auto; display: flex; align-items: center; gap: .6rem; border-radius: 8px; color: var(--muted); border: 1px solid var(--outline); background: var(--surface); padding: .45rem .65rem; min-width: 0; width: 270px; text-align: left; }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { margin-left: auto; color: var(--muted); border: 1px solid var(--outline); border-radius: 4px; padding: .05rem .25rem; font: .68rem/1.4 system-ui; white-space: nowrap; }
.account-line { display: flex; gap: .5rem; align-items: center; white-space: nowrap; }
.button { display: inline-flex; gap: .45rem; align-items: center; justify-content: center; border-radius: 8px; min-height: 37px; padding: .45rem .78rem; border: 1px solid var(--outline); background: var(--surface-raised); color: var(--text); font-size: .85rem; font-weight: 650; white-space: nowrap; }
.button:hover { border-color: #647489; }
.button.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: #c8f599; }
.button.ghost { background: transparent; }
.button svg { width: 16px; height: 16px; }
main { width: min(100%, 1380px); margin: 0 auto; padding: 1.75rem clamp(1rem, 3vw, 2.65rem) 2.5rem; }
main:focus { outline: none; }
.page-head { margin-bottom: 1.35rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; }
.page-head p { color: var(--muted); margin-top: .35rem; }
.market-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .65rem; margin-bottom: 1.35rem; }
.quote { background: var(--surface); color: var(--text); border: 1px solid var(--outline); border-radius: 10px; padding: .65rem .75rem; display: grid; grid-template-columns: 1fr auto; gap: .24rem .4rem; text-align: left; min-width: 0; }
.quote:hover, .quote.active { border-color: #729953; }
.quote strong { font-size: .91rem; white-space: nowrap; }
.quote .price { font-variant-numeric: tabular-nums; font-size: .86rem; }
.quote .delta { font-size: .77rem; white-space: nowrap; align-self: end; }
.positive { color: var(--positive); }
.negative { color: var(--negative); }
.quote small, .muted, .subtle { color: var(--muted); }
.quote small { font-size: .66rem; white-space: nowrap; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 293px); gap: 1.15rem; align-items: start; }
.feed-column, .rail { min-width: 0; }
.rail { display: grid; gap: .9rem; }
.card { border: 1px solid var(--outline); background: var(--surface); border-radius: 12px; min-width: 0; }
.composer { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; padding: .85rem; gap: .65rem; }
.composer-placeholder { width: 100%; background: #101823; border: 1px solid var(--outline); color: var(--muted); padding: .58rem .7rem; min-height: 40px; border-radius: 8px; text-align: left; }
.composer-placeholder:hover { border-color: #65798c; }
.tabs { display: flex; gap: .25rem; align-items: center; margin-top: .8rem; margin-bottom: .8rem; border-bottom: 1px solid var(--outline); }
.tab { min-height: 41px; padding: .2rem .7rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); white-space: nowrap; font-size: .86rem; font-weight: 650; }
.tab[aria-pressed="true"], .tab:hover { color: var(--accent); border-bottom-color: var(--accent); }
.filter { margin-left: auto; max-width: 44%; }
.feed-items { display: grid; gap: .8rem; }
.post { padding: 1rem; }
.post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .55rem; }
.post-person { display: flex; align-items: center; gap: .65rem; flex-wrap: nowrap; min-width: 0; }
.post-person > div { min-width: 0; }
.post-person strong { display: block; overflow-wrap: anywhere; }
.post-person small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.avatar { width: 37px; height: 37px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .78rem; color: #d8f3dc; background: #2b493c; }
.avatar.violet { background: #453b63; color: #ebdcff; }
.avatar.amber { background: #574233; color: #ffe1aa; }
.avatar.blue { background: #2e4964; color: #daecff; }
.post-menu { position: relative; flex: none; }
.post-menu summary { cursor: pointer; list-style: none; padding: .3rem .4rem; color: var(--muted); }
.post-menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; top: 100%; right: 0; z-index: 2; min-width: 155px; padding: .3rem; background: var(--surface-raised); border: 1px solid var(--outline); border-radius: 8px; }
.menu-panel button { display: block; width: 100%; background: transparent; border: 0; color: var(--text); text-align: left; padding: .45rem .5rem; border-radius: 5px; }
.menu-panel button:hover { background: var(--background); }
.post-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 .58rem; }
.pill { display: inline-flex; align-items: center; padding: .12rem .48rem; border-radius: 5px; color: var(--muted); background: var(--surface-raised); border: 1px solid var(--outline); font-size: .73rem; white-space: nowrap; }
button.pill { color: var(--accent); background: #203429; border-color: #415840; }
.post h2 { margin: .22rem 0 .42rem; font-size: 1.13rem; overflow-wrap: anywhere; }
.post-body { color: #cbd5e1; font-size: .93rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.chart { margin: .8rem 0; background: #101823; border: 1px solid var(--outline); border-radius: 8px; overflow: hidden; }
.chart-head { display: flex; justify-content: space-between; gap: .4rem; padding: .5rem .65rem; font-size: .74rem; }
.chart-head span { color: var(--muted); }
.chart canvas { display: block; width: 100%; height: 150px; }
.actions { margin-top: .75rem; display: flex; gap: .8rem; border-top: 1px solid var(--outline); padding-top: .55rem; }
.action { border: 0; padding: .35rem .22rem; display: inline-flex; align-items: center; gap: .34rem; background: transparent; color: var(--muted); font-size: .83rem; }
.action:hover, .action.selected { color: var(--accent); }
.action svg { width: 16px; height: 16px; }
.actions .push { margin-left: auto; }
.rail-card { padding: .9rem; }
.rail-card h2 { margin-bottom: .5rem; }
.rail-card > p { color: var(--muted); font-size: .83rem; }
.rail-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.text-button { border: 0; color: var(--accent); background: transparent; padding: .2rem 0; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.rail-row { display: flex; align-items: center; gap: .55rem; width: 100%; color: var(--text); background: transparent; border: 0; border-top: 1px solid var(--outline); text-align: left; padding: .62rem 0; min-width: 0; }
.rail-row:first-of-type { margin-top: .45rem; }
.rail-row:hover { color: var(--accent); }
.rail-row > span:nth-child(2) { flex: 1; }
.rail-row small { display: block; color: var(--muted); font-size: .76rem; }
.symbol-icon { display: grid; place-items: center; flex: none; height: 29px; width: 29px; border-radius: 7px; background: var(--surface-raised); font-size: .79rem; color: var(--accent); }
.community-note { display: flex; gap: .65rem; background: #172725; border-color: #31473d; }
.community-note [data-icon] { color: var(--accent); }
.community-note h2 { margin: 0 0 .24rem; }
.community-note p { color: var(--muted); font-size: .81rem; }
.pending, .empty { padding: 1.1rem; color: var(--muted); }
.empty strong { display: block; margin-bottom: .25rem; color: var(--text); }
.directory { display: grid; gap: .7rem; }
.directory section { padding: .95rem; }
.directory section h2 { margin-bottom: .65rem; }
.directory-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .65rem 0; border-top: 1px solid var(--outline); }
.directory-row .details { flex: 1 1 165px; min-width: 0; overflow-wrap: anywhere; }
.directory-row small { display: block; color: var(--muted); }
.directory-search { width: 100%; margin-bottom: .75rem; }
.form { display: grid; gap: .85rem; }
.form label { display: grid; gap: .28rem; font-size: .85rem; color: var(--muted); }
input, textarea, select { background: #101823; color: var(--text); border-radius: 7px; border: 1px solid var(--outline); padding: .53rem .62rem; min-width: 0; }
textarea { resize: vertical; min-height: 85px; }
form .footer { display: flex; justify-content: flex-end; gap: .55rem; align-items: center; }
.status-error { color: var(--negative); font-size: .85rem; }
dialog { background: var(--surface); color: var(--text); width: min(490px, calc(100% - 24px)); max-height: 90vh; border: 1px solid var(--outline); border-radius: 13px; padding: 1.15rem; }
dialog::backdrop { background: #05080dc9; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; gap: .65rem; }
.dialog-head button { min-width: 37px; padding: .37rem; }
.dialog-text { color: var(--muted); margin-bottom: .8rem; }
.comments { border-top: 1px solid var(--outline); margin-top: .55rem; padding-top: .6rem; }
.comment { padding: .4rem 0; color: var(--muted); overflow-wrap: anywhere; }
.comment strong { color: var(--text); }
.comment form, .inline-form { display: flex; gap: .45rem; margin-top: .55rem; }
.inline-form input { flex: 1; }
.chat-layout { display: grid; grid-template-columns: minmax(165px, 240px) minmax(0, 1fr); gap: .8rem; }
.chat-list { padding: .8rem; align-self: start; }
.chat-list h2 { margin-bottom: .45rem; }
.chat-list h2:not(:first-child) { margin-top: .75rem; }
.chat { min-height: 350px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.chat header, .chat .inline-form { padding: .8rem; margin: 0; }
.chat header { border-bottom: 1px solid var(--outline); }
.chat .inline-form { border-top: 1px solid var(--outline); }
.chat-messages { max-height: 57vh; padding: .8rem; overflow: auto; }
.bubble { width: fit-content; max-width: 85%; overflow-wrap: anywhere; margin: 0 0 .65rem; padding: .45rem .67rem; border-radius: 9px; background: var(--surface-raised); white-space: pre-wrap; }
.bubble.mine { margin-left: auto; background: var(--accent-soft); }
.bubble h3, .bubble .action { font-size: .74rem; color: var(--muted); }
.badge { color: var(--accent); background: var(--accent-soft); border-radius: 9px; padding: .03rem .45rem; font-size: .73rem; font-weight: 700; }
.profile-card { padding: 1rem; max-width: 640px; }
.profile-card .form { margin-top: .9rem; }
.profile-card .details { flex-basis: 150px; }
.toast { z-index: 6; position: fixed; right: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); border: 1px solid var(--outline); background: #202d3c; color: var(--text); border-radius: 9px; padding: .7rem .9rem; box-shadow: 0 4px 18px #0008; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 189px minmax(0,1fr); }
  .content-grid { grid-template-columns: minmax(0,1fr) minmax(190px, .56fr); gap: .75rem; }
}
@media (max-width: 850px) {
  .content-grid { grid-template-columns: minmax(0,1fr); }
  .market-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rail { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .community-note { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { height: auto; position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 4; border-right: 0; border-top: 1px solid var(--outline); padding-bottom: env(safe-area-inset-bottom); }
  .sidebar .brand, .sidebar-footer, .sidebar .section-label, .sidebar .room-link { display: none; }
  .navigation { display: flex; padding: .2rem .3rem; overflow: auto; }
  .nav { flex: 1 0 57px; flex-direction: column; gap: .15rem; min-height: 46px; font-size: .69rem; white-space: nowrap; justify-content: center; padding: .2rem; position: relative; }
  .nav #unread { position: absolute; top: 0; right: 7%; }
  .nav svg { width: 16px; height: 16px; }
  .breadcrumb { display: none; }
  .mobile-brand { display: inline-flex; margin: 0; align-self: center; font-size: 1.06rem; }
  .mobile-brand .brandmark { width: 30px; height: 30px; }
  .topbar { gap: .45rem; min-height: 54px; }
  .search-trigger { width: auto; padding: .5rem; }
  .search-trigger span:nth-child(2), .search-trigger kbd { display: none; }
  main { padding-top: 1.1rem; padding-bottom: 5rem; }
  .market-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .toast { bottom: 3.6rem; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .topbar { padding-inline: .65rem; }
  .mobile-brand { gap: .35rem; }
  .account-line .button { padding-inline: .45rem; }
  .rail { grid-template-columns: minmax(0,1fr); }
  .composer .avatar { display: none; }
  .composer { grid-template-columns: minmax(0,1fr) auto; }
}

:root {
  color-scheme: light;
  --background: #f4f6fb;
  --surface: #ffffff;
  --surface-raised: #f0f2f9;
  --outline: #dfe4ef;
  --text: #141a30;
  --muted: #59657e;
  --accent: #413bd3;
  --accent-ink: #ffffff;
  --accent-soft: #eeedff;
  --positive: #087953;
  --negative: #bc3657;
  font-family: "Segoe UI", system-ui, sans-serif;
}
body { -webkit-font-smoothing: antialiased; }
.shell { grid-template-columns: 218px minmax(0, 1fr); }
.sidebar { background: #fff; border-color: var(--outline); }
.brand { margin: 1.4rem 1.25rem 1.9rem; font-size: 1.42rem; font-weight: 850; gap: .7rem; letter-spacing: -.065em; }
.brandmark { width: 39px; height: 39px; border-radius: 11px; box-shadow: 0 5px 12px #4b43dd36; }
section.section-label, .section-label { color: #64708a; font-size: .64rem; letter-spacing: .105em; }
.navigation { padding: 0 .72rem; }
.nav { min-height: 38px; gap: .7rem; padding-inline: .73rem; font-size: .86rem; letter-spacing: -.01em; }
.nav.active { font-weight: 750; }
.nav.active::before { content: ""; position: absolute; width: 3px; height: 17px; left: 0; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav { position: relative; }
.nav svg { width: 17px; height: 17px; }
.sidebar .room-label { margin-top: 1.28rem; }
.sidebar-footer { padding: .85rem; }
.member-foot { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: #fff; color: var(--text); padding: .35rem; border: 0; border-radius: 8px; }
.member-foot:hover { background: var(--surface-raised); }
.member-foot > span:nth-child(2) { min-width: 0; flex: 1; }
.member-foot strong, .member-foot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-foot small { color: var(--muted); font-size: .71rem; }
.member-foot > svg { color: var(--muted); width: 15px; }
.topbar { min-height: 65px; border-color: var(--outline); background: #fff; padding-inline: clamp(1rem,3vw,2.25rem); }
.breadcrumb strong { font-size: 1.04rem; letter-spacing: -.025em; }
.search-trigger { background: #f7f8fc; width: 295px; padding: .52rem .65rem; font-size: .83rem; }
kbd { background: #fff; }
.button { background: #f0f2f9; border-color: #d9dfec; border-radius: 9px; min-height: 39px; font-weight: 700; }
.button.primary { background: #4940e7; border-color: #4940e7; box-shadow: 0 3px 7px #4940e724; color: #fff; }
.button.primary:hover { background: #3d34c6; border-color: #3d34c6; }
.button.ghost { background: #fff; }
.button.ghost:hover { background: #f4f4fe; }
.button[aria-pressed="true"] { color: var(--accent); border-color: #b9b4f7; background: var(--accent-soft); }
main { padding: 1.38rem clamp(1rem,3vw,2.25rem) 2.6rem; }
.page-head { padding-block: .3rem; }
h1 { font-size: clamp(2rem,4vw,3rem); }
.atlas-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 17px; padding: clamp(1.35rem,3.3vw,2.75rem); margin-bottom: 1.25rem; color: #fff; background: #0b1026; box-shadow: 0 10px 27px #19224f16; }
.atlas-hero::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg,#0d132b 3%,#0d132bf2 25%,#0d132b45 60%,transparent 90%), url("/atlas.jpg") center 49%/cover no-repeat; }
.atlas-copy { max-width: 510px; }
.atlas-copy h1 { font-size: clamp(2.12rem,4.3vw,4.15rem); font-weight: 800; letter-spacing: -.067em; line-height: .99; }
.atlas-copy h1 em { color: #a69aff; font-style: normal; }
.atlas-copy p { color: #d6dbf5; margin: .9rem 0 1.15rem; max-width: 360px; font-size: .92rem; }
.hero-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.hero-actions .button { padding-inline: .85rem; min-height: 41px; }
.hero-actions .primary { background: #fff; border-color: #fff; color: #282160; }
.hero-actions .primary:hover { background: #e9e7ff; border-color: #e9e7ff; }
.hero-actions .ghost { background: #ffffff12; border-color: #9b95ca7d; color: #fff; }
.hero-actions .ghost:hover { background: #ffffff23; border-color: #c2bef2; }
.strip-heading, .section-head { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; margin-bottom: .55rem; }
.strip-heading h2, .section-head h2 { font-size: 1.13rem; letter-spacing: -.025em; font-weight: 800; }
.data-label { color: var(--muted); font-size: .74rem; display: inline-flex; gap: .4rem; align-items: center; }
.data-label::before { content: ""; width: 6px; height: 6px; background: #7669ed; border-radius: 50%; }
.market-strip { gap: .75rem; margin-bottom: 1.25rem; }
.quote { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: .12rem .6rem; padding: .65rem .7rem; min-height: 81px; border-radius: 11px; background: #fff; box-shadow: 0 2px 4px #18204d05; }
.quote .symbol-icon { grid-row: 1/3; align-self: start; }
.quote:hover, .quote.active { border-color: #a29af8; background: #fbfaff; }
.quote strong { grid-column: 2; font-size: .77rem; align-self: end; }
.quote .price { grid-column: 2; font-weight: 780; font-size: 1rem; letter-spacing: -.018em; white-space: nowrap; }
.quote .delta { grid-column: 2; font-size: .73rem; font-weight: 700; }
.quote .spark { grid-area: 1 / 3 / 4 / 4; width: clamp(32px,5vw,62px); height: 30px; align-self: end; margin-bottom: .17rem; }
.content-grid { grid-template-columns: minmax(0,1fr) minmax(228px,292px); gap: 1rem; }
.card, dialog { border-radius: 12px; box-shadow: 0 3px 10px #1d284b08; }
.composer { padding: .8rem; }
.composer-placeholder, input, textarea, select { background: #f7f8fc; }
.composer-placeholder:hover { border-color: #a29af8; }
.tab { padding-inline: .9rem; }
.tabs { gap: .38rem; }
.tabs > strong { font-size: .8rem; padding-left: .35rem; }
.filter { padding-block: .29rem; font-size: .77rem; margin-bottom: .3rem; }
.post { padding: 1.05rem 1.12rem; }
.post-body { color: #394663; }
.post h2 { font-weight: 780; letter-spacing: -.016em; }
.avatar { color: #345c53; background: #dfefe8; }
.avatar.violet { color: #4e39aa; background: #eae1fc; }
.avatar.amber { color: #8a4c21; background: #fbe8d5; }
.avatar.blue { color: #2b56a5; background: #e1ecff; }
.pill { border: 1px solid #e1e5f1; font-weight: 600; background: #f5f6fb; }
button.pill { color: #4035c7; background: #efedff; border-color: #e6e1ff; }
.chart { background: #131a31; color: #f1efff; border-color: #283451; }
.chart-head { padding: .6rem .75rem; }
.chart-head span { color: #b1bdd4; }
.chart canvas { height: 155px; }
.rail-card { padding: .97rem; }
.rail-card h2 { font-weight: 780; letter-spacing: -.02em; margin: 0; }
.rail-card p { margin-top: .22rem; }
.rail-heading { align-items: center; }
.rail-heading > svg { color: var(--accent); width: 17px; height: 17px; }
.rail-row { padding-block: .56rem; font-size: .83rem; }
.rail-row > svg { color: var(--muted); width: 15px; }
.rail-row:first-of-type { margin-top: .62rem; }
.symbol-icon { color: #4437cb; background: #efedff; font-weight: 800; }
.symbol-icon svg { width: 17px; height: 17px; }
.symbol-icon.iris { color: #693eb7; background: #f0e7fd; }
.symbol-icon.gold { color: #8b5418; background: #fff0d8; }
.symbol-icon.rose { color: #a63752; background: #fce6ee; }
.symbol-icon.teal { color: #087666; background: #e0f7f0; }
.session-list { margin-top: .5rem; }
.session-row { display: flex; align-items: center; padding: .5rem 0; gap: .55rem; font-size: .79rem; }
.session-row + .session-row { border-top: 1px solid var(--outline); }
.session-row small { display: block; color: var(--muted); font-size: .71rem; }
.session-row .session-meta { color: var(--muted); font-size: .68rem; }
.session-status { white-space: nowrap; border-radius: 10px; padding: .11rem .4rem; color: #59657e; background: #f0f2f8; font-size: .68rem; font-weight: 700; }
.session-row .session-status { margin-left: auto; }
.session-on, .session-card-open .session-status.session-on { color: #096543; background: #e2f6ee; }
.community-note { background: #efeeff; border-color: #dad6fb; }
.community-note p { margin-top: .3rem; }
.toast { background: #1e2457; color: #fff; }
.mobile-tools { display: none; }
.lesson-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.lesson-card { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; min-height: 224px; padding: 1rem; }
.lesson-card .symbol-icon { width: 41px; height: 41px; }
.lesson-card p { color: var(--muted); font-size: .88rem; }
.lesson-card .lesson-track { color: var(--accent); font-size: .74rem; font-weight: 700; }
.lesson-card .button { margin-top: auto; }
.lesson-content section { margin: .9rem 0; }
.lesson-content p { margin-top: .25rem; }
.form-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,120px),1fr)); gap: .6rem; }
#idea-detail summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: .86rem; }
#idea-detail .form-columns { margin-top: .6rem; }
.idea-levels { display: flex; gap: .6rem; flex-wrap: wrap; margin: .7rem 0; }
.idea-levels div { background: #f6f7fc; border: 1px solid var(--outline); padding: .35rem .65rem; border-radius: 7px; }
.idea-levels dt { color: var(--muted); font-size: .72rem; }
.idea-levels dd { margin: 0; font-weight: 760; font-size: .88rem; }
.actions .push { margin-left: auto; }
.trust-note { display: flex; align-items: center; gap: .6rem; background: #f4f3ff; color: #3f3696; padding: .68rem; border-radius: 7px; font-size: .8rem; margin-top: .65rem; }
.trust-note p { color: var(--muted); }
.market-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.market-header h2 { font-size: 1.35rem; }
.market-header h2 small { color: var(--muted); font-size: .73rem; display: inline-block; }
.market-header div > strong { font-size: 1.6rem; letter-spacing: -.045em; }
.market-detail canvas { height: clamp(180px,28vw,290px); }
.market-detail .actions { flex-wrap: wrap; }
.segmented { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; margin: .8rem 0 .4rem; }
.segmented .button { min-height: 34px; font-size: .76rem; }
.paper-grid .form { margin-top: .7rem; }
.result-panel { margin-top: .85rem; border-top: 1px solid var(--outline); padding-top: .85rem; }
.result-panel .session-row span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 750; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 191px minmax(0,1fr); }
  .content-grid { grid-template-columns: minmax(0,1fr) minmax(185px,.56fr); gap: .75rem; }
  .quote .spark { width: 32px; }
}
@media (max-width: 900px) {
  .market-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quote .spark { width: 56px; }
  .lesson-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .content-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .brand.mobile-brand { margin: 0; font-size: 1.15rem; gap: .42rem; }
  .brand.mobile-brand .brandmark { width: 32px; height: 32px; }
  .topbar { min-height: 56px; }
  .search-trigger { width: auto; }
  main { padding-top: 1rem; padding-bottom: 5.2rem; }
  .sidebar { border-top: 1px solid var(--outline); box-shadow: 0 -4px 15px #1520440a; }
  .navigation .nav { display: none; }
  .navigation .nav:is([data-view="feed"],[data-view="discover"],[data-view="news"],[data-view="messages"]), .navigation .mobile-tools { display: flex; font-size: .68rem; }
  .nav.active::before { display: none; }
  .atlas-hero::before { background-position: 58% center; }
  .atlas-copy p { max-width: 300px; }
  .lesson-grid { grid-template-columns: minmax(0,1fr); }
  .page-head { align-items: flex-start; }
}
@media (max-width: 460px) {
  .atlas-hero { padding: 1.25rem; }
  .atlas-hero::before { background-image: linear-gradient(90deg,#0d132be0 8%,#0d132ba8 54%,#0d132b48 100%),url("/atlas.jpg"); background-position: center, 63% center; }
  .atlas-copy p { font-size: .84rem; }
  .quote { gap: .08rem .35rem; }
  .quote .spark { width: 33px; }
  .quote .symbol-icon { width: 25px; height: 25px; }
  .strip-heading h2, .section-head h2 { font-size: 1.05rem; }
  .account-line .primary svg { display: none; }
  .hero-actions .button { font-size: .75rem; padding-inline: .56rem; }
}
@media (max-width: 355px) {
  .quote .spark { display: none; }
  .topbar .account-line { gap: .3rem; }
  .topbar .button { font-size: .73rem; }
}

.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: 1rem clamp(1rem, 3vw, 2.25rem) 1.6rem; color: var(--muted); border-top: 1px solid var(--outline); font-size: .78rem; }
.site-footer > span { margin-right: auto; color: var(--text); font-weight: 780; }
.site-footer #install-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.install-card {
  position: fixed;
  z-index: 30;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  display: flex;
  gap: .8rem;
  width: fit-content;
  max-width: 24rem;
  margin-left: auto;
  padding: 1rem;
  border: 1px solid var(--outline);
  border-radius: 1rem;
  color: var(--text);
  background: var(--surface, #fff);
  box-shadow: 0 12px 40px #211b4433;
}
.install-card img { flex: none; }
.install-card h2 { margin: 0; font-size: 1rem; }
.install-card p { margin: .3rem 0 .8rem; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.install-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.install-card[hidden], .install-card button[hidden], .site-footer #install-link[hidden] { display: none; }
.site-footer a:hover, .security-card a:not(.button), .dialog-text a, .form a, .policy-card a { color: var(--accent); text-decoration: underline; }
.policy-card { max-width: 760px; padding: clamp(1rem, 3vw, 2rem); }
.policy-card section + section { border-top: 1px solid var(--outline); }
.policy-card section { padding: .9rem 0; }
.policy-card section p { margin-top: .35rem; color: var(--muted); }
.policy-preview { padding: .6rem .75rem; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: .82rem; }
.security-stack { display: grid; max-width: 820px; gap: .8rem; }
.security-card { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1.05rem; flex-wrap: wrap; }
.security-card > div:first-child { flex: 1 1 220px; }
.security-card p { color: var(--muted); font-size: .87rem; margin-top: .3rem; }
.security-card .account-line { flex-wrap: wrap; }
.security-positive { color: #08623d; background: #e5f7ec; border-color: #d4efdf; }
.security-devices { width: 100%; }
.security-devices .details { overflow-wrap: anywhere; }
.danger-card { border-color: #f4c4cb; }
.button.danger { background: #a32442; border-color: #a32442; color: #fff; }
.button.danger:hover { background: #831931; border-color: #831931; }
.security-secret, .recovery-list { background: #f4f3ff; color: #302589; border: 1px solid #e2dfff; padding: .7rem; border-radius: 8px; overflow-wrap: anywhere; }
.security-secret { margin-bottom: .6rem; }
.security-form { margin-top: .75rem; }
.mfa-steps { margin: 0 0 .75rem; padding-left: 1.2rem; font-size: .85rem; line-height: 1.55; }
.mfa-steps li { margin-bottom: .3rem; }
.mfa-qr { display: flex; justify-content: center; margin: .25rem 0 .75rem; }
.mfa-qr img { border-radius: 10px; border: 1px solid #e2dfff; background: #fff; padding: 6px; }
.recovery-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .4rem; font-size: .8rem; }
.form .check-label { display: flex; align-items: flex-start; gap: .5rem; }
.check-label input { margin-top: .25rem; flex: none; }
.check-row { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .3rem 0 .7rem; }
.match-reasons { color: var(--accent); }
.discover-filters { max-width: 480px; margin-bottom: .8rem; }
.chat-search { flex: 1; min-width: 120px; padding: .3rem .55rem; font-size: .82rem; }
.reply-quote { color: var(--muted); font-size: .8rem; border-left: 2px solid var(--accent); padding-left: .45rem; margin: .2rem 0; }
.reply-bar { display: flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-top: 1px solid var(--outline); }
.msg-tools { display: flex; gap: .3rem; align-items: center; margin-top: .25rem; }
.msg-react-add, .msg-reaction { border: 1px solid var(--outline); background: var(--surface-raised); border-radius: 10px; padding: .05rem .35rem; font-size: .85rem; cursor: pointer; }
.msg-reaction.mine { border-color: var(--accent); }
.msg-reactions { display: flex; gap: .25rem; margin-top: .2rem; }
.form-link { justify-self: start; }
.google-auth-option { display: grid; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--outline); }
.activity-button { position: relative; padding-inline: .5rem; }
.activity-button #activity-count { position: absolute; top: -.32rem; right: -.38rem; }
.activity-list { max-height: min(52vh, 420px); padding: 0 .12rem .6rem; overflow: auto; }
.activity-list .rail-row { justify-content: space-between; padding: .6rem .45rem; }
.activity-list .rail-row:first-child { margin-top: 0; }
.activity-list .activity-unread { background: var(--accent-soft); border-radius: 6px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: .65rem; }
.admin-stats section { display: grid; gap: .2rem; }
.admin-stats strong { font-size: 1.6rem; }
.admin-stats span { color: var(--muted); }
.admin-section { margin-top: .85rem; }
.admin-member { flex-wrap: wrap; }
.admin-member .details { min-width: min(14rem, 100%); overflow-wrap: anywhere; }
.admin-search { max-width: 32rem; margin: .8rem 0; }
@media (max-width: 760px) {
  main { padding-bottom: 1.5rem; }
  .site-footer { padding-bottom: 5rem; }
  .install-card { bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
}

.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sandbox-badge { color: #4437a8; background: #f0edff; border-color: #e1dbfe; font-size: .65rem; font-weight: 750; vertical-align: middle; }
.profile-tools, .media-byline, .media-shortcuts, .ticket-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.profile-tools { margin: .65rem 0; }
.media-shortcuts .text-button { display: inline-flex; gap: .3rem; align-items: center; }
.media-shortcuts svg { width: 15px; height: 15px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); gap: 1rem; align-items: start; }
.media-card { overflow: hidden; }
.media-play { width: 100%; aspect-ratio: 16/10; background: #111931; display: block; object-fit: contain; }
.media-card img.media-play { object-fit: cover; }
.media-details, .tools-panel { padding: 1rem; }
.media-byline a:hover { color: var(--accent); }
.media-details .post-body { margin-top: .45rem; }
.media-controls { display: flex; align-items: center; justify-content: space-between; margin-top: .65rem; border-top: 1px solid var(--outline); font-size: .78rem; padding-top: .25rem; }
.tools-intro { padding: .8rem 1rem; font-size: .87rem; color: var(--muted); margin-bottom: .8rem; }
.tools-panel > p { margin-top: .4rem; color: var(--muted); font-size: .86rem; }
.tools-panel .form { margin-top: .9rem; }
.tools-panel details { padding: .58rem 0; border-bottom: 1px solid var(--outline); font-size: .86rem; }
.tools-panel details summary { cursor: pointer; font-weight: 700; }
.tools-panel details p { margin-top: .35rem; color: var(--muted); }
.support-answer { margin-top: .75rem; padding: .7rem; color: var(--text); border-radius: 8px; background: var(--accent-soft); overflow-wrap: anywhere; white-space: pre-wrap; }
.support-answer p { padding-top: .3rem; }
.support-contact a { color: var(--accent); text-decoration: underline; }
.ticket-row { flex-wrap: wrap; }
.ticket-row > span:first-child { flex: 1 1 105px; overflow-wrap: anywhere; }
.ticket-state { display: flex; flex-wrap: wrap; gap: .35rem; }
.priority-pill { color: #863923; background: #fff0e6; border-color: #f7d5c8; }
.ticket-thread { max-height: min(41vh, 360px); overflow: auto; margin: .85rem 0; }
.ticket-thread article { padding: .7rem 0; border-top: 1px solid var(--outline); white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-thread small { color: var(--muted); margin-left: .6rem; }
.ticket-thread p { margin-top: .25rem; }
.review-queues { max-width: none; margin: 0 0 .9rem; }
.media-review { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0,1fr); gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--outline); }
.media-review p { color: var(--muted); overflow-wrap: anywhere; }
.media-preview { width: 100%; max-height: 155px; object-fit: contain; background: #111931; border-radius: 8px; }

.market-workspace { grid-template-columns: minmax(0,1fr) minmax(190px, 250px); }
.market-header #market-source { font-size: .77rem; min-height: 1.1rem; }
.market-post-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .58rem; }
.market-post-link svg { width: 16px; height: 16px; }
.screenshot-fields { padding: .55rem .65rem; background: #f8f8ff; border: 1px solid var(--outline); border-radius: 8px; }
.screenshot-fields summary { cursor: pointer; color: var(--accent); font-size: .87rem; font-weight: 700; }
.screenshot-fields summary svg { display: inline-block; vertical-align: text-bottom; width: 15px; height: 15px; }
.screenshot-fields > :not(summary) { margin-top: .55rem; }
.screenshot-fields input[type="file"] { max-width: 100%; }
.discussion-image { display: block; width: fit-content; max-width: 100%; margin: .65rem 0 .4rem; border: 1px solid var(--outline); border-radius: 8px; background: #151e34; overflow: hidden; }
.discussion-image img { display: block; max-width: 100%; max-height: 445px; object-fit: contain; }
.discussion-image span { display: flex; align-items: center; gap: .38rem; padding: .42rem .65rem; color: #e1e9ff; font-size: .75rem; }
.discussion-image span svg { width: 14px; height: 14px; }
.comment .discussion-image img { max-height: 240px; }
.comment .review-reply { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--outline); }
.classroom-panel h2 { margin-bottom: .3rem; }
.classroom-description { margin-bottom: 1rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.classroom-session { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .75rem; padding: 1rem; }
.classroom-session p { margin-top: .25rem; color: var(--muted); font-size: .85rem; }
.classroom-session .profile-tools { margin: .15rem 0; }
.class-list-row { justify-content: space-between; }
.market-refresh { margin-left: auto; }
.chart-loading { min-height: clamp(210px, 39vw, 410px); border: 1px solid #29405e; border-radius: 10px; display: grid; place-items: center; padding: 1.3rem; text-align: center; background: #101b30; color: #d6e0f4; font-size: .9rem; }
.professional-chart { background: #101b30; color: #edf2fb; border: 1px solid #29405e; overflow: hidden; border-radius: 10px; }
.professional-chart-head, .chart-market, .chart-buttons { display: flex; align-items: center; gap: .6rem; }
.professional-chart-head { justify-content: space-between; padding: .68rem .75rem .45rem; flex-wrap: wrap; }
.chart-market span { font-size: .75rem; color: #b8c7e0; }
.chart-buttons { gap: .32rem; }
.chart-buttons button { min-height: 29px; min-width: 29px; padding: .15rem .45rem; color: #edf2fb; border-radius: 6px; border: 1px solid #344b6a; background: #1b2a46; font-size: .77rem; }
.chart-buttons button:hover { background-color: #334766; }
.ohlc-status { min-height: 1.85rem; padding: 0 .75rem .35rem; color: #c0cde4; font: .73rem/1.45 ui-monospace, monospace; }
.professional-chart canvas { display: block; width: 100%; height: clamp(218px, 34vw, 414px); cursor: crosshair; }
.professional-chart canvas:focus-visible { outline-offset: -2px; }
.recent-candles { border-top: 1px solid #34445d; padding: .55rem .75rem; font-size: .78rem; }
.recent-candles summary { cursor: pointer; }
.candle-table { overflow-x: auto; }
.candle-table table { width: 100%; margin-top: .5rem; border-collapse: collapse; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.candle-table :is(th,td) { padding: .25rem .45rem; border-bottom: 1px solid #2b3c58; }
.candle-table th:first-child { text-align: left; }
@media (max-width: 900px) { .market-workspace { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 560px) {
  .media-grid { grid-template-columns: minmax(0,1fr); }
  .media-review { grid-template-columns: minmax(0,1fr); }
  .ticket-row .ticket-state { order: 3; width: 100%; }
}

.news-workspace { --news-bg: #f0f2f8; --news-card: #fff; --news-ink: #172038; --news-muted: #526179; --news-line: #dce2ee; --news-link: #413bd3; --news-chip: #edebff; --news-strong: #f3f5fa; --news-impact: #924614; color: var(--news-ink); min-width: 0; }
.news-workspace[data-theme="dark"] { color-scheme: dark; --news-bg: #10182a; --news-card: #172239; --news-ink: #edf1fe; --news-muted: #b8c4db; --news-line: #34415c; --news-link: #bab6ff; --news-chip: #292851; --news-strong: #202d46; --news-impact: #ffbb83; padding: clamp(.6rem, 2vw, 1.2rem); background: var(--news-bg); border-radius: 18px; }
.news-masthead { display: flex; align-items: end; justify-content: space-between; gap: 1.4rem; padding: clamp(1.25rem, 4vw, 3rem); border-radius: 16px; background: radial-gradient(ellipse at 95% 0%, #4a43b3 0%, transparent 55%), linear-gradient(132deg,#141c38,#202454); color: #fff; }
.news-masthead h1 { font-size: clamp(2.45rem, 5vw, 4.1rem); letter-spacing: -.065em; line-height: 1.05; margin: 0 0 .7rem; }
.news-masthead p { max-width: 37ch; margin: 0; color: #dadff8; line-height: 1.5; }
.news-utilities { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.news-utilities .button { background: #ffffff14; border-color: #ffffff56; color: #fff; }
.news-utilities .button:hover { background: #ffffff2b; }
.news-navigation { display: flex; align-items: center; gap: .3rem 1.1rem; flex-wrap: wrap; border-bottom: 1px solid var(--news-line); margin: .7rem 0 1.2rem; padding: 0 .35rem; }
.news-navigation a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .84rem; color: var(--news-muted); padding: .78rem 0 .67rem; border-bottom: 2px solid transparent; }
.news-navigation a:is(:hover,[aria-current="page"]) { color: var(--news-link); border-bottom-color: var(--news-link); }
.news-workspace svg { width: 15px; height: 15px; flex: none; }
.launch-status { display: grid; gap: 1.05rem; max-width: 820px; margin-inline: auto; }
.news-feed-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 29%); gap: 1.1rem; }
.news-stream, .news-rail { display: grid; gap: .95rem; align-content: start; min-width: 0; }
.news-results { display: grid; gap: .95rem; }
.news-story, .news-brief, .news-search, .news-calendar, .news-empty { background: var(--news-card); border: 1px solid var(--news-line); border-radius: 13px; }
.news-story { padding: clamp(1rem, 2.5vw, 1.65rem); }
.news-lead { border-top: 3px solid var(--news-link); }
.news-story h2 { font-size: 1.35rem; line-height: 1.18; letter-spacing: -.025em; margin: .7rem 0 .5rem; overflow-wrap: anywhere; }
.news-lead h2 { font-size: clamp(1.55rem, 3.1vw, 2.35rem); }
.news-story h2 a:hover { color: var(--news-link); text-decoration: underline; }
.news-story p, .news-coverage p { color: var(--news-muted); line-height: 1.6; margin: .8rem 0; white-space: pre-line; overflow-wrap: anywhere; }
.news-meta, .news-source, .news-tags, .news-story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem .62rem; }
.news-topic, .news-currency, .news-tags button { border: 0; border-radius: 6px; background: var(--news-chip); color: var(--news-link); padding: .3rem .5rem; font-size: .74rem; font-weight: 750; }
.news-tags button:hover { text-decoration: underline; }
.news-source, .news-received { color: var(--news-muted); font-size: .78rem; }
.news-source strong { color: var(--news-ink); }
.news-story-actions { margin-top: .9rem; }
.news-story-actions .button { min-height: 36px; }
.news-received { display: block; margin-top: .85rem; }
.news-priority, .event-impact { color: var(--news-muted); font-size: .74rem; font-weight: 750; }
.news-priority.high, .news-priority.breaking, .event-impact.high { color: var(--news-impact); }
.news-search { padding: .82rem; }
.news-search label, .news-filters label { color: var(--news-muted); font-size: .8rem; font-weight: 700; }
.news-search > div { display: flex; gap: .5rem; margin-top: .35rem; }
.news-search input, .news-filters input, .news-filters select { background: var(--news-card); color: var(--news-ink); border: 1px solid var(--news-line); min-width: 0; border-radius: 8px; padding: .53rem .55rem; width: 100%; font: inherit; }
.news-workspace .button.ghost { background: var(--news-card); border-color: var(--news-line); color: var(--news-link); }
.news-workspace .button.ghost:hover, .news-workspace .button.ghost[aria-pressed="true"] { background: var(--news-chip); color: var(--news-link); }
.news-brief { padding: 1rem; }
.news-brief h2, .news-section-head h2 { margin: 0 0 .45rem; font-size: 1.13rem; letter-spacing: -.02em; }
.news-brief > a { display: flex; align-items: start; gap: .6rem; border-top: 1px solid var(--news-line); padding: .7rem 0; font-size: .86rem; }
.news-brief > a:hover, .event-main a:hover { color: var(--news-link); text-decoration: underline; }
.news-brief small, .event-main small { display: block; color: var(--news-muted); margin-top: .15rem; }
.news-brief .news-calendar-link { align-items: center; padding-bottom: 0; color: var(--news-link); font-weight: 700; }
.news-filter-note, .news-brief p, .news-section-head p, .news-empty p { margin: .15rem 0 0; font-size: .88rem; color: var(--news-muted); line-height: 1.52; }
.news-empty { padding: 1.25rem; }
.news-back { margin: 0 0 .7rem; }
.news-calendar { padding: clamp(.75rem, 2vw, 1.4rem); }
.news-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; margin: 1rem 0 1.15rem; }
.news-filters select, .news-filters input { display: block; margin-top: .25rem; }
.news-filters .status-error { width: 100%; }
.news-custom:not([hidden]) { display: flex; flex-wrap: wrap; gap: .55rem; }
.news-day { border: 1px solid var(--news-line); border-radius: 10px; margin: .8rem 0; overflow: hidden; }
.news-day > h3 { margin: 0; padding: .65rem .8rem; border-bottom: 1px solid var(--news-line); background: var(--news-strong); font-size: .9rem; }
.news-event { display: grid; grid-template-columns: minmax(98px, .7fr) minmax(155px, 1.35fr) minmax(200px, 1.35fr) auto; align-items: center; gap: .65rem 1rem; padding: .78rem .85rem; }
.news-event + .news-event { border-top: 1px solid var(--news-line); }
.event-time time { display: block; font-weight: 750; font-variant-numeric: tabular-nums; }
.event-main h3 { margin: 0; font-size: .96rem; }
.event-main a { display: inline-flex; align-items: center; gap: .25rem; font-size: .76rem; color: var(--news-link); margin-top: .29rem; }
.event-values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 0; gap: .5rem; }
.event-values dt { color: var(--news-muted); font-size: .72rem; }
.event-values dd { margin: .25rem 0 0; font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.event-remind { justify-self: start; min-height: 34px; font-size: .78rem; }
.news-alert-list a, .news-edit-row { padding: .7rem 0; border-bottom: 1px solid var(--outline); }
.news-alert-list a { display: block; }
.news-alert-list a small, .news-edit-row small { display: block; color: var(--muted); margin-top: .25rem; }
.news-unread { display: inline-block; width: .45rem; height: .45rem; background: var(--accent); border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.news-edit-row { display: flex; gap: .45rem; align-items: center; }
.news-edit-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.news-edit-list h3 { margin-top: 1.05rem; }
.news-edit-list p, .news-explanation p { overflow-wrap: anywhere; white-space: pre-line; }
.news-checks { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.comment.nested-reply { margin-left: 1rem; padding-left: .8rem; border-left: 2px solid var(--outline); }
.reply-context { display: block; margin-top: .25rem; color: var(--muted); }
.reply-tools { display: flex; gap: .75rem; margin-top: .35rem; }
.form .news-checks label { display: inline-flex; gap: .3rem; align-items: center; }
.form .news-checks input { width: auto; }
@media (max-width: 1020px) {
  .news-masthead { align-items: start; flex-direction: column; }
  .news-utilities { justify-content: start; }
  .news-event { grid-template-columns: minmax(88px, .65fr) minmax(0, 1.35fr) minmax(182px, 1fr); }
  .event-remind { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .news-feed-workspace { grid-template-columns: minmax(0,1fr); }
  .news-navigation { gap: .1rem .78rem; }
  .news-navigation a { font-size: .79rem; padding-block: .65rem .5rem; }
}
@media (max-width: 530px) {
  .news-event { grid-template-columns: minmax(82px, .6fr) minmax(0, 1.4fr); }
  .event-values { grid-column: 1 / -1; padding-top: .3rem; }
  .event-remind { grid-column: 1 / -1; }
  .news-filters > label { flex: 1 1 43%; }
}

.session-board { display: grid; gap: 1rem; }
.session-market { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.15rem; border-left: 4px solid var(--outline); }
.session-market.market-open { border-left-color: var(--positive); }
.session-market.market-closed { border-left-color: var(--negative); }
.session-market h2 { margin-top: .15rem; }
.session-market p { color: var(--muted); font-size: .86rem; margin-top: .3rem; max-width: 52ch; }
.session-countdown { text-align: right; flex: none; }
.session-countdown span { display: block; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.session-countdown strong { display: block; font-size: 1.55rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.session-countdown small { color: var(--muted); font-size: .74rem; }
.session-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.session-card { display: grid; gap: .7rem; padding: 1rem; align-content: start; }
.session-card-open { border-color: #8fd0b4; box-shadow: 0 0 0 1px #8fd0b433, 0 6px 18px #1d284b10; }
.session-card-head { display: flex; align-items: flex-start; gap: .6rem; }
.session-card-title { min-width: 0; flex: 1; }
.session-card-title h2 { font-size: 1.02rem; }
.session-card-title small { color: var(--muted); font-size: .74rem; }
.session-card-head .session-status { flex: none; }
.session-local { display: grid; gap: .05rem; }
.session-local strong { font-size: 1.72rem; line-height: 1.05; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.session-local span { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.session-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .7rem; margin: 0; }
.session-facts dt { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.session-facts dd { margin: .12rem 0 0; font-size: .83rem; font-weight: 700; overflow-wrap: anywhere; }
.session-next { border-top: 1px solid var(--outline); padding-top: .55rem; display: grid; gap: .1rem; font-size: .78rem; color: var(--muted); }
.session-next span { font-weight: 750; letter-spacing: .03em; text-transform: uppercase; font-size: .66rem; }
.session-next strong { color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums; }
.session-notes { padding: 1rem 1.1rem; color: var(--muted); font-size: .86rem; }
.session-notes h2 { margin-bottom: .45rem; }
.session-notes p { margin-top: .35rem; }
.session-notes strong { color: var(--text); }
@media (max-width: 1080px) {
  .session-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .session-market { align-items: flex-start; flex-direction: column; }
  .session-countdown { text-align: left; }
  .session-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Theme variants — applied via data-theme on <html> */
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0d121a;
  --surface: #141c27;
  --surface-raised: #1a2532;
  --outline: #293543;
  --text: #eff4f8;
  --muted: #a6b4c4;
  --accent: #b6ed70;
  --accent-ink: #18280e;
  --accent-soft: #233529;
  --positive: #82df9e;
  --negative: #faa1a0;
}
:root[data-theme="black"] {
  color-scheme: dark;
  --background: #050505;
  --surface: #0b0b0d;
  --surface-raised: #111114;
  --outline: #29292f;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --accent: #a3e635;
  --accent-ink: #1a2e05;
  --accent-soft: #1c2410;
  --positive: #4ade80;
  --negative: #f87171;
}

.journal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.journal-stat { background: var(--surface); border: 1px solid var(--outline); border-radius: 12px; padding: .7rem .9rem; }
.journal-stat strong { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.journal-stat span { color: var(--muted); font-size: .78rem; }

.pill-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pill-tabs .pill.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.cal-head { color: var(--muted); font-size: .72rem; text-align: center; padding: .3rem 0; }
.cal-cell { min-height: 58px; border: 1px solid var(--outline); border-radius: 8px; padding: .35rem .45rem; font-size: .78rem; display: flex; flex-direction: column; gap: .1rem; }
.cal-cell.empty { border: none; }
.cal-cell.pos { border-color: var(--positive); }
.cal-cell.neg { border-color: var(--negative); }
.cal-cell span { font-size: .7rem; }

.equity-curve { width: 100%; height: auto; }
.curve-line { stroke: var(--accent); stroke-width: 2; }
.curve-zero { stroke: var(--outline); stroke-width: 1; stroke-dasharray: 4 4; }

.journal-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.journal-table th { text-align: left; color: var(--muted); font-weight: 600; padding: .4rem .5rem; border-bottom: 1px solid var(--outline); }
.journal-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--outline); }
.journal-table tr.dup { opacity: .45; }
td.pos, .pos { color: var(--positive); }
td.neg, .neg { color: var(--negative); }

.journal-shots { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.journal-shots a { display: block; }
.journal-shots img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--outline); }
