/* The notice attaches to the viewport top and covers the header without reflow. */
#notice.notice{--notice-paper:#fefefe;--notice-ink:#232429;--notice-muted:#777a80;--notice-line:#ededee;--notice-art-start:#f8f8fa;--notice-art-end:#ecedf1;position:fixed;z-index:10020;top:var(--notice-offset-top,0px);left:0;right:0;bottom:auto;width:100%;max-width:100%;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:var(--notice-ink);transform:none;pointer-events:none;font:inherit;display:block;overflow:visible;isolation:isolate}
#notice.notice[hidden]{display:none!important}
#notice .top-notice-card{position:relative;display:flex;align-items:center;gap:0;min-height:107px;padding:max(14px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) 17px max(18px,env(safe-area-inset-left));border:0;border-radius:0 0 25px 25px;background:var(--notice-paper);color:var(--notice-ink);box-shadow:0 7px 22px #2024320c;pointer-events:auto;touch-action:pan-x;opacity:0;transform:translateY(calc(-100% - 40px));box-sizing:border-box}
#notice .notice-content{display:flex;flex:1;align-items:center;gap:13px;min-width:0;min-height:76px;border:0;border-radius:14px;padding:0;background:transparent;color:var(--notice-ink);text-align:left;font:inherit;box-shadow:none;touch-action:pan-x}
#notice .top-notice-art{display:grid;place-items:center;flex:none;position:relative;overflow:hidden;width:43px;height:43px;border-radius:14px;background:linear-gradient(145deg,var(--notice-art-start),var(--notice-art-end));box-shadow:inset 0 0 0 1px #28292e05,inset 0 1px 1px #ffffff80;color:var(--notice-ink)}
#notice .top-notice-art[hidden]{display:none}
#notice .top-notice-art svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#notice .top-notice-art[data-icon=complete] svg{width:37px;height:37px}
#notice .notice-copy{display:block;flex:1;min-width:0;padding:1px 0}
#notice .notice-message{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;font-size:15px;font-weight:600;line-height:1.65;color:var(--notice-ink)}
#notice .notice-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;font-size:12px;font-weight:400;line-height:1.7;color:var(--notice-muted);margin-top:4px}
#notice .top-notice-card[data-expanded=true] .notice-copy{max-height:min(360px,55dvh);overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
#notice .top-notice-card[data-expanded=true],#notice .top-notice-card[data-expanded=true] .notice-content{touch-action:pan-y}
#notice .top-notice-card[data-expanded=true] :is(.notice-message,.notice-description){display:block;-webkit-line-clamp:unset}
#notice .notice-settings{flex:none;min-height:44px;max-width:90px;font-size:12px;line-height:1.5;white-space:normal;border:0;border-radius:12px;padding:7px 8px;margin-left:4px;background:var(--bubble,#f1f1f3);color:var(--notice-ink);box-shadow:none}
#notice .notice-close{display:grid;place-items:center;flex:none;width:44px;height:48px;min-width:44px;padding:10px;margin:0;border:0;border-radius:13px;background:transparent;color:var(--notice-muted);box-shadow:none}
#notice .notice-close:hover{background:#8080800b}
#notice .notice-close svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#notice :is(button,a):focus-visible{outline:2px solid var(--notice-muted);outline-offset:2px}
:root[data-theme=dark] #notice.notice{--notice-paper:#2b2c31;--notice-ink:#f0f0f2;--notice-muted:#abadb4;--notice-line:#404147;--notice-art-start:#393a42;--notice-art-end:#313239;background:transparent;color:var(--notice-ink);border:0}
:root[data-theme=dark] #notice .top-notice-card{box-shadow:0 8px 24px #0003}
:root[data-theme=dark] #notice .top-notice-art{box-shadow:inset 0 0 0 1px #ffffff06,inset 0 1px 1px #ffffff04}
@media(min-width:901px){#notice.notice{left:50%;right:auto;width:560px;max-width:100%;transform:translateX(-50%)}}
@media(max-width:360px){#notice .top-notice-card{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(7px,env(safe-area-inset-right))}#notice .top-notice-art{width:39px;height:39px}#notice .top-notice-art[data-icon=complete] svg{width:35px;height:35px}#notice .notice-content{gap:10px}#notice .notice-message{font-size:14px}#notice .notice-settings{max-width:57px;padding:6px;font-size:11px}}
@media(forced-colors:active){#notice .top-notice-card{background:Canvas;color:CanvasText;border:1px solid CanvasText;box-shadow:none}#notice .top-notice-art{background:Canvas;box-shadow:none}#notice :is(.notice-message,.notice-description,.notice-close,.top-notice-art){color:CanvasText}}
