/* Nook — shared primitives */

a {
    color: inherit;
    text-decoration: underline;
}
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.profile-grid > .card {
    margin-bottom: 0;
}

.profile-grid-full {
    grid-column: 1 / -1;
}

.card h3.profile-subsection-title {
    margin: 2.4rem 0 0.8rem;
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

.profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    background: #e4e4e7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.4rem 1.6rem 4.8rem;
}

.app-content .container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.card {
    background: var(--color-bg);
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    padding: 1.6rem 2rem;
    margin-bottom: 1.6rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.52rem;
}

.data-table th,
.data-table td {
    padding: 0.8rem 1.04rem;
    border-bottom: 1px solid #e4e4e7;
    text-align: left;
}

.data-table th {
    font-weight: 600;
    color: #52525b;
}

.requirements-table-status {
    width: 4rem;
}

.requirements-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.requirements-status-icon {
    width: 2rem;
    height: 2rem;
}

.requirements-status--ok .requirements-status-icon {
    color: #15803d;
}

.requirements-status--warn .requirements-status-icon {
    color: #b45309;
}

.requirements-footnote {
    margin-top: 1.6rem;
    margin-bottom: 0;
}

.backups-zip-warning {
    border-color: #b45309;
    margin-bottom: 1.6rem;
}

.backups-zip-warning-text {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 0;
    color: #b45309;
    font-weight: 600;
}

.backups-zip-warning-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    margin-top: 0.16rem;
}

.backups-zip-warning-hint {
    margin: 1.2rem 0 0;
}

.settings-disabled {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.settings-disabled input:disabled,
.settings-disabled button:disabled {
    cursor: not-allowed;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3 {
    margin-top: 0;
}

.muted {
    color: #71717a;
}

.error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1.2rem 1.6rem;
    border-radius: 6px;
    scroll-margin-top: 2.4rem;
    scroll-margin-bottom: 2.4rem;
}
