@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

html, body { font-family: 'DM Sans', system-ui, sans-serif; }

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLj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Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.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: #2d2935; background: #f7f5f1; } * { box-sizing: border-box; } body { margin: 0; min-width: 320px; } button, input { font: inherit; } button { cursor: pointer; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 14% 14%, #fff1cd, transparent 30%), radial-gradient(circle at 88% 85%, #d8eae3, transparent 32%), #f7f5f1; }.auth-card { width: min(100%, 440px); padding: 46px; background: #fffdf9; border: 1px solid #e7e1d9; border-radius: 24px; box-shadow: 0 20px 60px #403a3220; }.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: #7967f2; border-radius: 14px; font-size: 21px; }.eyebrow { color: #938b82; font-size: .7rem; font-weight: 700; letter-spacing: .13em; margin: 22px 0 8px; }h1, h2 { font-family: Fraunces, Georgia, serif; letter-spacing: -.035em; margin: 0; }.auth-card h1 { font-size: 2.25rem; }.subtle, .muted { color: #736e69; line-height: 1.55; }label { display: block; margin-top: 18px; color: #746e66; font-size: .69rem; font-weight: 700; letter-spacing: .1em; }input { width: 100%; margin-top: 7px; border: 1px solid #ddd6cc; border-radius: 10px; background: #fff; color: #2d2935; padding: 12px 13px; outline: none; }input:focus { border-color: #7967f2; box-shadow: 0 0 0 3px #7967f220; }.primary-button { width: 100%; border: 0; border-radius: 10px; padding: 13px; margin-top: 26px; background: #7967f2; color: #fff; font-weight: 700; }.primary-button:hover:not(:disabled) { background: #6854df; transform: translateY(-1px); }button:disabled { cursor: wait; opacity: .65; }.form-error, .chat-error { color: #a13748; background: #fff0f1; border-radius: 8px; padding: 10px 12px; font-size: .88rem; }
.chat-shell { height: 100vh; display: flex; background: #fffdf9; overflow: hidden; }.member-panel { width: 280px; flex: 0 0 280px; display: flex; flex-direction: column; padding: 28px 18px 18px; background: #29263a; color: #f8f5f0; }.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 30px; }.brand > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #a89bff; color: #302b45; font-size: 17px; }.brand strong { display: block; font-family: Fraunces, serif; font-size: 1.1rem; }.brand small { color: #b9b3c7; font-size: .73rem; }.member-heading { display: flex; justify-content: space-between; padding: 12px 10px; color: #aaa4b7; font-size: .68rem; letter-spacing: .1em; font-weight: 700; }.icon-button, .modal-close { border: 0; background: none; color: inherit; font-size: 1.4rem; line-height: 1; }.member-list { display: grid; gap: 4px; }.member-row { display: flex; align-items: center; gap: 10px; position: relative; padding: 9px 10px; border-radius: 10px; font-size: .92rem; }.member-row:hover { background: #3a3650; }.member-row small { color: #aaa4b7; font-size: .67rem; }.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; color: white; font-size: .76rem; font-weight: 700; }.presence { position: absolute; left: 34px; top: 32px; width: 9px; height: 9px; border: 2px solid #29263a; border-radius: 50%; background: #777182; }.presence.online { background: #76d491; }.account-button { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding: 12px 10px; border: 0; border-top: 1px solid #444056; background: transparent; color: #e8e4ef; text-align: left; }.account-button span { color: #b9b3c7; }
.conversation { min-width: 0; flex: 1; display: flex; flex-direction: column; }.conversation header { display: flex; justify-content: space-between; align-items: center; min-height: 108px; padding: 23px 44px; border-bottom: 1px solid #ebe6de; }.conversation header .eyebrow { margin: 0 0 4px; }.conversation h1 { font-size: 1.7rem; }.live-dot { color: #43855c; background: #ebf7ed; border-radius: 20px; padding: 6px 11px; font-size: .76rem; font-weight: 700; }.message-list { flex: 1; overflow-y: auto; padding: 30px max(28px, 7vw); }.message { display: flex; gap: 12px; max-width: 760px; padding: 10px 0; }.message-meta { display: flex; align-items: baseline; gap: 9px; }.message-meta strong { font-size: .91rem; }.message time { color: #9e978e; font-size: .72rem; }.message p { margin: 3px 0 0; color: #4b4540; line-height: 1.5; white-space: pre-wrap; }.empty-chat { display: grid; place-items: center; align-content: center; height: 100%; color: #827a71; text-align: center; }.empty-chat span { font-size: 2.8rem; }.empty-chat h2 { margin-top: 12px; color: #443d37; }.empty-chat p { margin: 5px 0; }.composer { display: flex; gap: 9px; margin: 0 max(20px, 7vw) 28px; padding: 8px; background: #f4f1ec; border: 1px solid #e5ded5; border-radius: 14px; }.composer input { margin: 0; border: 0; background: transparent; box-shadow: none; }.send-button { width: 40px; flex: 0 0 40px; border: 0; border-radius: 10px; background: #7967f2; color: white; font-size: 1.15rem; }.chat-error { margin: 0 max(20px, 7vw) 10px; }.modal-backdrop { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px; background: #211d31a8; }.modal-card { position: relative; width: min(100%, 440px); padding: 34px; border-radius: 20px; background: #fffdf9; box-shadow: 0 16px 50px #15111c55; }.modal-card h2 { font-size: 1.7rem; }.modal-card .eyebrow { margin-top: 0; }.modal-close { position: absolute; right: 16px; top: 14px; color: #777068; }.modal-card input[type=color] { height: 43px; padding: 4px; }.chat-loading { display: grid; min-height: 100vh; place-items: center; color: #736e69; }
@media (max-width: 700px) { .member-panel { position: absolute; z-index: 2; width: 74px; flex-basis: 74px; padding: 20px 10px; }.brand { justify-content: center; padding: 0 0 22px; }.brand div, .member-heading span, .member-row > span:last-child, .account-button { display: none; }.member-heading { justify-content: center; }.member-row { justify-content: center; padding: 8px; }.presence { left: 39px; }.conversation { margin-left: 74px; }.conversation header { min-height: 92px; padding: 18px 22px; }.message-list { padding: 24px 22px; }.composer { margin: 0 16px 16px; }.auth-card { padding: 34px 27px; } }
