/* HUBNRO welcome: one accent, quiet glass and a compact service directory. */
.hn-welcome-overlay {
    --welcome-surface: rgba(255,255,255,.94);
    --welcome-panel: rgba(244,247,252,.8);
    --welcome-edge: rgba(255,255,255,.94);
    --welcome-border: rgba(187,201,222,.48);
    --welcome-shadow: rgba(17,37,69,.18);
    --welcome-scrim: rgba(20,34,55,.24);
    position:fixed; inset:0; z-index:99999;
    display:grid; place-items:center; padding:24px;
    opacity:0; transition:opacity .2s ease;
}
.hn-welcome-overlay[hidden] { display:none!important; }
[data-theme="dark"] .hn-welcome-overlay {
    --welcome-surface: rgba(22,33,50,.96);
    --welcome-panel: rgba(32,46,67,.78);
    --welcome-edge: rgba(187,208,239,.18);
    --welcome-border: rgba(126,153,190,.25);
    --welcome-shadow: rgba(0,0,0,.35);
    --welcome-scrim: rgba(3,9,19,.5);
}
.hn-welcome-overlay.is-visible { opacity:1; }
.hn-welcome-scrim { position:absolute; inset:0; background:var(--welcome-scrim); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.hn-welcome-card {
    position:relative; isolation:isolate; display:flex; flex-direction:column;
    width:min(100%,660px); max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px);
    border:1px solid var(--welcome-border); border-radius:26px;
    background:linear-gradient(145deg,var(--welcome-surface),var(--welcome-surface));
    color:var(--text-primary); overflow:hidden;
    box-shadow:0 24px 80px var(--welcome-shadow),inset 0 1px 0 var(--welcome-edge),inset 1px 0 0 var(--welcome-edge);
    backdrop-filter:blur(28px) saturate(110%); -webkit-backdrop-filter:blur(28px) saturate(110%);
    transform:translateY(10px) scale(.99); transition:transform .25s ease;
    outline:none;
}
.hn-welcome-overlay.is-visible .hn-welcome-card { transform:none; }
.hn-welcome-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:27px 30px 20px; flex:none; }
.hn-welcome-brand { display:flex; align-items:center; gap:11px; }
.hn-welcome-brand img { width:44px; height:44px; flex:none; border-radius:12px; box-shadow:0 5px 15px rgba(40,94,234,.09); }
.hn-welcome-brand b { display:block; font-size:20px; font-weight:750; letter-spacing:-.6px; line-height:1.3; }
.hn-welcome-brand small { display:block; font-size:9px; letter-spacing:2.6px; color:var(--text-secondary); margin-top:3px; }
.hn-welcome-close { display:grid; place-items:center; width:38px; height:38px; padding:0; flex:none; border:1px solid var(--welcome-border); border-radius:50%; color:var(--text-secondary); background:var(--welcome-panel); transition:background .18s ease,color .18s ease; }
.hn-welcome-close:hover { color:var(--text-primary); background:var(--sidebar-active-pill); }
.hn-welcome-content { padding:0 30px 22px; overflow-y:auto; min-height:0; overscroll-behavior:contain; scrollbar-width:thin; }
.hn-welcome-banner { margin:0 0 18px; overflow:hidden; border-radius:16px; background:#092755; }
.hn-welcome-banner img { display:block; width:100%; height:auto; aspect-ratio:1942 / 809; object-fit:contain; }
.hn-welcome-card .hn-welcome-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }
.hn-welcome-eyebrow { color:var(--text-secondary); font-size:10px; font-weight:650; letter-spacing:1.5px; margin:4px 0 10px; }
.hn-welcome-card h2 { font-size:32px; font-weight:750; line-height:1.25; letter-spacing:-1px; margin:0 0 13px; color:var(--text-primary); }
.hn-welcome-card h2 span { color:var(--apple-blue); }
.hn-welcome-description { font-size:14px; line-height:1.75; color:var(--text-secondary); margin:0 0 22px; max-width:550px; }
.hn-welcome-services { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.hn-welcome-services a { display:flex; align-items:center; gap:11px; min-width:0; min-height:78px; padding:14px; border-radius:15px; border:1px solid var(--welcome-border); background:var(--welcome-panel); color:var(--text-primary); text-decoration:none!important; box-shadow:inset 0 1px 0 var(--welcome-edge); transition:background .18s ease,border-color .18s ease; }
.hn-welcome-services a:hover { background:var(--sidebar-active-pill); border-color:var(--apple-blue); }
.hn-welcome-icon { flex:none; display:grid; place-items:center; width:34px; height:34px; color:var(--apple-blue); }
.hn-welcome-services a>span:nth-child(2) { min-width:0; flex:1; }
.hn-welcome-services b { display:block; font-size:14px; font-weight:650; line-height:1.4; }
.hn-welcome-services small { display:block; margin-top:4px; font-size:11px; color:var(--text-secondary); line-height:1.45; }
.hn-welcome-services a>svg { color:var(--text-secondary); opacity:.6; flex:none; }
.hn-welcome-footer { flex:none; padding:0 30px 20px; }
.hn-welcome-actions { display:flex; gap:10px; }
.hn-welcome-primary,.hn-welcome-secondary { display:flex; align-items:center; justify-content:center; gap:9px; min-height:46px; padding:11px 16px; border:1px solid var(--welcome-border); border-radius:13px; font-size:13px; font-weight:650; text-decoration:none!important; }
.hn-welcome-primary { flex:1; background:#2469db; border-color:#2469db; color:#fff; box-shadow:0 5px 14px rgba(36,105,219,.15),inset 0 1px 0 rgba(255,255,255,.2); }
.hn-welcome-primary:hover { background:#1c5fc9; color:#fff; }
.hn-welcome-secondary { background:var(--welcome-panel); color:var(--text-primary); }
.hn-welcome-secondary:hover { color:var(--text-primary); background:var(--sidebar-active-pill); }
.hn-welcome-preferences { display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--welcome-border); margin-top:20px; padding-top:13px; }
.hn-welcome-dismiss { display:flex; align-items:center; gap:7px; background:none; border:0; color:var(--text-secondary); padding:6px 0; min-height:34px; font-size:12px; font-weight:500; }
.hn-welcome-dismiss:hover { color:var(--apple-blue); }
.hn-welcome-more { position:relative; }
.hn-welcome-more summary { display:flex; align-items:center; gap:5px; list-style:none; cursor:pointer; color:var(--text-secondary); font-size:12px; padding:7px 0 7px 8px; }
.hn-welcome-more summary::-webkit-details-marker { display:none; }
.hn-welcome-more[open] summary { color:var(--apple-blue); }
.hn-welcome-more-menu { position:absolute; right:0; bottom:calc(100% + 8px); min-width:230px; padding:5px; border:1px solid var(--welcome-border); border-radius:13px; background:var(--bg-main); box-shadow:0 12px 35px var(--welcome-shadow); }
.hn-welcome-more-menu button { display:block; width:100%; text-align:left; border:0; border-radius:9px; background:none; padding:11px; font-size:12px; color:var(--text-primary); }
.hn-welcome-more-menu button:hover { background:var(--sidebar-active-pill); }
.hn-welcome-open { color:var(--text-secondary); background:none; border:0; padding:0; font:inherit; cursor:pointer; }
.hn-welcome-open:hover { color:var(--apple-blue); }
@media(max-width:540px) {
    .hn-welcome-overlay { padding:16px; }
    .hn-welcome-card { max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); border-radius:22px; }
    .hn-welcome-header { padding:21px 22px 18px; }
    .hn-welcome-content { padding:0 22px 20px; }
    .hn-welcome-banner { margin-bottom:15px; border-radius:12px; }
    .hn-welcome-footer { padding:0 22px 17px; }
    .hn-welcome-card h2 { font-size:28px; letter-spacing:-.8px; }
    .hn-welcome-description { font-size:13px; line-height:1.7; margin-bottom:18px; }
    .hn-welcome-services { gap:8px; }
    .hn-welcome-services a { padding:12px 9px; gap:6px; min-height:78px; border-radius:12px; }
    .hn-welcome-icon { width:26px; }
    .hn-welcome-services b { font-size:12px; }
    .hn-welcome-services small { font-size:10px; }
    .hn-welcome-services a>svg { display:none; }
    .hn-welcome-actions { flex-direction:column; gap:8px; }
    .hn-welcome-primary,.hn-welcome-secondary { min-height:43px; font-size:12px; padding:10px 12px; }
    .hn-welcome-preferences { margin-top:15px; padding-top:10px; gap:5px; }
    .hn-welcome-dismiss,.hn-welcome-more summary { font-size:11px; }
}
@media(max-height:650px) {
    .hn-welcome-header { padding-top:16px; padding-bottom:13px; }
    .hn-welcome-content { padding-bottom:14px; }
    .hn-welcome-description { margin-bottom:14px; }
    .hn-welcome-preferences { margin-top:12px; }
}
@media(prefers-reduced-motion:reduce) {
    .hn-welcome-overlay,.hn-welcome-card { transition:none; transform:none; }
}
@supports not (backdrop-filter:blur(1px)) { .hn-welcome-card { background:var(--bg-main); } }
