Files
mtusi2026lab4/frontend/src/styles.css
T
2026-10-28 12:40:39 +03:00

1794 lines
31 KiB
CSS

:root {
color-scheme: dark;
--font-sans: Inter, "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica,
Arial, sans-serif;
--font-display: ui-rounded, "Segoe UI Variable Display", "Segoe UI", sans-serif;
font-family: var(--font-sans);
color: #f4f5f6;
background: #08090b;
font-synthesis: none;
text-rendering: optimizeLegibility;
--ink: #f4f5f6;
--muted: #a2a5aa;
--quiet: #71757c;
--line: rgba(255, 255, 255, 0.09);
--line-strong: rgba(255, 255, 255, 0.17);
--surface-0: #08090b;
--surface-1: #0e1013;
--surface-2: #15171b;
--surface-3: #1d2025;
--accent: #cfd2d6;
--accent-bright: #f4f5f6;
--danger: #c8cbd0;
--success: #d8dade;
--shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
--radius-xs: 8px;
--radius-sm: 12px;
--radius-md: 16px;
--radius-lg: 24px;
--radius-pill: 999px;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
width: 100%;
height: 100%;
margin: 0;
}
body {
min-width: 320px;
overflow: hidden;
}
button,
input,
textarea {
font: inherit;
}
button,
a {
-webkit-tap-highlight-color: transparent;
}
button {
color: inherit;
}
a {
color: inherit;
}
::selection {
color: #0c0d0b;
background: var(--accent-bright);
}
:focus-visible {
outline: 2px solid var(--accent-bright);
outline-offset: 2px;
}
.eyebrow {
margin: 0;
color: var(--accent-bright);
font-size: 0.7rem;
font-weight: 750;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.brand-mark,
.rail-brand {
display: grid;
place-items: center;
width: 42px;
height: 42px;
border: 1px solid rgba(255, 255, 255, 0.5);
color: var(--accent-bright);
background: rgba(13, 14, 12, 0.78);
font-family: var(--font-display);
font-size: 1.35rem;
font-weight: 700;
text-decoration: none;
transform: rotate(-4deg);
}
.brand-mark--large {
width: 58px;
height: 58px;
font-size: 1.75rem;
}
.status-dot,
.presence-dot {
display: inline-block;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--success);
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.09);
}
.loading-screen {
display: grid;
place-items: center;
align-content: center;
min-height: 100%;
gap: 16px;
color: var(--muted);
background:
linear-gradient(rgba(10, 11, 9, 0.82), rgba(10, 11, 9, 0.94)),
url("./assets/chat-background.jpg") center / cover;
}
.loading-screen p {
margin: 0;
font-size: 0.85rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.loading-line {
position: relative;
display: block;
width: 84px;
height: 2px;
overflow: hidden;
background: rgba(255, 255, 255, 0.08);
}
.loading-line::after {
position: absolute;
inset: 0;
width: 42%;
content: "";
background: var(--accent-bright);
animation: loading 1.2s ease-in-out infinite;
}
@keyframes loading {
from { transform: translateX(-120%); }
to { transform: translateX(280%); }
}
.auth-page {
display: grid;
min-height: 100%;
grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
background: var(--surface-0);
}
.auth-story {
position: relative;
display: flex;
min-height: 100%;
flex-direction: column;
justify-content: space-between;
padding: clamp(28px, 4vw, 64px);
overflow: hidden;
isolation: isolate;
background:
linear-gradient(115deg, rgba(7, 8, 7, 0.94), rgba(7, 8, 7, 0.35)),
url("./assets/chat-background.jpg") center / cover;
}
.auth-story::after {
position: absolute;
z-index: -1;
right: -12%;
bottom: -20%;
width: 58%;
aspect-ratio: 1;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
content: "";
}
.auth-brand {
display: flex;
align-items: center;
gap: 14px;
font-size: 0.8rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.auth-copy {
max-width: 690px;
margin-bottom: 5vh;
}
.auth-copy h1 {
max-width: 650px;
margin: 18px 0 22px;
font-family: var(--font-display);
font-size: clamp(3rem, 6vw, 6.6rem);
font-weight: 400;
line-height: 0.94;
letter-spacing: -0.055em;
}
.auth-copy > p:not(.eyebrow) {
max-width: 530px;
margin: 0;
color: #c5c2b7;
font-size: clamp(1rem, 1.4vw, 1.15rem);
line-height: 1.7;
}
.auth-status {
display: flex;
align-items: center;
gap: 10px;
margin-top: 34px;
color: var(--muted);
font-size: 0.78rem;
letter-spacing: 0.05em;
}
.auth-panel {
display: grid;
place-items: center;
padding: clamp(24px, 5vw, 80px);
border-left: 1px solid var(--line);
background: rgba(17, 18, 15, 0.98);
}
.auth-card {
width: min(100%, 420px);
}
.auth-card__icon {
width: 30px;
height: 30px;
margin-bottom: 28px;
color: var(--accent-bright);
}
.auth-card h2 {
margin: 10px 0 10px;
font-family: var(--font-display);
font-size: clamp(2rem, 4vw, 3.25rem);
font-weight: 400;
line-height: 1.05;
}
.auth-card__lead {
margin: 0 0 32px;
color: var(--muted);
line-height: 1.55;
}
.auth-form,
.dialog-form {
display: grid;
gap: 20px;
}
.auth-form label,
.dialog-form label {
display: grid;
gap: 8px;
color: #c9c6bb;
font-size: 0.78rem;
font-weight: 650;
}
.input-shell,
.textarea-shell {
display: flex;
align-items: center;
min-height: 52px;
gap: 12px;
padding: 0 14px;
border: 1px solid var(--line);
background: var(--surface-2);
transition:
border-color 160ms ease,
background 160ms ease;
}
.textarea-shell {
align-items: flex-start;
padding-top: 14px;
}
.input-shell:focus-within,
.textarea-shell:focus-within {
border-color: rgba(255, 255, 255, 0.65);
background: #1c1d17;
}
.input-shell > svg,
.textarea-shell > svg {
width: 18px;
height: 18px;
flex: 0 0 auto;
color: var(--quiet);
}
.input-shell input,
.textarea-shell textarea {
width: 100%;
min-width: 0;
border: 0;
outline: 0;
color: var(--ink);
background: transparent;
}
.textarea-shell textarea {
resize: vertical;
line-height: 1.5;
}
.input-shell input::placeholder,
.textarea-shell textarea::placeholder {
color: #66665e;
}
.icon-button,
.soft-icon-button,
.copy-button,
.mobile-back-button {
display: inline-grid;
place-items: center;
border: 0;
cursor: pointer;
background: transparent;
}
.icon-button {
padding: 5px;
color: var(--quiet);
}
.icon-button svg,
.soft-icon-button svg,
.copy-button svg,
.mobile-back-button svg {
width: 19px;
height: 19px;
}
.soft-icon-button {
width: 40px;
height: 40px;
border: 1px solid var(--line);
color: #bbb8aa;
background: rgba(255, 255, 255, 0.025);
transition: 160ms ease;
}
.soft-icon-button:hover {
border-color: rgba(255, 255, 255, 0.45);
color: var(--accent-bright);
background: rgba(255, 255, 255, 0.07);
}
.primary-button {
display: inline-flex;
min-height: 50px;
align-items: center;
justify-content: center;
gap: 10px;
padding: 0 20px;
border: 1px solid var(--accent-bright);
cursor: pointer;
color: #11120f;
background: var(--accent-bright);
font-size: 0.83rem;
font-weight: 750;
letter-spacing: 0.03em;
transition:
background 160ms ease,
transform 160ms ease;
}
.primary-button:hover:not(:disabled) {
background: #d1b77d;
transform: translateY(-1px);
}
.primary-button:disabled {
cursor: not-allowed;
opacity: 0.55;
}
.primary-button svg {
width: 18px;
height: 18px;
}
.form-error {
padding: 11px 13px;
border-left: 2px solid var(--danger);
color: #e2b0a9;
background: rgba(255, 255, 255, 0.08);
font-size: 0.8rem;
line-height: 1.45;
}
.auth-switch {
margin: 28px 0 0;
color: var(--muted);
font-size: 0.83rem;
text-align: center;
}
.auth-switch a,
.text-button {
color: var(--accent-bright);
text-decoration: none;
}
.auth-switch a:hover {
text-decoration: underline;
}
.messenger-shell {
display: grid;
width: 100%;
height: 100dvh;
overflow: hidden;
grid-template-columns: 76px 340px minmax(0, 1fr);
grid-template-areas: "rail sidebar conversation";
background: var(--surface-0);
}
.navigation-rail {
z-index: 20;
display: flex;
grid-area: rail;
flex-direction: column;
align-items: center;
padding: 20px 10px 18px;
border-right: 1px solid var(--line);
background: #0c0d0b;
}
.rail-actions {
display: grid;
width: 100%;
gap: 8px;
margin-top: 44px;
}
.rail-action {
position: relative;
display: grid;
min-height: 58px;
place-items: center;
gap: 4px;
padding: 8px 4px;
border: 1px solid transparent;
color: var(--quiet);
font-size: 0.61rem;
text-decoration: none;
transition: 160ms ease;
}
.rail-action svg {
width: 21px;
height: 21px;
}
.rail-action:hover,
.rail-action--active {
color: var(--accent-bright);
background: rgba(255, 255, 255, 0.065);
}
.rail-action--active::before {
position: absolute;
left: -11px;
width: 2px;
height: 26px;
content: "";
background: var(--accent-bright);
}
.rail-profile {
position: relative;
margin-top: auto;
text-decoration: none;
}
.rail-profile .presence-dot {
position: absolute;
right: -1px;
bottom: 1px;
width: 6px;
height: 6px;
outline: 3px solid #0c0d0b;
}
.avatar {
display: inline-grid;
flex: 0 0 auto;
place-items: center;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 50%;
color: #f5f1e8;
font-family: var(--font-display);
font-weight: 700;
letter-spacing: -0.03em;
}
.avatar--small { width: 38px; height: 38px; font-size: 0.76rem; }
.avatar--medium { width: 48px; height: 48px; font-size: 0.92rem; }
.avatar--large { width: 92px; height: 92px; font-size: 1.7rem; }
.avatar--tone-0 { background: linear-gradient(145deg, #4a483c, #25251f); }
.avatar--tone-1 { background: linear-gradient(145deg, #625841, #28251e); }
.avatar--tone-2 { background: linear-gradient(145deg, #3f5049, #202724); }
.avatar--tone-3 { background: linear-gradient(145deg, #5b4744, #28201f); }
.avatar--tone-4 { background: linear-gradient(145deg, #49445b, #22202b); }
.chat-sidebar {
z-index: 5;
display: grid;
min-width: 0;
grid-area: sidebar;
grid-template-rows: auto auto minmax(0, 1fr) auto;
border-right: 1px solid var(--line);
background: rgba(20, 21, 17, 0.99);
}
.chat-sidebar__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 27px 22px 18px;
}
.chat-sidebar__header h1 {
margin: 4px 0 0;
font-family: var(--font-display);
font-size: 1.9rem;
font-weight: 400;
}
.search-box {
display: flex;
align-items: center;
min-height: 44px;
gap: 10px;
margin: 0 14px 12px;
padding: 0 13px;
border: 1px solid transparent;
background: var(--surface-2);
}
.search-box:focus-within {
border-color: rgba(255, 255, 255, 0.36);
}
.search-box > svg {
width: 17px;
color: var(--quiet);
}
.search-box input {
width: 100%;
min-width: 0;
border: 0;
outline: 0;
color: var(--ink);
background: transparent;
font-size: 0.82rem;
}
.search-box button {
display: grid;
padding: 2px;
border: 0;
cursor: pointer;
color: var(--quiet);
background: transparent;
}
.search-box button svg {
width: 15px;
height: 15px;
}
.chat-list {
min-height: 0;
padding: 0 8px 12px;
overflow: auto;
scrollbar-color: #3b3a31 transparent;
scrollbar-width: thin;
}
.chat-row {
position: relative;
display: flex;
width: 100%;
min-height: 68px;
align-items: center;
gap: 12px;
padding: 9px 10px;
border: 1px solid transparent;
cursor: pointer;
text-align: left;
background: transparent;
transition: 140ms ease;
}
.chat-row:hover {
background: rgba(255, 255, 255, 0.025);
}
.chat-row--active {
border-color: rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.12);
}
.chat-row--active::before {
position: absolute;
left: -9px;
width: 2px;
height: 34px;
content: "";
background: var(--accent-bright);
}
.chat-row__body {
display: grid;
min-width: 0;
flex: 1;
gap: 5px;
}
.chat-row__body strong,
.chat-row__body small {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.chat-row__body strong {
color: #e7e4db;
font-size: 0.86rem;
}
.chat-row__body small {
color: var(--quiet);
font-size: 0.72rem;
}
.chat-row__status {
color: var(--accent-bright);
font-size: 1.2rem;
}
.sidebar-state {
display: grid;
place-items: center;
gap: 12px;
padding: 58px 24px;
color: var(--quiet);
font-size: 0.8rem;
text-align: center;
}
.sidebar-state svg {
width: 26px;
height: 26px;
}
.sidebar-state p {
margin: 0;
}
.sidebar-state--error {
color: #d79a92;
}
.text-button {
border: 0;
cursor: pointer;
background: transparent;
}
.sidebar-footer {
display: flex;
min-height: 44px;
align-items: center;
gap: 9px;
padding: 0 20px;
border-top: 1px solid var(--line);
color: var(--quiet);
font-size: 0.67rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.conversation {
position: relative;
display: grid;
min-width: 0;
min-height: 0;
grid-area: conversation;
grid-template-rows: 68px minmax(0, 1fr) auto;
overflow: hidden;
background: var(--surface-0);
}
.conversation-header {
z-index: 4;
display: flex;
align-items: center;
gap: 12px;
padding: 0 24px;
border-bottom: 1px solid var(--line);
background: rgba(15, 16, 13, 0.96);
backdrop-filter: blur(18px);
}
.conversation-header__title {
display: grid;
min-width: 0;
gap: 3px;
}
.conversation-header__title strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 0.9rem;
}
.conversation-header__title span,
.conversation-header__security {
color: var(--quiet);
font-size: 0.7rem;
}
.conversation-header__security {
display: flex;
align-items: center;
gap: 7px;
margin-left: auto;
}
.conversation-header__security svg {
width: 16px;
height: 16px;
color: var(--success);
}
.mobile-back-button {
display: none;
padding: 7px;
color: var(--muted);
}
.message-canvas,
.conversation--empty {
position: relative;
min-height: 0;
overflow: hidden;
background:
linear-gradient(rgba(8, 9, 8, 0.49), rgba(8, 9, 8, 0.68)),
url("./assets/chat-background.jpg") center / cover;
}
.message-canvas__shade {
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(90deg, rgba(4, 5, 4, 0.16), transparent 45%, rgba(4, 5, 4, 0.16)),
radial-gradient(circle at 50% 40%, transparent 0 25%, rgba(5, 6, 5, 0.2) 75%);
}
.message-stream {
position: relative;
z-index: 1;
height: 100%;
padding: 24px clamp(20px, 8vw, 120px) 34px;
overflow-y: auto;
scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
scrollbar-width: thin;
}
.message-day {
display: flex;
flex-direction: column;
}
.date-divider {
position: sticky;
z-index: 2;
top: 0;
align-self: center;
margin: 8px 0 18px;
}
.date-divider span {
display: inline-flex;
padding: 6px 12px;
border: 1px solid rgba(255, 255, 255, 0.075);
border-radius: 999px;
color: #c5c1b4;
background: rgba(16, 17, 14, 0.83);
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(10px);
font-size: 0.69rem;
}
.message-bubble {
position: relative;
display: grid;
width: fit-content;
max-width: min(72%, 720px);
align-self: flex-start;
gap: 5px;
margin: 3px 0;
padding: 10px 13px 7px;
border: 1px solid rgba(255, 255, 255, 0.075);
border-radius: 4px 16px 16px 16px;
background: rgba(24, 25, 20, 0.95);
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.message-bubble--own {
align-self: flex-end;
border-color: rgba(255, 255, 255, 0.19);
border-radius: 16px 4px 16px 16px;
background: rgba(92, 78, 50, 0.96);
}
.message-bubble__sender {
color: var(--accent-bright);
font-size: 0.7rem;
font-weight: 700;
}
.message-bubble--own .message-bubble__sender {
color: #e1c993;
}
.message-bubble p {
margin: 0;
color: #f1eee6;
font-size: 0.9rem;
line-height: 1.45;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.message-bubble__meta {
display: inline-flex;
align-items: center;
justify-content: flex-end;
gap: 5px;
margin-left: 24px;
color: rgba(235, 231, 220, 0.55);
font-size: 0.62rem;
}
.message-bubble__meta svg {
width: 14px;
height: 14px;
color: #dbc284;
}
.floating-state {
display: grid;
width: fit-content;
max-width: 340px;
place-items: center;
gap: 12px;
margin: 20vh auto 30px;
padding: 15px 18px;
border: 1px solid var(--line);
color: #c0bdb2;
background: rgba(14, 15, 12, 0.86);
box-shadow: var(--shadow);
backdrop-filter: blur(12px);
font-size: 0.78rem;
text-align: center;
}
.floating-state p {
margin: 0;
}
.floating-state svg {
width: 24px;
color: var(--accent-bright);
}
.floating-state button,
.send-error button {
display: inline-flex;
align-items: center;
gap: 6px;
border: 0;
cursor: pointer;
color: var(--accent-bright);
background: transparent;
font-size: 0.75rem;
}
.floating-state button svg {
width: 15px;
height: 15px;
}
.floating-state--error {
color: #d9aaa3;
}
.composer {
z-index: 4;
padding: 11px clamp(16px, 5vw, 72px) 13px;
border-top: 1px solid var(--line);
background: rgba(14, 15, 12, 0.97);
}
.composer form {
display: flex;
min-height: 48px;
align-items: flex-end;
gap: 10px;
padding: 6px 7px 6px 16px;
border: 1px solid var(--line);
background: var(--surface-2);
}
.composer textarea {
width: 100%;
max-height: 130px;
min-height: 30px;
padding: 7px 0 3px;
resize: none;
border: 0;
outline: 0;
color: var(--ink);
background: transparent;
line-height: 1.45;
}
.composer textarea::placeholder {
color: #68685f;
}
.composer__counter {
align-self: center;
color: var(--quiet);
font-size: 0.62rem;
}
.send-button {
display: grid;
width: 38px;
height: 38px;
flex: 0 0 auto;
place-items: center;
border: 0;
cursor: pointer;
color: #11120f;
background: var(--accent-bright);
}
.send-button:disabled {
cursor: not-allowed;
color: var(--quiet);
background: #292a23;
}
.send-button svg {
width: 17px;
height: 17px;
}
.send-error {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 0 8px 9px;
color: #d9aaa3;
font-size: 0.72rem;
}
.conversation--empty {
display: grid;
grid-area: conversation;
place-items: center;
padding: 28px;
}
.empty-chat-card {
display: grid;
width: min(100%, 410px);
place-items: center;
padding: 34px;
border: 1px solid rgba(255, 255, 255, 0.09);
background: rgba(13, 14, 12, 0.85);
box-shadow: var(--shadow);
backdrop-filter: blur(16px);
text-align: center;
}
.empty-chat-card__line {
width: 42px;
height: 2px;
margin-bottom: 25px;
background: var(--accent-bright);
}
.empty-chat-card h2 {
margin: 8px 0 12px;
font-family: var(--font-display);
font-size: 2.2rem;
font-weight: 400;
}
.empty-chat-card > p:not(.eyebrow) {
margin: 0 0 24px;
color: var(--muted);
line-height: 1.55;
}
.dialog-backdrop,
.drawer-backdrop {
position: fixed;
z-index: 90;
inset: 0;
border: 0;
background: rgba(5, 6, 5, 0.73);
backdrop-filter: blur(5px);
}
.dialog-backdrop {
display: grid;
place-items: center;
padding: 20px;
}
.dialog-card {
width: min(100%, 520px);
padding: 26px;
border: 1px solid rgba(255, 255, 255, 0.2);
background: #151611;
box-shadow: var(--shadow);
}
.dialog-card__header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 28px;
}
.dialog-card h2 {
margin: 6px 0 0;
font-family: var(--font-display);
font-size: 2rem;
font-weight: 400;
}
.dialog-form label small {
color: var(--quiet);
font-weight: 400;
line-height: 1.4;
}
.dialog-form code {
color: var(--accent-bright);
}
.profile-drawer {
position: fixed;
z-index: 100;
top: 0;
left: 76px;
display: flex;
width: min(390px, calc(100vw - 76px));
height: 100dvh;
flex-direction: column;
padding: 24px;
border-right: 1px solid rgba(255, 255, 255, 0.16);
background: #141510;
box-shadow: 28px 0 80px rgba(0, 0, 0, 0.38);
animation: drawer-in 180ms ease-out;
}
@keyframes drawer-in {
from { transform: translateX(-20px); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
.profile-drawer__header {
display: flex;
align-items: center;
justify-content: space-between;
}
.profile-identity {
display: grid;
place-items: center;
padding: 46px 0 32px;
text-align: center;
}
.profile-identity h2 {
margin: 17px 0 4px;
font-family: var(--font-display);
font-size: 1.8rem;
font-weight: 400;
}
.profile-identity > p {
margin: 0;
color: var(--muted);
font-size: 0.82rem;
}
.profile-badge {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 16px;
padding: 6px 10px;
border: 1px solid rgba(255, 255, 255, 0.18);
color: #abc29c;
background: rgba(255, 255, 255, 0.06);
font-size: 0.66rem;
text-transform: uppercase;
}
.profile-badge svg {
width: 14px;
height: 14px;
}
.profile-details {
display: grid;
gap: 1px;
margin: 0;
background: var(--line);
}
.profile-details > div {
display: grid;
gap: 10px;
padding: 15px;
background: var(--surface-2);
}
.profile-details dt {
display: flex;
align-items: center;
gap: 8px;
color: var(--quiet);
font-size: 0.67rem;
text-transform: uppercase;
}
.profile-details dt svg {
width: 15px;
height: 15px;
}
.profile-details dd {
display: flex;
min-width: 0;
align-items: center;
justify-content: space-between;
gap: 10px;
margin: 0;
color: #d8d5ca;
font-size: 0.8rem;
}
.profile-details code {
overflow: hidden;
color: #c5c0af;
font-size: 0.69rem;
text-overflow: ellipsis;
}
.copy-button {
flex: 0 0 auto;
padding: 4px;
color: var(--accent-bright);
}
.profile-roadmap {
margin-top: 18px;
padding: 15px;
border: 1px dashed rgba(255, 255, 255, 0.18);
}
.profile-roadmap strong {
color: #d8d3c4;
font-size: 0.76rem;
}
.profile-roadmap p {
margin: 7px 0 0;
color: var(--quiet);
font-size: 0.72rem;
line-height: 1.5;
}
.logout-button {
display: flex;
min-height: 46px;
align-items: center;
justify-content: center;
gap: 9px;
margin-top: auto;
border: 1px solid rgba(255, 255, 255, 0.25);
cursor: pointer;
color: #d99c94;
background: rgba(255, 255, 255, 0.05);
}
.logout-button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.1);
}
.logout-button:disabled {
cursor: not-allowed;
opacity: 0.6;
}
.logout-button svg {
width: 18px;
height: 18px;
}
@media (max-width: 1080px) {
.messenger-shell {
grid-template-columns: 68px 300px minmax(0, 1fr);
}
.profile-drawer {
left: 68px;
}
.message-stream {
padding-right: 40px;
padding-left: 40px;
}
.auth-page {
grid-template-columns: 1fr minmax(390px, 0.75fr);
}
.auth-copy h1 {
font-size: clamp(2.8rem, 5.8vw, 5rem);
}
}
@media (max-width: 760px) {
.auth-page {
grid-template-columns: 1fr;
overflow-y: auto;
}
.auth-story {
min-height: 34vh;
padding: 24px;
}
.auth-copy {
margin: 80px 0 0;
}
.auth-copy h1 {
margin: 12px 0;
font-size: clamp(2.45rem, 12vw, 4.2rem);
}
.auth-copy > p:not(.eyebrow),
.auth-status {
display: none;
}
.auth-panel {
padding: 40px 22px 54px;
border-top: 1px solid var(--line);
border-left: 0;
}
.auth-card__icon {
display: none;
}
.messenger-shell {
grid-template-columns: 1fr;
grid-template-rows: minmax(0, 1fr) 62px;
grid-template-areas:
"content"
"rail";
}
.navigation-rail {
display: grid;
grid-area: rail;
grid-template-columns: 1fr 1fr 1fr;
padding: 5px 12px;
border-top: 1px solid var(--line);
border-right: 0;
}
.rail-brand {
align-self: center;
justify-self: start;
width: 36px;
height: 36px;
}
.rail-actions {
display: contents;
margin: 0;
}
.rail-action {
min-height: 50px;
}
.rail-action--active::before {
top: -6px;
left: calc(50% - 14px);
width: 28px;
height: 2px;
}
.rail-profile {
align-self: center;
justify-self: end;
margin: 0;
}
.chat-sidebar,
.conversation,
.conversation--empty {
grid-area: content;
}
.conversation,
.conversation--empty {
display: none;
}
.messenger-shell--chat-open .chat-sidebar {
display: none;
}
.messenger-shell--chat-open .conversation {
display: grid;
}
.mobile-back-button {
display: inline-grid;
}
.conversation-header {
padding: 0 12px;
}
.conversation-header__security {
display: none;
}
.message-stream {
padding: 18px 12px 26px;
}
.message-bubble {
max-width: 88%;
}
.composer {
padding: 9px 10px 10px;
}
.profile-drawer {
left: 0;
width: min(390px, 88vw);
height: calc(100dvh - 62px);
}
.dialog-backdrop {
align-items: end;
padding: 0;
}
.dialog-card {
width: 100%;
max-height: 88dvh;
overflow-y: auto;
border-right: 0;
border-bottom: 0;
border-left: 0;
}
}
@media (max-width: 420px) {
.chat-sidebar__header {
padding: 20px 18px 15px;
}
.profile-drawer {
width: 100vw;
}
.message-bubble {
max-width: 94%;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
/* Monochrome refinement: neutral color, softer type and shared geometry. */
.eyebrow {
color: #c9ccd1;
letter-spacing: 0.13em;
}
.brand-mark,
.rail-brand {
border-color: var(--line-strong);
border-radius: var(--radius-sm);
color: var(--accent-bright);
background: rgba(8, 9, 11, 0.82);
font-family: var(--font-display);
transform: none;
}
.status-dot,
.presence-dot {
background: var(--success);
box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07);
}
.loading-screen {
background:
linear-gradient(rgba(7, 8, 10, 0.84), rgba(7, 8, 10, 0.96)),
url("./assets/chat-background.jpg") center / cover;
}
.loading-line {
border-radius: var(--radius-pill);
}
.auth-story {
background:
linear-gradient(115deg, rgba(5, 6, 8, 0.96), rgba(5, 6, 8, 0.42)),
url("./assets/chat-background.jpg") center / cover;
}
.auth-story::after {
border-color: rgba(255, 255, 255, 0.12);
}
.auth-copy h1,
.auth-card h2,
.chat-sidebar__header h1,
.empty-chat-card h2,
.dialog-card h2,
.profile-identity h2 {
font-family: var(--font-display);
font-weight: 600;
letter-spacing: -0.035em;
}
.auth-copy h1 {
font-size: clamp(3rem, 5.6vw, 6.2rem);
line-height: 0.98;
}
.auth-copy > p:not(.eyebrow),
.auth-form label,
.dialog-form label {
color: #c7c9cd;
}
.auth-panel {
background: rgba(14, 16, 19, 0.98);
}
.auth-card__icon,
.auth-switch a,
.text-button,
.copy-button,
.floating-state svg,
.floating-state button,
.send-error button,
.dialog-form code {
color: var(--accent-bright);
}
.input-shell,
.textarea-shell,
.search-box,
.composer form {
border-radius: var(--radius-md);
}
.input-shell:focus-within,
.textarea-shell:focus-within,
.search-box:focus-within,
.composer form:focus-within {
border-color: rgba(255, 255, 255, 0.38);
background: var(--surface-3);
}
.input-shell input::placeholder,
.textarea-shell textarea::placeholder,
.composer textarea::placeholder {
color: #696d74;
}
.icon-button,
.copy-button,
.mobile-back-button {
border-radius: var(--radius-xs);
}
.soft-icon-button,
.primary-button,
.send-button,
.logout-button {
border-radius: var(--radius-sm);
}
.soft-icon-button {
color: #b9bcc1;
background: rgba(255, 255, 255, 0.035);
}
.soft-icon-button:hover {
border-color: var(--line-strong);
color: var(--accent-bright);
background: rgba(255, 255, 255, 0.08);
}
.primary-button,
.send-button {
border-color: var(--accent-bright);
color: #0b0c0e;
background: var(--accent-bright);
}
.primary-button:hover:not(:disabled) {
background: #ffffff;
}
.form-error,
.send-error,
.sidebar-state--error,
.floating-state--error {
color: #d5d7db;
}
.form-error {
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.055);
}
.navigation-rail {
background: #090a0c;
}
.rail-action {
border-radius: var(--radius-sm);
}
.rail-action:hover,
.rail-action--active {
color: var(--accent-bright);
background: rgba(255, 255, 255, 0.065);
}
.rail-action--active::before,
.chat-row--active::before,
.empty-chat-card__line {
border-radius: var(--radius-pill);
background: var(--accent-bright);
}
.rail-profile .presence-dot {
outline-color: #090a0c;
}
.avatar {
color: #f4f5f6;
font-family: var(--font-display);
}
.avatar--tone-0 { background: linear-gradient(145deg, #484b51, #24262a); }
.avatar--tone-1 { background: linear-gradient(145deg, #5b5f66, #292c31); }
.avatar--tone-2 { background: linear-gradient(145deg, #40444a, #202226); }
.avatar--tone-3 { background: linear-gradient(145deg, #555960, #272a2f); }
.avatar--tone-4 { background: linear-gradient(145deg, #464950, #222429); }
.chat-sidebar {
background: rgba(14, 16, 19, 0.99);
}
.chat-row {
border-radius: var(--radius-md);
}
.chat-row:hover {
background: rgba(255, 255, 255, 0.045);
}
.chat-row--active {
border-color: rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.08);
}
.chat-row__body strong {
color: #eceef0;
}
.chat-row__status {
color: var(--accent-bright);
}
.sidebar-state--error {
color: #c9ccd1;
}
.conversation-header,
.composer {
background: rgba(12, 14, 17, 0.96);
}
.message-canvas,
.conversation--empty {
background:
linear-gradient(rgba(7, 8, 10, 0.48), rgba(7, 8, 10, 0.72)),
url("./assets/chat-background.jpg") center / cover;
}
.message-canvas__shade {
background:
linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 45%, rgba(0, 0, 0, 0.2)),
radial-gradient(circle at 50% 40%, transparent 0 25%, rgba(0, 0, 0, 0.24) 75%);
}
.message-stream {
scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.date-divider span {
border-color: var(--line-strong);
color: #c8cbd0;
background: rgba(14, 16, 19, 0.86);
}
.message-bubble {
border-color: rgba(255, 255, 255, 0.1);
border-radius: 8px 18px 18px 18px;
background: rgba(20, 22, 26, 0.96);
}
.message-bubble--own {
border-color: rgba(255, 255, 255, 0.15);
border-radius: 18px 8px 18px 18px;
background: rgba(58, 61, 67, 0.97);
}
.message-bubble__sender,
.message-bubble--own .message-bubble__sender,
.message-bubble__meta svg {
color: #e0e2e5;
}
.message-bubble p {
color: #f2f3f4;
}
.message-bubble__meta {
color: rgba(239, 240, 242, 0.56);
}
.floating-state,
.empty-chat-card {
border-radius: var(--radius-lg);
color: #c8cbd0;
background: rgba(12, 14, 17, 0.88);
}
.composer form {
border-color: rgba(255, 255, 255, 0.1);
}
.send-button:disabled {
color: var(--quiet);
background: #282b30;
}
.dialog-backdrop,
.drawer-backdrop {
background: rgba(4, 5, 7, 0.74);
}
.dialog-card {
border-color: var(--line-strong);
border-radius: var(--radius-lg);
background: #111317;
}
.profile-drawer {
border-color: var(--line-strong);
border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
background: #101216;
}
.profile-badge {
border-color: var(--line-strong);
border-radius: var(--radius-pill);
color: #d7d9dd;
background: rgba(255, 255, 255, 0.055);
}
.profile-details {
overflow: hidden;
border-radius: var(--radius-md);
}
.profile-details dd,
.profile-roadmap strong {
color: #d9dbde;
}
.profile-details code {
color: #c7c9cd;
}
.profile-roadmap {
border-color: var(--line-strong);
border-radius: var(--radius-md);
}
.logout-button {
border-color: var(--line-strong);
color: #d9dbdf;
background: rgba(255, 255, 255, 0.035);
}
.logout-button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 760px) {
.dialog-card {
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.profile-drawer {
border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
}