/* Authenticated workspace: plain navigation, readable records, selective surfaces. */
:root { --bg:#0f1012; --panel:#131517; --surface:#1c1e21; --hover:#24272a; --line:#2b2e32; --line-soft:#222529; --text:#eff0f2; --muted:#b4b8be; --faint:#9299a2; }
:root[data-theme="light"] { --bg:#f7f8fa; --panel:#fff; --surface:#f0f2f5; --hover:#e7ebef; --line:#d6dbe1; --line-soft:#e8ebef; --text:#20252b; --muted:#535e69; --faint:#65717e; }
.portal-shell { --control-radius:8px; }
.portal-shell .portal-header { background:var(--bg); box-shadow:none; border-bottom:1px solid var(--line); }
.portal-shell .portal-topbar { min-height:74px; gap:18px; padding-top:14px; padding-bottom:14px; }
.portal-shell .portal-topbar .brand-title { font-size:16px; font-weight:700; letter-spacing:-.2px; }
.portal-shell .portal-topbar .brand-subtitle { font-size:12px; color:var(--faint); }
.portal-shell .portal-topbar .community-logo { width:38px; height:38px; }
.portal-shell .portal-topbar .command-trigger { border-radius:20px; background:transparent; height:40px; font-size:13px; }
.portal-shell .portal-nav { gap:25px; padding-top:0; padding-bottom:0; }
.portal-shell .portal-nav .portal-nav-link { min-height:48px; padding:10px 2px 13px; margin:0; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; font-size:14px; font-weight:600; color:var(--muted); transition:color .15s,border-color .15s; }
.portal-shell .portal-nav .portal-nav-link:hover { color:var(--text); background:transparent; }
.portal-shell .portal-nav .portal-nav-link.active { color:var(--accent); border-bottom-color:var(--accent); background:transparent; box-shadow:none; }
.portal-shell .portal-nav .portal-nav-link svg { width:18px; height:18px; color:inherit; }
.portal-shell .category-subnav { background:var(--bg); gap:24px; padding-top:0; padding-bottom:0; border-top:1px solid var(--line-soft); }
.portal-shell .category-subnav .category-subnav-link { min-height:46px; padding:10px 1px; border:0; border-bottom:2px solid transparent; border-radius:0; font-size:13px; background:transparent; }
.portal-shell .category-subnav .category-subnav-link.active { color:var(--text); border-bottom-color:var(--text); background:transparent; }
.portal-shell .main { padding-top:32px; padding-bottom:28px; }
.portal-shell .btn, .drawer .btn { min-height:42px; padding:9px 16px; font-size:13px; font-weight:600; border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:none; }
.portal-shell .btn.primary { background:#bababa; color:#262626; border-color:#bababa; }
.portal-shell .btn:not(:disabled):hover, .drawer .btn:not(:disabled):hover { background:var(--hover); border-color:var(--faint); box-shadow:none; }
.portal-shell .btn.primary:not(:disabled):hover { background:#cdcdcd; border-color:#cdcdcd; color:#262626; }
.portal-shell .btn.small { min-height:36px; padding:7px 11px; font-size:12px; }
.portal-shell .btn svg, .drawer .btn svg { width:17px; height:17px; }
.portal-shell .icon-btn { border-radius:8px; width:40px; height:40px; }
.portal-shell .panel, .portal-shell .log-panel, .portal-shell .stats-grid { border-radius:12px; box-shadow:none; }
.portal-shell h1 { font-weight:700; letter-spacing:-.8px; }
.portal-shell .page-heading h1, .portal-shell .category-heading h1 { font-size:28px; }
.portal-shell .page-heading { align-items:center; margin-bottom:25px; }
.portal-shell .page-heading .page-date { color:var(--faint); font-size:14px; }
.portal-shell .category-heading { border:0; padding-bottom:0; margin-bottom:24px; }
.portal-shell .category-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:12px; }
.portal-shell .category-card { min-height:82px; padding:18px; border-radius:10px; background:var(--panel); border:1px solid var(--line); box-shadow:none; gap:14px; }
.portal-shell .category-card:hover { background:var(--surface); border-color:var(--accent); transform:none; }
.portal-shell .category-card-copy strong { font-size:15px; }
.portal-shell .category-card .shortcut-icon { width:36px; height:36px; background:transparent; color:var(--accent); }
.portal-shell .category-card>svg { width:16px; color:var(--faint); }
/* Home stays focused on the feed and current duty shifts. */
.home-main .community-heading { align-items:center; margin:0 0 24px; gap:20px; }
.community-identity { display:flex; align-items:center; gap:14px; min-width:0; }
.home-community-logo { width:56px; height:56px; flex:none; object-fit:contain; }
.home-main .community-heading h1 { font-size:27px; font-weight:700; line-height:1.3; letter-spacing:-.65px; }
.home-main .community-heading-copy>p { font-size:14px; color:var(--muted); margin:4px 0 0; }
.home-main .community-heading-tools { display:flex; align-items:center; gap:16px; }
.home-main .community-heading-tools>span { font-size:12px; }
.home-main .community-heading-tools .icon-btn { border:0; border-radius:8px; }
.home-summary { margin-bottom:24px; border:1px solid var(--line); border-radius:10px; background:var(--panel); overflow:hidden; }
.home-summary .home-server-overview { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:center; margin:0; padding:0; gap:0; border:0; border-radius:0; background:none; }
.home-summary .home-server-card { display:flex; align-items:center; gap:14px; flex-wrap:wrap; min-height:78px; padding:18px 22px; border:0; border-right:1px solid var(--line); border-radius:0; background:none; box-shadow:none; }
.home-summary .home-server-card:hover { background:var(--surface); transform:none; }
.home-summary .home-server-label { font-size:13px; color:var(--muted); }
.home-summary .home-server-label svg { display:none; }
.home-summary .home-server-card strong { font-size:18px; font-weight:700; letter-spacing:-.25px; margin:0; line-height:1.4; color:var(--text); }
.home-summary .home-server-card[data-tone="red"] strong { color:#aaaaaa; }
.home-summary .home-server-detail { display:none; }
.home-server-open { display:flex; align-items:center; justify-content:center; min-height:44px; padding:12px 22px; gap:8px; font-size:13px; color:var(--muted); }
.home-server-open svg { height:15px; width:15px; }
.home-server-open:hover { color:var(--accent); }
.home-stream-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; align-items:start; }
.home-stream-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.home-main .home-status { display:block; font-size:11px; color:var(--faint); margin:0 4px; }
.home-main .home-status[data-connected="true"] { color:#b9b9b9; }
.home-stream-side .dashboard-onshift { border-radius:12px; }
.home-stream-side .onshift-heading { padding:18px 20px 14px; }
.home-stream-side .onshift-title h2 { font-size:17px; font-weight:700; }
.home-stream-side .onshift-person-copy strong { font-size:14px; font-weight:600; }
.home-stream-side .onshift-duration { font-size:13px; }
.home-stream-side>.home-schedule { min-width:0; padding:0; border-radius:12px; }
.home-schedule>summary { display:flex; align-items:center; gap:10px; padding:16px 20px; min-height:58px; cursor:pointer; list-style:none; font-size:14px; font-weight:600; }
.home-schedule>summary::-webkit-details-marker { display:none; }
.home-schedule>summary>svg { width:17px; height:17px; color:var(--muted); }
.home-schedule>summary>svg:last-child { margin-left:auto; width:14px; transition:transform .15s; }
.home-schedule[open]>summary>svg:last-child { transform:rotate(90deg); }
.home-schedule>summary:hover { background:var(--surface); }
.home-schedule>summary:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
.home-schedule-content { padding:0 20px 18px; border-top:1px solid var(--line); }
.home-stream-side .upcoming-meeting { padding:14px 0; gap:12px; }
.home-stream-side .home-meetings .upcoming-copy strong { font-size:13px; font-weight:600; }
.home-stream-side .home-meetings .upcoming-copy>span { font-size:11px; }
.home-stream-side .home-meetings .meeting-date { border:0; background:var(--surface); border-radius:7px; padding:8px; min-width:42px; }
.home-stream-side .home-meetings .meeting-date strong { font-size:20px; }
.home-meeting-actions { display:flex; gap:8px; margin-top:12px; }
.home-stream-side #home-meeting { width:auto; margin:0; flex:1; color:var(--text); background:var(--surface); }
/* Messages: people and content first; reasons stay behind Details. */
.home-feed { border:1px solid var(--line); border-radius:12px; background:var(--panel); overflow:hidden; }
.home-feed-heading { padding:20px 24px 14px; margin:0; }
.home-feed-heading h2 { margin:0; }
.home-feed-heading p { font-size:13px; margin-top:4px; color:var(--faint); }
.home-feed-count { font-size:12px; color:var(--faint); }
.home-feed-toolbar { padding:0 24px 14px; margin:0; border:0; border-bottom:1px solid var(--line); background:none; gap:10px; }
.home-feed-tabs { gap:4px; }
.home-feed-tabs button { border:0; border-radius:18px; min-height:36px; padding:7px 12px; font-size:12px; background:transparent; }
.home-feed-tabs button.selected { background:var(--hover); color:var(--text); border:0; }
.home-feed-order { font-size:12px; }
.home-feed-order select { background:transparent; border:0; min-height:36px; padding:7px 4px; font-size:12px; }
.home-feed-order>span { display:none; }
.home-feed-items { gap:0; border:0; border-radius:0; }
.home-feed-card { position:relative; padding:22px 24px; border:0; border-bottom:1px solid var(--line-soft); border-radius:0; background:transparent; animation:none; gap:14px; }
.home-feed-card:last-child { border-bottom:0; }
.home-feed-card[data-priority="urgent"]::before { content:""; position:absolute; left:0; top:22px; bottom:22px; width:3px; background:#9d9d9d; border-radius:0 2px 2px 0; }
.home-feed-avatar { flex-basis:38px; height:38px; font-size:14px; background:var(--surface); color:var(--muted); }
.home-feed-author { gap:8px; }
.home-feed-author strong { font-size:14px; font-weight:700; }
.home-feed-author>span { font-size:12px; color:var(--faint); }
.home-feed-time { margin-left:auto; font-size:11px; white-space:nowrap; color:var(--faint); }
.home-feed-meta { margin:5px 0 0; gap:10px; }
.home-feed-kind { font-size:11px; color:var(--muted); }
.home-feed-priority { font-size:11px; }
.home-feed-body { font-size:14px; color:var(--muted); line-height:1.75; margin:9px 0 9px; -webkit-line-clamp:2; }
.home-feed-actions { justify-content:flex-start; gap:16px; }
.home-feed-actions .text-link { font-size:12px; padding:4px 0; min-height:32px; border:0; background:none; border-radius:0; color:var(--faint); }
.home-feed-actions .text-link:hover { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
.home-feed-sample { margin-left:auto; font-size:10px; color:var(--faint); }
.home-feed-reason { padding:10px 0; }
.home-feed-bottom { padding:13px 24px; margin:0; border-top:1px solid var(--line); }
.home-feed-empty { border:0; background:none; border-radius:0; }
.home-feed-note { font-size:11px; }
/* Shared working controls and overlays. */
.notice-toolbar-actions button, .notice-item-actions button { padding:7px 10px; border:1px solid var(--line); border-radius:7px; background:var(--surface); min-height:36px; }
.notice-toolbar-actions, .notice-item-actions { gap:7px; }
.notice-toolbar-actions button:not(:disabled):hover, .notice-item-actions button:not(:disabled):hover { background:var(--hover); border-color:var(--faint); }
.account-actions { display:flex; flex-wrap:wrap; gap:10px; }
body .dennis-panel, body .radio-panel, body .install-panel { top:calc(var(--portal-toolbar-height,80px) + 8px); max-height:calc(100dvh - var(--portal-toolbar-height,80px) - 24px); }
.app-preference { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:15px; border:1px solid var(--line); border-radius:10px; background:var(--panel); padding:18px; margin-top:14px; }
.app-preference>div { display:flex; align-items:center; gap:12px; font-size:14px; }
.app-preference>div>svg { color:var(--accent); }
:root[data-theme="light"] .home-server-card[data-tone="red"] strong { color:#4e4e4e; }
@media(min-width:1800px) { .home-feed-body { max-width:100ch; } }
@media(max-width:1350px) { .portal-account .account-name,.portal-topbar .presence-trigger-label,.portal-topbar .notifications-button>span:not(.notification-count) { display:none; }.portal-topbar .portal-actions { gap:8px; flex:1 1 auto; min-width:0; flex-wrap:wrap; justify-content:flex-end; } }
@media(max-width:1000px) { .portal-topbar .notifications-button>span:not(.notification-count) { display:none; }.portal-topbar .presence-trigger-label { display:none; }.portal-shell .portal-nav { gap:21px; }.home-summary .home-server-card { gap:8px; padding:16px; } }
@media(max-width:800px) { .portal-shell .portal-nav { gap:20px; }.portal-shell .portal-nav .portal-nav-link { font-size:13px; }.home-main .community-heading-tools>span { display:none; }.home-main .community-heading h1 { font-size:24px; } }
@media(max-width:600px) {
 .portal-shell .portal-topbar { gap:10px; }.portal-shell .portal-actions { flex-wrap:nowrap; }.portal-shell .portal-topbar .theme-toggle { display:none; }
 .portal-shell .main { padding-top:24px; }.portal-shell .portal-nav { gap:22px; }.portal-shell .portal-nav .portal-nav-link { min-height:46px; padding-bottom:11px; }
 .home-main .community-heading { gap:8px; margin-bottom:20px; }.community-identity { gap:10px; }.home-community-logo { width:40px; height:40px; }.home-main .community-heading h1 { font-size:20px; letter-spacing:-.4px; }.home-main .community-heading-copy>p { font-size:12px; }.home-main .community-heading-tools { gap:0; }
 .home-summary .home-server-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }.home-summary .home-server-card { display:block; min-height:83px; padding:14px; }.home-summary .home-server-card:nth-child(2) { border-right:0; }.home-summary .home-server-card strong { display:block; font-size:16px; margin-top:5px; }.home-summary .home-server-label { font-size:11px; }.home-server-open { grid-column:1/-1; border-top:1px solid var(--line); font-size:12px; padding:10px 14px; }
 .home-feed-heading { padding:18px 16px 13px; }.home-feed-heading p { font-size:12px; }.home-feed-toolbar { padding:0 12px 12px; }.home-feed-tabs { gap:1px; }.home-feed-tabs button { padding:7px 9px; font-size:11px; }.home-feed-order { margin-left:auto; }.home-feed-order select { font-size:11px; }
 .home-feed-card { padding:18px 16px; gap:10px; }.home-feed-avatar { flex-basis:31px; height:31px; }.home-feed-author strong { font-size:13px; }.home-feed-author>span { font-size:11px; }.home-feed-time { font-size:10px; }.home-feed-body { font-size:13px; }.home-feed-kind,.home-feed-priority { font-size:10px; }.home-feed-bottom { padding:12px 16px; }.home-feed-count { font-size:11px; }
 .home-schedule-content { padding-left:16px; padding-right:16px; }
}
@media(min-width:601px) and (max-width:1550px) {
 .portal-shell .portal-topbar .command-trigger { flex:0 0 40px; width:40px; min-width:40px; max-width:40px; padding:0; justify-content:center; }
 .portal-shell .portal-topbar .command-trigger>span, .portal-shell .portal-topbar .command-trigger>kbd { display:none; }
}
:root[data-theme="light"] .home-summary .home-server-card[data-tone="red"] strong { color:#4e4e4e; }
:root[data-theme="light"] .onshift-duration { color:#616161; }
:root[data-theme="light"] .onshift-count { color:#616161; background:#efefef; }
:root[data-theme="light"] .home-feed-card[data-priority="urgent"] .home-feed-priority { color:#525252; }
:root[data-theme="light"] .home-feed-card[data-priority="high"] .home-feed-priority { color:#5e5e5e; }
:root[data-theme="light"] .notice-count { color:#575757; background:#ededed; }
@media(prefers-reduced-motion:reduce) { .home-schedule>summary>svg:last-child, .portal-shell .portal-nav .portal-nav-link { transition:none; } }

/* Roomier message previews; full records and tools open in place. */
.home-main .home-feed-card { display:block; padding:0; }
.home-feed-toggle { display:flex; align-items:flex-start; gap:14px; width:100%; min-width:0; min-height:106px; padding:20px 22px; text-align:left; color:var(--text); border:0; border-radius:0; background:transparent; font:inherit; cursor:pointer; transition:background .15s; }
.home-feed-toggle:hover { background:var(--surface); }
.home-feed-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
.home-feed-summary { flex:1; min-width:0; }
.home-feed-summary .home-feed-author { display:flex; flex-wrap:nowrap; min-width:0; align-items:center; }
.home-feed-summary .home-feed-author strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-feed-summary .home-feed-time { flex:none; }
.home-feed-preview { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; white-space:normal; overflow-wrap:anywhere; max-width:110ch; color:var(--muted); font-size:14px; margin-top:7px; line-height:1.65; }
.home-feed-chevron { display:grid; place-items:center; flex:none; width:26px; height:26px; color:var(--faint); border:1px solid var(--line); border-radius:6px; }
.home-feed-chevron svg { width:14px; height:14px; }
.home-feed-card.is-expanded { background:color-mix(in srgb,var(--surface) 40%,var(--panel)); }
.home-feed-card.is-expanded .home-feed-chevron { color:var(--accent); }
.home-feed-card.is-expanded .home-feed-toggle { min-height:0; }
.home-feed-card.is-expanded .home-feed-preview { display:none; }
.home-feed-expanded { padding:0 22px 20px 74px; }
.home-feed-expanded[hidden] { display:none; }
.home-feed-expanded .home-feed-body { display:block; max-height:none; -webkit-line-clamp:unset; margin:14px 0 10px; font-size:14px; overflow-wrap:anywhere; }
.home-feed-expanded .home-feed-meta { display:flex; gap:10px; flex-wrap:wrap; font-size:11px; color:var(--faint); }
.home-feed-expanded .home-feed-reason { display:flex; align-items:start; gap:7px; font-size:11px; color:var(--faint); line-height:1.6; padding:0 0 12px; }
.home-feed-expanded .home-feed-reason svg { flex:none; width:14px; height:14px; margin-top:2px; }
.home-feed-toggle .home-feed-priority { color:#aaaaaa; font-size:10px; padding:2px 6px; border:1px solid #aaaaaa40; border-radius:4px; flex:none; }
.home-stream-side .onshift-source,.home-stream-side .onshift-person-copy>span,.home-stream-side .onshift-footer { display:none; }
.home-stream-side .onshift-heading { padding:17px 18px; border-bottom:1px solid var(--line-soft); }
.home-stream-side .onshift-list { padding:5px 8px 9px; }
.home-stream-side .onshift-person { min-height:57px; padding:10px; }
.home-stream-side .onshift-avatar { width:32px; height:32px; flex-basis:32px; }
.home-stream-side .onshift-heading h2 { font-size:15px; }
.home-stream-side .onshift-all { font-size:11px; }
.home-schedule>summary>span { flex:1; }
.home-schedule>summary>small { font-size:11px; color:var(--faint); font-weight:400; }
.home-schedule>summary>svg:last-child { margin-left:4px; }
.home-tools-content { border-top:1px solid var(--line); padding:4px 16px 16px; }
.home-tools-content h3 { margin:14px 4px 7px; font-size:11px; font-weight:600; color:var(--faint); }
.home-tools-content section>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.home-tools-content a { display:flex; align-items:center; gap:8px; padding:11px 9px; min-height:44px; border:1px solid var(--line); border-radius:7px; color:var(--text); font-size:12px; background:transparent; text-decoration:none; }
.home-tools-content a:hover { background:var(--surface); border-color:var(--faint); }
.home-tools-content a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.home-tools-content a svg { flex:none; height:15px; width:15px; color:var(--accent); }
.home-tools-content section:nth-child(2) a svg { color:#afafaf; }
.home-tools-content section:nth-child(3) a svg { color:#b9b9b9; }
.home-health { padding:0 4px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; }
.home-health .home-status { margin:0; }
#home-sync-status { color:var(--faint); font-size:10px; }
:root[data-theme="light"] .home-tools-content section:nth-child(2) a svg { color:#6d6d6d; }
:root[data-theme="light"] .home-tools-content section:nth-child(3) a svg { color:#696969; }
@media(max-width:800px) {
 .home-stream-side { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .home-stream-side .dashboard-onshift { grid-column:1/-1; }
 .home-stream-side .onshift-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .home-stream-side>.home-schedule { align-self:start; }
 .home-health { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; justify-content:space-between; }
 .home-tools-content section>div { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:600px) {
 .home-feed-toggle { padding:16px 14px; gap:10px; }
 .home-feed-expanded { padding:0 16px 18px; }
 .home-feed-preview { font-size:13px; }
 .home-feed-summary .home-feed-author { gap:6px; }
 .home-feed-toggle .home-feed-priority { font-size:9px; padding:1px 4px; }
 .home-feed-chevron { width:22px; height:22px; }
 .home-stream-side .onshift-person-copy strong { font-size:12px; }
 .home-stream-side .onshift-person { gap:8px; padding:8px; flex-wrap:wrap; }
 .home-stream-side .onshift-duration { margin-left:40px; font-size:11px; }
 .home-stream-side .onshift-person>svg { display:none; }
 .home-stream-side .onshift-person-copy { flex:1; min-width:65px; }
 .home-schedule>summary { padding:14px; gap:7px; }
 .home-schedule-content { padding:0 12px 14px; }
 .home-stream-side .home-meeting-actions { flex-direction:column; }
 .home-feed-heading p { display:none; }
 .home-feed-tabs button svg { display:none; }
 .home-feed-tabs button { padding:7px 8px; }
 .home-feed-toolbar { gap:4px; }
}
@media(prefers-reduced-motion:reduce) { .home-feed-toggle { transition:none; } }

/* A quiet cyan wash, shared with the personal standing card. */
:root { --summary-wash:linear-gradient(110deg,#b7b7b70d,transparent 80%); --summary-border:color-mix(in srgb,#b7b7b7 24%,var(--line)); }
.portal-shell .points-personal,
.portal-shell .home-feed-card,
.portal-shell .home-stream-side>.home-schedule,
.portal-shell .dashboard-onshift,
.portal-shell .server-page .server-players,
.portal-shell .server-page .server-scan-card,
.portal-shell .server-page .server-scan-summary {
 background:var(--summary-wash),var(--panel);
 border-color:var(--summary-border);
}
.portal-shell .home-feed-card[data-priority=urgent] { border-color:#9f9f9f60; }
.portal-shell .home-feed-card[data-priority=high] { border-color:#bdbdbd50; }
.dennis-header { background:var(--summary-wash); }
.portal-shell .home-feed-toggle:hover { background:color-mix(in srgb,var(--accent) 4%,transparent); }
