html, body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
}

h1:focus { outline: none; }

a, .btn-link { color: #1d6fb8; }

.btn-primary {
    --bs-btn-bg: #1d6fb8;
    --bs-btn-border-color: #1d6fb8;
    --bs-btn-hover-bg: #17588f;
    --bs-btn-hover-border-color: #17588f;
    --bs-btn-active-bg: #17588f;
}

/* ---- Home hero ---- */
.tt-hero {
    background: linear-gradient(135deg, #0f2740 0%, #1d6fb8 100%);
    color: #fff;
    border-radius: 14px;
    padding: 2rem 2.25rem;
}
.tt-hero .lead { color: #e6eef6; }

/* ---- Live map ---- */
.tt-map {
    width: 100%;
    height: 560px;
    border-radius: 10px;
    overflow: hidden;
    background: #dde5ec;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.tt-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #5b6b7b;
    font-size: .95rem;
}

.tt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .8rem;
    color: #556;
}
.tt-legend-item { display: inline-flex; align-items: center; gap: .3rem; }
.tt-legend-dot { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; }

.tt-grid { font-size: .9rem; }

/* ---- Chat ---- */
.tt-chat-scroll {
    height: 460px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: #fbfcfe;
}
.tt-msg {
    max-width: 85%;
    padding: .4rem .6rem;
    border-radius: 10px;
    background: #eef2f7;
    align-self: flex-start;
}
.tt-msg.mine {
    align-self: flex-end;
    background: #d7ecff;
}
.tt-msg-head { font-size: .78rem; margin-bottom: .1rem; }

/* ---- Modal overlay (admin actions, etc.) ---- */
.tt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1080;
}

/* ---- Password rule ticks on the auth forms ---- */
.pw-rules { list-style: none; padding-left: 0; margin-top: .4rem; }
.pw-rules li { position: relative; padding-left: 1.3rem; color: #8a8f96; }
.pw-rules li::before { content: "○"; position: absolute; left: 0; }
.pw-rules li.ok { color: #198754; }
.pw-rules li.ok::before { content: "✓"; }

/* ---- Blazor error UI ---- */
#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: 1090;
}
    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}
