.profile-btn {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 97, 0.7);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.profile-count {
    position: absolute;
    top: -0.3rem;
    right: -0.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #c9a961;
    color: #1a1a1a;
    font: 600 0.7rem/1.25rem -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-align: center;
}

dialog.profile {
    margin: auto;
    border: 1px solid #c9a961;
    border-radius: 4px;
    padding: 0;
    width: min(30rem, calc(100vw - 2rem));
    color: #1a1a1a;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

dialog.profile::backdrop {
    background: rgba(15, 25, 40, 0.45);
}

.profile-inner {
    padding: 1.25rem 1.25rem 1.1rem;
    display: grid;
    gap: 0.7rem;
}

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.profile-top h2 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #1e3a5f;
}

.profile-sub {
    font-size: 0.95rem;
    font-weight: 400;
    color: #1e3a5f;
    margin-top: 0.3rem;
    padding-top: 0.6rem;
    border-top: 1px solid #e3e3e3;
}

.profile-close {
    font-size: 1.5rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    border: 0;
    background: none;
    color: #555;
    cursor: pointer;
    border-radius: 3px;
}

.progress {
    display: grid;
    gap: 0.6rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e3e3e3;
}

.progress-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 1rem;
}

.progress-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #1e3a5f;
}

.progress-text {
    font-size: 0.9rem;
    color: #3a3a3a;
    font-variant-numeric: tabular-nums;
}

.progress-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.privacy-note {
    font-size: 0.8rem;
    color: #555;
}
