.topbar{

    height:65px;

    background:white;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 25px;

    border-bottom:1px solid var(--border);

}

.page-title{

    font-family:var(--font-display);

    font-size:22px;

    font-weight:700;

    color:var(--text);

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

    gap:20px;

    margin-top:25px;

}

.card{

    background:var(--surface);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:22px;

}

.card-title{

    color:var(--text-light);

    font-size:14px;

}

.card-value{

    margin-top:12px;

    font-family:var(--font-display);

    font-size:32px;

    font-weight:700;

    color:var(--primary);

}

.toast{

    position:fixed;

    right:25px;

    bottom:25px;

    background:var(--text);

    color:white;

    padding:14px 20px;

    border-radius:var(--radius-sm);

    box-shadow:0 6px 18px rgba(16,35,59,.25);

    opacity:0;

    transition:.3s;

}

.toast.show{

    opacity:1;

}

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    justify-content:center;

    align-items:center;

}

.modal.show{

    display:flex;

}

.modal-box{

    width:500px;

    background:white;

    border-radius:var(--radius);

    padding:25px;

}

.lock-screen{

    position:fixed;

    inset:0;

    background:var(--background);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:1000;

}

.lock-box{

    width:360px;

    max-width:90vw;

    background:white;

    border-radius:var(--radius);

    padding:28px;

    box-shadow:0 8px 30px rgba(16,35,59,.15);

}

.lock-box h2{

    margin-top:0;

    font-family:var(--font-display);

}

.lock-box p{

    font-size:13px;

    color:var(--text-light);

    line-height:1.5;

}

.lock-error{

    color:var(--danger);

    font-size:13px;

    min-height:18px;

}

.link-btn{

    display:block;

    margin:14px auto 0;

    background:none;

    border:none;

    color:var(--primary);

    text-decoration:underline;

    cursor:pointer;

    font-size:13px;

}

.loading{

    width:100%;

    height:5px;

    background:var(--border);

}

.loading div{

    width:0;

    height:100%;

    background:var(--primary);

}