@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@100..900&display=swap');

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --background: #f8fafc;
    --background-alt: #f1f5f9;
    --sidebar-bg: #1e293b;
    --sidebar-bg-2: #334155;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --msg-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --background: #0f172a;
    --background-alt: #1e293b;
    --surface: #1e293b;
    --surface-alt: #334155;
    --msg-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --sidebar-bg: #0f172a;
    --sidebar-bg-2: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[type="color"] {
    padding: 0;
    height: 42px;
    width: 80px;
    min-width: 80px;
    cursor: pointer;
    border: 1px solid var(--border);
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: var(--radius-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    background: #e2e8f0;
    border-color: #cbd5e1;
    box-shadow: none;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.78;
    transform: none;
}

.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
    background: #e2e8f0;
    color: #64748b;
    transform: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background-color: #f1f5f9;
}

/* Auth Layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #eff6ff 0%, #ffffff 50%, #f1f5f9 100%);
    padding: 2rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Dashboard Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 276px;
    background-color: var(--sidebar-bg);
    color: white;
    padding: 1.35rem 0.8rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 50;
}

.main-content {
    flex: 1;
    min-width: 0;
    margin-left: 276px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.sidebar-menu {
    margin-top: 0.45rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.18rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.menu-item {
    margin-bottom: 0.2rem;
}

.menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 43px;
    padding: 0.58rem 0.72rem;
    border-radius: 10px;
    color: #94a3b8;
    font-weight: 650;
    font-size: 0.76rem;
}

.menu-link:hover,
.menu-link.active {
    background-color: rgba(147, 197, 253, 0.14);
    color: white;
}

.menu-link.active::before {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #7fb7f2;
    content: '';
}

.menu-link i {
    font-size: 0.96rem;
    width: 20px;
    text-align: center;
}

/* Submenu Styles */
.has-submenu {
    cursor: pointer;
    position: relative;
}

.menu-arrow {
    margin-left: auto;
    font-size: 0.8rem !important;
    transition: transform 0.3s ease;
}

.menu-item.open .menu-arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: rgba(5, 16, 37, 0.18);
    border-radius: 9px;
    margin: 0.18rem 0.25rem 0;
}

.menu-item.open .submenu {
    max-height: 600px;
    /* Expanded limit for large submenus */
    margin-bottom: 0.5rem;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 36px;
    padding: 0.5rem 0.75rem 0.5rem 2.55rem;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    transition: var(--transition);
}

.submenu-link:hover,
.submenu-link.active {
    color: white;
    background: rgba(147, 197, 253, 0.11);
}

.sidebar-footer {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Concise orientation for workflow pages whose purpose may not be obvious. */
.feature-guide {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #cfe0f5;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #f3f7fc 100%);
    box-shadow: 0 8px 24px rgba(15, 39, 71, .045);
}

.feature-guide__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    color: #164e8a;
    background: #e2eefc;
}

.feature-guide__copy strong,
.feature-guide__copy span,
.feature-guide__count strong,
.feature-guide__count span {
    display: block;
}

.feature-guide__copy strong {
    color: var(--text-primary);
    font-size: .84rem;
}

.feature-guide__copy span {
    margin-top: .18rem;
    color: var(--text-secondary);
    font-size: .72rem;
    line-height: 1.45;
}

.feature-guide__count {
    min-width: 98px;
    padding-left: 1rem;
    border-left: 1px solid #dbe5f1;
    text-align: right;
}

.feature-guide__count strong {
    color: #123d6b;
    font-size: 1.25rem;
}

.feature-guide__count span {
    margin-top: .08rem;
    color: var(--text-muted);
    font-size: .61rem;
    font-weight: 750;
}

@media (max-width: 650px) {
    .feature-guide {
        grid-template-columns: 40px minmax(0, 1fr);
    }
    .feature-guide__count {
        grid-column: 2;
        min-width: 0;
        padding: .45rem 0 0;
        border-top: 1px solid #dbe5f1;
        border-left: 0;
        text-align: left;
    }
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: capitalize;
}

.profile-edit-btn {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 0.4rem;
    border-radius: 6px;
    transition: var(--transition);
}

.profile-edit-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.theme-mode-badge {
    display: none;
    /* Hide old badge */
}

/* Toggle Switch Styles */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

.menu-link-danger {
    color: #f87171 !important;
}

.menu-link-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

/* Table Styling */
.card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 1.5rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    background-color: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 700;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

/* Patient Search */
.search-wrapper {
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    padding-left: 2.75rem;
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-progress {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-completed {
    background-color: #dcfce7;
    color: #166534;
}

.badge-paid {
    background-color: #dcfce7;
    color: #166534;
}

.badge-unpaid,
.badge-danger,
.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--surface);
    margin: 2% auto;
    border-radius: var(--radius-xl);
    width: 95%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.modal-content>form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    background: var(--background-alt);
}

.close,
.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0.5rem;
    transition: var(--transition);
}

.close:hover,
.close-modal:hover {
    color: var(--danger);
}

/* Forms in Modal */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.full-width {
    grid-column: span 2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Unified Modern Uploader UI */
.modern-uploader {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.modern-uploader:hover,
.modern-uploader.dragover {
    border-color: var(--primary);
    background: var(--primary)05;
}

.uploader-idle i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.uploader-idle p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.uploader-progress-container {
    padding: 1rem;
    background: var(--background-alt);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.uploader-progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.uploader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.file-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.file-preview-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--primary)15;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-info h5 {
    margin: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive application shell */
.skip-link {
    position: fixed;
    z-index: 10000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.menu-link.has-submenu {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.menu-link.has-submenu:hover,
.menu-link.has-submenu:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.menu-item.open > .menu-link.has-submenu {
    background: transparent;
    color: #fff;
    border-color: transparent;
    box-shadow: none;
}

.menu-link.has-submenu .menu-arrow {
    color: currentColor;
    opacity: 0.72;
}

.table-container {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    min-width: 720px;
}

.sr-only {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.workspace-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.workspace-header__copy h1 {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.workspace-header__copy {
    min-width: 0;
}

.workspace-header__copy p {
    margin-top: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    background: var(--surface);
    cursor: pointer;
}

.sidebar-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    visibility: hidden;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sidebar-backdrop--open {
    visibility: visible;
    opacity: 1;
}

.app-footer {
    margin-left: 280px;
    padding: 1.5rem 2rem 2rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.app-footer__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.app-footer__links a {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-footer__links a:hover,
.app-footer__links a:focus-visible {
    color: var(--primary);
}

.app-footer__links a:focus-visible {
    border-radius: 0.25rem;
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.app-footer__social i {
    font-size: 0.95rem;
}

.app-footer__divider {
    width: 1px;
    height: 1rem;
    background: var(--border-color, #dbe3ef);
}

@media (max-width: 1024px) {
    .sidebar {
        width: min(300px, 88vw);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: 18px 0 45px rgba(15, 23, 42, 0.2);
    }

    .sidebar.sidebar--open {
        transform: translateX(0);
    }

    body.sidebar-is-open {
        overflow: hidden;
    }

    .main-content {
        margin-left: 0;
        padding: 2rem;
        width: 100%;
        min-width: 0;
    }

    .mobile-menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    body > footer {
        margin-left: 0 !important;
    }
}

@media (max-width: 700px) {
    .main-content {
        padding: 1rem;
    }

    .workspace-header {
        align-items: flex-start;
        margin-bottom: 1.25rem;
    }

    .workspace-header__copy h1 {
        font-size: 1.25rem;
    }

    .workspace-header__copy p {
        font-size: 0.78rem;
    }

    .card-header,
    .card-body {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .btn,
    button,
    select,
    input:not([type="checkbox"]):not([type="radio"]) {
        min-height: 44px;
    }

    .modal-content {
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        max-height: calc(100vh - 1rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    body > footer {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem !important;
    }

    .app-footer__links {
        justify-content: flex-start;
    }

    .app-footer__divider {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
