/* Header-only ordinary announcements: no layout shift in the page stage. */
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement{
 display:flex;align-items:center;gap:7px;flex:0 1 220px;min-width:36px;max-width:220px;height:36px;
 padding:6px 9px;border:1px solid var(--mt-line);border-radius:6px;background:var(--mt-card);color:var(--mt-ink);
 font:400 13px/20px var(--mt-font);cursor:pointer;box-shadow:none;transition:background-color var(--mt-motion),border-color var(--mt-motion);
}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement:hover,
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement[aria-expanded="true"]{background:var(--mt-soft);border-color:var(--mt-primary)}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement:focus-visible{outline:2px solid var(--mt-primary);outline-offset:2px}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement>svg{width:18px;height:18px;flex:none;color:var(--mt-primary)}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-dialog{
 box-sizing:border-box;width:min(480px,calc(100vw / var(--mt-ui-zoom,1) - 32px));max-width:calc(100vw / var(--mt-ui-zoom,1) - 32px);
 max-height:calc(100dvh / var(--mt-ui-zoom,1) - 32px);margin:auto;padding:0;border:1px solid var(--mt-line);border-radius:12px;
 color:var(--mt-ink);background:var(--mt-card);font:400 15px/24px var(--mt-font);overflow:hidden;
}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-dialog[open]{display:flex;flex-direction:column}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-dialog::backdrop{background:rgba(15,23,42,.28)}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-dialog>header{display:flex;align-items:flex-start;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--mt-line);flex:none}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-dialog>header>h2{margin:0;flex:1;min-width:0;font:500 18px/28px var(--mt-font);color:var(--mt-ink);overflow-wrap:anywhere}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-close{display:grid;place-items:center;width:32px;height:32px;min-width:32px;flex:none;padding:6px;border:0;border-radius:8px;background:transparent;color:var(--mt-muted);cursor:pointer;box-shadow:none}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-close:hover{background:var(--mt-soft);color:var(--mt-ink)}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-close>svg{width:20px;height:20px}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-content{padding:18px 20px;overflow:auto;min-height:0;white-space:pre-wrap;overflow-wrap:anywhere;overscroll-behavior:contain}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-dialog>footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--mt-line);flex:none}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-dialog>footer>button{border-radius:8px!important}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-dismiss{margin-right:auto}
@media(max-width:1199px){
 html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement{flex:0 0 36px;width:36px;max-width:36px;justify-content:center;padding:8px;border-color:transparent;background:transparent}
 html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement-title{display:none}
}
@media(max-width:360px){
 html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement{flex-basis:32px;width:32px;min-width:32px;max-width:32px;padding:6px}
 html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-actions:has(>.gradient-header-announcement){padding-inline:6px!important}
 html[data-zoom="125"] body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-actions:has(>.gradient-header-announcement){padding-inline:0!important}
}
@media(prefers-reduced-motion:reduce){html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement{transition:none}}
@media(forced-colors:active){
 html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .gradient-header-announcement,
 html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"] .workspace-announcement-dialog{border-color:ButtonText}
}

/* The branded shell keeps pinned notices beside its other header actions.
   The complete title stays in the accessible name and the native dialog. */
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"][data-dashboard-design="luyende"]:not(.admin-page):not(.gradient-exam-page):not([data-import-editor]) .gradient-header-right>.gradient-header-announcement.is-compact{
 position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 38px;
 width:38px;min-width:38px;max-width:38px;height:38px;min-height:38px;padding:9px;gap:0;
 border:0;border-radius:8px;background:transparent;color:var(--mt-ink);box-shadow:none;
}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"][data-dashboard-design="luyende"] .gradient-header-right>.gradient-header-announcement.is-compact:hover,
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"][data-dashboard-design="luyende"] .gradient-header-right>.gradient-header-announcement.is-compact[aria-expanded="true"]{background:var(--mt-soft);color:var(--mt-primary)}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"][data-dashboard-design="luyende"] .gradient-header-right>.gradient-header-announcement.is-compact>svg{width:20px;height:20px;color:inherit}
html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"][data-dashboard-design="luyende"] .gradient-header-right>.gradient-header-announcement.is-compact>.gradient-header-announcement-title{position:absolute;display:block;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:360px){html body#gradientWorkspace#gradientWorkspace[data-dashboard-style="materio"][data-dashboard-design="luyende"] .gradient-header-right>.gradient-header-announcement.is-compact{flex-basis:32px;width:32px;min-width:32px;max-width:32px;height:32px;min-height:32px;padding:6px}}

