/* XSSM Home */

#empty-state {
    position: relative;
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    place-items: center;
    padding: clamp(18px, 3vw, 42px);
    overflow: hidden auto;
    background: transparent !important;
    color: var(--text-primary);
    text-align: left;
    isolation: isolate;
}

#empty-state .home-atmosphere {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

#empty-state .home-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    opacity: 0.58;
}

#empty-state .home-glow-one {
    top: 3%;
    left: 5%;
    width: min(42vw, 520px);
    height: min(42vw, 520px);
    background: rgba(117, 84, 225, 0.12);
}

#empty-state .home-glow-two {
    right: -5%;
    bottom: -12%;
    width: min(38vw, 470px);
    height: min(38vw, 470px);
    background: rgba(48, 176, 157, 0.065);
}

#empty-state .home-orbit-line {
    position: absolute;
    border: 1px solid rgba(183, 161, 246, 0.045);
    border-radius: 50%;
    transform: rotate(-18deg);
}

#empty-state .home-orbit-one {
    top: -23%;
    right: -12%;
    width: 68vw;
    height: 68vw;
}

#empty-state .home-orbit-two {
    bottom: -55%;
    left: -22%;
    width: 78vw;
    height: 78vw;
}

#empty-state .home-noise {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    pointer-events: none;
}

#empty-state .home-shell {
    position: relative;
    display: grid;
    width: min(1030px, 100%);
    height: min(760px, calc(100dvh - 44px));
    min-height: 590px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 31px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005) 46%),
        rgba(7, 10, 21, 0.47);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.28),
        0 8px 26px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.075);
    -webkit-backdrop-filter: blur(38px) saturate(150%);
    backdrop-filter: blur(38px) saturate(150%);
    animation: homeShellIn 620ms var(--spring, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

@keyframes homeShellIn {
    from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(7px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

#empty-state .home-shell::after {
    content: "";
    position: absolute;
    z-index: 4;
    right: 16%;
    bottom: -1px;
    left: 16%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(173, 147, 253, 0.32), transparent);
    pointer-events: none;
}

#empty-state .home-topline {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 4px 6px 4px 8px;
}

#empty-state .home-brandmark {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

#empty-state .home-brandmark-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(215, 201, 255, 0.17);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(154, 122, 242, 0.96), rgba(86, 68, 177, 0.96));
    color: #fff;
    box-shadow:
        0 8px 18px rgba(55, 37, 132, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

#empty-state .home-brandmark-copy,
#empty-state .home-security > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

#empty-state .home-brandmark-copy strong {
    color: rgba(247, 244, 252, 0.94);
    font-size: 0.84rem;
    font-weight: 720;
    letter-spacing: -0.018em;
}

#empty-state .home-brandmark-copy small {
    color: rgba(190, 184, 204, 0.4);
    font-size: 0.62rem;
}

#empty-state .home-security {
    display: flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(77, 211, 159, 0.105);
    border-radius: 14px;
    background: rgba(41, 151, 111, 0.045);
    color: rgba(107, 219, 174, 0.72);
}

#empty-state .home-security.is-online {
    border-color: rgba(77, 211, 159, 0.17);
    background: rgba(41, 151, 111, 0.07);
}

#empty-state .home-security-pulse {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #55dca6;
    box-shadow: 0 0 0 4px rgba(85, 220, 166, 0.08), 0 0 10px rgba(85, 220, 166, 0.38);
    animation: homeSecurePulse 2s ease-in-out infinite;
}

@keyframes homeSecurePulse {
    50% { opacity: 0.55; transform: scale(0.72); }
}

#empty-state .home-security strong {
    color: rgba(185, 235, 213, 0.78);
    font-size: 0.68rem;
    font-weight: 680;
}

#empty-state .home-security small {
    color: rgba(127, 199, 169, 0.42);
    font-size: 0.56rem;
}

#empty-state .home-security > i {
    color: rgba(101, 213, 168, 0.56);
    font-size: 0.62rem;
}

#empty-state .home-layout {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(330px, 1.07fr) minmax(350px, 0.93fr);
    gap: 12px;
}

#empty-state .home-hero,
#empty-state .home-control-center {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 24px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.027), transparent 45%),
        rgba(2, 4, 13, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

#empty-state .home-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: clamp(22px, 3vw, 38px);
    text-align: center;
    isolation: isolate;
}

#empty-state .home-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 50% 22%, rgba(143, 111, 235, 0.13), transparent 38%),
        linear-gradient(180deg, rgba(151, 121, 239, 0.025), transparent 42%);
}

#empty-state .home-hero-aurora {
    position: absolute;
    z-index: -1;
    top: 10%;
    left: 50%;
    width: 240px;
    height: 210px;
    border-radius: 50%;
    background: rgba(124, 92, 225, 0.14);
    filter: blur(52px);
    transform: translateX(-50%);
    animation: homeHeroAurora 7s ease-in-out infinite alternate;
}

@keyframes homeHeroAurora {
    to { transform: translateX(-50%) scale(1.14); opacity: 0.72; }
}

#empty-state .home-profile-visual {
    position: relative;
    width: 208px;
    height: 190px;
    flex: 0 0 190px;
}

#empty-state .home-profile-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(193, 172, 253, 0.13);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#empty-state .orbit-primary {
    width: 168px;
    height: 168px;
    border-right-color: rgba(177, 148, 255, 0.42);
    animation: homeOrbitSpin 16s linear infinite;
}

#empty-state .orbit-secondary {
    width: 200px;
    height: 112px;
    border-top-color: rgba(84, 209, 168, 0.2);
    transform: translate(-50%, -50%) rotate(24deg);
    animation: homeOrbitSpinWide 20s linear infinite reverse;
}

@keyframes homeOrbitSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes homeOrbitSpinWide {
    to { transform: translate(-50%, -50%) rotate(384deg); }
}

#empty-state .home-profile-satellite {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: rgba(13, 16, 31, 0.78);
    color: rgba(189, 167, 251, 0.78);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.065);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    font-size: 0.62rem;
}

#empty-state .satellite-lock {
    top: 18px;
    right: 14px;
    color: rgba(96, 221, 173, 0.78);
}

#empty-state .satellite-message {
    bottom: 18px;
    left: 8px;
}

#empty-state .empty-avatar {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 104px;
    height: 104px;
    margin: 0;
    transform: translate(-50%, -50%);
    animation: none;
}

#empty-state .empty-avatar-ring {
    position: absolute;
    inset: -7px;
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(207, 189, 255, 0.82), rgba(145, 110, 241, 0.36) 48%, rgba(76, 209, 164, 0.26));
    opacity: 0.72;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

#empty-state .empty-avatar-inner {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: linear-gradient(145deg, #a486f3, #604bc4);
    background-position: center;
    background-size: cover;
    color: #fff;
    box-shadow:
        0 18px 42px rgba(51, 31, 130, 0.29),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 1.75rem;
    font-weight: 760;
}

#empty-state .empty-avatar-inner i {
    font-size: 1.55rem;
}

#empty-state .empty-avatar-status {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 18px;
    height: 18px;
    border: 4px solid rgba(10, 13, 25, 0.95);
    border-radius: 50%;
    background: #55dca6;
    box-shadow: 0 0 0 1px rgba(85, 220, 166, 0.18), 0 0 12px rgba(85, 220, 166, 0.4);
}

#empty-state .home-welcome-copy {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 8px;
}

#empty-state .home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(190, 168, 250, 0.68);
    font-size: 0.64rem;
    font-weight: 720;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

#empty-state .home-eyebrow i {
    color: rgba(208, 185, 255, 0.82);
    font-size: 0.56rem;
}

#empty-state .empty-title {
    max-width: 470px;
    margin: 0;
    color: rgba(249, 247, 253, 0.96);
    font-size: clamp(1.55rem, 2.55vw, 2.2rem);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.08;
    background: none;
    -webkit-text-fill-color: initial;
}

#empty-state .empty-title span {
    background: linear-gradient(115deg, #d9caff, #a98cf9 55%, #77d5ba);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#empty-state .empty-subtitle {
    max-width: 425px;
    margin: 0;
    color: rgba(198, 192, 212, 0.51);
    font-size: 0.78rem;
    font-weight: 470;
    line-height: 1.55;
}

#empty-state .home-search-action {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(100%, 390px);
    min-height: 58px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 17px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
        rgba(4, 6, 15, 0.25);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: transform 180ms ease, border-color 170ms ease, background 170ms ease, box-shadow 180ms ease;
}

#empty-state .home-search-action:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 156, 250, 0.17);
    background: rgba(138, 106, 226, 0.065);
    box-shadow: 0 9px 22px rgba(30, 20, 78, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

#empty-state .home-search-action:active {
    transform: scale(0.985);
}

#empty-state .home-search-action:focus-visible,
#empty-state .home-action:focus-visible,
#empty-state .home-recent-chat:focus-visible {
    outline: 2px solid rgba(181, 155, 255, 0.42);
    outline-offset: 2px;
}

#empty-state .home-search-action-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: rgba(151, 120, 236, 0.095);
    color: rgba(190, 168, 249, 0.76);
    font-size: 0.72rem;
}

#empty-state .home-search-action > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}

#empty-state .home-search-action strong {
    color: rgba(237, 233, 246, 0.84);
    font-size: 0.74rem;
    font-weight: 650;
}

#empty-state .home-search-action small {
    color: rgba(190, 184, 205, 0.39);
    font-size: 0.6rem;
}

#empty-state .home-search-action kbd {
    display: inline-flex;
    min-width: 33px;
    height: 23px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-bottom-color: rgba(255, 255, 255, 0.11);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(203, 196, 216, 0.38);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
    font-family: inherit;
    font-size: 0.56rem;
}

#empty-state .home-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
}

#empty-state .home-trust-row > span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
    color: rgba(186, 180, 199, 0.37);
    font-size: 0.57rem;
}

#empty-state .home-trust-row i {
    color: rgba(103, 210, 169, 0.57);
    font-size: 0.56rem;
}

#empty-state .home-trust-row strong {
    font-weight: 610;
}

#empty-state .home-control-center {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

#empty-state .home-control-head,
#empty-state .home-recents > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#empty-state .home-control-head > span:first-child,
#empty-state .home-recents > header > span {
    display: grid;
    gap: 3px;
}

#empty-state .home-control-head small,
#empty-state .home-recents header small {
    color: rgba(189, 181, 203, 0.38);
    font-size: 0.57rem;
    font-weight: 650;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

#empty-state .home-control-head strong,
#empty-state .home-recents header strong {
    color: rgba(241, 238, 248, 0.9);
    font-size: 0.84rem;
    font-weight: 690;
    letter-spacing: -0.012em;
}

#empty-state .home-control-badge {
    display: inline-flex;
    height: 25px;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid rgba(180, 153, 250, 0.12);
    border-radius: 8px;
    background: rgba(146, 113, 232, 0.065);
    color: rgba(192, 171, 248, 0.65);
    font-size: 0.56rem;
    font-weight: 650;
}

#empty-state .home-launchpad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

#empty-state .home-action {
    position: relative;
    display: grid;
    min-width: 0;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.022);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: transform 180ms var(--spring, cubic-bezier(0.16, 1, 0.3, 1)), border-color 170ms ease, background 170ms ease, box-shadow 180ms ease;
}

#empty-state .home-action:hover {
    transform: translateY(-2px);
    border-color: rgba(185, 160, 251, 0.17);
    box-shadow: 0 9px 22px rgba(26, 17, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

#empty-state .home-action:active {
    transform: scale(0.975);
}

#empty-state .home-action-primary {
    grid-column: 1 / -1;
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    min-height: 78px;
    padding: 10px 12px;
    border-color: rgba(200, 179, 255, 0.18);
    background:
        radial-gradient(circle at 14% 18%, rgba(213, 190, 255, 0.17), transparent 37%),
        linear-gradient(125deg, rgba(126, 94, 224, 0.28), rgba(91, 76, 188, 0.14) 57%, rgba(54, 144, 142, 0.08));
}

#empty-state .home-action-glow {
    position: absolute;
    top: -38px;
    left: -25px;
    width: 150px;
    height: 110px;
    border-radius: 50%;
    background: rgba(168, 132, 255, 0.18);
    filter: blur(32px);
    pointer-events: none;
}

#empty-state .home-action-primary::after {
    content: "";
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -42%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

#empty-state .home-action-primary:hover::after {
    animation: homeActionSweep 720ms ease;
}

@keyframes homeActionSweep {
    0% { left: -42%; opacity: 0; }
    25% { opacity: 0.85; }
    100% { left: 122%; opacity: 0; }
}

#empty-state .home-action-secondary {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    min-height: 62px;
    padding: 8px 9px;
}

#empty-state .home-action-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 12px;
    background: rgba(145, 113, 233, 0.09);
    color: rgba(194, 173, 251, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
    font-size: 0.68rem;
    transition: transform 180ms ease, background 170ms ease, color 170ms ease;
}

#empty-state .home-action-primary .home-action-icon {
    width: 46px;
    height: 46px;
    border-color: rgba(229, 215, 255, 0.18);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(183, 151, 255, 0.98), rgba(103, 79, 207, 0.96));
    color: #fff;
    box-shadow: 0 8px 18px rgba(62, 38, 149, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.23);
    font-size: 0.82rem;
}

#empty-state .home-action:hover .home-action-icon {
    transform: translateY(-1px) rotate(4deg);
    background-color: rgba(157, 124, 241, 0.15);
    color: rgba(225, 214, 255, 0.95);
}

#empty-state .home-action-copy {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
    gap: 2px;
}

#empty-state .home-action-copy small {
    color: rgba(210, 196, 243, 0.51);
    font-size: 0.54rem;
    font-weight: 670;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#empty-state .home-action-copy strong {
    overflow: hidden;
    color: rgba(243, 239, 250, 0.9);
    font-size: 0.76rem;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#empty-state .home-action-primary .home-action-copy strong {
    color: rgba(252, 249, 255, 0.98);
    font-size: 0.9rem;
}

#empty-state .home-action-copy em {
    overflow: hidden;
    color: rgba(191, 184, 205, 0.4);
    font-size: 0.58rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#empty-state .home-action-arrow {
    position: relative;
    z-index: 1;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(205, 194, 230, 0.43);
    font-size: 0.55rem;
    transition: transform 160ms ease, color 160ms ease;
}

#empty-state .home-action:hover .home-action-arrow {
    transform: translateX(2px);
    color: rgba(239, 232, 255, 0.82);
}

#empty-state .home-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

#empty-state .home-overview-item {
    display: flex;
    min-width: 0;
    min-height: 56px;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.016);
}

#empty-state .home-overview-icon {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 9px;
    background: rgba(139, 108, 226, 0.075);
    color: rgba(181, 158, 246, 0.66);
    font-size: 0.6rem;
}

#empty-state .home-overview-secure .home-overview-icon {
    background: rgba(65, 185, 139, 0.07);
    color: rgba(91, 213, 165, 0.7);
}

#empty-state .home-overview-item > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

#empty-state .home-overview-item strong {
    color: rgba(239, 235, 247, 0.84);
    font-size: 0.8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#empty-state .home-overview-item small {
    overflow: hidden;
    color: rgba(187, 181, 200, 0.36);
    font-size: 0.53rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#empty-state .home-recents {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 7px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 17px;
    background: rgba(1, 3, 10, 0.16);
}

#empty-state .home-recents > header > i {
    color: rgba(180, 157, 242, 0.42);
    font-size: 0.62rem;
}

#empty-state .home-recent-list {
    display: grid;
    min-height: 0;
    gap: 4px;
    overflow: hidden auto;
    scrollbar-width: none;
}

#empty-state .home-recent-list::-webkit-scrollbar {
    display: none;
}

#empty-state .home-recent-chat {
    display: grid;
    min-width: 0;
    min-height: 48px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#empty-state .home-recent-chat:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.045);
    background: rgba(255, 255, 255, 0.025);
}

#empty-state .home-recent-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(137, 107, 223, 0.94), rgba(75, 65, 155, 0.94));
    background-position: center;
    background-size: cover;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 710;
}

#empty-state .home-recent-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

#empty-state .home-recent-copy strong,
#empty-state .home-recent-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#empty-state .home-recent-copy strong {
    color: rgba(235, 231, 243, 0.82);
    font-size: 0.69rem;
    font-weight: 640;
}

#empty-state .home-recent-copy small {
    color: rgba(181, 175, 193, 0.34);
    font-size: 0.55rem;
}

#empty-state .home-recent-time {
    color: rgba(178, 170, 191, 0.29);
    font-size: 0.5rem;
    font-variant-numeric: tabular-nums;
}

#empty-state .home-recents-empty {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    color: rgba(187, 179, 200, 0.34);
    font-size: 0.6rem;
    text-align: left;
}

#empty-state .home-recents-empty > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 11px;
    background: rgba(151, 120, 236, 0.06);
    color: rgba(190, 168, 249, 0.58);
}

#empty-state .home-recents-empty > div {
    display: grid;
    gap: 3px;
}

#empty-state .home-recents-empty strong {
    color: rgba(235, 231, 243, 0.66);
    font-size: 0.65rem;
}

#empty-state .home-recents-empty small {
    max-width: 270px;
    color: rgba(181, 175, 193, 0.36);
    font-size: 0.53rem;
    line-height: 1.35;
}

#empty-state .empty-footer {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px;
    color: rgba(188, 181, 201, 0.3);
    font-size: 0.55rem;
    opacity: 1;
    animation: none;
}

#empty-state .home-footer-secure,
#empty-state .home-footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#empty-state .home-footer-secure i {
    color: rgba(86, 210, 161, 0.48);
    font-size: 0.46rem;
}

#empty-state .empty-footer-author {
    color: rgba(178, 151, 245, 0.66);
    font-size: inherit;
    font-weight: 700;
    letter-spacing: 0;
    background: none;
    -webkit-text-fill-color: initial;
}

/* Light home */
[data-theme="light"] #empty-state .home-shell {
    border-color: rgba(75, 58, 111, 0.1);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2) 48%),
        rgba(245, 243, 250, 0.55);
    box-shadow: 0 28px 72px rgba(63, 47, 99, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-theme="light"] #empty-state .home-hero,
[data-theme="light"] #empty-state .home-control-center {
    border-color: rgba(79, 61, 117, 0.085);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.55), transparent 48%),
        rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

[data-theme="light"] #empty-state .home-brandmark-copy strong,
[data-theme="light"] #empty-state .empty-title,
[data-theme="light"] #empty-state .home-control-head strong,
[data-theme="light"] #empty-state .home-recents header strong,
[data-theme="light"] #empty-state .home-action-copy strong,
[data-theme="light"] #empty-state .home-overview-item strong,
[data-theme="light"] #empty-state .home-recent-copy strong,
[data-theme="light"] #empty-state .home-search-action strong {
    color: rgba(38, 30, 56, 0.9);
}

[data-theme="light"] #empty-state .empty-subtitle,
[data-theme="light"] #empty-state .home-search-action small,
[data-theme="light"] #empty-state .home-action-copy em,
[data-theme="light"] #empty-state .home-recent-copy small {
    color: rgba(65, 53, 83, 0.6);
}

[data-theme="light"] #empty-state .home-brandmark-copy small,
[data-theme="light"] #empty-state .home-control-head small,
[data-theme="light"] #empty-state .home-recents header small,
[data-theme="light"] #empty-state .home-overview-item small,
[data-theme="light"] #empty-state .home-recent-time,
[data-theme="light"] #empty-state .home-trust-row > span,
[data-theme="light"] #empty-state .empty-footer {
    color: rgba(65, 53, 83, 0.5);
}

[data-theme="light"] #empty-state .home-action-copy small,
[data-theme="light"] #empty-state .home-eyebrow {
    color: rgba(91, 62, 157, 0.66);
}

[data-theme="light"] #empty-state .home-search-action,
[data-theme="light"] #empty-state .home-action,
[data-theme="light"] #empty-state .home-overview-item,
[data-theme="light"] #empty-state .home-recents,
[data-theme="light"] #empty-state .home-trust-row > span {
    border-color: rgba(72, 54, 108, 0.075);
    background: rgba(255, 255, 255, 0.31);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

[data-theme="light"] #empty-state .home-action-primary {
    border-color: rgba(105, 75, 190, 0.13);
    background:
        radial-gradient(circle at 14% 18%, rgba(165, 127, 244, 0.12), transparent 37%),
        linear-gradient(125deg, rgba(127, 91, 220, 0.15), rgba(99, 76, 184, 0.07) 60%, rgba(61, 158, 147, 0.045));
}

[data-theme="light"] #empty-state .home-security {
    border-color: rgba(45, 143, 106, 0.13);
    background: rgba(55, 167, 123, 0.055);
}

[data-theme="light"] #empty-state .home-security strong {
    color: rgba(36, 119, 87, 0.78);
}

[data-theme="light"] #empty-state .home-security small {
    color: rgba(50, 126, 96, 0.48);
}

[data-theme="light"] #empty-state .home-profile-satellite {
    border-color: rgba(75, 57, 113, 0.1);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 7px 17px rgba(64, 46, 102, 0.1);
}

[data-theme="light"] #empty-state .empty-avatar-status {
    border-color: rgba(245, 243, 250, 0.96);
}

/* Narrow desktop */
@media (min-width: 769px) and (max-width: 1120px) {
    #empty-state {
        padding: 16px;
    }

    #empty-state .home-shell {
        min-height: 570px;
        padding: 9px;
        border-radius: 25px;
    }

    #empty-state .home-layout {
        grid-template-columns: minmax(285px, 1fr) minmax(315px, 0.95fr);
        gap: 9px;
    }

    #empty-state .home-hero,
    #empty-state .home-control-center {
        border-radius: 20px;
    }

    #empty-state .home-profile-visual {
        height: 160px;
        flex-basis: 160px;
        transform: scale(0.88);
    }

    #empty-state .home-hero {
        padding: 18px;
    }

    #empty-state .home-search-action {
        margin-top: 15px;
    }

    #empty-state .home-control-center {
        padding: 12px;
    }

    #empty-state .home-action-secondary {
        grid-template-columns: 33px minmax(0, 1fr) 15px;
        gap: 6px;
    }

    #empty-state .home-action-copy em {
        font-size: 0.46rem;
    }
}

@media (min-width: 769px) and (max-width: 940px) {
    #empty-state .home-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
        scrollbar-width: none;
    }

    #empty-state .home-layout::-webkit-scrollbar {
        display: none;
    }

    #empty-state .home-hero {
        min-height: 430px;
    }

    #empty-state .home-control-center {
        min-height: 470px;
    }
}

@media (max-width: 768px) {
    #empty-state {
        min-height: 100dvh;
        padding: 8px;
        overflow-y: auto;
    }

    #empty-state .home-shell {
        width: 100%;
        height: auto;
        min-height: calc(100dvh - 16px);
        overflow: visible;
        border-radius: 24px;
    }

    #empty-state .home-topline {
        min-height: 49px;
    }

    #empty-state .home-security > span:nth-child(2),
    #empty-state .home-security > i {
        display: none;
    }

    #empty-state .home-security {
        min-height: 34px;
        padding: 6px 9px;
    }

    #empty-state .home-layout {
        grid-template-columns: 1fr;
    }

    #empty-state .home-hero {
        min-height: 490px;
        padding: 22px 16px;
    }

    #empty-state .home-control-center {
        min-height: 480px;
        padding: 12px;
    }

    #empty-state .home-profile-visual {
        transform: scale(0.9);
    }

    #empty-state .empty-title {
        font-size: 1.65rem;
    }

    #empty-state .home-search-action {
        margin-top: 18px;
    }

    #empty-state .home-search-action kbd {
        display: none;
    }

    #empty-state .home-search-action {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    #empty-state .home-launchpad {
        grid-template-columns: 1fr;
    }

    #empty-state .home-action-primary {
        grid-column: auto;
    }

    #empty-state .home-action-secondary {
        min-height: 58px;
    }

    #empty-state .empty-footer {
        flex-wrap: wrap;
        justify-content: center;
        padding: 7px 4px;
    }
}

@media (max-height: 720px) and (min-width: 941px) {
    #empty-state .home-shell {
        height: calc(100dvh - 24px);
        min-height: 0;
    }

    #empty-state .home-profile-visual {
        height: 150px;
        flex-basis: 150px;
        transform: scale(0.82);
        margin-block: -10px;
    }

    #empty-state .home-search-action {
        margin-top: 13px;
    }

    #empty-state .home-trust-row {
        margin-top: 8px;
    }

    #empty-state .home-action-primary {
        min-height: 68px;
    }

    #empty-state .home-action-secondary {
        min-height: 55px;
    }

    #empty-state .home-overview-item {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #empty-state,
    #empty-state *,
    #empty-state *::before,
    #empty-state *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
