:root {
    --phonebook-primary: #20557c;
    --phonebook-bg: #f5f7f9;
}

body {
    background: var(--phonebook-bg);
    color: #1d2730;
}

a {
    color: #20557c;
}

.btn-primary {
    --bs-btn-bg: var(--phonebook-primary);
    --bs-btn-border-color: var(--phonebook-primary);
    --bs-btn-hover-bg: #174461;
    --bs-btn-hover-border-color: #174461;
}

.brand-icon,
.avatar,
.detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: .65rem;
    background: var(--phonebook-primary);
    color: #fff;
}

.contact-search {
    width: min(100%, 34rem);
}

.contact-card {
    border: 1px solid #e1e6ea;
    border-radius: 1rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: #c8d3db;
    box-shadow: 0 .5rem 1.25rem rgba(24, 45, 60, .08);
}

.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #e5eef5;
    color: var(--phonebook-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.avatar-lg {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #65727c;
    margin-top: .35rem;
    min-width: 0;
}

.contact-line .bi {
    width: 1rem;
}

.content-narrow {
    max-width: 760px;
    margin-inline: auto;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.detail-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .75rem;
    background: #edf3f7;
    color: var(--phonebook-primary);
}

.notes {
    white-space: pre-wrap;
    line-height: 1.65;
}

.min-w-0 {
    min-width: 0;
}

.pagination {
    --bs-pagination-color: var(--phonebook-primary);
}

.auth-card {
    max-width: 520px;
    border-radius: 1.25rem;
}

.brand-icon-lg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    font-size: 1.5rem;
}

.login-separator span {
    height: 1px;
    background: #dfe4e8;
    flex: 1;
}

.passkey-register-box {
    padding: 1rem;
    border-radius: .9rem;
    background: #f7f9fa;
    border: 1px solid #e1e6ea;
}


.system-status-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .85rem 1rem;
    border: 1px solid #e1e6ea;
    border-radius: .8rem;
    background: #f9fafb;
}

.system-console {
    padding: 1rem;
    border-radius: .8rem;
    background: #17212b;
    color: #eef3f7;
    font-size: .8rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
}


.live-search-results {
    position: absolute;
    z-index: 1050;
    top: calc(100% + .5rem);
    left: 0;
    right: 0;
    max-height: 32rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe4e8;
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(24, 45, 60, .16);
}

.live-search-item {
    display: block;
    padding: .9rem 1rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #edf0f2;
}

.live-search-item:last-child {
    border-bottom: 0;
}

.live-search-item:hover,
.live-search-item:focus {
    background: #f6f9fb;
}

.live-search-main mark,
.live-search-number mark {
    padding: 0 .08em;
    border-radius: .2rem;
    font-weight: 700;
}

.live-search-numbers {
    margin-top: .55rem;
    display: grid;
    gap: .3rem;
}

.live-search-number {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #586672;
}

.live-search-number small {
    color: #87929a;
}

.live-search-empty {
    padding: 1rem;
    color: #65727c;
}
