/* Dashboard layout follows the supplied reference; editor and landing remain separate. */
body.has-account { background:#0d0f10 }
#page-dashboard { --green:#4975ed; --border:#292c2e; --surface:#17191a; --text:#f1f2f4; --muted:#92969d; padding-top:26px; color:var(--text) }
.dashboard-heading,.dashboard-greeting,.dashboard-period { display:flex; align-items:center; gap:10px }
.dashboard-heading { justify-content:space-between; margin-bottom:13px; flex-wrap:wrap }
.dashboard-greeting h1 { font-size:20px; letter-spacing:-.5px; font-weight:700 }
.dashboard-period { gap:7px; font-size:10px }
.status-chip { display:inline-flex; gap:4px; align-items:center; border:1px solid #2b2e30; border-radius:12px; padding:2px 6px; font-size:8px; color:#9ca0a6; white-space:nowrap }
.status-chip::before { content:''; width:4px; height:4px; border-radius:50%; background:currentColor }
.status-chip.is-live { color:#36d995 }
.segmented,.period-switch { display:flex; align-items:center; background:#0b0d0e; border:1px solid #242628; border-radius:7px; padding:2px }
.segmented button { padding:5px 9px; font-size:10px; border-radius:5px; color:#aeb3bc; white-space:nowrap }
.segmented button[aria-pressed=true] { background:#272a2d; color:white }
.period-switch { gap:6px }.period-switch button { padding:3px 7px; color:#aeb3bc }.period-switch span { min-width:62px; text-align:center }
.metric-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:12px }
.metric-card { background:#17191a; border:1px solid #1b1e20; border-radius:7px; text-align:center; overflow:hidden; min-width:0; padding-bottom:12px }
.metric-icon { display:block; height:31px; line-height:29px; border-bottom:1px solid #292c2e; font-size:19px; margin-bottom:8px }
.followers-icon { color:#ff424c }.tips-icon { color:#85cf37 }.sponsors-icon { color:#3ed49e }.raids-icon { color:#34a6dc }.bits-icon { color:#a45bf8; font-size:15px }
.metric-card strong { display:block; font-size:20px; font-weight:600; line-height:1.1 }
.metric-card h3 { font-size:10px; font-weight:500; margin-top:5px }
.metric-card p { font-size:8px; color:#93979e; line-height:1.4; padding:0 5px; margin-top:4px }
.control-grid { display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:12px; align-items:start }
.control-main,.control-aside { display:grid; gap:12px; min-width:0 }
#page-dashboard .panel { background:#17191a; border:1px solid #1c1f21; border-radius:7px; min-width:0 }
.chart-toolbar { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #2b2d30; min-width:0; gap:5px }
.chart-tabs { display:flex; min-width:0; overflow-x:auto }
.chart-tabs button { font-size:10px; padding:12px 10px; color:#a9afbd; border-bottom:2px solid transparent; white-space:nowrap }
.chart-tabs button[aria-pressed=true] { border-bottom-color:#4876ef; color:white }
.chart-measure { width:78px; flex-shrink:0; padding-right:7px }
#chart-measure { background:transparent; border:0; font-size:10px; padding:3px; color:#f3f3f5 }
#chart-measure option { background:#17191a }
.chart-area { height:250px; margin:14px 17px 0 46px; position:relative; background-image:radial-gradient(#244572 .8px,transparent .8px); background-size:9px 9px }
.chart-scale { position:absolute; top:0; bottom:0; left:-22px; display:flex; flex-direction:column; justify-content:space-between; color:#62666e; font-size:9px }
#session-chart { width:100%; height:100%; overflow:visible }
.chart-empty { position:absolute; inset:0; display:grid; place-items:center; text-align:center; padding:30px; pointer-events:none }
.chart-empty p { color:#979da8; background:#17191ae8; border-radius:4px; padding:8px; font-size:11px; line-height:1.6; max-width:350px }
.chart-axis { margin:10px 17px 0 46px; display:flex; justify-content:space-between; height:34px }
.chart-axis span { font-size:8px; color:#696e77; transform:rotate(-45deg); transform-origin:top right; white-space:nowrap; width:0 }
#chart-caption { padding:0 15px 9px; color:#90969f; font-size:9px; line-height:1.5; min-height:22px }
.activity-controls { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px }
.activity-controls button,.activity-controls>span { border:1px solid #2b2e31; background:#17191a; border-radius:4px; height:27px; display:grid; place-items:center; font-size:11px; color:#b9bdc5 }
.activity-controls>span { color:#ff5353; font-size:10px }.activity-controls button:disabled { opacity:.35; cursor:not-allowed }
.feed-toolbar { display:flex; justify-content:space-between; align-items:center; padding:10px 5px; font-size:10px }
.feed-toolbar label { display:flex; align-items:center; gap:5px }.feed-toolbar select { width:105px; padding:3px; background:transparent; border:0; font-size:10px; color:#bdc2cc }.feed-toolbar option { background:#17191a }
.feed-settings { position:relative }
.feed-settings-button { display:grid; place-items:center; width:32px; height:32px; border-radius:5px; color:#b7bdc8 }
.feed-settings-button:hover,.feed-settings-button[aria-expanded="true"] { background:#292d32; color:white }
.feed-settings-menu { position:absolute; right:0; top:37px; z-index:20; width:230px; max-width:calc(100vw - 48px); max-height: min(560px,70vh); overflow:auto; padding:5px 0; background:#24272a; color:#babdc0; border:1px solid #3b3e42; border-radius:8px; box-shadow:0 12px 35px #0007; font-size:13px; text-align:left }
.feed-setting-toggle,.feed-menu-action { display:flex; align-items:center; gap:9px; width:100%; padding:10px 12px; text-align:left; font-size:12px; font-weight:600; color:inherit }
.feed-settings-menu button:not(:disabled):hover,.feed-widget-data summary:hover { background:#30353b }
.feed-settings-menu button:disabled { opacity:.4; cursor:not-allowed }
.feed-settings-menu :focus-visible { outline:2px solid #83a4ff; outline-offset:-2px }
.feed-switch { width:35px; height:20px; border-radius:12px; background:#686b6d; flex-shrink:0; position:relative }
.feed-switch::after { content:''; position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0004 }
[aria-checked="true"] .feed-switch { background:#4671e8 }
[aria-checked="true"] .feed-switch::after { left:18px }
.feed-widget-data { padding:0 12px }
.feed-widget-data summary { padding:10px 0; cursor:pointer; font-weight:600; list-style:none }
.feed-widget-data p { font-size:11px; line-height:1.6; overflow-wrap:anywhere; padding:5px 0 12px }
.feed-font { display:block!important; padding:16px 12px 23px; color:#eee }
#page-dashboard #feed-font-size { display:block; width:100%; accent-color:#5882ff; padding:0; margin:12px 0 8px; border:0; height:16px; cursor:pointer }
.feed-font-labels { display:flex; justify-content:space-between; font-size:11px; color:#a6aaae }
.feed-reset { border-top:1px solid #393c40; color:#ff5867; padding-top:16px; padding-bottom:12px }
.activity-controls .feed-control button { width:100% }
.feed-control-label { display:none; font-size:9px; text-align:center; color:#b9bdc5; padding-top:4px; overflow-wrap:anywhere }
.feed-control-labels .feed-control-label { display:block }
.activity-avatar { position:relative; display:grid; place-items:center; flex:0 0 24px; width:24px; height:24px; border-radius:50%; background:#354365; color:#dfe8ff; font-size:11px; overflow:hidden }
.activity-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:50% }
.activity-row .activity-name { font-size:var(--feed-font-size,11px); min-width:0 }
.activity-name a { color:inherit; text-decoration:none }.activity-name a:hover { text-decoration:underline }
.activity-row .follow-tag { font-size:calc(var(--feed-font-size,11px) - 1px) }
.feed-shorten .activity-name,.feed-shorten .follow-tag { white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.feed-read-marker { flex-shrink:0; color:#83a4ff; font-size:14px; padding:2px }
.feed-read-marker[aria-pressed="true"] { color:#858d9d }
.activity-list { max-height:480px; overflow:auto; padding:0 5px }
.activity-row { display:flex; gap:8px; align-items:center; border-bottom:1px solid #202326; padding:13px 0; min-width:0 }
.activity-row strong { font-size:11px; font-weight:500; overflow-wrap:anywhere }.activity-row time { font-size:9px; color:#828995; margin-left:auto; white-space:nowrap }
.follow-tag { background:#25428b; color:#a1bcff; font-size:10px; padding:1px 4px; border-radius:2px; overflow-wrap:anywhere; max-width:45% }
.activity-empty { font-size:11px; color:#969da7; padding:20px 0; line-height:1.7 }
#page-dashboard .channel-control,#page-dashboard .quick-settings { padding:12px }
.control-aside h3 { font-size:12px; font-weight:600; margin-bottom:20px }
.channel-control { text-align:center }.channel-control h3 { text-align:left }
.nexus-bot { width:40px; height:38px; border-radius:46% 46% 42% 42%; background:#ef8b9c; margin:4px auto 10px; position:relative; display:flex; justify-content:center; gap:8px; align-items:center; box-shadow:inset 0 -4px #cc6179 }
.nexus-bot span { width:9px; height:11px; background:#101218; border-radius:50%; position:relative }
.nexus-bot span::after { content:''; position:absolute; top:2px; left:2px; background:white; width:3px; height:3px; border-radius:50% }
#dashboard-bot-status { font-size:10px; line-height:1.6; margin-bottom:12px }
#page-dashboard .button { font-size:10px; padding:5px 10px; min-height:25px; border-radius:20px; font-weight:600 }
#page-dashboard .primary { background:#4671e8; color:white; border:1px solid #5782fa }
#page-dashboard .secondary { background:transparent; color:#bfc3cc; border:1px solid #51565d }
.channel-control>.button { width:100%; margin-top:5px }.button:disabled { opacity:.45; cursor:not-allowed }
#moderator-warning { background:#29211b; border-radius:4px; padding:8px; margin-top:10px; font-size:10px; line-height:1.5; color:#d6b47e }
#moderator-warning button { margin-top:7px }
#channel-fields { border:0; padding:0; min-width:0 }#channel-fields:disabled { opacity:.5 }
#channel-form label { display:block; font-size:10px; margin:13px 0 8px }
#page-dashboard input { background:#202325; border:1px solid #373b3e; border-radius:5px; padding:6px 9px; width:100%; font-size:11px; color:#f2f3f7 }
.category-search { display:flex; border:1px solid #373b3e; border-radius:5px; background:#202325; min-width:0 }
#page-dashboard .category-search input { border:0; min-width:0 }.category-search button { padding:0 8px; font-size:15px }
.category-results { max-height:160px; overflow:auto }.category-results button { display:block; padding:9px 5px; text-align:left; width:100%; border-bottom:1px solid #33383c; font-size:11px }.category-results button:hover { background:#293752 }
.category-results p,.micro-note { color:#9da4ae; font-size:9px; line-height:1.6; margin-top:7px }.micro-note:empty { display:none }
#save-channel { float:right; margin-top:12px }#channel-feedback { clear:both; padding-top:6px }
#bot-dialog { width:min(460px,92vw); padding:20px; background:#0e1011; color:#f1f2f5; border:1px solid #2e3236; border-radius:8px; box-shadow:0 20px 90px #0008 }
#bot-dialog::backdrop { background:#000b; backdrop-filter:none }#bot-dialog h2 { font-size:18px; padding-right:18px; margin-bottom:15px; line-height:1.35 }
#bot-dialog p { font-size:11px; line-height:1.75; margin-top:10px }#bot-dialog code { color:#ef6974; font-size:11px }
#close-bot-dialog { position:absolute; right:8px; top:5px; color:#a5a8ae }.bot-dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; margin-top:15px }
#bot-dialog .button { border-radius:18px; font-size:10px; padding:7px 12px }#bot-dialog .primary { background:#4671e8; border-color:#4671e8; color:white }#bot-dialog .secondary { border-color:#4671e8; color:#91afff; background:transparent }
body.has-account .connection-panel { display:none }body.has-account.show-account .connection-panel { display:flex }
#workspace-name { display:block; max-width:125px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
@media(min-width:1700px) { .chart-area { height:310px }.control-grid { grid-template-columns:minmax(0,1fr) 300px } }
@media(max-width:1250px) { .control-grid { grid-template-columns:minmax(0,1fr) 240px }.dashboard-greeting h1 { font-size:18px }.chart-tabs button { padding-inline:8px }.chart-area { height:230px } }
@media(max-width:950px) { .dashboard-period { flex-wrap:wrap }.metric-grid { gap:7px }.control-grid { grid-template-columns:minmax(0,1fr) 220px }.metric-card p { font-size:7px } }
@media(max-width:750px) { .control-grid { grid-template-columns:minmax(0,1fr) }.control-aside { grid-template-columns:repeat(2,minmax(0,1fr)) }.metric-grid { grid-template-columns:repeat(5,minmax(0,1fr)) }.metric-card p { display:none }.metric-card h3 { font-size:8px }.metric-card strong { font-size:17px }.dashboard-heading { gap:15px }.dashboard-period { width:100%; justify-content:space-between }.segmented button { padding:5px 6px; font-size:9px }.chart-tabs button { font-size:9px }.chart-measure { width:62px }.chart-axis span:nth-child(even) { visibility:hidden } }
@media(max-width:460px) { .control-aside { grid-template-columns:1fr }.dashboard-greeting h1 { font-size:17px }.metric-grid { gap:4px }.chart-area { margin-left:32px; height:210px }.chart-axis { margin-left:32px }.chart-empty { padding:10px }.chart-tabs { overflow:auto }.metric-card { padding-bottom:9px } }