/* ModunAI — ai.modunos.com / /ai  (standalone public AI face) */
@import url("https://fonts.googleapis.com/css2?family=Teko:wght@700&display=swap");

:root {
    --void-ink: #07090f;
    --void-panel: #0e121c;
    --void-line: rgba(125, 160, 220, 0.16);
    --void-text: #e8ecf4;
    --void-muted: #8b93a7;
    --void-accent: #5b8cff;
    --void-accent-deep: #3275ff;
    --void-glow: rgba(80, 140, 255, 0.35);
    --void-violet: #9b8cff;
    --void-danger: #ff6b7a;
    --void-radius: 14px;
    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Sora", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--void-ink);
    color: var(--void-text);
    font-family: var(--font-body);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* ModunOS native scrollbars — stable gutter so page width never jumps */
html {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 180, 255, 0.38) transparent;
}
html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background: rgba(125, 180, 255, 0.32);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 180, 255, 0.5);
    border: 2px solid transparent;
    background-clip: padding-box;
}
.void-page,
.void-page * {
    scrollbar-width: thin;
    scrollbar-color: rgba(125, 180, 255, 0.35) transparent;
}
.void-page::-webkit-scrollbar,
.void-page *::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
.void-page::-webkit-scrollbar-track,
.void-page *::-webkit-scrollbar-track {
    background: transparent;
}
.void-page::-webkit-scrollbar-thumb,
.void-page *::-webkit-scrollbar-thumb {
    background: rgba(125, 180, 255, 0.32);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.void-page::-webkit-scrollbar-thumb:hover,
.void-page *::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 180, 255, 0.5);
    border: 2px solid transparent;
    background-clip: padding-box;
}

a { color: var(--void-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.void-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Apex-matched stock glow — top wash, not left-heavy */
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(50, 117, 255, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(155, 140, 255, 0.1), transparent 50%),
        linear-gradient(180deg, #0a0d16 0%, var(--void-ink) 45%, #05070c 100%);
    transition: filter 0.45s ease, opacity 0.45s ease;
}

/* Thinking: breathe the apex glow — tucks under sticky header frost when scrolling */
.void-page--chat[data-thinking="1"] .void-atmosphere {
    background:
        radial-gradient(ellipse 95% 58% at 50% -8%, rgba(50, 117, 255, 0.38), transparent 58%),
        radial-gradient(ellipse 55% 40% at 78% 18%, rgba(91, 140, 255, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(155, 140, 255, 0.1), transparent 50%),
        linear-gradient(180deg, #0a0d16 0%, var(--void-ink) 45%, #05070c 100%);
    animation: void-think-glow 2.4s ease-in-out infinite;
}

@keyframes void-think-glow {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.08) saturate(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .void-page--chat[data-thinking="1"] .void-atmosphere {
        animation: none;
        filter: brightness(1.06) saturate(1.08);
    }
}

.void-atmosphere--deep {
    /* retired on chat — keep class harmless if referenced */
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(50, 117, 255, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(155, 140, 255, 0.1), transparent 50%),
        linear-gradient(180deg, #0a0d16 0%, var(--void-ink) 45%, #05070c 100%);
}

.void-page { position: relative; z-index: 1; min-height: 100vh; }

.void-top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Full-bleed chat header — same compact frost as modunos.com About */
.void-top--chat.about-top {
    position: sticky;
    top: 0;
    /* Above chat shell so friends/bell/account panels are not trapped under the stage */
    z-index: 80;
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 0.85rem max(1.25rem, env(safe-area-inset-right, 0px)) 0.85rem max(1.25rem, env(safe-area-inset-left, 0px));
    border-bottom: none;
    border-radius: 0;
    background: transparent;
    isolation: isolate;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.void-top--chat.about-top::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 9, 16, 0.88), rgba(6, 9, 16, 0.35) 70%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 calc(100% - (1.4rem * var(--about-chrome-solid, 0))),
        transparent 100%
    );
    mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 calc(100% - (1.4rem * var(--about-chrome-solid, 0))),
        transparent 100%
    );
}

.void-top--chat.about-top::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(100% + (1.35rem * var(--about-chrome-solid, 0)));
    z-index: 0;
    pointer-events: none;
    opacity: var(--about-chrome-solid, 0);
    background: linear-gradient(
        180deg,
        rgba(6, 9, 16, 0.97) 0%,
        rgba(6, 9, 16, 0.9) 34%,
        rgba(6, 9, 16, 0.55) 55%,
        rgba(6, 9, 16, 0.22) 74%,
        transparent 100%
    );
}

.void-top--chat.about-top > * {
    position: relative;
    z-index: 1;
}

.void-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #f2f5fb;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.void-brand:hover { text-decoration: none; color: #fff; }

.void-brand__name { color: inherit; }

.void-brand__ai {
    color: #8eb6ff;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 0 18px rgba(91, 140, 255, 0.35);
}

.void-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

span.void-brand__mark {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--void-accent);
    box-shadow: 0 0 16px var(--void-glow);
}

.void-brand__sub {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8eb6ff;
    margin-left: 0.15rem;
}

.void-nav {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
}
.void-nav a { color: var(--void-muted); }
.void-nav__cta {
    color: var(--void-text) !important;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--void-line);
    border-radius: 999px;
    background: rgba(50, 117, 255, 0.08);
    line-height: 1.2;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 2.05rem;
}
.void-nav__cta:hover { border-color: var(--void-accent); text-decoration: none; }

.void-auth {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.void-nav__auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.05rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
}

.void-nav__auth--ghost {
    color: var(--void-text) !important;
    border: 1px solid var(--void-line);
    background: transparent;
}

.void-nav__auth--ghost:hover {
    border-color: rgba(125, 180, 255, 0.45);
    text-decoration: none;
}

.void-nav__auth--solid {
    color: #f4f7ff !important;
    border: 1px solid rgba(125, 180, 255, 0.4);
    background: rgba(50, 117, 255, 0.22);
}

.void-nav__auth--solid:hover {
    background: rgba(50, 117, 255, 0.34);
    border-color: var(--void-accent);
    text-decoration: none;
}

.void-nav__account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 50%;
    border: 1px solid rgba(125, 180, 255, 0.4);
    background: linear-gradient(145deg, rgba(50, 117, 255, 0.35), rgba(14, 20, 34, 0.85));
    color: #f4f7ff !important;
    text-decoration: none;
    box-sizing: border-box;
}

.void-nav__account:hover {
    border-color: var(--void-accent);
    text-decoration: none;
    box-shadow: 0 0 18px rgba(80, 140, 255, 0.35);
}

.void-nav__account-mark {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

.void-auth[data-signed="1"] .void-nav__auth { display: none; }
.void-auth[data-signed="0"] .void-nav__account,
.void-auth[data-signed="0"] [data-auth="account-wrap"] { display: none; }

.void-nav__account {
    position: relative;
}
.void-auth[data-guest-mode="1"] .void-nav__account {
    border-color: rgba(0, 229, 204, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 229, 204, 0.2);
}
.void-nav__account-guest-badge {
    position: absolute;
    right: -0.12rem;
    bottom: -0.12rem;
    width: 0.95rem;
    height: 0.95rem;
    min-width: 0.95rem;
    max-width: 0.95rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 204, 0.55);
    background: #0a1620;
    color: #5ef0dc;
    font-family: var(--font-display, Syne, sans-serif);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    pointer-events: none;
    overflow: hidden;
}
.void-nav__account-guest-badge[hidden] {
    display: none !important;
}
.mac-menu__guest-status {
    margin: 0.35rem 0.65rem 0.35rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 204, 0.22);
    background: rgba(0, 229, 204, 0.06);
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(200, 230, 224, 0.88);
}
.mac-menu__guest-status[hidden] {
    display: none !important;
}
.mac-menu__guest-exit-hint {
    color: #9ef5e8;
    font-weight: 600;
}
.mac-menu__accounts[hidden] {
    display: none !important;
}

.void-auth { position: relative; }

.void-nav__account {
    appearance: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

[data-auth="account-wrap"] {
    position: relative;
    display: inline-flex;
}

.mac-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 15.5rem;
    max-height: min(70vh, 28rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.45rem;
    border: 1px solid rgba(150, 180, 230, 0.16);
    border-radius: 12px;
    background: rgba(12, 16, 26, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(80, 120, 200, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 60;
    color: #e8ecf4;
}
.void-nav__account.has-photo {
    background: var(--mac-account-photo) center / cover no-repeat;
    border-color: rgba(125, 180, 255, 0.55);
}
.void-nav__account.has-photo .void-nav__account-mark,
.void-nav__account-mark.is-photo {
    font-size: 0;
    color: transparent;
}
.mac-menu__id {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0.1rem 0.15rem 0.35rem;
    padding: 0.45rem 0.45rem 0.65rem;
    border-bottom: 1px solid rgba(150, 180, 230, 0.12);
}
.mac-menu__face {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    border: 1px solid rgba(125, 180, 255, 0.38);
    background: linear-gradient(145deg, rgba(50, 117, 255, 0.35), rgba(14, 20, 34, 0.9));
    background-size: cover;
    background-position: center;
    color: #f4f7ff;
    text-decoration: none;
    overflow: hidden;
    box-sizing: border-box;
}
.mac-menu__face:hover,
.mac-menu__face:focus-visible {
    border-color: rgba(125, 180, 255, 0.72);
    box-shadow: 0 0 0 1px rgba(80, 140, 255, 0.25);
    text-decoration: none;
}
.mac-menu__face.has-photo {
    background: var(--mac-account-photo) center / cover no-repeat;
}
.mac-menu__face.is-muted { pointer-events: none; cursor: default; }
.mac-menu__face-mark {
    font-family: var(--font-display, Syne, sans-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}
.mac-menu__face-mark.is-photo { font-size: 0; color: transparent; }
.mac-menu__face-cam {
    position: absolute;
    right: -0.05rem;
    bottom: -0.05rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 24, 0.92);
    border: 1px solid rgba(125, 180, 255, 0.45);
    color: rgba(200, 220, 255, 0.92);
    opacity: 0.72;
}
.mac-menu__face:hover .mac-menu__face-cam,
.mac-menu__face:focus-visible .mac-menu__face-cam { opacity: 1; }
.mac-menu__face.is-muted .mac-menu__face-cam { display: none; }
.mac-menu__id-text { min-width: 0; flex: 1 1 auto; padding-top: 0.05rem; }
.mac-menu__who {
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #f2f5fb;
}
.mac-menu__mail {
    margin: 0.15rem 0 0;
    padding: 0;
    font-size: 0.78rem;
    color: rgba(180, 196, 220, 0.72);
    border-bottom: none;
    word-break: break-all;
}
.mac-menu__photo-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #8eb6ff;
    text-decoration: none;
}
.mac-menu__photo-link:hover { color: #b8d4ff; text-decoration: underline; }
.mac-menu__photo-link[hidden] { display: none !important; }
.mac-menu__doors {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.15rem 0.1rem 0.35rem;
    padding: 0 0 0.45rem;
    border-bottom: 1px solid rgba(150, 180, 230, 0.12);
}
.mac-menu__door {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: rgba(50, 117, 255, 0.08);
    border: 1px solid rgba(125, 180, 255, 0.14);
    text-decoration: none;
    color: inherit;
}
.mac-menu__door:hover {
    border-color: rgba(125, 180, 255, 0.4);
    background: rgba(50, 117, 255, 0.12);
    text-decoration: none;
}
.mac-menu__door--account {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(150, 180, 230, 0.12);
}
.mac-menu__door-title { font-size: 0.86rem; font-weight: 600; color: #f2f5fb; }
.mac-menu__door-sub { font-size: 0.72rem; color: rgba(180, 196, 220, 0.6); }
.mac-menu__accounts {
    padding: 0.45rem 0.35rem 0.55rem;
    border-bottom: 1px solid rgba(150, 180, 230, 0.12);
}
.mac-menu__accounts-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(180, 196, 220, 0.55);
    padding: 0.15rem 0.35rem 0.35rem;
}
.mac-menu__accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: 9rem;
    overflow: auto;
}
.mac-menu__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    font-size: 0.86rem;
}
.mac-menu__row.is-current { background: rgba(50, 117, 255, 0.16); }
.mac-menu__row-name { color: #e8ecf4; font-weight: 500; }
.mac-menu__tag { font-size: 0.72rem; color: rgba(180, 196, 220, 0.55); }
.mac-menu__row-switch {
    appearance: none;
    border: none;
    background: transparent;
    color: #8eb6ff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.mac-menu__row-switch:hover { color: #b8d4ff; }
.mac-menu__empty {
    margin: 0;
    padding: 0.25rem 0.4rem 0.45rem;
    font-size: 0.78rem;
    color: rgba(180, 196, 220, 0.55);
}
.mac-menu__mint { padding: 0.35rem 0.25rem 0.15rem; }
.mac-menu__mint-input {
    width: 100%;
    border: 1px solid rgba(150, 180, 230, 0.2);
    border-radius: 6px;
    background: rgba(6, 9, 16, 0.85);
    color: #e8ecf4;
    font: inherit;
    font-size: 0.86rem;
    padding: 0.4rem 0.55rem;
    box-sizing: border-box;
}
.mac-menu__mint-actions { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.mac-menu__mint-go,
.mac-menu__mint-cancel {
    appearance: none;
    border: 1px solid rgba(150, 180, 230, 0.22);
    background: transparent;
    color: #e8ecf4;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
}
.mac-menu__mint-go {
    background: rgba(50, 117, 255, 0.28);
    border-color: rgba(125, 180, 255, 0.4);
}
.mac-menu__mint-err {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #ff8a98;
}
.mac-menu__mint-add {
    appearance: none;
    width: 100%;
    margin-top: 0.25rem;
    border: none;
    background: transparent;
    color: #8eb6ff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    padding: 0.4rem 0.4rem;
    border-radius: 6px;
    cursor: pointer;
}
.mac-menu__mint-add:hover { background: rgba(50, 117, 255, 0.1); }
.mac-menu__mint-tip {
    margin: 0.2rem 0.4rem 0.15rem;
    font-size: 0.68rem;
    line-height: 1.35;
    color: rgba(180, 198, 220, 0.72);
}
.mac-menu__mint-tip a {
    color: #8eb6ff;
    text-decoration: none;
}
.mac-menu__mint-tip a:hover {
    text-decoration: underline;
}
.mac-menu__modun {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    margin: 0.35rem 0.1rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(50, 117, 255, 0.1);
    border: 1px solid rgba(125, 180, 255, 0.18);
    text-decoration: none;
    color: inherit;
}
.mac-menu__modun:hover { border-color: rgba(125, 180, 255, 0.4); text-decoration: none; }
.mac-menu__modun-title { font-size: 0.86rem; font-weight: 600; color: #f2f5fb; }
.mac-menu__modun-sub { font-size: 0.72rem; color: rgba(180, 196, 220, 0.6); }
.mac-menu__out {
    appearance: none;
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(180, 196, 220, 0.75);
    font: inherit;
    font-size: 0.86rem;
    text-align: left;
    padding: 0.5rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
}
.mac-menu__out:hover {
    background: rgba(255, 100, 120, 0.1);
    color: #ff8a98;
}

.mac-apps {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.mac-apps__btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(200, 214, 235, 0.78);
    cursor: pointer;
}
.mac-apps__btn:hover {
    color: #f2f5fb;
    background: rgba(50, 117, 255, 0.12);
    border-color: rgba(125, 180, 255, 0.22);
}
.mac-apps.is-open .mac-apps__btn {
    color: #f2f5fb;
    background: rgba(50, 117, 255, 0.16);
    border-color: rgba(125, 180, 255, 0.28);
}
.mac-apps__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.mac-apps__menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: 20.5rem;
    padding: 0.75rem 0.7rem 0.7rem;
    border: 1px solid rgba(150, 180, 230, 0.16);
    border-radius: 16px;
    background: rgba(12, 16, 26, 0.97);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(80, 120, 200, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 60;
    color: #e8ecf4;
}
.mac-apps__hint {
    margin: 0 0 0.35rem;
    padding: 0.1rem 0.45rem 0.45rem;
    font-family: var(--font-body, "Sora", system-ui, sans-serif);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(180, 196, 220, 0.55);
    border-bottom: 1px solid rgba(150, 180, 230, 0.12);
}
.mac-apps__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.1rem;
    padding: 0.2rem 0 0.15rem;
}
.mac-apps__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.55rem 0.3rem 0.45rem;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(232, 236, 244, 0.92);
    transition: background 0.14s ease;
}
.mac-apps__tile:hover {
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: #fff;
}
.mac-apps__tile[aria-current="page"] {
    background: rgba(50, 117, 255, 0.16);
}
.mac-apps__tile[aria-current="page"]:hover {
    background: rgba(50, 117, 255, 0.22);
}
.mac-apps__tile--soon {
    cursor: default;
    opacity: 0.92;
}
.mac-apps__tile--soon:hover {
    background: rgba(255, 255, 255, 0.04);
}
.mac-apps__icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.22s ease;
}
.mac-apps__icon.is-loaded {
    opacity: 1;
}
.mac-apps__label {
    font-family: var(--font-body, "Sora", system-ui, sans-serif);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    color: inherit;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mac-apps__item {
    display: block;
    padding: 0.5rem 0.55rem;
    color: #e8ecf4;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
}
.mac-apps__item:hover {
    background: rgba(50, 117, 255, 0.14);
    color: #f2f5fb;
    text-decoration: none;
}
.mac-apps__item[aria-current="page"] {
    background: rgba(50, 117, 255, 0.2);
    color: #b8d4ff;
}

.mac-apps__divider {
    height: 1px;
    margin: 0.45rem 0.35rem 0.35rem;
    background: rgba(150, 180, 230, 0.14);
    border: 0;
}

.mac-apps__hint--other {
    margin-top: 0.15rem;
    border-bottom: none;
    padding-bottom: 0.25rem;
}

.mac-apps__other {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    align-items: center;
    justify-items: center;
}

.mac-apps__item--other {
    color: rgba(200, 214, 235, 0.88);
}

.mac-apps__item--other:hover {
    background: transparent;
    color: rgba(200, 214, 235, 0.88);
}

.mac-apps__item--chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.35rem 0.2rem;
    background: transparent;
}

.mac-apps__item--chip:hover,
.mac-apps__item--chip:focus-visible,
.mac-apps__item--chip[aria-current="page"] {
    background: transparent;
}

.mac-apps__chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.6rem;
    max-width: 100%;
    height: 1.7rem;
    padding: 0 0.7rem 0.02rem;
    background: #fff;
    border: 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
    transition: filter 0.18s ease, opacity 0.18s ease, transform 0.16s ease;
}

.mac-apps__chip--corner {
    filter: grayscale(1) brightness(0.78);
    opacity: 0.72;
}

.mac-apps__chip--corner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.18rem;
    background: #d0121a;
}

.mac-apps__item--chip:hover .mac-apps__chip--corner,
.mac-apps__item--chip:focus-visible .mac-apps__chip--corner,
.mac-apps__item--chip[aria-current="page"] .mac-apps__chip--corner {
    filter: none;
    opacity: 1;
}

.mac-apps__item--chip:hover .mac-apps__chip {
    transform: translateY(-1px);
}

.mac-apps__chip-name {
    font-family: "Teko", "Arial Narrow", Impact, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    color: #0a0a0a;
}

.void-top__meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.void-session {
    display: none;
}

.void-top__about {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(190, 210, 245, 0.78);
    text-decoration: none;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    line-height: 1.2;
}
.void-top__about:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.void-btn--tiny {
    /* legacy — unused on chat header */
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

/* —— About hero —— */
.void-hero {
    max-width: 720px;
    margin: 0 auto;
    padding: 12vh 1.5rem 3rem;
    text-align: left;
}

.void-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--void-accent);
    margin: 0 0 1rem;
}

.void-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3.2rem, 10vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0 0 0.85rem;
    background: linear-gradient(135deg, #fff 20%, #9ad0ff 70%, var(--void-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: void-title-in 0.9s ease both;
}

.void-pitch {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--void-text);
    animation: void-fade-up 0.7s 0.12s ease both;
}

.void-lede {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--void-muted);
    max-width: 38rem;
    margin: 0 0 2rem;
    animation: void-fade-up 0.7s 0.22s ease both;
}
.void-lede strong { color: var(--void-text); font-weight: 550; }

.void-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: void-fade-up 0.7s 0.32s ease both;
}

.void-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 550;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.void-btn:active { transform: scale(0.98); }
.void-btn--primary {
    background: linear-gradient(145deg, var(--void-accent-deep), #1a4fd4);
    color: #fff;
    box-shadow: 0 8px 28px rgba(50, 117, 255, 0.35);
}
.void-btn--primary:hover { filter-color: #7eb0ff; }
.void-btn--ghost {
    background: transparent;
    border-color: var(--void-line);
    color: var(--void-text);
}
.void-btn--ghost:hover { border-color: var(--void-accent); }

.void-pillars {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}
.void-section-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--void-muted);
    margin: 0 0 1rem;
}
.void-pillar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.65rem;
}
.void-pillar-list li {
    padding: 0.85rem 1rem;
    border: 1px solid var(--void-line);
    border-radius: 12px;
    background: rgba(14, 18, 28, 0.65);
    font-size: 0.82rem;
    color: var(--void-muted);
}
.void-pillar-list span {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--void-text);
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.void-foot {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    font-size: 0.78rem;
    color: var(--void-muted);
    border-top: 1px solid var(--void-line);
}
.void-foot p { margin: 0.35rem 0; }

/* —— Chat —— */
.void-page--chat {
    --about-chrome-solid: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.void-chat-shell {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem 1rem;
}

.void-orb-rail,
.void-orb,
.void-orb__label {
    display: none !important;
}

/* Thinking constellation — free under user bubble (no Modun tray until speak) */
.void-pending {
    align-self: flex-start;
    display: flex;
    align-items: center;
    padding: 0.15rem 0.35rem 0.35rem;
    margin: 0.1rem 0 0.15rem;
    max-width: 92%;
    animation: void-msg-in 0.28s ease both;
}

.void-think {
    position: relative;
    width: 2.65rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.void-think__orb {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #d4e6ff, var(--void-accent) 55%, #1e3a8a);
    box-shadow: 0 0 10px var(--void-glow), 0 0 2px rgba(200, 220, 255, 0.8);
    animation: void-think-orbit 1.35s ease-in-out infinite;
}

.void-think__orb:nth-child(1) {
    left: 0;
    animation-delay: 0s;
}

.void-think__orb:nth-child(2) {
    left: 50%;
    margin-left: -3.5px;
    animation-delay: 0.18s;
    width: 8px;
    height: 8px;
}

.void-think__orb:nth-child(3) {
    right: 0;
    left: auto;
    animation-delay: 0.36s;
}

@keyframes void-think-orbit {
    0%, 100% {
        transform: translateY(0) scale(0.85);
        opacity: 0.45;
        filter: brightness(0.9);
    }
    35% {
        transform: translateY(-5px) scale(1.15);
        opacity: 1;
        filter: brightness(1.25);
    }
    70% {
        transform: translateY(2px) scale(0.95);
        opacity: 0.7;
    }
}

.void-msg__body--stream {
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 1.35em;
}

@media (prefers-reduced-motion: reduce) {
    .void-think__orb {
        animation: none;
        opacity: 0.85;
        position: static;
        margin: 0 0.2rem;
    }
}

.void-chat {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem 1rem;
    position: relative;
    /* snap uses rAF ease; avoid CSS smooth fighting turn snap */
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(80, 140, 255, 0.35) transparent;
}

/* ChatGPT-style room so the latest user bubble can sit at the top of the viewport */
.void-turn-spacer {
    flex: 0 0 auto;
    width: 100%;
    pointer-events: none;
}
.void-chat::-webkit-scrollbar { width: 5px; }
.void-chat::-webkit-scrollbar-thumb {
    background: rgba(80, 140, 255, 0.35);
    border-radius: 4px;
}

.void-msg {
    max-width: 92%;
    padding: 0.75rem 1rem;
    border-radius: var(--void-radius);
    font-size: 0.92rem;
    line-height: 1.55;
    animation: void-msg-in 0.35s ease both;
}
.void-msg--user {
    align-self: flex-end;
    background: linear-gradient(145deg, rgba(50, 117, 255, 0.22), rgba(50, 117, 255, 0.08));
    border: 1px solid rgba(50, 117, 255, 0.3);
    border-bottom-right-radius: 4px;
    white-space: pre-wrap;
    word-break: break-word;
}
/* Mental separation: extra air above a new user turn after Modun */
.void-msg--assistant + .void-msg--user {
    margin-top: 1.15rem;
}
/* ChatGPT / Gemini: Modun reply floats on the void — no tray, no name label */
.void-msg--assistant {
    align-self: stretch;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.35rem 0.2rem 0.55rem;
    box-shadow: none;
    line-height: 1.72;
}
.void-msg--error {
    border-left: 2px solid rgba(255, 107, 122, 0.55);
    padding-left: 0.75rem;
    color: #ffb4bc;
}
.void-msg__who {
    display: none;
}

/* —— Modun reply type rhythm (spacing only; same font / markdown / bold) —— */
.void-msg--assistant .void-msg__body {
    word-break: break-word;
    line-height: 1.72;
    color: rgba(232, 236, 244, 0.96);
}
.void-msg--assistant .void-msg__body p {
    margin: 0 0 0.95rem;
}
.void-msg--assistant .void-msg__body p:last-child {
    margin-bottom: 0;
}
.void-msg--assistant .void-msg__body ul {
    margin: 0.2rem 0 1.1rem;
    padding-left: 1.7em;
    list-style: disc outside;
}
.void-msg--assistant .void-msg__body li {
    margin: 0.5rem 0;
    padding-left: 0.25em;
    line-height: 1.7;
}
.void-msg--assistant .void-msg__body li:first-child {
    margin-top: 0.1rem;
}
.void-msg--assistant .void-msg__body li:last-child {
    margin-bottom: 0.15rem;
}
.void-msg--assistant .void-msg__body strong {
    font-weight: 600;
    color: #fff;
}
/* Bigger breath when crossing block types (para ↔ list ↔ table) */
.void-msg--assistant .void-msg__body p + ul,
.void-msg--assistant .void-msg__body p + table {
    margin-top: 0.15rem;
}
.void-msg--assistant .void-msg__body ul + p,
.void-msg--assistant .void-msg__body table + p {
    margin-top: 1.15rem;
}
.void-msg--assistant .void-msg__body ul + table,
.void-msg--assistant .void-msg__body table + ul {
    margin-top: 1.05rem;
}
.void-msg--assistant .void-msg__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin: 1.05rem 0 1.15rem;
}
.void-msg--assistant .void-msg__body th,
.void-msg--assistant .void-msg__body td {
    border: 1px solid var(--void-line);
    padding: 0.35rem 0.5rem;
    text-align: left;
}

/* Links — highlighted chips; confirm tip before new tab */
.void-msg--assistant .void-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: #9ec4ff;
    text-decoration: underline;
    text-decoration-color: rgba(125, 180, 255, 0.45);
    text-underline-offset: 0.15em;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.void-msg--assistant .void-link:hover {
    color: #cfe0ff;
    text-decoration-color: rgba(154, 208, 255, 0.9);
}
.void-msg--assistant .void-rich {
    margin: 0 0 0.95rem;
}
.void-msg--assistant .void-link-list {
    list-style: none;
    margin: 0.75rem 0 1.05rem 0.55rem;
    padding: 0.4rem 0.65rem 0.45rem 0.35rem;
    border-left: 2px solid rgba(125, 180, 255, 0.28);
    background: rgba(18, 28, 48, 0.28);
    border-radius: 0 10px 10px 0;
}
.void-msg--assistant .void-rich .void-link-list {
    margin-top: 0.75rem;
}
.void-msg--assistant li .void-link-list {
    margin: 0.55rem 0 0.25rem 0.35rem;
}
.void-msg--assistant .void-link-list li {
    position: relative;
    list-style: none;
    margin: 0.38rem 0;
    padding-left: 1.15em;
    line-height: 1.55;
}
.void-msg--assistant .void-link-list li::before {
    content: "›";
    position: absolute;
    left: 0.1em;
    top: 0;
    color: #9ec4ff;
    font-size: 1.05em;
    font-weight: 500;
    line-height: inherit;
    opacity: 0.92;
    pointer-events: none;
}
.void-msg--assistant .void-link-list .void-link {
    word-break: break-all;
}

.void-link-tip {
    position: fixed;
    z-index: 80;
    min-width: 16rem;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 0.9rem 1rem 0.85rem;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(28, 40, 64, 0.97), rgba(10, 14, 26, 0.98));
    border: 1px solid rgba(125, 180, 255, 0.32);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    color: var(--void-text);
    font-family: var(--font-body);
}
.void-link-tip[hidden] { display: none !important; }
.void-link-tip__ask {
    margin: 0 0 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #eef3ff;
}
.void-link-tip__url {
    margin: 0 0 0.85rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    background: rgba(8, 12, 22, 0.65);
    border: 1px solid rgba(150, 180, 230, 0.16);
    font-size: 0.75rem;
    line-height: 1.45;
    color: #9ec4ff;
    word-break: break-all;
}
.void-link-tip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.void-link-tip__actions button {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid rgba(125, 180, 255, 0.35);
    background: rgba(50, 117, 255, 0.2);
    color: #f0f5ff;
}
.void-link-tip__actions button[data-cancel] {
    background: transparent;
    color: rgba(200, 214, 240, 0.85);
    border-color: rgba(150, 180, 230, 0.22);
}
.void-link-tip__actions button:hover {
    border-color: rgba(154, 208, 255, 0.7);
}

/* Shared constellation warning tip — always viewport-centred */
.void-warn-tip {
    z-index: 90;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%);
    min-width: 17.5rem;
    max-width: min(24rem, calc(100vw - 2rem));
}
.void-warn-tip__body {
    margin: 0 0 0.9rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(200, 214, 240, 0.82);
}
.void-warn-tip__link {
    color: #9ec4ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.void-warn-tip__link:hover {
    color: #cfe0ff;
}
.mac-menu__guest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(200, 214, 240, 0.92);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}
.mac-menu__guest:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.mac-menu__guest-label {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}
.mac-menu__guest-switch {
    position: relative;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 1.3rem;
    border-radius: 999px;
    background: rgba(120, 140, 170, 0.28);
    border: 1px solid rgba(160, 180, 210, 0.28);
    box-sizing: border-box;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.mac-menu__guest-knob {
    position: absolute;
    top: 50%;
    left: 0.14rem;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: -0.475rem;
    border-radius: 50%;
    background: #e8ecf4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, background 0.18s ease;
}
.mac-menu__guest.is-on .mac-menu__guest-switch {
    background: rgba(0, 229, 204, 0.35);
    border-color: rgba(0, 229, 204, 0.55);
}
.mac-menu__guest.is-on .mac-menu__guest-knob {
    transform: translateX(1rem);
    background: #b8fff4;
}
.mac-menu__guest.is-on:hover {
    background: rgba(0, 229, 204, 0.08);
    color: #e8fffb;
}

/* Guest mode confirm tip — Zievu teal family */
.void-guest-tip {
    border-color: rgba(0, 229, 204, 0.38) !important;
    background: linear-gradient(165deg, rgba(18, 42, 40, 0.98), rgba(8, 14, 22, 0.99)) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 229, 204, 0.08) !important;
}
.void-guest-tip .void-link-tip__ask {
    color: #e8fffb;
}
.void-guest-tip .void-warn-tip__body {
    color: rgba(200, 230, 224, 0.86);
}
.void-guest-tip .void-warn-tip__link {
    color: #7ef0dc;
}
.void-guest-tip .void-warn-tip__link:hover {
    color: #b8fff4;
}
.void-guest-tip .void-link-tip__actions button {
    border-color: rgba(0, 229, 204, 0.28);
    color: #e8fffb;
}
.void-guest-tip .void-link-tip__actions button[data-cancel] {
    color: rgba(200, 230, 224, 0.75);
}
.void-guest-tip .void-guest-tip__confirm,
.void-guest-tip .void-link-tip__actions button[data-confirm] {
    background: rgba(0, 229, 204, 0.2);
    border-color: rgba(0, 229, 204, 0.45);
    color: #e8fffb;
    font-weight: 600;
}
.void-guest-tip .void-guest-tip__confirm:hover,
.void-guest-tip .void-link-tip__actions button[data-confirm]:hover {
    background: rgba(0, 229, 204, 0.32);
    border-color: rgba(0, 229, 204, 0.6);
}
.void-warn-tip__actions button.void-warn-tip__danger,
.void-link-tip__actions button.void-warn-tip__danger {
    background: rgba(220, 80, 100, 0.22);
    border-color: rgba(255, 140, 160, 0.4);
    color: #ffd0d8;
}
.void-warn-tip__actions button.void-warn-tip__danger:hover,
.void-link-tip__actions button.void-warn-tip__danger:hover {
    background: rgba(220, 80, 100, 0.36);
}

/* Shared body helpers (user / legacy) */
.void-msg__body { word-break: break-word; }
.void-msg__body p { margin: 0 0 0.55rem; }
.void-msg__body p:last-child { margin-bottom: 0; }
.void-msg__body ul { margin: 0.25rem 0 0.55rem; padding-left: 1.2em; }
.void-msg__body strong { font-weight: 600; color: #fff; }
.void-msg__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin: 0.4rem 0;
}
.void-msg__body th, .void-msg__body td {
    border: 1px solid var(--void-line);
    padding: 0.3rem 0.45rem;
    text-align: left;
}

.void-composer {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    padding: 0.55rem;
    border: 1px solid var(--void-line);
    border-radius: 16px;
    background: rgba(14, 18, 28, 0.85);
    backdrop-filter: blur(10px);
}
.void-composer textarea {
    flex: 1;
    resize: none;
    border: none;
    background: transparent;
    color: var(--void-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.45;
    padding: 0.45rem 0.35rem;
    max-height: 120px;
    outline: none;
}
.void-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--void-accent-deep), #1a4fd4);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(50, 117, 255, 0.4);
}
.void-send:disabled { opacity: 0.45; cursor: not-allowed; }

.void-hint {
    margin: 0.45rem 0 0;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--void-muted);
}

/* Dialog */
.void-dialog {
    border: 1px solid var(--void-line);
    border-radius: 16px;
    padding: 0;
    background: var(--void-panel);
    color: var(--void-text);
    max-width: 360px;
    width: calc(100% - 2rem);
}
.void-dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.void-dialog__panel { padding: 1.35rem 1.4rem 1.25rem; margin: 0; }
.void-dialog__panel h2 {
    font-family: var(--font-display);
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}
.void-dialog__sub {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--void-muted);
}
.void-dialog__panel label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--void-muted);
    margin-bottom: 0.75rem;
}
.void-dialog__panel input {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--void-line);
    background: var(--void-ink);
    color: var(--void-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.void-dialog__err {
    color: var(--void-danger);
    font-size: 0.82rem;
    margin: 0 0 0.75rem;
}
.void-dialog__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.void-dialog__foot {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: var(--void-muted);
}
.void-dialog__foot a { color: #a8c8ff; }

@keyframes void-title-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}
@keyframes void-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes void-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
@keyframes void-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.96); }
    50% { opacity: 0.9; transform: scale(1.04); }
}
@keyframes void-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .void-hero { padding-top: 8vh; }
    .void-orb-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Social rail (AI home loads home.css only — was missing; other faces use void.css) ── */
.mac-social {
    display: inline-flex;
    align-items: center;
    position: relative;
}
.mac-social[hidden] {
    display: none !important;
}
.mac-social__cluster {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.mac-social__slot {
    position: relative;
    display: inline-flex;
}
.mac-social__btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 2.05rem;
    height: 2.05rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(200, 214, 235, 0.78);
    cursor: pointer;
}
.mac-social__btn:hover {
    color: #f2f5fb;
    background: rgba(50, 117, 255, 0.12);
    border-color: rgba(125, 180, 255, 0.22);
}
.mac-social.is-open .mac-social__btn[aria-expanded="true"] {
    color: #f2f5fb;
    background: rgba(50, 117, 255, 0.16);
    border-color: rgba(125, 180, 255, 0.28);
}
.mac-social__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.mac-social__badge {
    position: absolute;
    top: 0.1rem;
    right: 0.08rem;
    min-width: 0.95rem;
    height: 0.95rem;
    padding: 0 0.22rem;
    border-radius: 999px;
    background: #3d7eff;
    color: #f5f8ff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 0.95rem;
    text-align: center;
    pointer-events: none;
}
.mac-social__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(22rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 28rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid rgba(150, 180, 230, 0.16);
    border-radius: 12px;
    background: rgba(12, 16, 26, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(80, 120, 200, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    color: #e8ecf4;
}
.mac-social__panel[hidden] {
    display: none !important;
}
.mac-social__panel-head {
    padding: 0.7rem 0.85rem 0.45rem;
    border-bottom: 1px solid rgba(150, 180, 230, 0.12);
}
.mac-social__panel-title {
    margin: 0;
    font-weight: 600;
    font-size: 0.92rem;
    color: #f2f5fb;
}
.mac-social__panel-lede {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: rgba(180, 196, 220, 0.65);
}
.mac-social__add {
    display: flex;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(150, 180, 230, 0.1);
}
.mac-social__input {
    flex: 1;
    min-width: 0;
    appearance: none;
    border: 1px solid rgba(150, 180, 230, 0.18);
    border-radius: 8px;
    background: rgba(8, 12, 20, 0.85);
    color: #e8ecf4;
    font: inherit;
    font-size: 0.84rem;
    padding: 0.4rem 0.55rem;
}
.mac-social__input:focus {
    outline: none;
    border-color: rgba(125, 180, 255, 0.45);
}
.mac-social__add-btn {
    appearance: none;
    border: 1px solid rgba(125, 180, 255, 0.35);
    border-radius: 8px;
    background: rgba(50, 117, 255, 0.18);
    color: #c8dcff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
}
.mac-social__add-btn:hover {
    background: rgba(50, 117, 255, 0.28);
}
.mac-social__err {
    margin: 0;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    color: #ff8f8f;
}
.mac-social__body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.35rem 0.45rem 0.55rem;
    scrollbar-width: thin;
}
.mac-social__section {
    padding: 0.35rem 0.25rem 0.5rem;
}
.mac-social__section-label {
    margin: 0 0 0.35rem;
    padding: 0 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(180, 196, 220, 0.55);
}
.mac-social__row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.45rem 0.4rem;
    border-radius: 8px;
}
.mac-social__row:hover {
    background: rgba(50, 117, 255, 0.08);
}
.mac-social__handle {
    font-size: 0.88rem;
    font-weight: 500;
    color: #e8ecf4;
}
.mac-social__row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.mac-social__text-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: #8eb6ff;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.1rem 0;
}
.mac-social__text-btn:hover {
    color: #b8d4ff;
}
.mac-social__text-btn--muted {
    color: rgba(180, 196, 220, 0.65);
}
.mac-social__text-btn--danger {
    color: #ff9a9a;
}
.mac-social__empty,
.mac-social__muted {
    margin: 0;
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
    color: rgba(180, 196, 220, 0.62);
    line-height: 1.4;
}
.mac-social__notif {
    padding: 0.55rem 0.45rem;
    border-radius: 8px;
    border-bottom: 1px solid rgba(150, 180, 230, 0.08);
}
.mac-social__notif:last-child {
    border-bottom: none;
}
.mac-social__notif-title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: #f2f5fb;
}
.mac-social__notif-body {
    margin: 0.2rem 0 0.4rem;
    font-size: 0.78rem;
    color: rgba(180, 196, 220, 0.72);
    line-height: 1.4;
}
.mac-social-toasts {
    position: fixed;
    top: calc(max(3.75rem, env(safe-area-inset-top, 0px)) + 0.45rem);
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    width: min(22rem, calc(100vw - 1.5rem));
    pointer-events: none;
}

/* AI chat narrow: same constellation tray grammar as other faces */
@media (max-width: 900px) {
    .mac-apps__menu,
    .mac-social__panel--friends {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 3.85rem);
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translateX(-50%);
        width: min(24rem, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
        max-height: min(78dvh, 36rem);
        z-index: 100;
        margin: 0;
    }

    .mac-menu,
    .mac-social__panel--bell {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 3.85rem);
        left: auto;
        /* Match void-top horizontal pad so right edge lines up with the account mark */
        right: max(1.25rem, env(safe-area-inset-right, 0px));
        bottom: auto;
        transform: none;
        min-width: 0;
        width: min(20rem, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
        max-height: min(78dvh, 36rem);
        z-index: 100;
        margin: 0;
    }

    .mac-apps__menu[hidden],
    .mac-menu[hidden],
    .mac-social__panel[hidden] {
        display: none !important;
    }

    .void-nav .void-nav__auth--solid {
        display: none !important;
    }
}
