:root {
    color-scheme: light;
    --navy-950: #17154a;
    --navy-800: #24216a;
    --blue-700: #005ca9;
    --blue-600: #006fc9;
    --blue-100: #e7f3fb;
    --teal-600: #008d80;
    --teal-100: #e2f6f2;
    --orange-600: #d94714;
    --red-700: #ad1820;
    --red-100: #fff0f1;
    --yellow-400: #fee003;
    --slate-900: #172033;
    --slate-700: #3f4b5f;
    --slate-500: #69758a;
    --slate-300: #cbd4df;
    --slate-200: #dfe6ed;
    --slate-100: #eef2f6;
    --surface: #ffffff;
    --canvas: #f4f7fa;
    --shadow-sm: 0 1px 2px rgb(23 32 51 / 5%);
    --shadow-md: 0 12px 32px rgb(23 32 51 / 8%);
    --radius-sm: 0.5rem;
    --radius-md: 0.85rem;
    --radius-lg: 1.15rem;
    font-family:
        Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    color: var(--slate-900);
    background: var(--canvas);
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 85% 0%, rgb(0 111 201 / 7%), transparent 28rem),
        var(--canvas);
}

a {
    color: var(--blue-700);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--navy-800);
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    color: white;
    background: var(--navy-950);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--slate-200);
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(12px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    width: min(100% - 2rem, 90rem);
    min-height: 4.75rem;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--navy-950);
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 0.8rem 0.8rem 0.8rem 0.2rem;
    color: white;
    background: linear-gradient(145deg, var(--blue-600), var(--teal-600));
    box-shadow: 0 0.4rem 1rem rgb(0 111 201 / 20%);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand__text {
    display: grid;
    line-height: 1.2;
}

.brand__text strong {
    font-size: 1rem;
}

.brand__text small {
    margin-top: 0.18rem;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-layout {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    width: min(100% - 2rem, 90rem);
    margin: 0 auto;
}

.app-sidebar {
    position: sticky;
    top: 4.75rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 4.75rem);
    padding: 2rem 1.25rem 1.5rem 0;
    border-right: 1px solid var(--slate-200);
}

.primary-nav {
    display: grid;
    gap: 0.35rem;
}

.primary-nav__label {
    margin: 0 0 0.55rem;
    padding: 0 0.85rem;
    color: var(--slate-500);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.primary-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.7rem;
    color: var(--slate-700);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.primary-nav__link:hover {
    color: var(--navy-950);
    background: var(--slate-100);
}

.primary-nav__link.is-active {
    color: var(--blue-700);
    background: var(--blue-100);
}

.primary-nav__marker {
    width: 0.65rem;
    height: 0.65rem;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.55;
}

.is-active .primary-nav__marker {
    border-color: var(--blue-600);
    background: var(--blue-600);
    box-shadow: 0 0 0 0.25rem rgb(0 111 201 / 12%);
    opacity: 1;
}

.sidebar-user {
    display: grid;
    gap: 0.2rem;
    margin-top: auto;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.sidebar-user span {
    color: var(--slate-500);
    font-size: 0.75rem;
}

.sidebar-user strong {
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
}

.app-content {
    width: min(100%, 66rem);
    min-width: 0;
    padding: 2.6rem 0 5rem 3rem;
}

.guest-content,
.migration-shell {
    width: min(100% - 2rem, 42rem);
    margin: 0 auto;
    padding: clamp(2.5rem, 8vw, 5rem) 0;
}

.page-heading {
    margin-bottom: 2rem;
}

.eyebrow {
    margin: 0 0 0.45rem;
    color: var(--blue-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--navy-950);
    line-height: 1.18;
}

h1 {
    max-width: 48rem;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.15rem);
    letter-spacing: -0.035em;
}

h2 {
    margin: 0 0 1.1rem;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    letter-spacing: -0.015em;
}

h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

p {
    max-width: 70ch;
}

.migration-panel,
.installation-card {
    margin: 0 0 1.25rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.auth-panel {
    max-width: 46rem;
}

.dashboard-intro {
    margin-bottom: 1.5rem;
}

.dashboard-intro p {
    margin-bottom: 0;
    color: var(--slate-700);
    font-size: 1.05rem;
}

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

.dashboard-card {
    display: flex;
    min-height: 13rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    color: var(--slate-700);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease;
}

.dashboard-card:hover {
    border-color: #9cc8e7;
    color: var(--slate-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dashboard-card__kicker {
    margin-bottom: 1.1rem;
    color: var(--blue-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-card strong {
    margin-bottom: 0.55rem;
    color: var(--navy-950);
    font-size: 1.18rem;
}

.dashboard-card__action {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--blue-700);
    font-size: 0.88rem;
    font-weight: 750;
}

.statistics-section {
    margin: 1.75rem 0 2.5rem;
}

.statistics-heading {
    align-items: end;
    margin-bottom: 1rem;
}

.statistics-heading h2,
.statistics-heading p {
    margin-bottom: 0;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-card {
    display: flex;
    min-width: 0;
    min-height: 8.8rem;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.metric-card strong {
    color: var(--navy-950);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1;
}

.metric-card span {
    margin-top: 0.7rem;
    color: var(--slate-900);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.25;
}

.metric-card small {
    margin-top: auto;
    padding-top: 0.55rem;
    color: var(--slate-500);
    font-size: 0.74rem;
    line-height: 1.3;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.statistics-panel {
    padding: 1.15rem;
}

.statistics-panel h3 {
    margin-bottom: 1rem;
}

.breakdown-list {
    display: grid;
    gap: 0.85rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breakdown-list li > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
    font-size: 0.84rem;
}

.breakdown-list strong {
    color: var(--navy-950);
}

.breakdown-list progress {
    display: block;
    width: 100%;
    height: 0.45rem;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--slate-100);
    accent-color: var(--blue-600);
}

.breakdown-list progress::-webkit-progress-bar {
    border-radius: 999px;
    background: var(--slate-100);
}

.breakdown-list progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-600), var(--teal-600));
}

.breakdown-list progress::-moz-progress-bar {
    border-radius: 999px;
    background: var(--blue-600);
}

.section-title {
    margin-top: 0;
    font-size: 1.25rem;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.search-form {
    display: flex;
    width: min(100%, 30rem);
    align-items: center;
    gap: 0.6rem;
}

.search-form button {
    margin: 0;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading p {
    margin: -0.65rem 0 1rem;
    color: var(--slate-500);
    font-size: 0.88rem;
}

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: #075f56;
    background: var(--teal-100);
    font-size: 0.78rem;
    font-weight: 750;
}

.empty-state {
    padding: 1.5rem;
    border: 1px dashed var(--slate-300);
    border-radius: var(--radius-md);
    color: var(--slate-700);
    background: var(--slate-100);
    text-align: center;
}

.empty-state p {
    margin-right: auto;
    margin-left: auto;
}

.volunteer-form {
    gap: 1.25rem;
}

.form-section {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.form-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.form-section__heading > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--blue-700);
    background: var(--blue-100);
    font-size: 0.82rem;
    font-weight: 800;
}

.form-section__heading h2 {
    margin: 0 0 0.15rem;
}

.form-section__heading p {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.88rem;
}

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

.field {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.field--wide {
    grid-column: 1 / -1;
}

.field-label {
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 700;
}

.readonly-value {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: var(--slate-100);
}

.choice-table {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.choice-table__header,
.choice-table__row {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) 6rem 6rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
}

.choice-table__header {
    color: var(--slate-500);
    background: var(--slate-100);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.choice-table__row {
    border-top: 1px solid var(--slate-200);
}

.choice-table__row > span:first-child {
    display: grid;
}

.choice-table__row small,
.choice-card small {
    color: var(--slate-500);
}

.compact-choice {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    cursor: pointer;
}

.compact-choice input,
.choice-card input {
    width: 1.15rem;
    min-height: 1.15rem;
    flex: 0 0 auto;
    accent-color: var(--blue-700);
}

.compact-choice span {
    font-size: 0.78rem;
}

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

.choice-card {
    display: flex;
    min-height: 4rem;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.8rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--slate-100);
    cursor: pointer;
}

.choice-card > span {
    display: grid;
}

.sensitive-warning,
.scope-notice {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-left: 0.3rem solid var(--orange-600);
    border-radius: var(--radius-sm);
    color: #6f310d;
    background: #fff4e8;
    font-size: 0.88rem;
}

.scope-notice p {
    margin: 0.3rem 0 0;
}

.form-actions {
    position: sticky;
    z-index: 5;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -0.5rem 1.5rem rgb(23 32 51 / 8%);
    backdrop-filter: blur(10px);
}

.form-actions button {
    margin: 0;
}

.secondary-link {
    font-size: 0.9rem;
    font-weight: 700;
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #f1b6ba;
    border-radius: var(--radius-lg);
    background: var(--red-100);
}

.danger-zone h2,
.danger-zone p {
    margin: 0;
}

.danger-zone p {
    margin-top: 0.35rem;
    color: #761118;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.4fr);
    gap: 1rem;
    align-items: start;
}

.import-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.import-reference {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    margin: 1rem 0;
}

.import-reference dt,
.import-reference dd {
    margin: 0;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--slate-200);
}

.import-reference dt {
    color: var(--slate-500);
    font-size: 0.82rem;
    font-weight: 750;
}

.import-reference dd {
    overflow-wrap: anywhere;
}

.error-list {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.import-preview {
    max-height: 32rem;
}

.import-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}

.import-confirm p {
    margin: 0;
}

.import-confirm .form-actions {
    position: static;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

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

.migration-warning,
.status-warning {
    border-left: 0.35rem solid var(--orange-600);
}

.migration-success,
.status-success {
    border-left: 0.35rem solid var(--teal-600);
}

.migration-error,
.status-error {
    border-left: 0.35rem solid var(--red-700);
}

.context-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin: -0.75rem 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 650;
}

.migration-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

form {
    display: grid;
    gap: 0.7rem;
}

label {
    margin-top: 0.35rem;
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid #aeb9c8;
    border-radius: var(--radius-sm);
    color: var(--slate-900);
    background: var(--surface);
    font: inherit;
    transition:
        border-color 120ms ease,
        box-shadow 120ms ease;
}

textarea {
    min-height: 7rem;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--slate-700);
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 0;
    box-shadow: 0 0 0 0.23rem rgb(254 224 3 / 55%);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-700);
}

input[type="color"] {
    width: 5rem;
    padding: 0.35rem;
    cursor: pointer;
}

.field-help {
    margin: -0.25rem 0 0.35rem;
    color: var(--slate-500);
    font-size: 0.82rem;
}

button,
.button-link {
    display: inline-flex;
    width: fit-content;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.45rem;
    padding: 0.67rem 1.05rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: white;
    background: var(--blue-700);
    box-shadow: 0 0.3rem 0.8rem rgb(0 92 169 / 14%);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button-link:hover {
    color: white;
    background: var(--navy-800);
}

button.secondary,
.button-link.secondary {
    color: var(--slate-700);
    border-color: var(--slate-300);
    background: var(--surface);
    box-shadow: none;
}

button.secondary:hover,
.button-link.secondary:hover {
    color: var(--navy-950);
    border-color: var(--navy-800);
    background: var(--slate-100);
}

button.danger {
    background: var(--red-700);
}

.inline-form {
    display: inline-grid;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.4rem 0;
}

.checkbox-grid label {
    display: flex;
    min-height: 3.4rem;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    background: var(--slate-100);
    cursor: pointer;
}

.checkbox-grid input[type="checkbox"] {
    width: 1.2rem;
    min-height: 1.2rem;
    flex: 0 0 auto;
    accent-color: var(--blue-700);
}

.message-error,
.message-success {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid;
    border-radius: var(--radius-md);
    font-weight: 650;
}

.message-error {
    color: #761118;
    border-color: #f1b6ba;
    background: var(--red-100);
}

.message-success {
    color: #075f56;
    border-color: #a7ded5;
    background: var(--teal-100);
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

th,
td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--slate-200);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--slate-500);
    background: var(--slate-100);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.record-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.record-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.account-summary {
    display: grid;
    grid-template-columns: minmax(8rem, max-content) 1fr;
    gap: 0;
    margin: 1rem 0 1.5rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.account-summary dt,
.account-summary dd {
    margin: 0;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--slate-200);
}

.account-summary dt {
    color: var(--slate-500);
    background: var(--slate-100);
    font-size: 0.82rem;
    font-weight: 750;
}

.account-summary dd {
    background: var(--surface);
}

.account-summary dt:last-of-type,
.account-summary dd:last-of-type {
    border-bottom: 0;
}

.migration-status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 750;
}

.migration-status.pending {
    color: #7a3300;
    background: #ffdfc7;
}

.migration-status.applied {
    color: #075f56;
    background: var(--teal-100);
}

.break-link,
code {
    overflow-wrap: anywhere;
}

code {
    padding: 0.08rem 0.3rem;
    border-radius: 0.3rem;
    color: var(--navy-800);
    background: var(--blue-100);
    font-size: 0.88em;
}

.technical-reference {
    margin-top: 1.5rem;
    color: var(--slate-500);
    font-size: 0.82rem;
}

.shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1rem;
}

.installation-card {
    width: min(100%, 44rem);
}

@media (max-width: 58rem) {
    .site-header {
        position: static;
    }

    .app-layout {
        display: block;
        width: 100%;
    }

    .app-sidebar {
        position: static;
        display: block;
        height: auto;
        padding: 0.7rem 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--slate-200);
        background: var(--surface);
        overflow-x: auto;
    }

    .primary-nav {
        display: flex;
        width: max-content;
        gap: 0.25rem;
    }

    .primary-nav__label,
    .sidebar-user {
        display: none;
    }

    .primary-nav__link {
        min-height: 2.5rem;
        white-space: nowrap;
    }

    .app-content {
        width: min(100% - 2rem, 48rem);
        margin: 0 auto;
        padding: 2rem 0 4rem;
    }

    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .statistics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 42rem) {
    .site-header__inner {
        min-height: 4.25rem;
    }

    .brand__mark {
        width: 2.4rem;
        height: 2.4rem;
    }

    .app-content,
    .guest-content,
    .migration-shell {
        width: min(100% - 1.25rem, 42rem);
    }

    .migration-panel,
    .installation-card {
        padding: 1.1rem;
        border-radius: var(--radius-md);
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-card:last-child {
        grid-column: 1 / -1;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .choice-list {
        grid-template-columns: 1fr;
    }

    .choice-table__header {
        display: none;
    }

    .choice-table__row {
        grid-template-columns: 1fr 1fr;
    }

    .choice-table__row > span:first-child {
        grid-column: 1 / -1;
    }

    .page-actions,
    .danger-zone,
    .import-confirm {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form {
        width: 100%;
    }

    .record-list li,
    .context-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-summary {
        grid-template-columns: 1fr;
    }

    .account-summary dt {
        border-bottom: 0;
    }

    .account-summary dd {
        padding-top: 0;
    }

    button,
    .button-link {
        width: 100%;
    }

    .inline-form,
    .inline-form button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
