/* App layout. Colours and typography come from the RVM.UI tokens (rvm-ui.css); only structure here. */
body { margin: 0; font-family: var(--rvm-font-family, system-ui, sans-serif); }
h1 { margin: 0; }

.shell { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.top {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid var(--rvm-border, #e5e7eb);
}
.top-user { display: flex; align-items: center; gap: 12px; }
.top-user form { margin: 0; }
.menu { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-right: 1px solid var(--rvm-border, #e5e7eb); }
.menu a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: inherit; }
.menu a.active { background: var(--rvm-accent-50, #eef2ff); font-weight: 600; }
.content { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card {
    width: 100%; max-width: 380px;
    display: flex; flex-direction: column; gap: 16px;
    padding: 32px; border-radius: 16px;
    border: 1px solid var(--rvm-border, #e5e7eb);
}
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 500; }
.field input { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rvm-border, #d1d5db); font: inherit; }
.login-error { margin: 0; color: #b42318; }
.validation-message { color: #b42318; font-size: 0.875rem; }

/* Forms inside modals and cards */
.form { display: flex; flex-direction: column; gap: 16px; min-width: min(420px, 80vw); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pre-line { white-space: pre-line; margin: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 16px 0 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.invite-link { display: block; margin-top: 8px; word-break: break-all; font-size: 0.8125rem; }

@media (max-width: 720px) {
    .shell { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
    .content { padding: 16px; }
    .menu { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--rvm-border, #e5e7eb); }
}
