/* A small, non-modal news invitation. Page content remains usable behind it. */
.welcome-news[hidden]{display:none!important}
.welcome-news{position:fixed;right:24px;bottom:84px;z-index:65;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:360px;max-width:calc(100% - 24px);max-height:min(390px,calc(100dvh - 160px));border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--text);box-shadow:0 14px 50px #0004;overflow:hidden;animation:welcome-news-in .2s ease-out}
.welcome-news-head{display:flex;align-items:center;gap:9px;min-width:0;padding:12px 10px 10px 14px;border-bottom:1px solid var(--line-soft)}
.welcome-news-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;border-radius:50%;background:#187fb5;color:#fff}
.welcome-news-head>div{min-width:0;flex:1}
.welcome-news-brand{display:block;font-size:10px;line-height:1.4;color:var(--muted);letter-spacing:.04em}
.welcome-news-head h2{margin:2px 0 0;font-size:15px;line-height:1.35;font-weight:750;overflow-wrap:anywhere}
.welcome-news-close{display:flex;align-items:center;justify-content:center;align-self:flex-start;flex:0 0 44px;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:var(--text-2);font-size:27px;line-height:1;cursor:pointer}
.welcome-news-close:hover{background:var(--surface-2)}
.welcome-news-preview{min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px 14px;background:color-mix(in srgb,#187fb5 7%,var(--bg));scrollbar-width:thin}
.welcome-news-example{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-bottom:6px}
.welcome-news-message{padding:9px 12px;border:1px solid var(--line-soft);border-radius:3px 11px 11px;background:var(--surface)}
.welcome-news-message strong{display:block;font-size:12px;color:#68c5ef;line-height:1.35}
.welcome-news-message p{margin:4px 0;font-size:12px;line-height:1.45;color:var(--text)}
.welcome-news-message>span{font-size:11px;line-height:1.4;color:var(--muted)}
.welcome-news-actions{padding:10px 14px 2px;border-top:1px solid var(--line-soft)}
.welcome-news-join{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #1676a8;border-radius:8px;background:#147aa9;color:#fff!important;font-size:13px;font-weight:750;line-height:1.35;text-align:center;text-decoration:none;overflow-wrap:anywhere}
.welcome-news-join:hover{background:#11678f}
.welcome-news-today{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--text-2);font-size:12px;line-height:1.35;cursor:pointer}
.welcome-news-today input{width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#147aa9}
.welcome-news-dismiss{display:flex;justify-content:space-between;align-items:center;gap:8px}
.welcome-news-dismiss-button{min-width:44px;min-height:44px;padding:4px 8px;border:0;border-radius:6px;background:transparent;color:var(--text-2);font-size:12px;cursor:pointer}
.welcome-news-dismiss-button:hover{background:var(--surface-2)}
.welcome-news :is(button,a,input):focus-visible{outline:2px solid var(--text);outline-offset:3px}
:root[data-theme=light] .welcome-news{box-shadow:0 14px 40px #12233c29}
:root[data-theme=light] .welcome-news-message strong{color:#126d96}
@keyframes welcome-news-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){.welcome-news{left:12px;right:12px;bottom:calc(132px + env(safe-area-inset-bottom,0px));width:auto;max-width:none;max-height:min(300px,40dvh);border-radius:12px}.welcome-news-head{padding-top:8px;padding-bottom:6px}.welcome-news-head h2{font-size:14px}.welcome-news-preview{padding:6px 12px}.welcome-news-example{font-size:9px;margin-bottom:3px}.welcome-news-message{padding:6px 10px}.welcome-news-message strong{font-size:11px;line-height:1.3}.welcome-news-actions{padding:7px 12px 0}.welcome-news-message p{margin:3px 0;font-size:11px;line-height:1.3}.welcome-news-message>span{display:none}}
@media(prefers-reduced-motion:reduce){.welcome-news{animation:none}}
:root[data-motion=off] .welcome-news{animation:none}
