.form-stack {
    max-width: 32rem;
    display: grid;
    gap: 1rem;
}

.form-row.two {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 40rem) {
    .form-row.two {
        grid-template-columns: 1fr 1fr;
    }
}

.field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.field .muted {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.storage-summary {
    display: grid;
    gap: 0.45rem;
}

.storage-summary-rows {
    display: grid;
    gap: 0.35rem;
}

.storage-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.storage-meter {
    height: 0.55rem;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 0.25rem;
}

.storage-meter-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--secondary, #26c165);
    max-width: 100%;
}

.storage-meter.is-high .storage-meter-bar {
    background: var(--warning, #f59e0b);
}

.storage-meter.is-full .storage-meter-bar {
    background: var(--danger, #ef4444);
}

.storage-meter-percent {
    font-size: 0.8rem;
}

.storage-quota-alert {
    margin: 0.35rem 0 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.auth-terms-row {
    margin-top: 0.5rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.45;
}

.auth-checkbox-label input {
    margin-top: 0.25em;
    flex-shrink: 0;
}

.auth-checkbox-label a {
    text-decoration: underline;
}

.terms-body {
    max-width: 42rem;
    line-height: 1.6;
}

.terms-body p {
    margin: 0 0 1rem;
}

.auth-captcha-block .auth-captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.auth-captcha-img {
    display: block;
    vertical-align: top;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 6px;
    background: #fff;
}
