:root {
  color-scheme: dark;
  --canvas: #0b0d10;
  --sidebar: #101216;
  --surface: #15181d;
  --surface-raised: #1b1e24;
  --line: rgba(255,255,255,.085);
  --line-soft: rgba(255,255,255,.055);
  --ink: #f2f3f5;
  --secondary: #b1b5bf;
  --muted: #7c828e;
  --accent: #7b84f5;
  --accent-hover: #a0a7ff;
  --green: #65bf92;
  --red: #e58b87;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; font-size: 14px; font-feature-settings: "cv01", "ss03"; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, dialog:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: #4f59b3; color: white; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: 0 0 252px; height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 27px 13px 18px; background: var(--sidebar); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; padding: 1px 13px 29px; }
.brand b { display: block; font-size: 25px; line-height: 1; letter-spacing: -.075em; font-weight: 590; }
.brand-period, .title-stop { color: var(--accent); }
.brand small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; letter-spacing: .005em; }
.brand-mark { display: flex; align-items: center; gap: 3px; height: 32px; width: 33px; background: url('/pulse-mark.svg') center / contain no-repeat; }
.brand-mark i { display: none !important; }
.brand-mark i { width: 4px; display: block; background: #a5aaf9; border-radius: 2px; }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 10px; opacity: .6; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 19px; opacity: .8; }
.brand-mark i:nth-child(3) { height: 30px; }
.workspace-label { margin: 0 8px 28px; padding: 13px 13px; display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 7px; color: #c4c7d0; font-size: 10px; font-weight: 590; letter-spacing: .1em; white-space: nowrap; }
.workspace-label span { color: var(--muted); font-variant-numeric: tabular-nums; }
.side-heading { padding: 0 12px 10px; color: #666c77; font-size: 10px; font-weight: 590; letter-spacing: .15em; }
.side-heading-groups { padding-top: 33px; }
.side-heading-bots { padding-top: 24px; }
.bot-side-note { margin: 6px 12px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.side-link, .group-link, .add-side { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #a5a9b2; text-align: left; font-size: 12px; font-weight: 510; }
.side-link:hover, .group-link:hover, .add-side:hover { background: rgba(255,255,255,.045); color: var(--ink); }
.side-link.active, .group-link.active { background: #22262f; box-shadow: inset 2px 0 var(--accent); color: var(--ink); }
.side-symbol { color: var(--accent); font-size: 17px; width: 15px; text-align: center; }
.side-count { margin-left: auto; color: #9fa3ad; font-size: 11px; font-variant-numeric: tabular-nums; }
.group-dot { flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.group-link:nth-child(3n+2) .group-dot { background: #8fc7aa; }
.group-link:nth-child(3n) .group-dot { background: #d2aa7e; }
.group-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-side { margin-top: 8px; color: #a9afff; }
.catalog-side-link { margin-top: 18px; }
.add-side span { font-size: 19px; line-height: 1; }
.side-bottom { margin-top: auto; padding: 16px 12px 2px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; color: #9196a1; font-size: 11px; }
.side-bottom a { margin-left: auto; color: var(--muted); font-size: 16px; }
.side-bottom a:hover { color: var(--accent-hover); }
.live-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(101,191,146,.1); }
.main { flex: 1; min-width: 0; }
.topbar { height: 62px; padding: 0 clamp(22px,3.6vw,56px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #0d0f12; }
.breadcrumb { color: #999da8; font-size: 10px; font-weight: 590; letter-spacing: .14em; white-space: nowrap; }
.breadcrumb span { color: #4e535e; margin: 0 11px; }
.top-actions { display: flex; align-items: center; gap: 15px; }
.private-label { display: flex; align-items: center; gap: 8px; color: #a6cbb3; font-size: 11px; white-space: nowrap; }
.private-label .live-dot { width: 5px; height: 5px; flex-basis: 5px; }
.last-sync { color: var(--muted); font-size: 11px; white-space: nowrap; }
.icon-button { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.025); color: #c4c7ce; font-size: 21px; line-height: 1; }
.icon-button:hover, .logout-button:hover { border-color: #555c6c; color: var(--ink); }
.icon-button.spinning { animation: spin 1s linear infinite; }
.icon-button:disabled { opacity: .45; cursor: not-allowed; }
.logout-button { border: 1px solid var(--line); border-radius: 6px; background: transparent; color: #989da7; padding: 8px 11px; font-size: 11px; }
@keyframes spin { to { transform: rotate(360deg); } }
.content { max-width: 1560px; margin: 0 auto; padding: 43px clamp(22px,3.6vw,56px) 27px; }
.title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 31px; }
.eyebrow, .panel-kicker { color: #a4a9ff; font-size: 10px; letter-spacing: .13em; font-weight: 590; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-line { width: 14px; height: 1px; background: var(--accent); }
h1, h2, p { margin-top: 0; }
h1 { margin: 10px 0 7px; font-size: clamp(29px,3.2vw,46px); font-weight: 510; line-height: 1.07; letter-spacing: -.045em; }
.lead { color: #9a9fa9; font-size: 13px; line-height: 1.5; margin: 0; }
.button { min-height: 39px; padding: 9px 14px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 590; white-space: nowrap; }
.button-primary { background: #666fd5; color: #fff; }
.button-primary:hover { background: #7c84ec; }
.button-primary span { font-size: 16px; font-weight: 400; margin-right: 5px; vertical-align: -1px; }
.notice { border: 1px solid rgba(123,132,245,.25); background: #1b2040; color: #d8dbff; border-radius: 7px; padding: 13px 16px; margin-bottom: 20px; line-height: 1.5; font-size: 12px; }
.notice.error { border-color: rgba(229,139,135,.3); background: #321d20; color: #f0bbb8; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.toolbar-left { display: flex; align-items: center; gap: 15px; }
.toolbar-caption { color: #767b85; font-size: 10px; letter-spacing: .11em; font-weight: 590; white-space: nowrap; }
.period-control { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #171a1f; }
.period-control button { border: 0; border-radius: 5px; padding: 7px 12px; background: transparent; color: #9297a1; font-size: 11px; font-weight: 510; white-space: nowrap; }
.period-control button:hover { color: var(--ink); }
.period-control button.selected { background: #30343e; color: #fff; }
.toolbar-meta { color: #6d727c; font-size: 11px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--line); margin-bottom: 17px; }
.metric { min-width: 0; min-height: 151px; padding: 20px 21px 17px; background: var(--surface); }
.metric-primary { background: #1c2030; }
.metric-label { display: flex; gap: 7px; align-items: center; color: #b5b8c1; font-size: 11px; white-space: nowrap; }
.metric-index { color: #676d79; font-size: 10px; font-variant-numeric: tabular-nums; }
.metric-arrow { margin-left: auto; color: #696f7d; font-size: 13px; }
.metric strong { display: block; margin: 22px 0 6px; font-size: clamp(29px,2.5vw,42px); line-height: 1; letter-spacing: -.045em; font-weight: 510; font-variant-numeric: tabular-nums; }
.metric-primary strong { color: #aab0ff; }
.metric small { color: #858b96; font-size: 11px; line-height: 1.4; }
.insight { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; align-items: center; gap: 22px; padding: 18px 22px; margin-bottom: 18px; border: 1px solid rgba(123,132,245,.28); border-radius: 8px; background: linear-gradient(100deg,#202439,#191d2b 55%,#171a20); }
.insight-badge { display: flex; flex-direction: column; gap: 11px; color: #aeb4ff; font-size: 10px; font-weight: 590; letter-spacing: .1em; }
.insight-badge span { font-size: 21px; font-weight: 400; letter-spacing: 0; }
.insight-copy { min-width: 0; }
.insight-copy strong { display: block; color: #e8e9f7; font-size: 16px; font-weight: 590; letter-spacing: -.02em; line-height: 1.3; }
.insight-copy p { margin: 5px 0 0; color: #adb1bf; font-size: 12px; line-height: 1.45; }
.insight > a { align-self: center; padding: 9px 0 9px 12px; color: #c6caff; font-size: 11px; font-weight: 590; white-space: nowrap; }
.insight > a:hover { color: #fff; }
.insight > a span { margin-left: 6px; }
.section-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(310px,.9fr); gap: 17px; margin-bottom: 17px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.panel-head { min-height: 82px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 21px 23px 16px; }
.panel-kicker { color: #858bd6; }
.panel h2 { margin: 7px 0 0; font-size: 19px; font-weight: 510; letter-spacing: -.025em; }
.panel-aside { padding-top: 2px; color: #6f7480; font-size: 10px; white-space: nowrap; }
.chart-wrap { min-height: 250px; padding: 2px 23px 0; }
.chart-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 23px 13px; }
.chart-tabs button { border: 1px solid #353b4a; border-radius: 5px; padding: 7px 10px; background: #1b1f29; color: #aeb4c3; font-size: 11px; }
.chart-tabs button:hover, .chart-tabs button[aria-pressed="true"] { border-color: #868ff5; color: #f0f1ff; background: #292e4d; }
.pulse-chart-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.pulse-chart-line { fill: none; stroke: #989fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pulse-chart-cursor { stroke: #b9bdff; stroke-width: 1; stroke-dasharray: 3 4; }
.pulse-chart-active { fill: #dfe1ff; stroke: #353d73; stroke-width: 3; }
.pulse-chart-latest { fill: #aeb4ff; stroke: #252a48; stroke-width: 3; }
.pulse-chart-tooltip { position: absolute; z-index: 2; top: 3px; transform: translateX(-50%); padding: 7px 9px; border: 1px solid #656da3; border-radius: 5px; background: #262b41; color: #f1f2ff; font-size: 11px; white-space: nowrap; pointer-events: none; box-shadow: 0 9px 26px #0008; }
.pulse-chart-axis { display: flex; justify-content: space-between; gap: 10px; padding: 0 8% 5px; color: #8c93a3; font-size: 10px; }
.chart-wrap, .post-dialog-chart { position: relative; }
.trend-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.trend-grid { stroke: #30343c; stroke-width: 1; }
.trend-area { fill: rgba(123,132,245,.11); }
.trend-line { fill: none; stroke: #8d95ff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.trend-point { fill: #a4aaff; stroke: #171b29; stroke-width: 3; }
.chart-label { fill: #787e89; font: 11px Inter, "Segoe UI", sans-serif; }
.panel-foot { margin: 6px 0 0; padding: 13px 23px 15px; border-top: 1px solid var(--line-soft); color: #858b96; font-size: 11px; line-height: 1.5; }
.chart-empty, .empty { color: #828894; font-size: 12px; line-height: 1.55; }
.chart-empty { height: 100%; display: grid; place-items: center; padding: 22px; text-align: center; }
.leaders { padding: 0 23px 19px; }
.leader { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 70px; border-top: 1px solid var(--line-soft); }
.leader-thumb { width: 44px; height: 44px; overflow: hidden; display: grid; place-items: center; border: 1px solid #343949; border-radius: 6px; background: linear-gradient(140deg,#252a40,#1a1d26); }
.leader-thumb img { width: 100%; height: 100%; object-fit: contain; }
.leader-thumb.image-failed::after { content: '↗'; color: #8d96df; font-size: 20px; }
.leader-thumb.image-failed img { display: none; }
.leader-rank { color: #636975; font-size: 13px; font-variant-numeric: tabular-nums; }
.leader:first-child .leader-rank { color: #a9afff; }
.leader-main { min-width: 0; }
.leader-title { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #d8dae0; font-size: 12px; font-weight: 590; line-height: 1.4; text-align: left; }
.leader-title:hover, .post-link:hover, .export-link:hover { color: var(--accent-hover); }
.leader-meta { color: #737985; font-size: 10px; margin-top: 4px; }
.leader-value { text-align: right; color: #e9eaf0; font-size: 15px; font-weight: 590; font-variant-numeric: tabular-nums; }
.leader-value small { display: block; margin-top: 3px; color: #747a84; font-size: 9px; font-weight: 400; }
.leaders .empty { padding-top: 25px; }
.group-panel { margin-bottom: 17px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 720px; }
th { padding: 12px 22px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #181b20; color: #777d87; font-size: 10px; font-weight: 590; text-align: left; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 22px; border-bottom: 1px solid var(--line-soft); color: #a0a5af; font-size: 12px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.025); }
.table-group { color: #dedfe5; font-size: 12px; font-weight: 590; }
.group-open { padding: 0; border: 0; background: transparent; color: #dedfe5; font-weight: 590; text-align: left; }
.group-open:hover { color: #b5baff; }
.group-growing { background: rgba(101,191,146,.035); }
.growth-badge { display: inline-block; margin-top: 5px; padding: 3px 7px; border: 1px solid rgba(101,191,146,.28); border-radius: 99px; background: rgba(101,191,146,.085); color: #94d9b2; font-size: 10px; font-weight: 560; }
.table-group .growth-badge { display: block; width: fit-content; }
.table-group small { display: block; margin-top: 5px; color: #747b86; font-size: 10px; font-weight: 400; }
.table-number { color: #c1c4cc; font-variant-numeric: tabular-nums; }
.table-empty { padding: 33px 20px !important; text-align: center; color: #858b95; }
.posts-head { align-items: center; }
.posts-head h2 span { color: #828896; font-size: 12px; vertical-align: middle; }
.export-link { color: #c0c5ff; font-size: 11px; white-space: nowrap; }
.export-link span { margin-left: 5px; }
.post-tools { display: flex; justify-content: space-between; gap: 16px; padding: 0 22px 16px; }
.search { display: flex; align-items: center; gap: 9px; width: 100%; max-width: 360px; min-width: 200px; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: #8a8f9a; background: #111419; }
.search span { font-size: 21px; line-height: 1; }
.search input { min-width: 0; width: 100%; padding: 0; outline: 0; border: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search input::placeholder { color: #717783; }
.sort-label { display: flex; align-items: center; gap: 10px; color: #838994; font-size: 10px; white-space: nowrap; }
.sort-label select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #111419; color: #d5d8df; font-size: 11px; }
.signal-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 12px 22px; border-top: 1px solid var(--line-soft); color: #aeb4c0; font-size: 11px; }
.signal-controls label { display: inline-flex; align-items: center; gap: 7px; }
.signal-controls select { padding: 6px 8px; border: 1px solid #444a5b; border-radius: 5px; background: #1c2029; color: #e4e6ff; font: inherit; }
.signal-only input { accent-color: var(--accent); }
.signal-summary { margin-left: auto; color: #868d9c; }
.posts-table th:first-child { width: 45%; }
.posts-table td { padding-top: 15px; padding-bottom: 15px; }
.post-link { display: block; max-width: 530px; color: #e0e1e7; font-size: 12px; line-height: 1.42; white-space: normal; font-weight: 510; }
.post-detail-trigger { padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; font-family: inherit; }
.post-external { display: inline-block; margin-top: 6px; color: #aab0ff; font-size: 10px; }
.post-external:hover { color: var(--accent-hover); }
.post-relative { color: #b1b7ff; font-weight: 590; }
.post-signal { color: #e5e7ff; background: #32375c; }
.post-meta { margin-top: 5px; color: #8a909b; font-size: 11px; }
.signal-track { width: 100%; max-width: 340px; height: 2px; margin-top: 10px; background: #292d39; }
.signal-fill { min-width: 2px; height: 2px; background: #8d95ff; }
.up { color: var(--green); font-weight: 590; }
.down { color: var(--red); font-weight: 590; }
.no-data { color: #6b717d; }
.table-footer { padding: 12px 22px; border-top: 1px solid var(--line-soft); color: #7a808b; font-size: 10px; }
.group-detail { margin-bottom: 17px; scroll-margin-top: 20px; }
.group-detail-head { align-items: center; }
.group-detail-summary { max-width: 740px; margin: 8px 0 0; color: #9299a6; font-size: 11px; line-height: 1.55; }
.group-post-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; padding: 0 22px 19px; }
.group-post-card { min-width: 0; overflow: hidden; border: 1px solid #303643; border-radius: 8px; background: #1b1f27; transition: border-color .18s ease, transform .18s ease; }
.group-post-card:hover { border-color: #656db2; transform: translateY(-2px); }
.group-post-card.is-growing { border-color: rgba(101,191,146,.46); }
.group-post-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.group-post-media { width: 100%; height: 170px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 35%,#303753,#222734 50%,#1c2029); }
.group-post-media img { width: 100%; height: 100%; object-fit: contain; }
.group-post-media.image-failed img { display: none; }
.group-post-media.image-failed::after { content: 'Фото пока недоступно'; color: #8991a2; font-size: 11px; }
.group-post-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 9px; width: 100%; padding: 14px; }
.group-post-date { color: #9aa2b3; font-size: 10px; }
.group-post-title { display: -webkit-box; min-height: 50px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #e8eaf0; font-size: 12px; line-height: 1.4; font-weight: 590; }
.group-post-stats { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; color: #a4acbe; font-size: 10px; }
.group-detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line-soft); color: #9299a6; font-size: 11px; }
.group-detail-footer button { border: 1px solid #4a527a; border-radius: 5px; padding: 7px 10px; background: #282d44; color: #d8dcff; font-size: 11px; }
.group-detail-footer button:hover { background: #353c5d; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 24px 0 0; color: #737984; font-size: 10px; line-height: 1.5; }
.footer a { color: #aab0ff; font-weight: 700; }
.footer span:first-child { color: #8e93b1; font-weight: 590; letter-spacing: .12em; white-space: nowrap; }
.add-dialog { width: min(440px,calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid #414756; border-radius: 10px; background: #1b1e25; color: var(--ink); box-shadow: 0 25px 90px rgba(0,0,0,.5); }
.add-dialog::backdrop { background: rgba(0,0,0,.72); }
.add-dialog form { position: relative; padding: 31px; }
.add-dialog h2 { margin: 10px 0; font-size: 24px; font-weight: 510; letter-spacing: -.025em; }
.add-dialog p { color: #a3a8b2; line-height: 1.5; font-size: 12px; }
.add-dialog label { display: block; margin: 22px 0 7px; color: #c9ccd5; font-size: 11px; font-weight: 590; }
.add-dialog input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #3b414d; border-radius: 6px; background: #111419; color: var(--ink); }
.add-dialog .button { width: 100%; margin-top: 16px; }
.dialog-close { position: absolute; top: 14px; right: 18px; border: 0; background: transparent; color: #8d929c; font-size: 23px; }
.dialog-error { min-height: 14px; margin-top: 8px; color: #e9928d; font-size: 11px; }
.post-dialog { width: min(820px,calc(100vw - 24px)); max-width: none; max-height: min(90vh,900px); padding: 0; border: 1px solid #414756; border-radius: 10px; background: #171a20; color: var(--ink); box-shadow: 0 25px 90px rgba(0,0,0,.6); }
.post-dialog::backdrop { background: rgba(2,4,8,.78); }
.post-dialog-inner { position: relative; padding: clamp(20px,3vw,34px); }
.post-dialog h2 { max-width: 700px; margin: 14px 24px 7px 0; font-size: clamp(23px,3vw,31px); font-weight: 510; line-height: 1.18; letter-spacing: -.035em; }
.post-dialog-meta { margin: 0 0 17px; color: #8f96a4; font-size: 11px; }
.post-dialog-media { display: grid; place-items: center; max-height: 320px; margin: 0 0 18px; overflow: hidden; border: 1px solid #323746; border-radius: 8px; background: #202533; }
.post-dialog-media img { max-width: 100%; max-height: 320px; object-fit: contain; }
.post-dialog-text { margin: 0 0 22px; color: #cbd0da; line-height: 1.58; white-space: pre-wrap; }
.post-dialog-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin-bottom: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.post-detail-metric { min-width: 0; padding: 14px 16px; background: #1d2128; }
.post-detail-metric span { display: block; margin-bottom: 9px; color: #8e95a3; font-size: 10px; }
.post-detail-metric strong { color: #edeef6; font-size: 20px; font-weight: 520; font-variant-numeric: tabular-nums; }
.post-dialog-baseline { padding: 17px 19px; border: 1px solid #3b4167; border-radius: 7px; background: #20243a; }
.post-baseline-label { display: block; margin-bottom: 8px; color: #a9b0ff; font-size: 10px; font-weight: 650; letter-spacing: .11em; }
.post-dialog-baseline strong { display: block; font-size: 19px; font-weight: 520; }
.post-dialog-baseline p { margin: 8px 0 0; color: #b7bed3; font-size: 11px; line-height: 1.5; }
.post-dialog-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 26px; }
.post-dialog-chart-head h3 { margin: 0; font-size: 16px; font-weight: 540; }
.post-dialog-chart-head span { color: #8b91a0; font-size: 10px; }
.post-chart-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.post-chart-tabs button { padding: 7px 11px; border: 1px solid #373c4a; border-radius: 5px; background: #1d2129; color: #9ca3b1; font: inherit; font-size: 11px; cursor: pointer; }
.post-chart-tabs button[aria-pressed="true"] { border-color: #858def; background: #2b3051; color: #f0f1ff; }
.post-chart-tabs button:hover { color: #fff; }
.post-dialog-chart { margin: 8px 0 15px; }
.post-trend-svg { display: block; width: 100%; height: auto; }
.post-trend-line { fill: none; stroke: #959dff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.post-trend-point { fill: #aeb4ff; stroke: #171a20; stroke-width: 2; }
.post-chart-labels { display: flex; justify-content: space-between; gap: 12px; color: #9299a8; font-size: 10px; font-variant-numeric: tabular-nums; }
.post-chart-empty { padding: 32px 16px; border: 1px dashed #3a404e; border-radius: 6px; color: #9aa1af; font-size: 12px; text-align: center; }
.post-chart-note { margin: 7px 0 0; color: #8d94a2; font-size: 10px; }
.post-dialog-freshness { padding-top: 14px; border-top: 1px solid var(--line); color: #9299a8; font-size: 11px; line-height: 1.5; }
.post-dialog-link { display: inline-block; margin-top: 4px; color: #b7bcff; font-size: 12px; }
.post-dialog-link:hover { color: #e3e5ff; }
.auth-page { position: relative; min-height: 100vh; display: grid; place-items: center; overflow-x: hidden; background: radial-gradient(circle at 21% 46%,rgba(101,111,213,.13),transparent 38%),radial-gradient(circle at 84% 9%,#171a2a 0,transparent 40%),var(--canvas); }
.auth-shell { width: min(1040px,calc(100% - 48px)); display: grid; grid-template-columns: minmax(0,1fr) 390px; gap: clamp(40px,8vw,110px); align-items: center; padding: 44px 0; }
.auth-intro { min-width: 0; }
.auth-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 32px; color: #f4f5ff; font-size: 27px; font-weight: 690; letter-spacing: -.075em; text-decoration: none; }
.auth-brand img { display: block; width: 34px; height: 34px; }
.auth-brand-dot { color: #aeb4ff; }
.auth-brand:focus-visible { outline: 2px solid #aeb4ff; outline-offset: 6px; border-radius: 4px; }
.auth-visual { position: relative; height: 178px; margin-bottom: 36px; overflow: hidden; isolation: isolate; border: 1px solid rgba(154,163,233,.17); border-radius: 18px; background: linear-gradient(120deg,rgba(65,72,126,.17),rgba(13,16,25,.68) 70%),repeating-linear-gradient(0deg,transparent 0,transparent 30px,rgba(162,174,226,.045) 31px),repeating-linear-gradient(90deg,transparent 0,transparent 43px,rgba(162,174,226,.045) 44px); }
.auth-visual-glow { position: absolute; inset: -35% 20%; border-radius: 50%; background: radial-gradient(circle,rgba(118,132,241,.21),transparent 58%); animation: auth-pulse-glow 3.6s ease-in-out infinite; }
.auth-wave { position: absolute; inset: 2px 0 0; width: 100%; height: calc(100% - 24px); overflow: visible; }
.auth-wave path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.auth-wave-track { stroke: rgba(144,154,211,.3); stroke-width: 2; }
.auth-wave-beat { stroke: url(#auth-pulse-gradient); stroke-width: 3; stroke-dasharray: 150 1100; stroke-dashoffset: 850; filter: drop-shadow(0 0 7px rgba(150,165,255,.65)); animation: auth-pulse-travel 3.6s linear infinite; }
.auth-wave-label { position: absolute; bottom: 13px; left: 18px; color: #8d94bd; font-size: 9px; font-weight: 650; letter-spacing: .18em; }
@keyframes auth-pulse-travel { from { stroke-dashoffset: 850; } to { stroke-dashoffset: -650; } }
@keyframes auth-pulse-glow { 0%,100% { opacity: .48; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .auth-wave-beat, .auth-visual-glow { animation: none; } .auth-wave-beat { stroke-dasharray: none; stroke-dashoffset: 0; } }
.auth-caption { color: #9da3ff; font-size: 10px; font-weight: 590; letter-spacing: .16em; }
.auth-intro h1 { margin: 18px 0 17px; font-size: clamp(47px,5.3vw,72px); font-weight: 510; letter-spacing: -.06em; line-height: .99; }
.auth-intro h1 em { color: #969dff; font-style: normal; }
.auth-intro p { max-width: 390px; color: #969ba7; font-size: 15px; line-height: 1.55; }
.auth-rule { margin-top: 40px; display: flex; gap: 13px; align-items: center; color: #707681; font-size: 11px; }
.auth-rule span { color: #a5abff; font-variant-numeric: tabular-nums; }
.auth-card { padding: 35px; border: 1px solid #3b4055; border-radius: 18px; background: linear-gradient(145deg,#1b1e2b,#171a20 68%); box-shadow: 0 24px 80px rgba(0,0,0,.24),0 0 44px rgba(104,113,217,.06); }
.auth-card-top { display: flex; gap: 10px; align-items: center; color: #adb2c0; font-size: 10px; font-weight: 590; letter-spacing: .12em; }
.auth-card h2 { margin: 29px 0 7px; font-size: 29px; font-weight: 510; letter-spacing: -.04em; }
.auth-card > p { color: #9298a4; font-size: 12px; line-height: 1.5; }
.auth-card .auth-error { display: none; margin: 17px 0 0; padding: 9px 11px; color: #eeb7b3; background: #342125; border: 1px solid #614044; border-radius: 5px; }
.auth-page.error .auth-error { display: block; }
.auth-card form { margin-top: 29px; }
.auth-card label { display: block; margin: 17px 0 7px; color: #c8cbd2; font-size: 11px; font-weight: 590; }
.auth-card input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #3c424e; border-radius: 6px; background: #111419; color: var(--ink); }
.auth-card form button { width: 100%; height: 42px; margin-top: 25px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 6px; background: #666fd5; color: #fff; font-size: 12px; font-weight: 590; }
.auth-card form button:hover, .auth-card form button:focus-visible { background: #7c84ec; }
.auth-card form button span { font-size: 16px; font-weight: 400; }
.auth-footer { margin-top: 28px; padding-top: 17px; border-top: 1px solid var(--line); color: #777d88; font-size: 10px; }
.consent-shell { width: min(720px,calc(100% - 32px)); padding: 38px 0 48px; }
.consent-shell .auth-brand { margin-bottom: 22px; }
.consent-card h1 { margin: 25px 0 9px; font-size: clamp(27px,4vw,38px); font-weight: 540; line-height: 1.1; letter-spacing: -.045em; }
.consent-card > p { color: #aeb4c3; font-size: 13px; line-height: 1.6; }
.consent-document { max-height: min(44vh,420px); overflow: auto; margin-top: 23px; padding: 20px 22px; border: 1px solid #394253; border-radius: 10px; background: #11151e; scrollbar-color: #626aa5 #11151e; }
.consent-document h2 { margin: 0 0 13px; font-size: 18px; line-height: 1.3; }
.consent-document p { margin: 12px 0 0; color: #c2c8d4; font-size: 13px; line-height: 1.65; }
.consent-document a, .consent-card a, .legal-document a { color: #a9b5ff; text-underline-offset: 3px; }
.consent-card .consent-check { display: flex; gap: 13px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.55; cursor: pointer; }
.consent-card .consent-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #8790f2; }
.legal-page { min-height: 100vh; background: radial-gradient(circle at 20% 0%,rgba(107,117,220,.12),transparent 36%),var(--canvas); }
.legal-shell { width: min(860px,calc(100% - 36px)); margin: 0 auto; padding: 35px 0 70px; }
.legal-shell .auth-brand { margin-bottom: 25px; }
.legal-document { padding: clamp(24px,5vw,52px); border: 1px solid #394253; border-radius: 18px; background: #171b24; }
.legal-document h1 { margin: 13px 0 8px; font-size: clamp(30px,4.6vw,46px); line-height: 1.1; letter-spacing: -.05em; }
.legal-date { color: #939bb0; font-size: 12px; }
.legal-document h2 { margin: 35px 0 10px; font-size: 21px; letter-spacing: -.02em; }
.legal-document p { color: #c3c8d2; font-size: 14px; line-height: 1.75; }
.legal-bottom { margin-top: 20px; color: #949aa7; font-size: 12px; }
.legal-bottom a { color: #a9b5ff; }
.notification-panel { scroll-margin-top: 24px; }
.notification-status { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 7px 11px; color: var(--secondary); font-size: 11px; }
.notification-status.on { border-color: rgba(101,191,146,.4); color: #9bdfbc; background: rgba(101,191,146,.08); }
.notification-intro { margin: 0 23px 20px; max-width: 710px; color: var(--secondary); font-size: 12px; line-height: 1.6; }
.notification-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); gap: 0; border-top: 1px solid var(--line); }
.notification-form { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 23px; border-right: 1px solid var(--line); }
.notification-switch { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.notification-switch input { width: 19px; height: 19px; accent-color: var(--accent); }
.notification-form fieldset { width: 100%; border: 0; padding: 0; margin: 0; }
.notification-form legend { margin-bottom: 10px; color: var(--secondary); font-size: 11px; font-weight: 650; letter-spacing: .04em; }
.notification-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.notification-groups label { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; color: var(--secondary); font-size: 12px; cursor: pointer; }
.notification-groups label:has(input:checked) { border-color: rgba(123,132,245,.5); background: rgba(123,132,245,.1); color: var(--ink); }
.notification-groups input { accent-color: var(--accent); }
.notification-groups span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-thresholds { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; width: 100%; }
.notification-thresholds label { display: grid; gap: 8px; color: var(--muted); font-size: 11px; }
.notification-thresholds select { width: 100%; min-width: 0; padding: 9px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); color: var(--ink); }
.notification-feedback { color: var(--green); min-height: 1.3em; font-size: 12px; }
.notification-feedback.error { color: var(--red); }
.notification-feed { display: flex; flex-direction: column; min-width: 0; }
.notification-feed-head { display: flex; justify-content: space-between; gap: 12px; padding: 23px 20px 13px; }
.notification-feed-head strong { font-size: 13px; }
.notification-feed-head span { color: var(--muted); font-size: 11px; }
.notification-events { max-height: 335px; overflow: auto; padding: 0 20px 12px; }
.notification-events > p { color: var(--muted); font-size: 12px; }
.notification-event { display: block; border-top: 1px solid var(--line); padding: 13px 0; }
.notification-event strong { display: block; font-size: 12px; line-height: 1.45; }
.notification-event span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.notification-event:hover strong { color: var(--accent-hover); }
.notification-delivery { margin-top: auto; padding: 17px 20px; border-top: 1px solid var(--line); background: rgba(123,132,245,.035); }
.notification-delivery strong { font-size: 11px; color: #a9afff; }
.notification-delivery p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 1160px) {
  .sidebar { width: 218px; flex-basis: 218px; }
  .section-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { min-height: 132px; }
  .group-post-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .auth-page { display: block; }
  .notification-layout { grid-template-columns: 1fr; }
  .notification-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .notification-intro { margin: 0 17px 17px; }
  .notification-form { padding: 17px; }
  .auth-shell { grid-template-columns: 1fr; max-width: 440px; gap: 18px; padding: 28px 0 40px; }
  .auth-intro { padding: 0; }
  .auth-brand { margin-bottom: 19px; }
  .auth-visual { height: 112px; margin-bottom: 21px; border-radius: 14px; }
  .auth-wave { height: calc(100% - 14px); }
  .auth-wave-label { bottom: 9px; font-size: 8px; }
  .auth-intro h1 { font-size: 37px; }
  .auth-intro p, .auth-rule { display: none; }
  .auth-card { padding: 27px; }
  .shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 13px 15px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 0 10px; }
  .brand b { font-size: 22px; }
  .brand-mark { transform: scale(.8); transform-origin: left center; width: 28px; }
  .workspace-label, .sidebar > .side-heading, .sidebar > .add-side, .sidebar > .side-bottom { display: none; }
  .sidebar > .side-link, .sidebar > nav { display: inline-flex; width: auto; vertical-align: middle; }
  .sidebar > nav { max-width: calc(100vw - 175px); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .sidebar > nav::-webkit-scrollbar { display: none; }
  .sidebar > nav .group-link { width: auto; white-space: nowrap; }
  .topbar { padding: 0 17px; height: 50px; }
  .top-actions { gap: 8px; }
  .private-label, .last-sync { display: none; }
  .content { padding: 27px 17px; }
  .title-row { align-items: flex-start; margin-bottom: 27px; }
  .title-row .button { font-size: 0; padding: 7px 11px; min-width: 36px; }
  .title-row .button span { font-size: 20px; margin: 0; }
  .lead { font-size: 12px; }
  .toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .toolbar-left { align-items: flex-start; flex-direction: column; gap: 7px; width: 100%; }
  .period-control { width: 100%; justify-content: space-between; }
  .period-control button { padding: 7px 8px; }
  .insight { grid-template-columns: 1fr; gap: 9px; padding: 16px; }
  .insight-badge { flex-direction: row; align-items: center; }
  .insight-badge span { font-size: 14px; }
  .insight > a { padding: 3px 0 0; }
  .metric { padding: 15px; min-height: 122px; }
  .metric strong { font-size: 29px; margin: 15px 0 6px; }
  .metric small { font-size: 9px; }
  .panel-head { padding: 17px; min-height: 74px; }
  .panel h2 { font-size: 18px; }
  .panel-aside { display: none; }
  .chart-wrap { padding: 0 12px; }
  .chart-tabs { padding: 0 17px 13px; }
  .panel-foot { padding: 13px 17px; }
  .leaders { padding: 0 17px 15px; }
  .post-tools { padding: 0 17px 14px; flex-direction: column; }
  .signal-controls { padding: 12px 17px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .signal-summary { margin-left: 0; }
  .post-dialog-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .group-post-cards { grid-template-columns: 1fr; padding: 0 17px 15px; }
  .group-detail-head { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .sort-label { justify-content: space-between; }
  .footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 450px) {
  .notification-thresholds { grid-template-columns: 1fr; }
  .metric-label { font-size: 10px; }
  .metric-arrow { display: none; }
  .metric strong { font-size: 26px; }
  .leader { grid-template-columns: 38px minmax(0,1fr) auto; gap: 8px; }
  .leader-thumb { width: 36px; height: 36px; }
  .leader-value { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; } }
.notification-schedule{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin:15px 0}.notification-schedule label{display:grid;gap:6px;color:#adb3c2;font-size:12px}.notification-schedule select{width:100%;min-width:0;padding:9px;border:1px solid #3c4555;border-radius:7px;background:#171c26;color:#f2f3f5}@media(max-width:640px){.notification-schedule{grid-template-columns:1fr 1fr}.notification-schedule label:first-child{grid-column:1/-1}}
