/* One priority palette for the Windows/Mac WebView and the responsive website.
   Read state and selection never replace severity; icons also distinguish levels. */
:root {
    --notice-normal: #32669a;
    --notice-important: #94600e;
    --notice-urgent: #ba384a;
}
:root:is([data-lb-effective-theme=dark],[data-theme=dark]) {
    --notice-normal: #98c5f2;
    --notice-important: #e7bc6c;
    --notice-urgent: #ff9aa9;
}
@media(prefers-color-scheme:dark) {
    :root[data-theme=system] { --notice-normal:#98c5f2; --notice-important:#e7bc6c; --notice-urgent:#ff9aa9; }
}
[data-priority=normal] { --notice-accent: var(--notice-normal); }
[data-priority=important] { --notice-accent: var(--notice-important); }
[data-priority=urgent] { --notice-accent: var(--notice-urgent); }
.notice-symbol { display:block; width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
html:root .notice-priority { display:inline-flex; align-items:center; gap:8px; color:var(--notice-accent); font-size:13px; font-weight:600; line-height:1.5; }
html:root .notice-unread { display:inline-flex; align-items:center; gap:6px; color:var(--v3-blue); font-size:12px; white-space:nowrap; }
.notice-unread i { width:5px; height:5px; border-radius:50%; background:currentColor; flex:none; }

.desktop-notices { display:flex; flex-direction:column; flex:1; min-width:0; min-height:0; width:100%; height:100%; container-type:inline-size; background:var(--v3-canvas); color:var(--v3-text); user-select:none; }
.desktop-notices-title>span { font-size:13px; color:var(--v3-muted); white-space:nowrap; }
.desktop-notices .desktop-tab-toolbar { flex-wrap:wrap; }
html:root .desktop-notices .desktop-tab-toolbar button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; font-size:14px; }
html:root .desktop-notices .desktop-tab-toolbar .desktop-notice-refresh { border-color:transparent; background:transparent; color:var(--v3-muted); }
html:root .desktop-notices .desktop-tab-toolbar .desktop-notice-refresh:hover:not(:disabled) { background:var(--v3-hover); color:var(--v3-blue); }
html:root .desktop-notices .desktop-tab-toolbar .desktop-notice-read-all { background:var(--v3-hover); border-color:color-mix(in srgb,var(--v3-blue) 22%,var(--v3-line)); color:var(--v3-blue); }
html:root .desktop-notices .desktop-tab-toolbar .desktop-notice-read-all:hover:not(:disabled) { background:color-mix(in srgb,var(--v3-blue) 13%,var(--v3-panel)); }
html:root .desktop-notices .desktop-tab-toolbar button:active:not(:disabled) { box-shadow:inset 0 1px 3px #0001; }
html:root .desktop-notices .desktop-tab-toolbar button:disabled { opacity:.48; cursor:default; }
.desktop-notices-workspace { display:grid; grid-template-columns:clamp(280px,30%,360px) minmax(0,1fr); grid-template-rows:minmax(0,1fr); flex:1; min-height:0; gap:20px; margin:0 24px 22px; }
.desktop-notices-rail { display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; background:color-mix(in srgb,var(--v3-panel) 42%,var(--v3-canvas)); border:1px solid var(--v3-line); border-radius:14px; }
.desktop-notices-filter { display:grid; gap:12px; flex:none; padding:14px; border-bottom:1px solid var(--v3-line); }
.desktop-notices-filter>div { display:flex; gap:6px; }
html:root .desktop-notices-filter button { min-height:36px; padding:7px 16px; border:1px solid transparent; border-radius:8px; color:var(--v3-muted); background:transparent; font-size:14px; }
html:root .desktop-notices-filter button:hover { background:var(--v3-hover); color:var(--v3-blue); }
html:root .desktop-notices-filter button[aria-pressed=true] { background:var(--v3-soft); border-color:color-mix(in srgb,var(--v3-brand) 30%,var(--v3-line)); color:var(--v3-brand); font-weight:600; }
html:root .desktop-notices-filter button:active { box-shadow:inset 0 1px 3px #0001; }
html:root .desktop-notices-filter input { box-sizing:border-box; width:100%; min-width:0; height:38px; padding:8px 11px; border:1px solid var(--v3-line); border-radius:9px; background:var(--v3-panel); color:var(--v3-text); font-size:14px; box-shadow:none; user-select:text; }
html:root .desktop-notices-filter input:hover { border-color:var(--v3-blue); }
html:root .desktop-notices-filter input:focus { border-color:var(--v3-brand); outline:2px solid color-mix(in srgb,var(--v3-brand) 24%,transparent); outline-offset:1px; box-shadow:none; }
.desktop-notices-list { flex:1; min-height:0; overflow:auto; scrollbar-gutter:stable; padding:10px; }
html:root .desktop-notices-list .desktop-notice-row { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:start; gap:11px; box-sizing:border-box; min-width:0; width:100%; margin:0 0 8px; padding:15px 13px; border:1px solid transparent; border-radius:11px; background:transparent; color:var(--v3-text); text-align:left; box-shadow:none; transition:background .15s,border-color .15s; }
html:root .desktop-notices-list .desktop-notice-row:hover { background:var(--v3-panel); border-color:var(--v3-line); color:var(--v3-text); }
html:root .desktop-notices-list .desktop-notice-row.selected { background:var(--v3-panel); border-color:color-mix(in srgb,var(--notice-accent) 42%,var(--v3-line)); box-shadow:0 3px 12px #00000009; color:var(--v3-text); }
html:root .desktop-notices-list .desktop-notice-row:active { background:color-mix(in srgb,var(--notice-accent) 7%,var(--v3-panel)); }
html:root .desktop-notices :is(button:focus-visible,.desktop-notice-feedback:focus-visible) { outline:2px solid var(--v3-brand); outline-offset:2px; }
.desktop-notice-symbol { margin-top:2px; color:var(--notice-accent); }
.desktop-notice-row-copy { display:grid; min-width:0; gap:7px; }
.desktop-notice-row-heading { display:block; min-width:0; }
.desktop-notice-row-heading strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; font-size:15px; font-weight:550; line-height:1.5; }
.desktop-notice-row.unread strong { font-weight:700; }
html:root .desktop-notice-preview { font-size:13px; line-height:1.6; color:var(--v3-muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
html:root .desktop-notice-row-status { display:flex; align-items:center; gap:10px; flex-wrap:wrap; color:var(--v3-muted); }
.desktop-notice-row-status time { margin-left:auto; font-size:12px; white-space:nowrap; }
/* The reading card follows its content, leaving canvas below short messages.
   A bounded grid track keeps long text/HTML scrollable inside the workspace. */
.desktop-notice-detail { align-self:start; min-width:0; min-height:0; max-height:100%; box-sizing:border-box; overflow:auto; border:1px solid var(--v3-line); border-radius:16px; background:var(--v3-panel); box-shadow:0 6px 24px #00000006; scrollbar-gutter:stable; user-select:text; }
.desktop-notice-detail>header { padding:26px 30px 24px; border-bottom:1px solid color-mix(in srgb,var(--notice-accent) 16%,var(--v3-line)); background:linear-gradient(115deg,color-mix(in srgb,var(--notice-accent) 9%,var(--v3-panel)),var(--v3-panel)); }
.desktop-notice-metadata { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; color:var(--v3-muted); font-size:12px; }
.desktop-notice-detail h2 { margin:18px 0 0; font-size:24px; font-weight:650; line-height:1.5; color:var(--v3-text); overflow-wrap:anywhere; }
.desktop-notice-summary { margin:10px 0 0; color:var(--v3-muted); font-size:14px; line-height:1.75; overflow-wrap:anywhere; }
.desktop-notice-content { display:grid; gap:18px; padding:26px 30px 32px; }
.desktop-notice-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; font-size:15px; color:var(--v3-text); }
.desktop-notice-html { display:block; width:100%; height:clamp(280px,52vh,640px); border:0; background:var(--v3-panel); }
.desktop-notice-conversation { display:grid; gap:14px; }
.desktop-notice-conversation>section { padding:16px; border:1px solid var(--v3-line); border-radius:10px; background:var(--v3-canvas); overflow-wrap:anywhere; font-size:14px; line-height:1.7; }
.desktop-notice-conversation header { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:12px; margin-bottom:10px; color:var(--v3-muted); }
html:root .desktop-notice-feedback { justify-self:start; min-height:38px; padding:8px 12px; border:1px solid var(--v3-line); border-radius:9px; color:var(--v3-blue); background:var(--v3-hover); }
html:root .desktop-notice-feedback:hover { background:color-mix(in srgb,var(--v3-blue) 13%,var(--v3-panel)); }
.desktop-notices-empty,.desktop-notice-detail-empty { padding:30px 20px; color:var(--v3-muted); font-size:14px; line-height:1.7; }
.desktop-notice-detail-empty h2 { margin:0; font-size:18px; }
.desktop-notice-detail-empty p { margin:10px 0 0; }
@container (max-width:780px) {
    .desktop-notices-workspace { grid-template-columns:260px minmax(0,1fr); gap:14px; margin:0 16px 16px; }
    .desktop-notice-detail>header { padding:22px; }
    .desktop-notice-content { padding:22px; }
    .desktop-notice-detail h2 { font-size:21px; }
    .desktop-notices .desktop-tab-toolbar { padding:16px; }
}
@container (max-width:640px) {
    .desktop-notices-workspace { display:flex; flex-direction:column; overflow:auto; }
    .desktop-notices-rail { flex:none; max-height:300px; }
    .desktop-notices-list { flex:auto; }
    .desktop-notice-detail { flex:none; width:100%; max-height:none; overflow:hidden; }
}

/* Website cards use the same level/icon/read-state hierarchy without opening
   a second pane on phones. Only unread cards are actions (mark as read). */
html:root .page[data-page=notifications]>.page-heading { justify-content:space-between; flex-wrap:wrap; }
html:root .page[data-page=notifications]>.page-heading h1 { display:block; }
html:root .page[data-page=notifications] fluent-button[disabled] { opacity:.48; cursor:default; }
html:root #notificationList { display:grid; gap:12px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
html:root #notificationList .notification-item { display:grid; grid-template-columns:22px minmax(0,1fr); gap:14px; min-height:0; padding:23px 25px; border:1px solid var(--v3-line); border-radius:14px; background:linear-gradient(115deg,color-mix(in srgb,var(--notice-accent) 5%,var(--v3-surface)),var(--v3-surface) 55%); opacity:1; cursor:default; box-shadow:var(--v3-card-shadow); }
html:root #notificationList .notification-item.unread { cursor:pointer; border-color:color-mix(in srgb,var(--notice-accent) 32%,var(--v3-line)); }
html:root #notificationList .notification-item.unread:hover { background:color-mix(in srgb,var(--notice-accent) 7%,var(--v3-surface)); }
html:root #notificationList .notification-item.unread:active { background:color-mix(in srgb,var(--notice-accent) 10%,var(--v3-surface)); }
html:root #notificationList .notification-item:focus-visible { outline:2px solid var(--v3-brand); outline-offset:3px; }
html:root #notificationList .notification-mark { display:block; width:22px; height:22px; margin-top:2px; color:var(--notice-accent); }
html:root #notificationList .notification-mark svg { width:22px; height:22px; }
html:root #notificationList .notification-item>div { display:grid; min-width:0; gap:10px; }
html:root #notificationList .notification-item header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; flex-wrap:wrap; }
html:root #notificationList .notification-item header strong { color:var(--v3-text); font-size:16px; font-weight:640; line-height:1.6; overflow-wrap:anywhere; }
html:root #notificationList .notification-item time { color:var(--v3-muted); font-size:12px; white-space:nowrap; }
.notification-item-meta { display:flex; align-items:center; gap:14px; }
html:root #notificationList .notification-item :is(p,.notification-item-content) { margin:0; color:var(--v3-muted); font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
html:root #notificationList .notification-item .notification-item-content { color:var(--v3-text); white-space:pre-wrap; max-height:360px; overflow:auto; user-select:text; }
@media(max-width:600px) {
    html:root #notificationList .notification-item { padding:18px 16px; gap:12px; }
}
@media(prefers-reduced-motion:reduce) {
    html:root .desktop-notices-list .desktop-notice-row { transition:none; }
}
