:root {
    --ink: #06124d;
    --muted: #606060;
    --paper: #f5f6fb;
    --surface: #ffffff;
    --line: #d9dce9;
    --brand: #1841f5;
    --brand-strong: #06124d;
    --accent: #f46a0c;
    --danger: #a42b2b;
    --success: #176b47;
    --shadow: 0 24px 70px rgba(6, 18, 77, 0.14);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 5%, rgba(24, 65, 245, 0.09), transparent 34rem),
        linear-gradient(135deg, #fafbff 0%, #eff1f8 100%);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

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

.app-shell {
    min-height: 100vh;
}

.loading-screen {
    display: grid;
    min-height: 100vh;
    place-content: center;
    padding: 2rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

h1,
h2 {
    letter-spacing: -0.035em;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(18rem, 0.9fr) minmax(28rem, 1.1fr);
}

.brand-panel {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 5.5rem);
    overflow: hidden;
    color: white;
    background: linear-gradient(145deg, var(--brand) 0%, var(--brand-strong) 62%, var(--accent) 145%);
}

.brand-panel::after {
    position: absolute;
    right: -10rem;
    bottom: -12rem;
    width: 30rem;
    height: 30rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.025), 0 0 0 8rem rgba(255, 255, 255, 0.02);
    content: "";
}

.brand-mark {
    display: inline-grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font-weight: 800;
    letter-spacing: -0.08em;
}

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 32rem;
}

.brand-copy h1 {
    max-width: 9ch;
    margin-bottom: 1.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 0.95;
}

.brand-copy p {
    max-width: 35rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.brand-footnote {
    position: relative;
    z-index: 1;
    margin: 2rem 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.auth-stage {
    display: grid;
    min-height: 100%;
    place-items: center;
    padding: clamp(1.5rem, 5vw, 5rem);
}

.auth-card {
    width: min(100%, 31rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(6, 18, 77, 0.08);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.lead {
    margin-bottom: 1.75rem;
    color: var(--muted);
    line-height: 1.6;
}

.field {
    margin-bottom: 1.2rem;
}

.field label,
.field-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    padding: 0.85rem 0.95rem;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus,
.field select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(24, 65, 245, 0.14);
}

.button {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    color: white;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 0.65rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 120ms ease, background 120ms ease;
}

.button:hover {
    background: var(--brand-strong);
}

.button:active {
    transform: translateY(1px);
}

.button:focus-visible,
.text-button:focus-visible {
    outline: 3px solid rgba(244, 106, 12, 0.5);
    outline-offset: 2px;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button-block {
    width: 100%;
}

.heading-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.client-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin: 0;
}

.client-summary div {
    min-width: 0;
    padding: 0.85rem;
    background: var(--paper);
    border-radius: 0.65rem;
}

.client-summary dt {
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.client-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.viewer-open {
    overflow: hidden;
}

.privacy-notice {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.privacy-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 77, 0.82);
}

.privacy-notice-panel {
    position: relative;
    z-index: 1;
    width: min(46rem, 100%);
    max-height: calc(100vh - 3rem);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    overflow: auto;
    background: var(--surface);
    border-radius: 0.85rem;
    box-shadow: var(--shadow);
}

.privacy-notice-panel h2 {
    margin-top: 0.35rem;
}

.privacy-notice-content {
    max-height: min(42vh, 24rem);
    margin: 1rem 0;
    padding: 1rem;
    overflow: auto;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    line-height: 1.65;
}

.privacy-notice-content h3 {
    margin: 2rem 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 1.05rem;
}

.privacy-notice-content h3:first-child {
    margin-top: 0;
}

.privacy-notice-content p {
    margin: 0 0 1rem;
    white-space: pre-wrap;
}

.privacy-notice-content ul {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.privacy-notice-content li + li {
    margin-top: 0.45rem;
}

.privacy-table-wrapper {
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
}

.privacy-table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.45;
}

.privacy-table th,
.privacy-table td {
    padding: 0.75rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.privacy-table th {
    background: #dce6ff;
    color: var(--navy);
    font-weight: 800;
}

.privacy-table tbody tr:nth-child(even) {
    background: rgba(6, 18, 77, 0.035);
}

#privacy-form .checkbox-field + .checkbox-field {
    margin-top: 1rem;
}

#privacy-form .button {
    margin-top: 1.25rem;
}

.document-viewer {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.document-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 77, 0.78);
}

.document-viewer-panel {
    position: relative;
    z-index: 1;
    width: min(75rem, 100%);
    height: min(52rem, calc(100vh - 3rem));
    padding: 1rem;
    background: var(--surface);
    border-radius: 0.85rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
}

.document-viewer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.document-viewer-heading h2 {
    margin: 0;
    font-size: 1.1rem;
}

.document-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.document-viewer-stage {
    position: relative;
    height: calc(100% - 11rem);
    overflow: hidden;
    background: #30333a;
    border-radius: 0.65rem;
    min-width: 0;
}

.document-viewer-content {
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow: auto;
    text-align: center;
    min-width: 0;
    contain: inline-size;
}

.document-preview-page,
.document-preview-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
}

.document-preview-image {
    max-height: 100%;
    object-fit: contain;
}

.document-viewer-loading,
.document-viewer-error {
    display: grid;
    min-height: 100%;
    margin: 0;
    color: white;
    place-content: center;
}

.document-viewer-error {
    color: #ffd7d7;
}

.document-viewer-watermark {
    position: absolute;
    z-index: 2;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
    padding: 0.45rem 0.7rem;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(6, 18, 77, 0.62);
    border-radius: 0.35rem;
    font-size: 0.72rem;
    font-weight: 750;
    pointer-events: none;
}

.button-secondary {
    color: var(--brand);
    background: transparent;
}

.button-secondary:hover {
    color: white;
}

.text-button {
    padding: 0;
    color: var(--brand);
    background: transparent;
    border: 0;
    font-weight: 750;
}

.form-error,
.form-success {
    display: none;
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.form-error.visible {
    display: block;
    color: var(--danger);
    background: #fff0ef;
    border: 1px solid #efc5c1;
}

.form-success.visible {
    display: block;
    color: var(--success);
    background: #edf8f2;
    border: 1px solid #c6e6d5;
}

.secret-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
    padding: 0.85rem;
    background: #f1f3ef;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.secret-value {
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85rem;
}

.steps {
    padding-left: 1.25rem;
    color: var(--muted);
    line-height: 1.65;
}

.recovery-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f1f3ef;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    list-style: none;
}

.recovery-list li {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1rem 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.check-row input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: var(--brand);
}

.dashboard {
    min-height: 100vh;
    background: #f5f6fb;
}

.topbar {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
    color: white;
    background: var(--brand-strong);
}

.topbar-brand,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.topbar .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 0.76rem;
}

.topbar-title {
    margin: 0;
    font-weight: 700;
}

.topbar-subtitle {
    margin: 0.15rem 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
}

.topbar .text-button {
    color: white;
}

.dashboard-main {
    width: min(100% - 2rem, 75rem);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.welcome h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.welcome p {
    margin-bottom: 0;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    color: var(--brand);
    background: #e8edff;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

.dashboard-card {
    min-height: 12rem;
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    box-shadow: 0 10px 30px rgba(6, 18, 77, 0.06);
}

.dashboard-card-action {
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dashboard-card-action:hover,
.dashboard-card-action:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 16px 38px rgba(24, 65, 245, 0.12);
    outline: none;
    transform: translateY(-2px);
}

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

.section-heading h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(2rem, 5vw, 3.25rem);
}

.section-heading p:last-child {
    color: var(--muted);
}

.management-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(6, 18, 77, 0.05);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.count-badge {
    min-width: 2.25rem;
    padding: 0.35rem 0.65rem;
    color: white;
    background: var(--brand);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

td {
    font-size: 0.88rem;
}

td strong,
td small {
    display: block;
}

.table-row-action {
    cursor: pointer;
}

.table-row-action:hover,
.table-row-action:focus-visible {
    background: #f3f5ff;
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.version-history {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.version-history li {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.version-history span,
.version-history small {
    color: var(--muted);
}

.documents-panel {
    margin-top: 1.25rem;
}

.client-parties {
    margin-top: 1.25rem;
}

.related-party-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.related-party-list {
    display: grid;
    gap: 0.75rem;
}

.related-party-card {
    padding: 0.9rem;
    background: #f7f8fd;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
}

.related-party-card strong,
.related-party-card small {
    display: block;
}

.related-party-card small,
.related-party-card p {
    color: var(--muted);
}

.related-party-card p {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.contract-fields,
.contract-reminder-fields {
    display: grid;
    gap: 1rem;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 700;
}

.checkbox-field input {
    width: auto;
    margin-top: 0.2rem;
}

.contract-summary-row td {
    padding-top: 0;
}

.contract-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem;
    background: var(--paper);
    border-radius: 0.65rem;
}

.contract-summary dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 750;
}

.contract-summary dd {
    margin: 0.25rem 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.user-actions select {
    width: auto;
    min-width: 8.5rem;
    padding: 0.45rem 2rem 0.45rem 0.6rem;
}

.document-history {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.document-history h3 {
    margin-bottom: 0;
}

.document-history td strong,
.document-history td small {
    display: block;
}

.document-hash {
    display: inline-block;
    max-width: 13rem;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.68rem;
}

.audit-resource {
    max-width: 15rem;
    overflow-wrap: anywhere;
    font-size: 0.76rem;
}

.audit-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f7f8fd;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
}

.audit-filter-actions,
.audit-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.audit-filter-actions {
    align-self: end;
}

.audit-pagination {
    justify-content: flex-end;
    margin-top: 1rem;
}

.document-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.7fr);
    gap: 1.5rem;
    align-items: start;
}

.upload-form {
    padding: 1.25rem;
    background: #f7f8fd;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
}

.version-history small {
    font-size: 0.72rem;
}

td small {
    margin-top: 0.2rem;
    color: var(--muted);
}

.status-text {
    color: var(--success);
    font-weight: 750;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.status-badge-neutral {
    color: #454545;
    background: #ededed;
    border-color: #d4d4d4;
}

.status-badge-orange {
    color: #7a3200;
    background: #fff0e5;
    border-color: #f6b98d;
}

.status-badge-yellow {
    color: #665000;
    background: #fff8d6;
    border-color: #e8d26c;
}

.status-badge-green {
    color: #115c3c;
    background: #e7f6ee;
    border-color: #a9dbc1;
}

.status-badge-red {
    color: #8c2222;
    background: #fdeaea;
    border-color: #e9aaaa;
}

.status-badge-blue {
    color: #1237a8;
    background: #e9edff;
    border-color: #abb9ff;
}

.empty-state {
    padding: 2rem 1rem;
    color: var(--muted);
    text-align: center;
}

.optional {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.temporary-access {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.temporary-access p:not(.eyebrow) {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.temporary-access code {
    min-width: 0;
    overflow-wrap: anywhere;
}

.client-company-filter {
    display: grid;
    grid-template-columns: auto minmax(15rem, 24rem);
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
}

.client-company-filter label {
    font-size: 0.86rem;
    font-weight: 750;
}

.client-company-filter select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
}

.legal-note {
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.card-number {
    display: block;
    margin-bottom: 2rem;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.dashboard-card h2 {
    margin-bottom: 0.45rem;
    font-size: 1.15rem;
}

.dashboard-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

@media (max-width: 800px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: 15rem;
        padding: 2rem;
    }

    .brand-copy h1 {
        max-width: none;
        font-size: 2.6rem;
    }

    .brand-copy p,
    .brand-footnote {
        display: none;
    }

    .auth-stage {
        min-height: calc(100vh - 15rem);
        padding: 1rem;
    }

    .auth-card {
        margin-top: -2.5rem;
    }

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

    .management-layout {
        grid-template-columns: 1fr;
    }

    .document-layout {
        grid-template-columns: 1fr;
    }

    .audit-filters {
        grid-template-columns: 1fr 1fr;
    }

    .welcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .audit-filters {
        grid-template-columns: 1fr;
    }

    .recovery-list {
        grid-template-columns: 1fr;
    }

    .topbar-subtitle {
        display: none;
    }

}

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