h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    color-scheme: light;
    --ink: #17233a;
    --muted: #77839a;
    --paper: #f5f7fb;
    --line: #e7ebf2;
    --blue: #4169e1;
    --blue-dark: #3457c5;
    --mint: #c8f1de;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { color: var(--ink); background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
.muted { color: var(--muted); line-height: 1.65; }
.eyebrow { color: #8390a8; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; color: white; border-radius: 18px; background: linear-gradient(145deg,#6889ff,#4567df); box-shadow: 0 12px 28px #486bd744; font-size: 31px; font-weight: 800; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 12px; font-size: 20px; }
.setup-screen, .loading-screen { display: grid; place-items: center; min-height: 100dvh; padding: 24px; background: radial-gradient(circle at 20% 12%,#e9edff 0,transparent 34%),radial-gradient(circle at 90% 90%,#dff5eb 0,transparent 32%),#f8f9fc; }
.setup-card { width: min(100%,430px); padding: 42px; border: 1px solid #ffffff; border-radius: 28px; background: #ffffffed; box-shadow: 0 24px 90px #26365c17; }
.setup-card .brand-mark { margin-bottom: 28px; }
.setup-card h1 { margin: 8px 0 12px; font-size: 30px; letter-spacing: -.04em; }
.field-label { display: block; margin: 24px 0 8px; color: #5c6980; font-size: 12px; font-weight: 700; }
.text-field { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #dfe5ef; border-radius: 12px; outline: none; background: #fff; color: var(--ink); }
.text-field:focus, textarea:focus { border-color: #839cf0; box-shadow: 0 0 0 3px #4169e11a; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 19px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); font-weight: 700; box-shadow: 0 8px 18px #4169e126; }
.primary-button:hover { background: var(--blue-dark); }
.primary-button.full { width: 100%; margin-top: 14px; }
.secondary-button { color: var(--ink); background: #eef1f8; box-shadow: none; }
.fine-print { margin: 18px 0 0; color: #8b96a9; font-size: 11px; line-height: 1.5; }
.error-text { color: #bb4148; font-size: 12px; }
.loading-screen { color: #64718a; text-align: center; }
.loader { width: 24px; height: 24px; margin: 18px; border: 3px solid #dce3f5; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-shell { display: grid; grid-template-columns: 330px minmax(0,1fr); width: min(1440px,100%); min-height: 100dvh; margin: 0 auto; background: white; box-shadow: 0 0 70px #1b2b4a0b; }
.sidebar { display: flex; flex-direction: column; min-height: 100dvh; padding: 24px 18px 16px; border-right: 1px solid var(--line); background: #fbfcfe; }
.sidebar-top, .brand-lockup, .profile-card, .contact-row, .chat-header, .header-actions, .composer { display: flex; align-items: center; }
.sidebar-top { justify-content: space-between; padding: 0 5px 22px; }
.brand-lockup { gap: 10px; color: #2c3a55; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.icon-button, .tiny-icon-button, .modal-close { display: grid; place-items: center; border: 0; color: #65728a; background: transparent; }
.icon-button { width: 36px; height: 36px; border-radius: 12px; background: #edf1fb; font-size: 22px; }
.profile-card { gap: 10px; padding: 13px 11px; border: 1px solid #e9edf5; border-radius: 16px; background: #fff; }
.avatar { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: #4762b4; background: #e7ecff; font-size: 13px; font-weight: 800; }
.self-avatar { color: #23785c; background: #dff4ea; }
.profile-copy, .contact-copy, .header-person { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.profile-copy strong, .contact-copy strong, .header-person strong { overflow: hidden; color: #29364f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy span, .contact-copy span, .header-person span { overflow: hidden; color: #8a95a9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tiny-icon-button { width: 26px; height: 30px; border-radius: 8px; font-size: 17px; }
.tiny-icon-button:hover, .modal-close:hover { background: #f0f2f7; }
.contact-actions { padding: 16px 0 18px; text-align: center; }
.outline-button { width: 100%; padding: 10px 8px; border: 1px solid #e0e6f0; border-radius: 10px; color: #50617f; background: #fff; font-size: 11px; font-weight: 700; }
.outline-button span { color: var(--blue); font-size: 15px; }
.text-button { padding: 7px 10px; border: 0; color: #5e73bb; background: transparent; font-size: 11px; font-weight: 700; }
.list-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 9px; color: #99a2b2; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.count-pill { padding: 3px 7px; border-radius: 8px; color: #6c7ca2; background: #edf1fa; font-size: 10px; letter-spacing: 0; }
.contact-list { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.contact-row { gap: 11px; width: 100%; padding: 10px 9px; border: 0; border-radius: 13px; text-align: left; background: transparent; }
.contact-row:hover { background: #f1f4fb; }
.contact-row.selected { background: #eaf0ff; }
.contact-avatar { color: #6555a4; background: #eee9fa; }
.contact-avatar.large { width: 46px; height: 46px; border-radius: 16px; font-size: 14px; }
.presence-dot { position: absolute; right: -2px; bottom: -1px; width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: #b9c1ce; }
.presence-dot.online, .connection-dot { background: #3ab782; }
.selected-arrow { color: #6480d6; font-size: 22px; }
.empty-contacts { display: grid; justify-items: center; gap: 9px; padding: 30px 20px; color: #8994a8; text-align: center; font-size: 11px; line-height: 1.5; }
.empty-contacts strong { color: #59667e; font-size: 12px; }
.empty-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #7185cb; background: #edf1fd; font-size: 20px; }
.sidebar-footer { margin-top: auto; padding: 16px 5px 3px; color: #99a2b2; font-size: 10px; }
.transport-settings { display: grid; gap: 8px; }
.transport-settings label { color: #748099; font-size: 10px; font-weight: 800; }
.transport-settings select { width: 100%; padding: 9px; border: 1px solid #e3e8f0; border-radius: 9px; color: #485875; background: white; font-size: 11px; }
.transport-settings > span { display: flex; align-items: center; gap: 6px; }
.connection-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.chat-panel { display: flex; min-width: 0; min-height: 100dvh; flex-direction: column; background: #fff; }
.welcome-panel { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 34px; text-align: center; }
.welcome-orbit { position: relative; display: grid; place-items: center; width: 130px; height: 130px; margin-bottom: 29px; border: 1px solid #e8edfa; border-radius: 50%; background: radial-gradient(circle,#f0f4ff,white 68%); }
.welcome-symbol { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 23px; color: #fff; background: linear-gradient(145deg,#7692f3,#4264d3); box-shadow: 0 15px 35px #4569db44; font-size: 37px; font-weight: 800; }
.orbit-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #71cba8; }
.orbit-dot.one { top: 14px; left: 29px; }.orbit-dot.two { right: 7px; bottom: 42px; background: #f0b972; }.orbit-dot.three { bottom: 12px; left: 37px; background: #889cf1; }
.welcome-panel h1 { margin: 7px 0 8px; color: #26344f; font-size: clamp(27px,3vw,40px); letter-spacing: -.045em; line-height: 1.12; }
.welcome-panel .muted { max-width: 370px; margin: 8px 0 24px; font-size: 13px; }
.chat-header { min-height: 82px; gap: 12px; padding: 14px 26px; border-bottom: 1px solid var(--line); }
.header-person strong { font-size: 13px; }.header-person span { font-size: 10px; }
.header-actions { gap: 8px; }
.call-button { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #e5eaf3; border-radius: 10px; color: #596a91; background: #fff; font-size: 11px; }
.call-button span { color: #5576de; font-size: 15px; }.call-button.video span { color: #3fa77e; }
.message-list { display: flex; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 24px max(22px,calc((100% - 720px)/2)); background: linear-gradient(180deg,#fff,#fcfdff); }
.message-row { display: flex; }.message-row.mine { justify-content: flex-end; }
.message-bubble { max-width: min(78%,520px); padding: 11px 13px 7px; border: 1px solid #e9edf4; border-radius: 5px 15px 15px 15px; color: #35425a; background: white; box-shadow: 0 3px 12px #34476d08; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mine .message-bubble { border-color: #dce5ff; border-radius: 15px 5px 15px 15px; color: #2e477f; background: #edf2ff; }
.message-time { display: block; margin-top: 3px; color: #9aa4b4; text-align: right; font-size: 9px; }
.message-time i { color: #6887df; font-style: normal; }
.conversation-empty { display: flex; align-items: center; justify-content: center; gap: 11px; margin: auto 0; color: #97a1b2; font-size: 11px; }
.conversation-line { width: min(8vw,60px); height: 1px; background: #e5eaf2; }
.conversation-badge { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #7185c6; background: #f0f3fb; }
.composer-wrap { width: min(760px,100%); margin: 0 auto; padding: 12px 25px 18px; }
.composer { gap: 10px; padding: 8px 9px 8px 14px; border: 1px solid #e3e8f0; border-radius: 15px; background: #fff; box-shadow: 0 5px 24px #34476d0a; }
.composer textarea { flex: 1; min-height: 27px; max-height: 110px; resize: vertical; border: 0; outline: none; color: #34415a; font-size: 12px; }
.send-button { width: 34px; height: 34px; border: 0; border-radius: 11px; color: white; background: var(--blue); font-size: 19px; }
.composer-hint { padding: 8px 2px 0; color: #a0a9b8; font-size: 9px; }.composer-hint span { padding: 0 4px; }
.notice-line { margin: 0 0 6px; color: #7180a3; font-size: 10px; }.error-notice { color: #b34b55; }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: #17233a66; backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(100%,420px); padding: 34px; border: 1px solid #fff; border-radius: 24px; background: #fff; box-shadow: 0 25px 80px #15223a35; }
.modal-card h2 { margin: 4px 0 8px; font-size: 24px; letter-spacing: -.04em; }.modal-card .muted { margin: 8px 0 22px; font-size: 12px; }
.modal-close { position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border-radius: 10px; font-size: 22px; }
.modal-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 15px; border-radius: 15px; color: #6680d8; background: #eef2ff; font-size: 22px; }
.code-field { text-transform: uppercase; letter-spacing: .12em; }.modal-invite { display: block; width: 100%; margin-top: 8px; }
.modal-card.compact { width: min(100%,370px); text-align: center; }.profile-modal-avatar { width: 52px; height: 52px; margin: 0 auto 15px; font-size: 16px; }.profile-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; color: #8a95a9; font-size: 10px; }.profile-code strong { color: #40598f; letter-spacing: .11em; }
.call-overlay { position: fixed; z-index: 20; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; color: white; background: radial-gradient(circle at 50% 30%,#314265,#111a2c 65%); text-align: center; }
.call-overlay .eyebrow { z-index: 1; margin-top: 18px; color: #aab8d5; }.call-overlay h2 { z-index: 1; margin: 3px 0 6px; font-size: 27px; }.call-overlay .muted { z-index: 1; color: #b2bfd7; }
.call-orb { display: grid; place-items: center; width: 104px; height: 104px; border: 1px solid #ffffff25; border-radius: 50%; background: radial-gradient(circle,#6c86da,#435ba4); box-shadow: 0 0 0 16px #ffffff09,0 20px 60px #080d1870; }.call-orb span { font-size: 45px; }
.call-overlay-actions { z-index: 1; display: flex; gap: 12px; margin-top: 25px; }.call-overlay-actions button { min-width: 126px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 14px; color: white; font-weight: 700; }
.decline-call { background: #ce5663; }.accept-call { background: #35a87d; }.active-call { justify-content: flex-end; padding-bottom: max(40px,env(safe-area-inset-bottom)); }
.active-call #remote-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111a2c; }.active-call #remote-audio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.active-call .call-orb { z-index: 1; width: 78px; height: 78px; margin-bottom: 12px; opacity: .92; }.active-call .call-orb span { font-size: 34px; }
.active-call #local-video { position: absolute; z-index: 2; top: max(18px,env(safe-area-inset-top)); right: 18px; width: 118px; height: 158px; border: 1px solid #ffffff66; border-radius: 16px; background: #26324a; object-fit: cover; box-shadow: 0 8px 25px #0005; }
.active-call #local-video[hidden] { display: none; }.active-call > :not(video):not(audio) { text-shadow: 0 2px 10px #0008; }
@media (max-width: 760px) {
    .app-shell { display: flex; flex-direction: column; min-height: 100dvh; }
    .sidebar { min-height: auto; padding: 12px 13px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
    .sidebar-top { padding: 0 2px 10px; }.profile-card { padding: 8px; }.contact-actions { display: flex; gap: 8px; align-items: center; padding: 8px 0; }.contact-actions .text-button { white-space: nowrap; }
    .list-heading { padding-bottom: 5px; }.contact-list { flex-direction: row; overflow-x: auto; padding-bottom: 5px; }.contact-row { flex: 0 0 180px; }.empty-contacts { display: none; }.sidebar-footer { display: grid; padding: 9px 4px 2px; border-top: 1px solid var(--line); }
    .chat-panel { min-height: 0; flex: 1; }.chat-header { min-height: 67px; padding: 10px 14px; }.message-list { min-height: 180px; padding: 18px 14px; }.composer-wrap { padding: 10px 12px max(12px,env(safe-area-inset-bottom)); }.call-button { padding: 8px; }.call-button b { display: none; }
    .setup-card { padding: 30px 24px; }.welcome-panel { padding: 20px; }.welcome-orbit { width: 108px; height: 108px; }.welcome-symbol { width: 56px; height: 56px; }
}
