* { box-sizing: border-box; } :root { color-scheme: light dark; --surface: #ffffff; --base: #f1f5f3; --text: #182822; --muted: #596c62; --line: #dce6e0; --green: #14664c; --green-soft: #e1f0e8; --danger: #a62e38; font: 15px/1.5 "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif; color: var(--text); background: var(--base); } @media (prefers-color-scheme: dark) { :root { --surface: #182520; --base: #101a16; --text: #edf4ef; --muted: #a8bcb0; --line: #34483d; --green: #7ed8b1; --green-soft: #244236; --danger: #ff9aa2; } } body { margin: 0; } button, input { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; } button { cursor: pointer; } button:disabled { cursor: wait; opacity: .65; } :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; } h1, p { margin: 0; } h1 { font-size: clamp(25px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.25; } small, .muted { color: var(--muted); } .auth-shell { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 100vh; } .auth-brand { position: relative; overflow: hidden; display: grid; align-content: space-between; padding: clamp(26px, 6vw, 80px); background: #12372d; color: #ecf8ee; min-height: 100%; } .brand { display: flex; align-items: center; gap: 14px; font-size: 23px; font-weight: 700; } .mark { display: block; width: 40px; height: 40px; } .mark img { display: block; width: 100%; height: 100%; } .platform { color: #bad5c5; } .brand-art { display: block; width: min(70%, 300px); aspect-ratio: 1; margin: 36px auto; } .auth-content { display: grid; align-items: center; justify-items: center; background: var(--surface); padding: 32px clamp(22px, 6vw, 72px); } .auth-form { display: grid; gap: 19px; width: min(100%, 390px); } .tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; } .tabs button { border: 0; border-bottom: 2px solid transparent; padding: 9px 3px; color: var(--muted); background: none; } .tabs button[aria-pressed="true"] { border-color: var(--green); color: var(--green); font-weight: 700; } label { display: grid; gap: 7px; font-weight: 600; } input { width: 100%; color: var(--text); background: var(--base); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; } .primary { border: 0; border-radius: 8px; background: #14664c; color: white; padding: 11px 16px; font-weight: 700; margin-top: 7px; } .error { color: var(--danger); } .workspace { display: grid; grid-template-columns: 66px 250px minmax(0, 1fr); min-height: 100vh; } .rail { display: flex; flex-direction: column; align-items: center; gap: 25px; padding: 18px 8px; background: #12372d; } .rail-link { display: grid; place-items: center; color: #ceef9a; background: #275346; width: 38px; height: 38px; border-radius: 9px; text-decoration: none; } .account-panel { display: flex; flex-direction: column; gap: 28px; border-right: 1px solid var(--line); padding: 20px 13px; } .account-summary { display: flex; align-items: center; gap: 12px; padding: 0 6px; overflow-wrap: anywhere; } .account-summary small, .device-meta small { display: block; } .avatar, .device-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; color: var(--green); background: var(--green-soft); font-weight: 700; } .panel-nav { padding: 10px 12px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-weight: 700; } .panel-links { display: grid; gap: 4px; } .panel-links a { color: var(--text); text-decoration: none; padding: 9px 11px; border-radius: 8px; } .panel-links a.router-link-active { color: var(--green); background: var(--green-soft); font-weight: 700; } .browser-button { border: 0; } .mobile-browser { display: none; } .contacts-layout { display: grid; grid-template-columns: minmax(155px, 255px) minmax(0, 1fr); background: var(--surface); } .contact-list { min-width: 0; padding: 16px; border-right: 1px solid var(--line); } .contact-search, .contact-preferences { display: grid; justify-items: start; gap: 10px; margin-bottom: 20px; } .contact-search label, .contact-preferences label { width: 100%; } .contact-group h2 { margin: 16px 0 7px; color: var(--muted); font-size: 13px; } .contact-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px; border-radius: 8px; border: 0; background: transparent; color: var(--text); overflow-wrap: anywhere; } .contact-item[aria-pressed="true"] { background: var(--green-soft); } .contact-item small { display: block; } .unread-badge { margin-inline-start: auto; min-width: 1.5rem; padding-inline: .35rem; border-radius: 1rem; background: var(--green-soft); color: var(--green); font-size: .8rem; text-align: center; } .unread-badge.muted { background: var(--base); color: var(--muted); } .unread-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .contact-detail { padding: 24px clamp(12px, 4vw, 36px); min-width: 0; overflow-wrap: anywhere; } .contact-heading, .contact-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; } .contact-heading h1 { font-size: 22px; } .contact-detail > button { margin-bottom: 18px; } .contact-preferences { max-width: 340px; } .chat-page { display: grid; gap: 14px; } .chat-page > button { justify-self: start; } .chat-page details p { margin: 8px 0; } .security-code { overflow-wrap: anywhere; color: var(--green); } .chat-page select, .chat-compose textarea { font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--base); color: var(--text); padding: 8px; } .verified-label { color: var(--green); font-weight: 600; } .chat-lines { list-style: none; padding: 0; margin: 0; min-height: 90px; max-height: 45vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; } .chat-lines li { align-self: start; border-radius: 9px; background: var(--base); padding: 8px 11px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; } .chat-lines li.own { align-self: end; background: var(--green-soft); } .chat-lines li[aria-current='true'], .group-chat-lines li[aria-current='true'] { outline: 2px solid var(--green); outline-offset: -2px; } .chat-lines small { display: block; text-align: end; } .chat-lines audio { display: block; width: min(260px, 100%); } .media-preview { display: grid; gap: 5px; justify-items: start; margin-bottom: 5px; } .media-preview img, .media-preview video { display: block; max-width: min(300px, 100%); max-height: 220px; border-radius: 5px; } .chat-compose { display: grid; gap: 8px; } .chat-compose button { justify-self: end; } .attachment-drop-zone { display: grid; gap: .5rem; padding: .65rem .8rem; border: 1px dashed var(--line); border-radius: .45rem; } .attachment-drop-zone.dragging { border-color: var(--green); background: var(--green-soft); } .attachment-drop-zone p { margin: 0; } .attachment-queue { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; } .attachment-queue li { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; } .attachment-queue span { overflow-wrap: anywhere; } .chat-filters, .chat-quote, .message-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: end; } .chat-filters label:first-child { flex: 1 1 180px; } .chat-checkbox { display: flex; align-items: center; gap: 6px; padding: 10px 4px; } .chat-checkbox input { width: auto; } .chat-lines blockquote { border-left: 2px solid var(--line); margin: 0 0 4px; padding: 0 6px; color: var(--muted); font-size: .9em; } .message-actions { margin-top: 5px; } .message-actions .plain { font-size: .78em; padding: 2px 6px; } .chat-link { border: 0; background: transparent; color: var(--green); text-decoration: underline; padding: 0; overflow-wrap: anywhere; font: inherit; } .conversation-layout { display: grid; grid-template-columns: minmax(140px, 210px) minmax(0, 1fr); min-width: 0; } .conversation-list { display: grid; align-content: start; gap: 6px; padding: 14px; border-right: 1px solid var(--line); min-width: 0; } .conversation-list a { text-decoration: none; } .conversation-list a.router-link-exact-active { background: var(--green-soft); } .group-members { list-style: none; margin: 0; padding: 0; } .group-members li { padding: 8px 0; border-bottom: 1px solid var(--line); } @media (max-width: 840px) { .conversation-layout { grid-template-columns: minmax(0, 1fr); } .conversation-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 185px; overflow: auto; } } .account-footer { display: grid; gap: 12px; margin-top: auto; } .account-footer p { color: var(--muted); font-size: 13px; } .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin: 0 8px 1px 4px; } .dot.online { background: var(--green); } .device-page { background: var(--surface); } .page-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 20px clamp(15px, 4vw, 42px); border-bottom: 1px solid var(--line); } .page-header h1 { font-size: 22px; } .device-content { max-width: 950px; padding: 15px clamp(15px, 4vw, 42px); } .device-row { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); } .device-meta { flex: 1; min-width: 0; overflow-wrap: anywhere; } .tag { display: inline-block; margin-left: 8px; padding: 1px 5px; background: var(--green-soft); color: var(--green); font-size: 11px; border-radius: 4px; } .plain { border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; background: var(--surface); color: var(--text); white-space: nowrap; } .danger { color: var(--danger); } .confirmation { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; } .confirmation button { margin: 9px 8px 0 0; } @media (max-width: 700px) { .auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .auth-brand { padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; } .brand-art, .rail, .panel-nav { display: none; } .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; } .account-panel { padding: 12px; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); } .panel-links { grid-auto-flow: column; grid-column: 1 / -1; grid-row: 2; justify-content: start; gap: 5px; } .account-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; } .mobile-browser { display: block; } .contacts-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; } .contact-list { border-right: 0; border-bottom: 1px solid var(--line); } .account-footer { margin: 0; justify-items: end; gap: 4px; } }