:root {
  --paper: #17121f;
  --paper-deep: #241a31;
  --ink: #f6f0ff;
  --muted: #aaa0bb;
  --line: #382b4a;
  --accent: #a979ff;
  --accent-dark: #8455df;
  --sage: #8063a9;
  --white: #fffaff;
  --shadow: 0 24px 80px rgba(5, 2, 12, .42);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { position: relative; margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.bg-video, .bg-video-fallback, .video-overlay { position: fixed; inset: 0; width: 100%; height: 100%; }
.bg-video { display: block; object-fit: cover; z-index: 0; filter: saturate(1.1) brightness(.75); transform: scale(1.08); animation: backgroundPulse 18s ease-in-out infinite alternate; pointer-events: none; }
.bg-video-fallback { z-index: 0; opacity: 0; pointer-events: none; background:
  radial-gradient(circle at 50% 30%, rgba(173, 122, 255, 0.42), transparent 18%),
  radial-gradient(circle at 36% 52%, rgba(112, 88, 172, 0.28), transparent 24%),
  radial-gradient(circle at 75% 35%, rgba(105, 159, 255, 0.18), transparent 26%),
  linear-gradient(180deg, #120b1c 0%, #1e1530 40%, #090b13 100%);
  transition: opacity .3s ease;
}
.bg-video-fallback.active { opacity: 1; animation: galaxyDrift 18s ease-in-out infinite alternate; }
.video-overlay { z-index: 1; background: linear-gradient(180deg, rgba(11,8,18,.38), rgba(11,8,18,.58)); }
.app-shell { position: relative; z-index: 2; min-height: 100vh; display: flex; }
.sidebar { width: 272px; min-height: 100vh; padding: 28px 20px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: rgba(17, 12, 26, 0.5); backdrop-filter: blur(8px); }
.brand-row, .topbar, .modal-header, .modal-actions, .profile-card { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.8px; }
.brand-mark { width: 25px; height: 25px; display: inline-flex; align-items: end; gap: 3px; padding: 3px; border-radius: 8px 8px 8px 2px; background: var(--accent); }
.brand-mark span { display: block; width: 4px; border-radius: 3px; background: var(--white); }.brand-mark span:first-child { height: 9px; }.brand-mark span:nth-child(2) { height: 14px; }.brand-mark span:last-child { height: 7px; }
.icon-button, .more-button, .close-button { border: 0; color: var(--muted); background: transparent; font-size: 21px; line-height: 1; }.icon-button:hover, .more-button:hover, .close-button:hover { color: var(--ink); }
.new-message-button { width: 100%; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 15px; margin: 42px 0 28px; border: 1px solid var(--accent); border-radius: 7px; color: var(--white); background: var(--accent); font-weight: 700; box-shadow: 0 8px 18px rgba(169, 121, 255, .2); }.new-message-button:hover, .primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }.plus-icon { font-size: 23px; font-weight: 400; line-height: 0; }.new-message-button kbd, .search-trigger kbd { margin-left: auto; padding: 3px 6px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; font: 11px 'DM Mono', monospace; opacity: .85; }
.nav-list { display: grid; gap: 4px; }.nav-item { display: flex; align-items: center; width: 100%; gap: 12px; padding: 11px 12px; border: 0; border-radius: 6px; text-align: left; color: var(--muted); background: transparent; font-size: 13px; font-weight: 600; }.nav-item:hover, .nav-item.active { color: var(--ink); background: var(--paper-deep); }.nav-icon { width: 18px; color: var(--accent); font-size: 21px; line-height: 14px; }.count { margin-left: auto; font: 12px 'DM Mono', monospace; color: var(--muted); }
.sidebar-bottom { margin-top: auto; }.profile-card { gap: 10px; padding: 12px 4px; border-top: 1px solid var(--line); }.avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 12px; font-weight: 800; }.avatar-sun { background: #f0bd72; color: #714a1c; }.profile-copy { display: grid; gap: 2px; margin-right: auto; }.profile-copy strong { font-size: 12px; }.profile-copy span, .sidebar-footer { color: var(--muted); font-size: 11px; }.status-dot { width: 6px; height: 6px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #6baf72; }.sidebar-footer { padding: 5px 4px; font: 10px 'DM Mono', monospace; letter-spacing: .3px; }
.main-panel { flex: 1; min-width: 0; }.topbar { height: 113px; padding: 0 clamp(28px, 6vw, 92px); border-bottom: 1px solid var(--line); }.eyebrow { margin: 0 0 6px; color: var(--accent-dark); font: 10px 'DM Mono', monospace; letter-spacing: 1.4px; text-transform: uppercase; }.topbar h1 { margin: 0; font-size: 26px; letter-spacing: -1.2px; }.topbar-actions { display: flex; align-items: center; gap: 14px; }.search-trigger { display: flex; align-items: center; gap: 10px; min-width: 178px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; text-align: left; font-size: 12px; }.search-trigger:hover { border-color: var(--accent); color: var(--ink); }.search-trigger span { font-size: 19px; line-height: 10px; }.search-trigger kbd { color: var(--muted); border-color: var(--line); }.mobile-menu { display: none; }
.inbox-layout { min-height: calc(100vh - 113px); display: grid; place-items: center; padding: 40px 24px 100px; }.empty-state { text-align: center; animation: rise .65s ease both; }.empty-art { position: relative; width: 240px; height: 138px; margin: 0 auto 36px; overflow: hidden; border-bottom: 1px solid #59466e; background: linear-gradient(180deg, #302044 0%, #291d3b 70%, #392557 70%); }.sun { position: absolute; top: 17px; left: 91px; width: 57px; height: 57px; border-radius: 50%; background: #bf8cff; box-shadow: 0 0 0 12px rgba(191,140,255,.16); }.hill { position: absolute; bottom: -45px; width: 210px; height: 105px; border-radius: 50% 50% 0 0; }.hill-one { left: -75px; background: #6d4e91; }.hill-two { right: -72px; bottom: -56px; background: #513671; }.tiny-star { position: absolute; color: #d9b8ff; font-size: 12px; }.star-one { top: 27px; left: 42px; }.star-two { top: 72px; right: 34px; font-size: 9px; }.empty-state h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -2px; }.empty-copy { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.8; }.primary-button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border: 0; border-radius: 6px; color: var(--white); background: var(--accent); font-size: 12px; font-weight: 800; transition: .2s ease; }.primary-button span { font-size: 18px; line-height: 10px; }.primary-button.compact { padding: 11px 14px; }
.thread-list { width: min(100%, 640px); display: grid; gap: 8px; align-self: start; }.thread-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 7px; background: rgba(24, 16, 36, .72); backdrop-filter: blur(8px); animation: rise .35s ease both; }.thread-copy { display: grid; gap: 4px; text-align: left; }.thread-copy strong { font-size: 14px; }.thread-copy span { color: var(--muted); font-size: 11px; }.thread-star { border: 0; color: var(--accent); background: transparent; font-size: 22px; line-height: 1; }.thread-star:hover { color: var(--white); }
.primary-button.add-friend-button[hidden] { display: none !important; }
.thread-row { cursor: pointer; }.thread-row:hover { border-color: var(--accent); }.message-modal { width: min(100%, 560px); }.message-list { min-height: 150px; max-height: 300px; display: grid; align-content: end; gap: 8px; padding: 18px 0; overflow-y: auto; }.message-empty { margin: auto; color: var(--muted); font-size: 12px; }.message-bubble { max-width: 78%; margin: 0; padding: 10px 13px; border-radius: 12px 12px 12px 3px; color: var(--ink); background: var(--paper-deep); font-size: 13px; justify-self: start; }.message-bubble.mine { border-radius: 12px 12px 3px 12px; color: var(--white); background: var(--accent-dark); justify-self: end; }.message-form { display: flex; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }.message-form input { min-width: 0; flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }.message-form input:focus { border-color: var(--accent); }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: rgba(7, 3, 14, .7); backdrop-filter: blur(5px); }.modal-backdrop[hidden] { display: none; }.compose-modal { width: min(100%, 480px); padding: 28px; border: 1px solid rgba(194, 154, 255, .24); border-radius: 10px; background: #21172d; box-shadow: var(--shadow); animation: modal-in .25s ease both; }.compose-modal h2 { max-width: 320px; margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -1.2px; }.close-button { align-self: flex-start; font-size: 28px; }.input-label { display: block; margin: 30px 0 8px; color: var(--muted); font: 11px 'DM Mono', monospace; text-transform: uppercase; }.recipient-input { display: flex; align-items: center; gap: 8px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent); }.recipient-input:focus-within { border-color: var(--accent); }.recipient-input input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }.field-hint { margin: 9px 0 28px; color: var(--muted); font-size: 11px; }.modal-actions { justify-content: flex-end; gap: 16px; }.text-button { border: 0; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }.text-button:hover { color: var(--ink); }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 12px 16px; border-radius: 6px; color: var(--white); background: #2b1b3d; font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }.toast.show { opacity: 1; transform: translateY(0); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } @keyframes modal-in { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } } @keyframes backgroundPulse { 0% { transform: scale(1.08) translate3d(0, 0, 0); filter: saturate(1.15) brightness(.75); } 100% { transform: scale(1.16) translate3d(-1.5%, 1.5%, 0); filter: saturate(1.3) brightness(.88); } } @keyframes galaxyDrift { 0% { transform: scale(1.08) translate3d(0, 0, 0); filter: brightness(.8) saturate(1.1); } 100% { transform: scale(1.18) translate3d(-1.5%, 1.5%, 0); filter: brightness(1) saturate(1.25); } }
 .account-trigger { padding: 10px 13px; border: 1px solid var(--ink); border-radius: 6px; color: var(--ink); background: transparent; font-size: 11px; font-weight: 800; }.account-trigger:hover { color: var(--white); background: var(--ink); }.account-modal { width: min(100%, 500px); }.profile-card { width: 100%; border: 0; border-top: 1px solid var(--line); text-align: left; background: transparent; }.profile-card:hover .profile-copy strong { color: var(--accent-dark); }
body.dark { --paper: #0f0b16; --paper-deep: #1b1226; --ink: #fbf7ff; --muted: #988ba9; --line: #2c1f3b; --white: #fffaff; --sage: #62427d; --accent: #c292ff; --accent-dark: #a56bea; }.dark .empty-art { background: linear-gradient(180deg, #241535 0%, #1e122d 70%, #2d1945 70%); }.dark .compose-modal { background: #171020; }
@media (max-width: 700px) { .sidebar { position: fixed; z-index: 5; left: 0; top: 0; width: min(272px, 86vw); transform: translateX(-100%); background: var(--paper); transition: transform .25s ease; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }.topbar { height: 88px; padding: 0 22px; }.topbar h1 { font-size: 23px; }.search-trigger { min-width: auto; padding: 8px; border: 0; }.search-trigger:not(:hover) { font-size: 0; }.search-trigger kbd { display: none; }.account-trigger { padding: 8px 9px; font-size: 10px; }.mobile-menu { display: block; font-size: 18px; }.inbox-layout { min-height: calc(100vh - 88px); padding: 28px 20px 80px; }.empty-art { margin-bottom: 28px; }.empty-state h2 { font-size: 34px; }.empty-copy { font-size: 13px; } }

/* Product layer: a warmer editorial surface over the existing interaction model. */
:root {
  --paper: #10262a;
  --paper-deep: #183b3d;
  --ink: #f7f0df;
  --muted: #afc0b9;
  --line: rgba(231, 224, 203, .18);
  --accent: #ef765f;
  --accent-dark: #d9574b;
  --white: #fffaf0;
  --shadow: 0 28px 90px rgba(3, 17, 18, .42);
}
body { background: #10262a; font-family: Manrope, sans-serif; }
.bg-video { filter: saturate(.72) brightness(.48) contrast(1.08); }
.video-overlay { background: linear-gradient(110deg, rgba(9, 29, 31, .88), rgba(9, 29, 31, .46) 58%, rgba(239, 118, 95, .18)); }
.bg-video-fallback { background: radial-gradient(circle at 80% 12%, rgba(239, 118, 95, .26), transparent 25%), radial-gradient(circle at 30% 75%, rgba(104, 181, 163, .24), transparent 30%), linear-gradient(135deg, #10262a, #193e3e); }
.sidebar { width: 286px; padding: 30px 22px 22px; border-right-color: rgba(231, 224, 203, .2); background: rgba(10, 32, 34, .72); backdrop-filter: blur(18px); }
.brand { gap: 12px; }
.brand-wordmark { font-family: 'Bodoni Moda', Georgia, serif; font-size: 27px; font-weight: 600; letter-spacing: -.8px; line-height: 1; }
.brand-mark { width: 29px; height: 29px; border-radius: 50% 50% 50% 3px; background: var(--accent); transform: rotate(-8deg); box-shadow: 0 0 0 5px rgba(239, 118, 95, .12); }
.brand-mark span { width: 4px; background: #10262a; }
.icon-button, .more-button, .close-button { color: var(--muted); }
.new-message-button { height: 54px; margin: 48px 0 32px; border: 0; border-radius: 10px; background: var(--accent); box-shadow: 0 13px 28px rgba(239, 118, 95, .2); }
.new-message-button:hover, .primary-button:hover { background: var(--accent-dark); transform: translateY(-2px); }
.nav-list { gap: 7px; }
.nav-item { padding: 13px 13px; border-radius: 9px; color: var(--muted); }
.nav-item:hover, .nav-item.active { color: var(--ink); background: rgba(247, 240, 223, .09); }
.nav-item.active { box-shadow: inset 3px 0 0 var(--accent); }
.nav-icon { color: var(--accent); }
.count { color: #91aaa2; }
.profile-card { padding: 16px 4px; border-top-color: var(--line); }
.avatar-sun { background: #e8b56e; }
.sidebar-footer { color: #90aba1; }
.main-panel { background: linear-gradient(180deg, rgba(16, 38, 42, .08), rgba(16, 38, 42, .34)); }
.topbar { height: 124px; padding: 0 clamp(28px, 6vw, 98px); border-bottom-color: var(--line); }
.eyebrow { color: #ef9b7e; letter-spacing: 1.8px; }
.topbar h1 { font-family: 'Bodoni Moda', Georgia, serif; font-size: 34px; font-weight: 600; letter-spacing: -.8px; }
.topbar-actions { gap: 10px; }
.search-trigger { min-width: 190px; padding: 12px 14px; border-color: var(--line); border-radius: 9px; background: rgba(247, 240, 223, .04); }
.search-trigger:hover { border-color: var(--accent); }
.account-trigger { border-color: rgba(247, 240, 223, .65); border-radius: 9px; padding: 11px 14px; }
.inbox-layout { min-height: calc(100vh - 124px); align-items: start; padding-top: clamp(48px, 10vh, 110px); }
.empty-state { max-width: 500px; }
.empty-art { width: 272px; height: 156px; margin-bottom: 38px; border-radius: 2px; border-bottom-color: rgba(239, 118, 95, .5); background: linear-gradient(180deg, #21494a 0%, #21494a 70%, #2e6860 70%); box-shadow: 16px 16px 0 rgba(239, 118, 95, .12); }
.sun { left: 105px; width: 62px; height: 62px; background: #ef9b7e; box-shadow: 0 0 0 13px rgba(239, 155, 126, .16); }
.hill-one { background: #4d8877; }.hill-two { background: #35655f; }
.tiny-star { color: #f4d3a0; }
.empty-state h2 { font-family: 'Bodoni Moda', Georgia, serif; font-size: clamp(34px, 4vw, 50px); font-weight: 500; letter-spacing: -1.5px; }
.empty-copy { color: var(--muted); }
.primary-button { border-radius: 9px; background: var(--accent); box-shadow: 0 9px 18px rgba(239, 118, 95, .18); }
.thread-list { width: min(100%, 720px); gap: 10px; }
.thread-row { padding: 20px 21px; border-color: var(--line); border-radius: 10px; background: rgba(17, 49, 50, .72); }
.thread-row:hover { border-color: rgba(239, 118, 95, .75); background: rgba(24, 63, 63, .86); }
.thread-copy strong { font-size: 15px; }
.thread-star { color: #f1bd83; }
.modal-backdrop { background: rgba(4, 18, 20, .78); backdrop-filter: blur(12px); }
.compose-modal { border-color: rgba(239, 155, 126, .28); border-radius: 14px; background: #17383a; }
.compose-modal h2 { font-family: 'Bodoni Moda', Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.6px; }
.recipient-input, .message-form input { border-color: var(--line); border-radius: 9px; background: rgba(247, 240, 223, .035); }
.recipient-input:focus-within, .message-form input:focus { border-color: var(--accent); }
.message-bubble { background: #275452; }.message-bubble.mine { background: var(--accent-dark); }
.toast { border: 1px solid rgba(239, 155, 126, .3); border-radius: 9px; background: #17383a; box-shadow: var(--shadow); }
body.dark { --paper: #091c20; --paper-deep: #123436; --accent: #ff8168; --accent-dark: #e45e50; }
@media (max-width: 700px) { .sidebar { background: #10262a; }.topbar { height: 94px; }.topbar h1 { font-size: 29px; }.topbar-actions { gap: 4px; }.inbox-layout { min-height: calc(100vh - 94px); padding-top: 42px; }.empty-art { width: 240px; height: 138px; }.empty-state h2 { font-size: 37px; } }
