* {
    box-sizing: border-box;
}

:root {
    --bg: #f6f8fc;
    --card: #ffffff;
    --text: #18212f;
    --muted: #6b7280;
    --line: #e7eaf0;
    --primary: #1f2937;
    --green: #047857;
    --green-bg: #ecfdf5;
    --red: #b91c1c;
    --red-bg: #fef2f2;
    --yellow: #a16207;
    --yellow-bg: #fffbeb;
    --gray: #4b5563;
    --gray-bg: #f3f4f6;
    --blue: #2563eb;
    --purple: #7c3aed;
    --sidebar: #111827;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(99,102,241,.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(14,165,233,.06), transparent 24%),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.sidebar {
    width: 245px;
    background: linear-gradient(180deg, #111827 0%, #172033 100%);
    color: #fff;
    padding: 24px 16px;
    position: fixed;
    inset: 0 auto 0 0;
    box-shadow: 10px 0 35px rgba(17,24,39,.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 26px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(99,102,241,.28);
    animation: brandFloat 4s ease-in-out infinite;
}

.brand-mark svg {
    width: 24px;
    height: 24px;
}

@keyframes brandFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.brand-title {
    font-size: 16px;
    font-weight: 800;
}

.brand-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.nav {
    display: grid;
    gap: 7px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    transition: background .18s ease, transform .18s ease, color .18s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
    transform: translateX(3px);
}

.nav-item.active {
    background: rgba(255,255,255,.1);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.nav-item.disabled {
    cursor: default;
    opacity: .68;
}

.nav-item.disabled:hover {
    transform: none;
    background: transparent;
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
}

.nav-icon svg {
    width: 17px;
    height: 17px;
}

.nav-blue {
    color: #60a5fa;
    background: rgba(59,130,246,.14);
}

.nav-purple {
    color: #a78bfa;
    background: rgba(139,92,246,.14);
}

.nav-green {
    color: #34d399;
    background: rgba(16,185,129,.14);
}

.nav-orange {
    color: #fbbf24;
    background: rgba(245,158,11,.14);
}

.soon {
    margin-left: auto;
    font-size: 10px;
    background: #374151;
    color: #cbd5e1;
    padding: 3px 6px;
    border-radius: 99px;
}

.main {
    flex: 1;
    margin-left: 245px;
    min-width: 0;
}

.topbar {
    min-height: 72px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 {
    font-size: 20px;
    margin: 0;
}

.topbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.content {
    padding: 28px 30px 40px;
    animation: pageIn .28s ease both;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    border: 0;
    border-radius: 11px;
    padding: 10px 15px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 8px 18px rgba(79,70,229,.18);
}

.btn-primary:hover {
    box-shadow: 0 10px 22px rgba(79,70,229,.24);
}

.btn-secondary {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.btn-small {
    padding: 7px 10px;
    font-size: 12px;
}

.btn svg {
    width: 15px;
    height: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card,
.card {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(17,24,39,.035);
}

.stat-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(17,24,39,.07);
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    right: -22px;
    top: -22px;
    background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(139,92,246,.08));
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 30px;
    line-height: 1;
    font-weight: 850;
}

.stat-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.card {
    overflow: hidden;
}

.card + .card {
    margin-top: 20px;
}

.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, #fff, #fcfdff);
}

.card-header h2 {
    font-size: 16px;
    margin: 0;
}

.card-body {
    padding: 20px;
}

.empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

.empty strong {
    display: block;
    color: var(--text);
    margin-bottom: 7px;
}

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

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

th,
td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    font-size: 14px;
}

th {
    font-size: 12px;
    color: var(--muted);
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: #fafbfc;
}

tbody tr {
    transition: background .15s ease;
}

tbody tr:hover {
    background: #fafcff;
}

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

.vehicle-number {
    font-weight: 800;
    color: var(--text);
}

.vehicle-link {
    text-decoration: none;
}

.vehicle-link:hover {
    color: var(--blue);
}

.muted {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.badge-green {
    color: var(--green);
    background: var(--green-bg);
}

.badge-yellow {
    color: var(--yellow);
    background: var(--yellow-bg);
    animation: softPulse 2.4s ease-in-out infinite;
}

.badge-red {
    color: var(--red);
    background: var(--red-bg);
}

.badge-gray {
    color: var(--gray);
    background: var(--gray-bg);
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
    50% { box-shadow: 0 0 0 5px rgba(245,158,11,.08); }
}

.form-card {
    max-width: 920px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 13px;
    font-weight: 700;
}

.required {
    color: #dc2626;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    color: var(--text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.alert {
    border-radius: 11px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--green-bg);
    color: var(--green);
    border-color: #a7f3d0;
}

.alert-error {
    background: var(--red-bg);
    color: var(--red);
    border-color: #fecaca;
}

.inline-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.inline-link:hover {
    text-decoration: underline;
}

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

.detail-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.detail-item:nth-child(3n+2),
.detail-item:nth-child(3n+3) {
    border-left: 1px solid var(--line);
}

.detail-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.detail-value {
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.document-name {
    font-weight: 800;
}

.document-sub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.file-help {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.viewer-shell {
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-shell iframe {
    width: 100%;
    height: 720px;
    border: 0;
    background: #fff;
}

.viewer-shell img {
    display: block;
    max-width: 100%;
    max-height: 760px;
    object-fit: contain;
}

.file-name {
    overflow-wrap: anywhere;
}

.danger-box {
    max-width: 720px;
    border: 1px solid #fecaca;
    background: #fff;
}

.danger-box .card-header {
    background: #fef2f2;
}

.danger-box .card-header h2 {
    color: #991b1b;
}

.danger-copy {
    line-height: 1.6;
    color: #4b5563;
}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-item:nth-child(3n+2),
    .detail-item:nth-child(3n+3) {
        border-left: 0;
    }

    .detail-item:nth-child(even) {
        border-left: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .sidebar {
        width: 78px;
        padding: 20px 10px;
    }

    .brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .brand > div:last-child,
    .nav-item span:not(.nav-icon) {
        display: none;
    }

    .nav-item {
        justify-content: center;
    }

    .main {
        margin-left: 78px;
    }

    .topbar,
    .content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .stats-grid,
    .form-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .detail-item {
        border-left: 0 !important;
    }

    .topbar {
        gap: 12px;
        align-items: flex-start;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .page-actions {
        justify-content: flex-end;
    }

    .viewer-shell iframe {
        height: 560px;
    }
}

@media (max-width: 520px) {
    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
    }

    .topbar {
        position: static;
        flex-direction: column;
    }

    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }

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

    .viewer-shell {
        min-height: 300px;
    }

    .viewer-shell iframe {
        height: 480px;
    }
}


/* Reliable native document popup */
.file-attached {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #047857;
    font-size: 12px;
    font-weight: 750;
    background: #ecfdf5;
    padding: 5px 9px;
    border-radius: 999px;
}

.file-attached svg {
    width: 14px;
    height: 14px;
}

.btn-view {
    color: #3730a3;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #d9ddff;
}

.btn-view:hover {
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    box-shadow: 0 7px 16px rgba(99,102,241,.12);
}

.document-dialog {
    width: min(1080px, calc(100vw - 44px));
    max-width: 1080px;
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

.document-dialog[open] {
    animation: dialogIn .20s ease both;
}

.document-dialog::backdrop {
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(7px);
    animation: backdropIn .18s ease both;
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes backdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.document-dialog-shell {
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(15,23,42,.30);
}

.document-dialog-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 21px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(99,102,241,.12), transparent 36%),
        linear-gradient(135deg, #ffffff, #f8faff);
}

.dialog-kicker {
    color: #6366f1;
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.document-dialog-head h2 {
    margin: 0;
    font-size: 21px;
}

.document-dialog-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.dialog-close {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #475569;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.dialog-close:hover {
    transform: rotate(5deg) scale(1.04);
    background: #f8fafc;
    box-shadow: 0 6px 15px rgba(15,23,42,.08);
}

.dialog-close svg {
    width: 18px;
    height: 18px;
}

.document-dialog-body {
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
}

.dialog-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dialog-days {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.dialog-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 17px;
}

.dialog-detail-item {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.dialog-detail-item:nth-child(3n) {
    border-right: 0;
}

.dialog-detail-item:nth-last-child(-n+3) {
    border-bottom: 0;
}

.dialog-detail-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.dialog-detail-item strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.dialog-file-preview {
    min-height: 420px;
    border: 1px solid #1e293b;
    border-radius: 14px;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-file-preview iframe {
    display: block;
    width: 100%;
    height: 590px;
    border: 0;
    background: #fff;
}

.dialog-file-preview img {
    display: block;
    max-width: 100%;
    max-height: 590px;
    object-fit: contain;
}

.dialog-no-preview {
    padding: 42px 20px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
}

@media (max-width: 820px) {
    .document-dialog {
        width: calc(100vw - 24px);
        max-height: 94vh;
    }

    .document-dialog-shell {
        max-height: 94vh;
        border-radius: 16px;
    }

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

    .dialog-detail-item:nth-child(3n) {
        border-right: 1px solid var(--line);
    }

    .dialog-detail-item:nth-child(even) {
        border-right: 0;
    }

    .dialog-detail-item:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--line);
    }

    .dialog-detail-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .dialog-file-preview iframe {
        height: 500px;
    }
}

@media (max-width: 520px) {
    .document-dialog {
        width: 100vw;
        max-width: none;
        max-height: 96vh;
        margin: auto 0 0;
    }

    .document-dialog-shell {
        max-height: 96vh;
        border-radius: 18px 18px 0 0;
    }

    .document-dialog-head {
        padding: 16px;
    }

    .document-dialog-body {
        padding: 14px;
    }

    .dialog-detail-grid {
        grid-template-columns: 1fr;
    }

    .dialog-detail-item,
    .dialog-detail-item:nth-child(3n),
    .dialog-detail-item:nth-child(even) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .dialog-detail-item:last-child {
        border-bottom: 0;
    }

    .dialog-file-preview {
        min-height: 300px;
    }

    .dialog-file-preview iframe {
        height: 440px;
    }

    .dialog-actions .btn {
        flex: 1 1 auto;
    }
}


/* Step 9 - Documents module */
.document-stats {
    margin-bottom: 20px;
}

.stat-accent-blue::before,
.stat-accent-yellow::before,
.stat-accent-red::before,
.stat-accent-purple::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 99px 99px 0;
}

.stat-accent-blue::before {
    background: #3b82f6;
}

.stat-accent-yellow::before {
    background: #f59e0b;
}

.stat-accent-red::before {
    background: #ef4444;
}

.stat-accent-purple::before {
    background: #8b5cf6;
}

.filter-card {
    margin-bottom: 20px;
    overflow: visible;
}

.filter-card form {
    padding: 18px;
}

.document-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, .8fr)) auto;
    gap: 12px;
    align-items: end;
}

.filter-field {
    min-width: 0;
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 17px;
    height: 17px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input-wrap input {
    padding-left: 38px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.documents-list-card .card-header > div:first-child {
    min-width: 0;
}

.card-subtext {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.documents-table td {
    vertical-align: middle;
}

.vehicle-doc-link {
    color: #1e40af;
    font-weight: 850;
    text-decoration: none;
}

.vehicle-doc-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.file-missing {
    display: inline-flex;
    align-items: center;
    color: #9a3412;
    background: #fff7ed;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.empty-documents {
    padding-top: 54px;
    padding-bottom: 54px;
}

.empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 13px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.empty-icon svg {
    width: 26px;
    height: 26px;
}

.dialog-detail-wide {
    grid-column: 1 / -1;
}

@media (max-width: 1180px) {
    .document-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .document-filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-search,
    .filter-actions {
        grid-column: auto;
    }

    .filter-actions {
        align-items: stretch;
    }

    .filter-actions .btn {
        flex: 1;
    }
}


/* Step 10 - Reminders module */
.reminder-stat-link {
    text-decoration: none;
    color: inherit;
}

.stat-accent-pink::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 99px 99px 0;
    background: #ec4899;
}

.reminder-filter-card {
    margin-bottom: 20px;
}

.reminder-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.reminder-list {
    display: grid;
}

.reminder-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    transition: background .16s ease, transform .16s ease;
}

.reminder-row:last-child {
    border-bottom: 0;
}

.reminder-row:hover {
    background: #fbfcff;
}

.reminder-rail {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.reminder-dot {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 13px;
}

.reminder-overdue .reminder-dot {
    background: #fee2e2;
    color: #b91c1c;
}

.reminder-today .reminder-dot {
    background: #fce7f3;
    color: #be185d;
}

.reminder-soon .reminder-dot {
    background: #fef3c7;
    color: #a16207;
}

.reminder-upcoming .reminder-dot {
    background: #dbeafe;
    color: #1d4ed8;
}

.reminder-later .reminder-dot {
    background: #dcfce7;
    color: #15803d;
}

.reminder-neutral .reminder-dot {
    background: #f1f5f9;
    color: #475569;
}

.reminder-main {
    min-width: 0;
}

.reminder-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.reminder-document-title {
    font-weight: 850;
    font-size: 15px;
}

.reminder-vehicle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.reminder-vehicle a {
    color: #1e40af;
    font-weight: 800;
    text-decoration: none;
}

.reminder-vehicle a:hover {
    text-decoration: underline;
}

.reminder-date-wrap {
    text-align: right;
    display: grid;
    justify-items: end;
    gap: 3px;
    min-width: 145px;
}

.reminder-date-wrap strong {
    font-size: 13px;
}

.reminder-date-wrap > span:last-child {
    color: var(--muted);
    font-size: 11px;
}

.reminder-status-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.reminder-overdue .reminder-status-pill {
    color: #b91c1c;
    background: #fee2e2;
}

.reminder-today .reminder-status-pill {
    color: #be185d;
    background: #fce7f3;
}

.reminder-soon .reminder-status-pill {
    color: #a16207;
    background: #fef3c7;
}

.reminder-upcoming .reminder-status-pill {
    color: #1d4ed8;
    background: #dbeafe;
}

.reminder-later .reminder-status-pill {
    color: #15803d;
    background: #dcfce7;
}

.reminder-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.reminder-meta-grid > div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.reminder-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 4px;
}

.reminder-meta-grid strong {
    display: block;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.file-ok {
    color: #047857;
}

.file-not-ok {
    color: #b45309;
}

.reminder-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    align-self: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reminder-empty-icon {
    color: #f59e0b;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

@media (max-width: 1000px) {
    .reminder-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .reminder-actions {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .reminder-filter-grid {
        grid-template-columns: 1fr;
    }

    .reminder-row {
        padding: 16px;
    }

    .reminder-topline {
        flex-direction: column;
        gap: 10px;
    }

    .reminder-date-wrap {
        justify-items: start;
        text-align: left;
    }

    .reminder-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .reminder-row {
        grid-template-columns: 1fr;
    }

    .reminder-rail {
        justify-content: flex-start;
    }

    .reminder-actions {
        grid-column: 1;
    }

    .reminder-actions .btn {
        flex: 1 1 auto;
    }
}


/* Step 11 - Dashboard upgrade */
.dashboard-content {
    display: grid;
    gap: 20px;
}

.dashboard-hero {
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.15), transparent 23%),
        linear-gradient(135deg, #1e3a8a 0%, #4338ca 52%, #7c3aed 100%);
    box-shadow: 0 18px 50px rgba(67,56,202,.19);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto auto -100px -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}

.dashboard-hero-copy {
    padding: 34px;
    position: relative;
    z-index: 2;
    align-self: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #86efac;
    box-shadow: 0 0 0 5px rgba(134,239,172,.12);
    animation: heroDotPulse 2s ease-in-out infinite;
}

@keyframes heroDotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

.dashboard-hero h2 {
    margin: 0;
    max-width: 560px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.dashboard-hero-copy > p {
    max-width: 610px;
    margin: 16px 0 0;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.dashboard-hero .btn-primary {
    background: #fff;
    color: #312e81;
    box-shadow: 0 9px 22px rgba(15,23,42,.13);
}

.dashboard-hero .btn-secondary {
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.09);
    color: #fff;
    backdrop-filter: blur(8px);
}

.dashboard-hero .btn-secondary:hover {
    background: rgba(255,255,255,.15);
}

.dashboard-hero-visual {
    position: relative;
    min-height: 250px;
    overflow: hidden;
}

.hero-vehicle-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 116px;
    height: 116px;
    transform: translate(-50%, -50%);
    border-radius: 34px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 22px 48px rgba(15,23,42,.18);
    backdrop-filter: blur(10px);
    animation: heroVehicleFloat 4s ease-in-out infinite;
}

.hero-vehicle-icon svg {
    width: 58px;
    height: 58px;
    stroke-width: 1.35;
}

@keyframes heroVehicleFloat {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 6px)); }
}

.hero-visual-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.hero-ring-one {
    width: 190px;
    height: 190px;
}

.hero-ring-two {
    width: 270px;
    height: 270px;
}

.hero-mini-card {
    position: absolute;
    display: grid;
    gap: 2px;
    min-width: 100px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255,255,255,.74);
    background: rgba(15,23,42,.16);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 700;
}

.hero-mini-card span {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.hero-mini-one {
    left: 18px;
    top: 34px;
    animation: miniFloatOne 4.4s ease-in-out infinite;
}

.hero-mini-two {
    right: 20px;
    bottom: 30px;
    animation: miniFloatTwo 4.8s ease-in-out infinite;
}

@keyframes miniFloatOne {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes miniFloatTwo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.dashboard-stats {
    margin-bottom: 0;
}

.dashboard-stat {
    text-decoration: none;
    color: inherit;
    min-height: 155px;
}

.dashboard-stat-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 11px;
    display: grid;
    place-items: center;
}

.dashboard-stat-icon svg {
    width: 19px;
    height: 19px;
}

.stat-icon-blue {
    color: #2563eb;
    background: #eff6ff;
}

.stat-icon-purple {
    color: #7c3aed;
    background: #f5f3ff;
}

.stat-icon-yellow {
    color: #b45309;
    background: #fffbeb;
}

.stat-icon-red {
    color: #dc2626;
    background: #fef2f2;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
    gap: 20px;
}

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

.dashboard-panel {
    margin-top: 0 !important;
}

.dashboard-expiry-list {
    display: grid;
}

.dashboard-expiry-row {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) auto 36px;
    gap: 14px;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    transition: background .16s ease;
}

.dashboard-expiry-row:last-child {
    border-bottom: 0;
}

.dashboard-expiry-row:hover {
    background: #fbfcff;
}

.expiry-status-line {
    align-self: stretch;
    width: 4px;
    min-height: 44px;
    border-radius: 99px;
}

.expiry-red {
    background: #ef4444;
}

.expiry-orange {
    background: #f59e0b;
}

.expiry-blue {
    background: #3b82f6;
}

.expiry-document {
    min-width: 0;
}

.expiry-document-name {
    font-size: 13px;
    font-weight: 850;
}

.expiry-date {
    min-width: 118px;
    text-align: right;
}

.expiry-date strong,
.expiry-date span {
    display: block;
}

.expiry-date strong {
    font-size: 12px;
}

.expiry-date span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-icon-button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #4f46e5;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.dashboard-icon-button:hover {
    transform: translateY(-1px);
    background: #f5f3ff;
    box-shadow: 0 7px 16px rgba(99,102,241,.1);
}

.dashboard-icon-button svg {
    width: 16px;
    height: 16px;
}

.dashboard-empty {
    min-height: 265px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-empty-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 13px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #16a34a;
    background: #ecfdf5;
}

.dashboard-empty-icon svg {
    width: 24px;
    height: 24px;
}

.dashboard-quick-actions {
    display: grid;
    gap: 9px;
    padding: 14px;
}

.dashboard-quick-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.dashboard-quick-card:hover {
    transform: translateX(3px);
    box-shadow: 0 8px 20px rgba(15,23,42,.055);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.quick-action-icon svg {
    width: 19px;
    height: 19px;
}

.dashboard-quick-card strong,
.dashboard-quick-card small {
    display: block;
}

.dashboard-quick-card strong {
    font-size: 13px;
}

.dashboard-quick-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.quick-blue .quick-action-icon {
    color: #2563eb;
    background: #eff6ff;
}

.quick-purple .quick-action-icon {
    color: #7c3aed;
    background: #f5f3ff;
}

.quick-green .quick-action-icon {
    color: #059669;
    background: #ecfdf5;
}

.quick-orange .quick-action-icon {
    color: #d97706;
    background: #fffbeb;
}

.quick-arrow {
    width: 17px;
    height: 17px;
    color: #94a3b8;
}

.dashboard-recent-docs,
.dashboard-vehicle-list {
    display: grid;
}

.recent-doc-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.recent-doc-row:last-child {
    border-bottom: 0;
}

.recent-doc-icon,
.dashboard-vehicle-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #4f46e5;
    background: #eef2ff;
}

.recent-doc-icon svg,
.dashboard-vehicle-icon svg {
    width: 17px;
    height: 17px;
}

.recent-doc-copy,
.dashboard-vehicle-copy {
    min-width: 0;
}

.recent-doc-copy strong,
.recent-doc-copy span,
.dashboard-vehicle-copy strong,
.dashboard-vehicle-copy span {
    display: block;
}

.recent-doc-copy strong,
.dashboard-vehicle-copy strong {
    font-size: 12px;
}

.recent-doc-copy span,
.dashboard-vehicle-copy span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-vehicle-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: background .15s ease;
}

.dashboard-vehicle-row:last-child {
    border-bottom: 0;
}

.dashboard-vehicle-row:hover {
    background: #fbfcff;
}

.dashboard-doc-count {
    color: #475569;
    background: #f1f5f9;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.dashboard-row-arrow {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

@media (max-width: 1120px) {
    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

@media (max-width: 820px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-visual {
        min-height: 210px;
    }

    .dashboard-hero-copy {
        padding-bottom: 12px;
    }
}

@media (max-width: 620px) {
    .dashboard-hero-copy {
        padding: 24px 20px 8px;
    }

    .dashboard-hero h2 {
        font-size: 31px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .dashboard-expiry-row {
        grid-template-columns: 4px minmax(0, 1fr) 34px;
    }

    .expiry-date {
        grid-column: 2;
        text-align: left;
        min-width: 0;
    }

    .dashboard-icon-button {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .recent-doc-row {
        grid-template-columns: 38px minmax(0, 1fr) 34px;
    }

    .recent-doc-row .badge {
        grid-column: 2;
        justify-self: start;
    }

    .recent-doc-row .dashboard-icon-button {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .dashboard-vehicle-row {
        grid-template-columns: 38px minmax(0, 1fr) 18px;
    }

    .dashboard-doc-count {
        grid-column: 2;
        justify-self: start;
    }

    .dashboard-row-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}


/* Step 12 - Vehicles upgrade */
.vehicle-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.vehicle-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(17,24,39,.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    border-color: #d8def0;
    box-shadow: 0 18px 38px rgba(17,24,39,.08);
}

.vehicle-card-photo {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 15%, rgba(99,102,241,.18), transparent 32%),
        linear-gradient(135deg, #eef2ff, #f8fafc);
}

.vehicle-card-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.vehicle-card:hover .vehicle-card-photo img {
    transform: scale(1.035);
}

.vehicle-photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #6366f1;
}

.vehicle-photo-placeholder svg {
    width: 76px;
    height: 76px;
    stroke-width: 1.2;
}

.vehicle-card-type {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #312e81;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 850;
    box-shadow: 0 6px 16px rgba(15,23,42,.08);
}

.vehicle-card-body {
    padding: 17px;
}

.vehicle-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vehicle-card-number {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .01em;
}

.vehicle-card-number:hover {
    color: #4f46e5;
}

.vehicle-card-model {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.vehicle-card-edit {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #64748b;
    background: #fff;
    transition: transform .16s ease, background .16s ease;
}

.vehicle-card-edit:hover {
    transform: translateY(-1px);
    color: #4f46e5;
    background: #f5f3ff;
}

.vehicle-card-edit svg {
    width: 15px;
    height: 15px;
}

.vehicle-health {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.vehicle-health-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.vehicle-health-green {
    color: #047857;
    background: #ecfdf5;
}

.vehicle-health-green .vehicle-health-dot {
    background: #10b981;
}

.vehicle-health-yellow {
    color: #a16207;
    background: #fffbeb;
}

.vehicle-health-yellow .vehicle-health-dot {
    background: #f59e0b;
}

.vehicle-health-red {
    color: #b91c1c;
    background: #fef2f2;
}

.vehicle-health-red .vehicle-health-dot {
    background: #ef4444;
}

.vehicle-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.vehicle-card-stats > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fafcff;
}

.vehicle-card-stats span,
.vehicle-card-stats strong {
    display: block;
}

.vehicle-card-stats span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.vehicle-card-stats strong {
    margin-top: 4px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.vehicle-card-footer > span,
.vehicle-card-footer > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.vehicle-card-footer > span {
    min-width: 0;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-card-footer > span svg {
    width: 14px;
    height: 14px;
}

.vehicle-card-footer > a {
    flex: 0 0 auto;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 850;
}

.vehicle-card-footer > a svg {
    width: 14px;
    height: 14px;
}

.vehicle-empty-state {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vehicle-empty-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 15px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #6366f1;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.vehicle-empty-icon svg {
    width: 34px;
    height: 34px;
}

.vehicle-profile-content {
    display: grid;
    gap: 18px;
}

.vehicle-profile-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 245px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(17,24,39,.05);
}

.vehicle-profile-photo {
    min-height: 245px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 15%, rgba(99,102,241,.18), transparent 30%),
        linear-gradient(135deg, #eef2ff, #f8fafc);
}

.vehicle-profile-photo img {
    width: 100%;
    height: 100%;
    min-height: 245px;
    display: block;
    object-fit: cover;
}

.vehicle-profile-placeholder {
    height: 100%;
    min-height: 245px;
    display: grid;
    place-items: center;
    color: #6366f1;
}

.vehicle-profile-placeholder svg {
    width: 105px;
    height: 105px;
    stroke-width: 1.1;
    animation: vehicleProfileFloat 4s ease-in-out infinite;
}

@keyframes vehicleProfileFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.vehicle-profile-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(99,102,241,.07), transparent 32%),
        #fff;
}

.vehicle-profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.vehicle-profile-type {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    color: #4f46e5;
    background: #eef2ff;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vehicle-profile-top h2 {
    margin: 11px 0 0;
    font-size: 30px;
    letter-spacing: -.025em;
}

.vehicle-profile-top p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.vehicle-profile-info-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.vehicle-profile-info-row > div {
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.8);
}

.vehicle-profile-info-row span,
.vehicle-profile-info-row strong {
    display: block;
}

.vehicle-profile-info-row span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.vehicle-profile-info-row strong {
    margin-top: 5px;
    font-size: 13px;
}

.vehicle-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.vehicle-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(17,24,39,.035);
}

.vehicle-summary-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
}

.vehicle-summary-icon svg {
    width: 18px;
    height: 18px;
}

.vehicle-summary-card span:not(.vehicle-summary-icon),
.vehicle-summary-card strong {
    display: block;
}

.vehicle-summary-card div > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.vehicle-summary-card strong {
    margin-top: 2px;
    font-size: 22px;
}

.summary-all .vehicle-summary-icon {
    color: #2563eb;
    background: #eff6ff;
}

.summary-valid .vehicle-summary-icon {
    color: #059669;
    background: #ecfdf5;
}

.summary-expiring .vehicle-summary-icon {
    color: #d97706;
    background: #fffbeb;
}

.summary-expired .vehicle-summary-icon {
    color: #dc2626;
    background: #fef2f2;
}

.vehicle-profile-layout {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}

.vehicle-details-card,
.vehicle-documents-card {
    margin-top: 0 !important;
}

.vehicle-detail-list {
    display: grid;
}

.vehicle-detail-list > div {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 17px;
    border-bottom: 1px solid var(--line);
}

.vehicle-detail-list > div:last-child {
    border-bottom: 0;
}

.vehicle-detail-list span {
    color: var(--muted);
    font-size: 11px;
}

.vehicle-detail-list strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.vehicle-detail-notes {
    grid-template-columns: 1fr !important;
}

.vehicle-detail-notes strong {
    line-height: 1.6;
}

.vehicle-document-list {
    display: grid;
}

.vehicle-document-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 120px auto 78px;
    gap: 11px;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    transition: background .15s ease;
}

.vehicle-document-row:last-child {
    border-bottom: 0;
}

.vehicle-document-row:hover {
    background: #fbfcff;
}

.vehicle-document-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #4f46e5;
    background: #eef2ff;
}

.vehicle-document-icon svg {
    width: 17px;
    height: 17px;
}

.vehicle-document-main,
.vehicle-document-expiry {
    min-width: 0;
}

.vehicle-document-main strong,
.vehicle-document-main span,
.vehicle-document-expiry strong,
.vehicle-document-expiry span {
    display: block;
}

.vehicle-document-main strong {
    font-size: 12px;
}

.vehicle-document-main span,
.vehicle-document-expiry span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-document-expiry {
    text-align: right;
}

.vehicle-document-expiry strong {
    font-size: 11px;
}

.vehicle-document-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.vehicle-document-actions .dashboard-icon-button {
    text-decoration: none;
}

.vehicle-form-card {
    max-width: 940px;
}

.vehicle-photo-upload-block {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    margin-bottom: 22px;
    padding: 15px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fafcff;
}

.vehicle-photo-upload-block label {
    display: block;
    margin-bottom: 4px;
}

.vehicle-photo-upload-block p {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 11px;
}

.vehicle-photo-upload-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #6366f1;
    background: #eef2ff;
}

.vehicle-photo-upload-icon svg {
    width: 28px;
    height: 28px;
}

.vehicle-photo-current {
    width: 72px;
    height: 72px;
}

.vehicle-photo-current img {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: cover;
    border-radius: 15px;
}

.vehicle-photo-current .vehicle-photo-upload-icon {
    width: 72px;
    height: 72px;
}

@media (max-width: 1180px) {
    .vehicle-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .vehicle-profile-hero {
        grid-template-columns: 240px minmax(0, 1fr);
    }

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

    .vehicle-document-row {
        grid-template-columns: 38px minmax(0, 1fr) auto 78px;
    }

    .vehicle-document-expiry {
        grid-column: 2;
        text-align: left;
    }

    .vehicle-document-row > .badge {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .vehicle-document-actions {
        grid-column: 4;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 720px) {
    .vehicle-card-grid {
        grid-template-columns: 1fr;
    }

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

    .vehicle-profile-photo,
    .vehicle-profile-photo img,
    .vehicle-profile-placeholder {
        min-height: 210px;
        max-height: 260px;
    }

    .vehicle-profile-top h2 {
        font-size: 25px;
    }
}

@media (max-width: 560px) {
    .vehicle-profile-summary {
        padding: 20px;
    }

    .vehicle-profile-top {
        flex-direction: column;
    }

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

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

    .vehicle-document-row {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .vehicle-document-expiry {
        grid-column: 2;
    }

    .vehicle-document-row > .badge {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
    }

    .vehicle-document-actions {
        grid-column: 3;
        grid-row: 1 / span 3;
        flex-direction: column;
    }

    .vehicle-detail-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .vehicle-photo-upload-block {
        grid-template-columns: 1fr;
    }
}


/* Step 13 - Document renewals */
.btn-renew {
    background: linear-gradient(135deg, #0891b2, #2563eb);
    color: #fff;
    box-shadow: 0 8px 18px rgba(8,145,178,.16);
}

.btn-renew:hover {
    box-shadow: 0 10px 22px rgba(8,145,178,.23);
}

.renew-icon-button {
    color: #0891b2;
    background: #ecfeff;
    border-color: #cffafe;
}

.renew-icon-button:hover {
    color: #0e7490;
    background: #cffafe;
}

.renewal-layout {
    display: grid;
    grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr);
    gap: 18px;
    align-items: start;
}

.renewal-old-card,
.renewal-form-card {
    margin-top: 0 !important;
}

.renew-current-summary {
    display: grid;
}

.renew-current-summary > div {
    padding: 14px 17px;
    border-bottom: 1px solid var(--line);
}

.renew-current-summary > div:last-child {
    border-bottom: 0;
}

.renew-current-summary span,
.renew-current-summary strong {
    display: block;
}

.renew-current-summary span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.renew-current-summary strong {
    margin-top: 5px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.renewal-warning {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 13px;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    color: #0c4a6e;
    background: #f0f9ff;
}

.renewal-warning svg {
    width: 21px;
    height: 21px;
    margin-top: 1px;
}

.renewal-warning strong,
.renewal-warning span {
    display: block;
}

.renewal-warning strong {
    font-size: 12px;
}

.renewal-warning span {
    margin-top: 3px;
    color: #0369a1;
    font-size: 11px;
}

.renewal-history-card {
    margin-top: 0 !important;
}

.renewal-history-list {
    display: grid;
}

.renewal-history-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 110px 110px auto;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.renewal-history-row:last-child {
    border-bottom: 0;
}

.renewal-history-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #64748b;
    background: #f1f5f9;
}

.renewal-history-icon svg {
    width: 18px;
    height: 18px;
}

.renewal-history-main,
.renewal-history-dates {
    min-width: 0;
}

.renewal-history-main strong,
.renewal-history-main span,
.renewal-history-dates strong,
.renewal-history-dates span {
    display: block;
}

.renewal-history-main strong {
    font-size: 12px;
}

.renewal-history-main span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.renewal-history-dates span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 750;
}

.renewal-history-dates strong {
    margin-top: 3px;
    font-size: 10px;
}

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

    .renewal-history-row {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .renewal-history-dates {
        grid-column: 2;
    }

    .renewal-history-row > .btn,
    .renewal-history-row > .muted {
        grid-column: 3;
        grid-row: 1 / span 3;
    }
}

@media (max-width: 560px) {
    .renewal-history-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .renewal-history-row > .btn,
    .renewal-history-row > .muted {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
    }
}


/* Step 14 - Settings + archived document popup */
.nav-pink {
    color: #f472b6;
    background: rgba(236,72,153,.14);
}

.history-dialog-head {
    background:
        radial-gradient(circle at top right, rgba(100,116,139,.13), transparent 36%),
        linear-gradient(135deg, #ffffff, #f8fafc);
}

.history-archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #475569;
    background: #e2e8f0;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.history-archive-badge svg {
    width: 14px;
    height: 14px;
}

.settings-content {
    display: grid;
    gap: 18px;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr);
    gap: 18px;
    align-items: start;
}

.settings-add-card,
.settings-types-card {
    margin-top: 0 !important;
}

.settings-add-card {
    position: sticky;
    top: 90px;
}

.settings-check-row {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafcff;
    cursor: pointer;
}

.settings-check-row > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-check-box {
    width: 22px;
    height: 22px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    display: grid;
    place-items: center;
    color: transparent;
    background: #fff;
    transition: .15s ease;
}

.settings-check-box svg {
    width: 14px;
    height: 14px;
}

.settings-check-row > input:checked + .settings-check-box {
    color: #fff;
    border-color: #4f46e5;
    background: #4f46e5;
}

.settings-check-row strong,
.settings-check-row small {
    display: block;
}

.settings-check-row strong {
    font-size: 12px;
}

.settings-check-row small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.settings-add-button {
    width: 100%;
    margin-top: 15px;
}

.settings-help {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: #64748b;
}

.settings-help svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.settings-help p {
    margin: 0;
    font-size: 10px;
    line-height: 1.55;
}

.settings-type-list {
    display: grid;
}

.settings-type-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    gap: 11px;
    align-items: center;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    transition: background .15s ease;
}

.settings-type-row:last-child {
    border-bottom: 0;
}

.settings-type-row:hover {
    background: #fbfcff;
}

.settings-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #059669;
    background: #ecfdf5;
}

.settings-type-icon svg {
    width: 18px;
    height: 18px;
}

.settings-type-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px auto;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.settings-type-main {
    min-width: 0;
}

.settings-type-name {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 750;
}

.settings-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    cursor: pointer;
}

.settings-inline-check input {
    width: 14px;
    height: 14px;
    accent-color: #4f46e5;
}

.settings-type-usage {
    text-align: center;
}

.settings-type-usage strong,
.settings-type-usage span {
    display: block;
}

.settings-type-usage strong {
    font-size: 14px;
}

.settings-type-usage span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.settings-delete-form {
    display: flex;
    justify-content: flex-end;
}

.settings-delete-button {
    width: 34px;
    height: 34px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #dc2626;
    background: #fff;
    cursor: pointer;
    transition: .15s ease;
}

.settings-delete-button:hover:not(:disabled) {
    background: #fef2f2;
    transform: translateY(-1px);
}

.settings-delete-button:disabled {
    color: #cbd5e1;
    border-color: var(--line);
    cursor: not-allowed;
    background: #f8fafc;
}

.settings-delete-button svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 980px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-add-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .settings-type-row {
        grid-template-columns: 36px minmax(0, 1fr) 34px;
        align-items: start;
    }

    .settings-type-icon {
        width: 36px;
        height: 36px;
    }

    .settings-type-form {
        grid-template-columns: 1fr auto;
    }

    .settings-type-main {
        grid-column: 1 / -1;
    }

    .settings-type-usage {
        text-align: left;
        display: flex;
        gap: 4px;
        align-items: baseline;
    }

    .settings-type-usage strong,
    .settings-type-usage span {
        display: inline;
    }
}


/* Step 15 - Global notification center */
.topbar {
    padding-right: 86px;
}

.global-notification-center {
    position: fixed;
    right: 25px;
    top: 16px;
    z-index: 80;
}

.global-notification-center > summary {
    list-style: none;
}

.global-notification-center > summary::-webkit-details-marker {
    display: none;
}

.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    background: rgba(255,255,255,.96);
    box-shadow: 0 7px 20px rgba(15,23,42,.07);
    cursor: pointer;
    transition: transform .16s ease, color .16s ease, box-shadow .16s ease, background .16s ease;
}

.notification-bell:hover,
.global-notification-center[open] .notification-bell {
    transform: translateY(-1px);
    color: #4f46e5;
    background: #fff;
    box-shadow: 0 10px 24px rgba(79,70,229,.12);
}

.notification-bell svg {
    width: 19px;
    height: 19px;
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #ef4444;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(239,68,68,.25);
    animation: notificationBadgePulse 2.5s ease-in-out infinite;
}

@keyframes notificationBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.notification-panel {
    position: absolute;
    right: 0;
    top: 50px;
    width: min(410px, calc(100vw - 34px));
    max-height: calc(100vh - 82px);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(15,23,42,.20);
    transform-origin: top right;
    animation: notificationPanelIn .18s ease both;
}

@keyframes notificationPanelIn {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 17px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(99,102,241,.08), transparent 45%),
        #fff;
}

.notification-panel-head strong,
.notification-panel-head span {
    display: block;
}

.notification-panel-head strong {
    font-size: 14px;
}

.notification-panel-head span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.notification-panel-head a {
    flex: 0 0 auto;
    color: #4f46e5;
    text-decoration: none;
    font-size: 10px;
    font-weight: 850;
}

.notification-list {
    max-height: min(470px, calc(100vh - 215px));
    overflow-y: auto;
}

.notification-item {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 12px 15px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s ease;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: #fafcff;
}

.notification-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 99px 99px 0;
}

.notification-danger::before {
    background: #ef4444;
}

.notification-today::before {
    background: #ec4899;
}

.notification-warning::before {
    background: #f59e0b;
}

.notification-upcoming::before {
    background: #3b82f6;
}

.notification-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
}

.notification-item-icon svg {
    width: 17px;
    height: 17px;
}

.notification-danger .notification-item-icon {
    color: #dc2626;
    background: #fef2f2;
}

.notification-today .notification-item-icon {
    color: #db2777;
    background: #fdf2f8;
}

.notification-warning .notification-item-icon {
    color: #d97706;
    background: #fffbeb;
}

.notification-upcoming .notification-item-icon {
    color: #2563eb;
    background: #eff6ff;
}

.notification-item-copy {
    min-width: 0;
}

.notification-item-copy strong,
.notification-item-copy span,
.notification-item-copy small {
    display: block;
}

.notification-item-copy strong {
    font-size: 11px;
}

.notification-item-copy span {
    margin-top: 3px;
    color: #64748b;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item-copy small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

.notification-item-status {
    max-width: 98px;
    text-align: right;
    font-size: 9px;
    font-weight: 850;
}

.notification-danger .notification-item-status {
    color: #b91c1c;
}

.notification-today .notification-item-status {
    color: #be185d;
}

.notification-warning .notification-item-status {
    color: #a16207;
}

.notification-upcoming .notification-item-status {
    color: #1d4ed8;
}

.notification-empty {
    min-height: 235px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.notification-empty-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #059669;
    background: #ecfdf5;
}

.notification-empty-icon svg {
    width: 23px;
    height: 23px;
}

.notification-empty strong {
    font-size: 12px;
}

.notification-empty > span {
    max-width: 250px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.notification-more {
    display: block;
    padding: 10px 15px;
    color: #4f46e5;
    background: #fafaff;
    border-top: 1px solid var(--line);
    text-align: center;
    text-decoration: none;
    font-size: 10px;
    font-weight: 850;
}

.notification-panel-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    background: #fafbfc;
}

.notification-panel-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 10px 5px;
    color: #64748b;
    text-decoration: none;
    font-size: 9px;
    font-weight: 750;
    border-right: 1px solid var(--line);
}

.notification-panel-footer a:last-child {
    border-right: 0;
}

.notification-panel-footer a:hover {
    color: #334155;
    background: #fff;
}

.footer-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
}

.footer-dot-red {
    background: #ef4444;
}

.footer-dot-yellow {
    background: #f59e0b;
}

.footer-dot-blue {
    background: #3b82f6;
}

@media (max-width: 760px) {
    .global-notification-center {
        right: 17px;
        top: 15px;
    }

    .topbar {
        padding-right: 76px;
    }
}

@media (max-width: 520px) {
    .global-notification-center {
        position: absolute;
        right: 15px;
        top: 13px;
    }

    .topbar {
        padding-right: 18px;
        padding-top: 64px;
    }

    .notification-panel {
        position: fixed;
        top: 62px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 78px);
    }

    .notification-list {
        max-height: calc(100vh - 260px);
    }
}


/* Step 16 - Backup & Export */
.settings-backup-card {
    margin-top: 0 !important;
}

.settings-export-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.settings-export-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 11px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.settings-export-card:hover {
    transform: translateY(-2px);
    border-color: #dbe1ef;
    box-shadow: 0 10px 25px rgba(15,23,42,.07);
}

.settings-export-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.settings-export-icon svg {
    width: 20px;
    height: 20px;
}

.export-blue .settings-export-icon {
    color: #2563eb;
    background: #eff6ff;
}

.export-green .settings-export-icon {
    color: #059669;
    background: #ecfdf5;
}

.export-purple .settings-export-icon {
    color: #7c3aed;
    background: #f5f3ff;
}

.settings-export-copy {
    min-width: 0;
}

.settings-export-copy strong,
.settings-export-copy small {
    display: block;
}

.settings-export-copy strong {
    font-size: 12px;
}

.settings-export-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.settings-export-arrow {
    width: 17px;
    height: 17px;
    color: #94a3b8;
}

.settings-backup-note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 16px 16px;
    padding: 12px;
    border: 1px solid #fde68a;
    border-radius: 12px;
    color: #92400e;
    background: #fffbeb;
}

.settings-backup-note > svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.settings-backup-note strong,
.settings-backup-note span {
    display: block;
}

.settings-backup-note strong {
    font-size: 11px;
}

.settings-backup-note span {
    margin-top: 4px;
    color: #a16207;
    font-size: 10px;
    line-height: 1.5;
}

.settings-backup-note code {
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(146,64,14,.08);
}

@media (max-width: 900px) {
    .settings-export-grid {
        grid-template-columns: 1fr;
    }
}


/* Step 17 - Admin login and access protection */
.sidebar {
    display: flex;
    flex-direction: column;
}

.nav {
    flex: 0 0 auto;
}

.sidebar-account {
    margin-top: auto;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    padding: 12px 8px 2px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar-account-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(79,70,229,.22);
}

.sidebar-account-copy {
    min-width: 0;
}

.sidebar-account-copy strong,
.sidebar-account-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-copy strong {
    color: #f8fafc;
    font-size: 11px;
}

.sidebar-account-copy span {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

.sidebar-logout {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #94a3b8;
    text-decoration: none;
    transition: .16s ease;
}

.sidebar-logout:hover {
    color: #fecaca;
    background: rgba(239,68,68,.10);
}

.sidebar-logout svg {
    width: 17px;
    height: 17px;
}

.auth-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    background:
        radial-gradient(circle at 15% 20%, rgba(59,130,246,.13), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(139,92,246,.12), transparent 29%),
        #f7f9fc;
}

.auth-shell {
    width: min(430px, 100%);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 18px;
}

.auth-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 10px 25px rgba(79,70,229,.22);
}

.auth-brand-icon svg {
    width: 22px;
    height: 22px;
}

.auth-brand strong,
.auth-brand span {
    display: block;
}

.auth-brand strong {
    font-size: 14px;
}

.auth-brand span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.auth-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 65px rgba(15,23,42,.10);
    backdrop-filter: blur(10px);
    animation: authCardIn .28s ease both;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card h1 {
    margin: 0;
    text-align: center;
    font-size: 25px;
    letter-spacing: -.025em;
}

.auth-intro {
    margin: 8px auto 22px;
    max-width: 330px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
    line-height: 1.55;
}

.auth-step-badge {
    width: fit-content;
    margin: 0 auto 13px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #4f46e5;
    background: #eef2ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
}

.auth-lock-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 14px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.auth-lock-icon svg {
    width: 26px;
    height: 26px;
}

.auth-field {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.auth-field label {
    font-size: 11px;
}

.auth-field input {
    padding: 12px 13px;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-security-note {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    margin-top: 18px;
    padding: 11px;
    border: 1px solid #d1fae5;
    border-radius: 11px;
    color: #047857;
    background: #ecfdf5;
}

.auth-security-note svg {
    width: 17px;
    height: 17px;
}

.auth-security-note span {
    font-size: 9px;
    line-height: 1.5;
}

.auth-footer {
    margin-top: 14px;
    color: #94a3b8;
    text-align: center;
    font-size: 9px;
}

@media (max-width: 760px) {
    .sidebar-account {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .sidebar-account-copy {
        display: none;
    }

    .sidebar-logout {
        width: 38px;
    }
}

@media (max-width: 520px) {
    .auth-body {
        padding: 18px 12px;
    }

    .auth-card {
        padding: 23px 18px;
        border-radius: 17px;
    }
}


/* Step 18 - Account security */
.account-security-card {
    margin-top: 0 !important;
}

.account-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.account-security-badge svg {
    width: 14px;
    height: 14px;
}

.account-security-grid {
    display: grid;
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
}

.account-profile-panel {
    padding: 22px;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(circle at top left, rgba(99,102,241,.08), transparent 34%),
        #fbfcff;
}

.account-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(79,70,229,.19);
}

.account-profile-copy {
    margin-top: 14px;
}

.account-profile-copy span,
.account-profile-copy strong {
    display: block;
}

.account-profile-copy span {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 750;
    letter-spacing: .03em;
}

.account-profile-copy strong {
    margin-top: 4px;
    font-size: 18px;
}

.account-meta-list {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.account-meta-list > div {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.account-meta-list span,
.account-meta-list strong {
    display: block;
}

.account-meta-list span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 750;
}

.account-meta-list strong {
    margin-top: 4px;
    font-size: 11px;
}

.account-password-panel {
    padding: 22px;
}

.account-password-panel h3 {
    margin: 0;
    font-size: 15px;
}

.account-password-panel > p {
    margin: 6px 0 17px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.account-password-panel form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.account-password-panel form .form-group:first-of-type {
    grid-column: 1 / -1;
}

.account-password-panel form .btn {
    grid-column: 1 / -1;
    justify-self: start;
}

@media (max-width: 820px) {
    .account-security-grid {
        grid-template-columns: 1fr;
    }

    .account-profile-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .account-password-panel form {
        grid-template-columns: 1fr;
    }

    .account-password-panel form .form-group:first-of-type,
    .account-password-panel form .btn {
        grid-column: auto;
    }

    .account-password-panel form .btn {
        width: 100%;
    }
}


/* Password show / hide toggle */
.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.password-toggle:hover {
    color: #4f46e5;
    background: #f5f3ff;
}

.password-toggle svg {
    width: 17px;
    height: 17px;
}

.password-toggle .eye-hide {
    display: none;
}

.password-toggle.is-visible .eye-show {
    display: none;
}

.password-toggle.is-visible .eye-hide {
    display: block;
}


/* Step 20 (alternative) - Safe vehicle deletion */
.vehicle-danger-zone {
    max-width: 940px;
    margin-top: 18px !important;
    padding: 17px 18px;
    border-color: #fecaca;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at right top, rgba(239,68,68,.05), transparent 34%),
        #fff;
}

.vehicle-danger-zone-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.vehicle-danger-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #dc2626;
    background: #fef2f2;
}

.vehicle-danger-icon svg {
    width: 20px;
    height: 20px;
}

.vehicle-danger-zone h2 {
    margin: 0;
    color: #991b1b;
    font-size: 14px;
}

.vehicle-danger-zone p {
    margin: 4px 0 0;
    color: #7f1d1d;
    font-size: 10px;
    line-height: 1.45;
}

.vehicle-delete-layout {
    max-width: 720px;
    margin: 0 auto;
}

.vehicle-delete-card {
    overflow: hidden;
    border-color: #fecaca;
}

.vehicle-delete-warning {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(239,68,68,.07), transparent 38%),
        #fff;
    border-bottom: 1px solid #fee2e2;
}

.vehicle-delete-warning-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #dc2626;
    background: #fef2f2;
}

.vehicle-delete-warning-icon svg {
    width: 28px;
    height: 28px;
}

.vehicle-delete-warning span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #b91c1c;
    background: #fee2e2;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.vehicle-delete-warning h2 {
    margin: 9px 0 0;
    color: #7f1d1d;
    font-size: 22px;
}

.vehicle-delete-warning p {
    margin: 7px 0 0;
    max-width: 520px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

.vehicle-delete-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fafcff;
}

.vehicle-delete-summary > div {
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.vehicle-delete-summary span,
.vehicle-delete-summary strong {
    display: block;
}

.vehicle-delete-summary span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 750;
    letter-spacing: .03em;
}

.vehicle-delete-summary strong {
    margin-top: 5px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.vehicle-delete-form {
    padding: 20px;
}

.vehicle-delete-confirm-copy {
    margin-bottom: 9px;
    color: #475569;
    font-size: 11px;
}

.vehicle-delete-confirm-copy strong {
    color: #991b1b;
}

.vehicle-delete-form > input {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .03em;
}

.vehicle-delete-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .vehicle-danger-zone {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .vehicle-delete-warning {
        grid-template-columns: 1fr;
    }

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

    .vehicle-delete-actions {
        flex-direction: column-reverse;
    }

    .vehicle-delete-actions .btn {
        width: 100%;
    }
}


/* Step 21 - Global Search */
.topbar {
    padding-right: 136px;
}

.global-search-trigger {
    position: fixed;
    right: 75px;
    top: 16px;
    z-index: 80;
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #475569;
    background: rgba(255,255,255,.96);
    box-shadow: 0 7px 20px rgba(15,23,42,.07);
    cursor: pointer;
    transition: transform .16s ease, color .16s ease, box-shadow .16s ease, background .16s ease;
}

.global-search-trigger:hover {
    transform: translateY(-1px);
    color: #4f46e5;
    background: #fff;
    box-shadow: 0 10px 24px rgba(79,70,229,.12);
}

.global-search-trigger svg {
    width: 18px;
    height: 18px;
}

.global-search-dialog {
    width: min(690px, calc(100vw - 30px));
    max-width: 690px;
    padding: 0;
    border: 0;
    border-radius: 19px;
    background: transparent;
    overflow: visible;
}

.global-search-dialog[open] {
    animation: globalSearchIn .18s ease both;
}

.global-search-dialog::backdrop {
    background: rgba(15,23,42,.48);
    backdrop-filter: blur(6px);
}

@keyframes globalSearchIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.global-search-shell {
    max-height: min(720px, calc(100vh - 60px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15,23,42,.28);
}

.global-search-head {
    flex: 0 0 auto;
    padding: 13px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(99,102,241,.08), transparent 45%),
        #fff;
}

.global-search-input-wrap {
    position: relative;
}

.global-search-input-wrap > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.global-search-input-wrap input {
    height: 50px;
    padding: 0 50px 0 44px;
    border-color: #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
}

.global-search-input-wrap input:focus {
    background: #fff;
}

.global-search-close {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #64748b;
    background: transparent;
    cursor: pointer;
}

.global-search-close:hover {
    color: #334155;
    background: #e2e8f0;
}

.global-search-close svg {
    width: 16px;
    height: 16px;
}

.global-search-body {
    min-height: 310px;
    overflow-y: auto;
    background: #fff;
}

.global-search-welcome,
.global-search-empty,
.global-search-loading {
    min-height: 310px;
    padding: 38px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.global-search-welcome-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
}

.global-search-welcome-icon svg {
    width: 27px;
    height: 27px;
}

.global-search-welcome strong,
.global-search-empty strong,
.global-search-loading strong {
    font-size: 13px;
}

.global-search-welcome > span,
.global-search-empty > span {
    max-width: 420px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.global-search-loading {
    gap: 11px;
    color: #64748b;
}

.search-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: searchSpin .65s linear infinite;
}

@keyframes searchSpin {
    to { transform: rotate(360deg); }
}

.global-search-section + .global-search-section {
    border-top: 7px solid #f8fafc;
}

.global-search-section-title {
    padding: 10px 15px 7px;
    color: #94a3b8;
    background: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.global-search-result {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) minmax(80px, auto) 18px;
    gap: 11px;
    align-items: center;
    padding: 11px 15px;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    transition: background .14s ease;
}

.global-search-result:hover {
    background: #fafcff;
}

.global-search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
}

.global-search-result-icon svg {
    width: 18px;
    height: 18px;
}

.search-result-vehicle-icon {
    color: #2563eb;
    background: #eff6ff;
}

.search-result-document-icon {
    color: #059669;
    background: #ecfdf5;
}

.global-search-result-copy {
    min-width: 0;
}

.global-search-result-copy strong,
.global-search-result-copy span {
    display: block;
}

.global-search-result-copy strong {
    font-size: 11px;
}

.global-search-result-copy span {
    margin-top: 3px;
    color: #64748b;
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-result-meta {
    max-width: 210px;
    color: #94a3b8;
    font-size: 9px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-result-arrow {
    width: 16px;
    height: 16px;
    color: #cbd5e1;
}

.global-search-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 13px;
    border-top: 1px solid var(--line);
    color: #94a3b8;
    background: #fafbfc;
    font-size: 9px;
}

.global-search-footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.global-search-footer kbd {
    min-width: 20px;
    padding: 3px 5px;
    border: 1px solid #dbe1ea;
    border-bottom-width: 2px;
    border-radius: 5px;
    color: #64748b;
    background: #fff;
    font: inherit;
    font-weight: 750;
    text-align: center;
}

@media (max-width: 760px) {
    .global-search-trigger {
        right: 67px;
        top: 15px;
    }

    .topbar {
        padding-right: 126px;
    }
}

@media (max-width: 520px) {
    .global-search-trigger {
        position: absolute;
        right: 63px;
        top: 13px;
    }

    .global-search-dialog {
        width: calc(100vw - 18px);
        margin-top: 14px;
    }

    .global-search-shell {
        max-height: calc(100vh - 28px);
        border-radius: 16px;
    }

    .global-search-result {
        grid-template-columns: 38px minmax(0, 1fr) 16px;
    }

    .global-search-result-meta {
        grid-column: 2;
        text-align: left;
        max-width: none;
    }

    .global-search-result-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .global-search-footer {
        display: none;
    }
}


/* Step 22 - Smart Add/Edit Document */
.smart-document-card {
    max-width: 940px;
}

.selected-vehicle-box {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background:
        radial-gradient(circle at right top, rgba(59,130,246,.07), transparent 42%),
        #f8fbff;
}

.selected-vehicle-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: #eff6ff;
}

.selected-vehicle-icon svg {
    width: 18px;
    height: 18px;
}

.selected-vehicle-box > span:last-child {
    min-width: 0;
}

.selected-vehicle-box strong,
.selected-vehicle-box small {
    display: block;
}

.selected-vehicle-box strong {
    font-size: 12px;
}

.selected-vehicle-box small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.edit-document-vehicle {
    margin-bottom: 18px;
}

.expiry-smart-field {
    transition:
        opacity .18s ease,
        transform .18s ease,
        max-height .18s ease,
        margin .18s ease;
}

.expiry-smart-field.is-hidden {
    display: none;
}

.smart-document-note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 13px;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    color: #3730a3;
    background: #eef2ff;
}

.smart-document-note > svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.smart-document-note strong,
.smart-document-note span {
    display: block;
}

.smart-document-note strong {
    font-size: 11px;
}

.smart-document-note span {
    margin-top: 4px;
    color: #4f46e5;
    font-size: 10px;
    line-height: 1.5;
}

.smart-document-empty {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Step 23 - Reminder Settings */
.reminder-settings-card {
    margin-top: 0 !important;
}

.reminder-settings-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.reminder-settings-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.reminder-settings-status.is-on {
    color: #047857;
    background: #ecfdf5;
}

.reminder-settings-status.is-on > span {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,.10);
}

.reminder-settings-status.is-off {
    color: #64748b;
    background: #f1f5f9;
}

.reminder-settings-status.is-off > span {
    background: #94a3b8;
}

.reminder-settings-form {
    display: grid;
    gap: 16px;
}

.reminder-master-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fafcff;
    cursor: pointer;
}

.reminder-master-toggle > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.reminder-toggle-switch {
    width: 42px;
    height: 24px;
    padding: 3px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background .18s ease;
}

.reminder-toggle-switch > span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15,23,42,.18);
    transition: transform .18s ease;
}

.reminder-master-toggle > input:checked + .reminder-toggle-switch {
    background: #4f46e5;
}

.reminder-master-toggle > input:checked + .reminder-toggle-switch > span {
    transform: translateX(18px);
}

.reminder-toggle-copy strong,
.reminder-toggle-copy small {
    display: block;
}

.reminder-toggle-copy strong {
    font-size: 12px;
}

.reminder-toggle-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.reminder-days-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .65fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    background: #f8fbff;
    transition: opacity .16s ease, filter .16s ease;
}

.reminder-days-panel.is-disabled {
    opacity: .48;
    filter: grayscale(.3);
}

.reminder-days-preview {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.reminder-days-preview > span {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.reminder-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reminder-day-chip {
    display: inline-flex;
    padding: 6px 8px;
    border-radius: 999px;
    color: #4338ca;
    background: #eef2ff;
    font-size: 9px;
    font-weight: 850;
}

.reminder-apply-existing {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 12px;
    border: 1px solid #fde68a;
    border-radius: 11px;
    background: #fffbeb;
    cursor: pointer;
}

.reminder-apply-existing input {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: #d97706;
}

.reminder-apply-existing strong,
.reminder-apply-existing small {
    display: block;
}

.reminder-apply-existing strong {
    color: #92400e;
    font-size: 10px;
}

.reminder-apply-existing small {
    margin-top: 3px;
    color: #a16207;
    font-size: 9px;
    line-height: 1.5;
}

.reminder-settings-actions {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 760px) {
    .reminder-days-panel {
        grid-template-columns: 1fr;
    }
}


/* Step 24 - Smart cascading vehicle form */
.smart-vehicle-form-card {
    max-width: 980px;
}

.smart-vehicle-form-card select:disabled {
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}

.smart-other-field[hidden] {
    display: none !important;
}

.either-required {
    display: inline-flex;
    margin-left: 5px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 8px;
    font-weight: 800;
    vertical-align: middle;
}

.smart-vehicle-note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 13px;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    color: #3730a3;
    background: #eef2ff;
}

.smart-vehicle-note > svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.smart-vehicle-note strong,
.smart-vehicle-note span {
    display: block;
}

.smart-vehicle-note strong {
    font-size: 11px;
}

.smart-vehicle-note span {
    margin-top: 4px;
    color: #4f46e5;
    font-size: 10px;
    line-height: 1.5;
}

.vehicle-profile-info-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 800px) {
    .vehicle-profile-info-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .vehicle-profile-info-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Doc360 - 360 Document Manager additions
   ========================================================= */
.doc360-brand-mark {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
}

.nav-section-label {
    padding: 14px 13px 6px;
    color: #94a3b8;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.setup-result-line {
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    background: #f8fafc;
    font-size: 11px;
}

.auth-step-danger {
    color: #b91c1c !important;
    background: #fef2f2 !important;
}

.doc360-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    color: #172554;
    background:
        radial-gradient(circle at 88% 15%, rgba(99,102,241,.18), transparent 28%),
        radial-gradient(circle at 15% 90%, rgba(37,99,235,.10), transparent 32%),
        linear-gradient(135deg, #f8fbff, #eef2ff);
    box-shadow: 0 12px 35px rgba(37,99,235,.08);
}

.doc360-eyebrow {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #4338ca;
    background: rgba(255,255,255,.82);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.doc360-dashboard-hero h2 {
    margin: 10px 0 6px;
    font-size: 24px;
    line-height: 1.15;
}

.doc360-dashboard-hero p {
    max-width: 650px;
    margin: 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.65;
}

.doc360-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc360-four-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.doc360-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-expiry-list,
.dashboard-person-list {
    display: grid;
}

.dashboard-expiry-item,
.dashboard-person-item {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    transition: background .14s ease;
}

.dashboard-expiry-item {
    grid-template-columns: 10px minmax(0, 1fr) auto;
}

.dashboard-expiry-item:hover,
.dashboard-person-item:hover,
.dashboard-doc-link:hover {
    background: #fafcff;
}

.dashboard-expiry-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.dashboard-expiry-dot.badge-red { background: #ef4444; }
.dashboard-expiry-dot.badge-yellow { background: #f59e0b; }
.dashboard-expiry-dot.badge-green { background: #10b981; }
.dashboard-expiry-dot.badge-gray { background: #94a3b8; }

.dashboard-expiry-copy strong,
.dashboard-expiry-copy small,
.dashboard-expiry-date strong,
.dashboard-expiry-date small,
.dashboard-person-item strong,
.dashboard-person-item small {
    display: block;
}

.dashboard-expiry-copy strong,
.dashboard-person-item strong {
    font-size: 10px;
}

.dashboard-expiry-copy small,
.dashboard-person-item small,
.dashboard-expiry-date small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 8px;
}

.dashboard-expiry-date {
    text-align: right;
}

.dashboard-expiry-date strong {
    font-size: 10px;
}

.dashboard-person-item {
    grid-template-columns: 36px minmax(0, 1fr) 16px;
}

.dashboard-person-item > svg {
    width: 15px;
    height: 15px;
    color: #cbd5e1;
}

.dashboard-person-avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #4338ca;
    background: #eef2ff;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-link {
    color: #4f46e5;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}

.people-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.person-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 18px;
    gap: 13px;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15,23,42,.035);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.person-card:hover {
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 13px 30px rgba(79,70,229,.09);
}

.person-card-photo {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #4338ca;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    font-size: 21px;
    font-weight: 900;
}

.person-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-card-main {
    min-width: 0;
}

.person-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.person-card-heading strong,
.person-card-heading span {
    display: block;
}

.person-card-heading strong {
    font-size: 13px;
}

.person-card-heading div > span {
    margin-top: 3px;
    color: #64748b;
    font-size: 9px;
}

.attention-pill {
    padding: 4px 6px;
    border-radius: 999px;
    color: #b45309;
    background: #fffbeb;
    font-size: 8px !important;
    font-weight: 850;
    white-space: nowrap;
}

.person-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 8px;
}

.person-card-stats strong {
    color: #475569;
}

.person-card-arrow {
    width: 17px;
    height: 17px;
    color: #cbd5e1;
}

.doc360-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.compact-search-card {
    margin-bottom: 16px !important;
}

.doc360-empty-state {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.doc360-empty-state span {
    max-width: 440px;
    margin: 6px auto 15px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.55;
}

.doc360-form-card {
    max-width: 900px;
}

.person-photo-upload-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fafcff;
}

.person-photo-placeholder {
    width: 78px;
    height: 78px;
    border-radius: 21px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    font-size: 25px;
    font-weight: 900;
}

.person-photo-placeholder svg {
    width: 31px;
    height: 31px;
}

.person-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-photo-upload-row label,
.person-photo-upload-row p {
    display: block;
}

.person-photo-upload-row label {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 800;
}

.person-photo-upload-row p {
    margin: 0 0 8px;
    color: #94a3b8;
    font-size: 9px;
}

.person-profile-hero {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background:
        radial-gradient(circle at right top, rgba(99,102,241,.08), transparent 34%),
        #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.04);
}

.person-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #4338ca;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    font-size: 31px;
    font-weight: 900;
}

.person-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-relationship-pill,
.source-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 7px;
    border-radius: 999px;
    color: #4338ca;
    background: #eef2ff;
    font-size: 8px;
    font-weight: 850;
}

.person-profile-copy h2 {
    margin: 8px 0 5px;
    font-size: 22px;
}

.person-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    color: #64748b;
    font-size: 9px;
}

.person-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(74px, 1fr));
    gap: 8px;
}

.person-profile-stats > div {
    min-width: 80px;
    padding: 11px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    background: #fafcff;
}

.person-profile-stats strong,
.person-profile-stats span {
    display: block;
}

.person-profile-stats strong {
    font-size: 17px;
}

.person-profile-stats span {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 8px;
}

.managed-doc-section {
    margin-bottom: 16px !important;
    overflow: hidden;
}

.managed-document-list {
    display: grid;
}

.managed-document-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    min-width: 0;
    padding: 12px 14px;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
}

.managed-document-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #4f46e5;
    background: #eef2ff;
}

.managed-document-icon.education-icon {
    color: #047857;
    background: #ecfdf5;
}

.managed-document-icon.vehicle-doc-icon {
    color: #2563eb;
    background: #eff6ff;
}

.managed-document-icon svg {
    width: 19px;
    height: 19px;
}

.managed-document-main {
    min-width: 0;
}

.managed-document-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.managed-document-title-line strong {
    font-size: 11px;
}

.managed-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 8px;
}

.managed-document-meta span + span::before {
    content: '•';
    margin-right: 8px;
    color: #cbd5e1;
}

.managed-document-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.btn-danger-soft {
    color: #b91c1c !important;
    border-color: #fecaca !important;
    background: #fff7f7 !important;
}

.managed-doc-empty {
    min-height: 145px;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.managed-doc-empty strong,
.managed-doc-empty span {
    display: block;
}

.managed-doc-empty strong {
    font-size: 11px;
}

.managed-doc-empty span {
    max-width: 480px;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.55;
}

.managed-doc-empty .btn {
    margin-top: 12px;
}

.person-notes-card p {
    margin: 0;
    color: #475569;
    font-size: 10px;
    line-height: 1.65;
}

.selected-person-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    background: #f8fbff;
}

.selected-person-box strong,
.selected-person-box span {
    display: block;
}

.selected-person-box strong {
    font-size: 11px;
}

.selected-person-box span {
    color: #64748b;
    font-size: 9px;
}

.doc360-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(145px, .75fr)) auto;
    gap: 10px;
    align-items: end;
}

.reminder-360-filter {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
}

.reminder-360-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
}

.reminder-date-block {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    align-content: center;
    color: #64748b;
    background: #f8fafc;
}

.reminder-date-block strong,
.reminder-date-block span {
    display: block;
    line-height: 1.05;
    text-align: center;
}

.reminder-date-block strong {
    font-size: 15px;
}

.reminder-date-block span {
    margin-top: 3px;
    font-size: 8px;
    text-transform: uppercase;
}

.reminder-date-block.badge-red { color: #b91c1c; background: #fef2f2; }
.reminder-date-block.badge-yellow { color: #a16207; background: #fffbeb; }
.reminder-date-block.badge-green { color: #047857; background: #ecfdf5; }

.doc360-file-dialog {
    width: min(980px, calc(100vw - 30px));
    height: min(760px, calc(100vh - 40px));
    padding: 0;
    border: 0;
    border-radius: 17px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15,23,42,.35);
}

.doc360-file-dialog::backdrop {
    background: rgba(15,23,42,.62);
    backdrop-filter: blur(4px);
}

.doc360-file-dialog-shell {
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.doc360-file-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.doc360-file-dialog-head strong {
    font-size: 11px;
}

.doc360-file-dialog-head button {
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 9px;
    color: #64748b;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.doc360-file-dialog-body {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: auto;
    background: #f1f5f9;
}

.doc360-file-dialog-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.doc360-file-dialog-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 1050px) {
    .doc360-four-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc360-dashboard-grid { grid-template-columns: 1fr; }
    .doc360-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc360-filter-grid .filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .doc360-dashboard-hero { align-items: flex-start; flex-direction: column; }
    .people-card-grid { grid-template-columns: 1fr; }
    .person-profile-hero { grid-template-columns: 70px minmax(0, 1fr); }
    .person-profile-avatar { width: 70px; height: 70px; border-radius: 19px; }
    .person-profile-stats { grid-column: 1 / -1; }
    .managed-document-row { grid-template-columns: 42px minmax(0, 1fr); }
    .managed-document-actions { grid-column: 2; justify-content: flex-start; }
    .reminder-360-row { grid-template-columns: 48px minmax(0, 1fr); }
    .reminder-360-row .managed-document-actions { grid-column: 2; }
}

@media (max-width: 520px) {
    .doc360-four-stats { grid-template-columns: 1fr 1fr; }
    .doc360-search-row, .doc360-filter-grid, .reminder-360-filter { grid-template-columns: 1fr; }
    .doc360-filter-grid .filter-actions { grid-column: auto; }
    .person-card { grid-template-columns: 50px minmax(0, 1fr) 16px; }
    .person-card-photo { width: 50px; height: 50px; border-radius: 14px; }
    .person-photo-upload-row { grid-template-columns: 58px minmax(0, 1fr); }
    .person-photo-placeholder { width: 58px; height: 58px; border-radius: 16px; }
    .person-profile-hero { grid-template-columns: 58px minmax(0, 1fr); padding: 15px; }
    .person-profile-avatar { width: 58px; height: 58px; border-radius: 16px; }
    .person-profile-copy h2 { font-size: 17px; }
    .person-profile-stats { grid-template-columns: repeat(3, 1fr); }
    .person-profile-stats > div { min-width: 0; padding: 8px 5px; }
    .managed-document-row { padding: 11px; }
    .doc360-file-dialog { width: calc(100vw - 12px); height: calc(100vh - 20px); border-radius: 13px; }
}


/* Doc360 change set - mandatory fields, actions, limits, flat navigation */
.doc360-flat-nav { padding-top: 6px; }
.doc360-flat-nav .nav-item { margin-bottom: 3px; }

.person-card-with-actions {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.person-card-open {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    color: inherit;
    text-decoration: none;
}
.person-card-open:hover { background: #fafcff; }
.person-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    padding: 9px 12px;
    border-top: 1px solid var(--line);
    background: #fbfcfe;
}
.field-counter {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 9px;
    text-align: right;
}
.field-counter.is-limit { color: #dc2626; font-weight: 800; }
.upload-limit-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 13px;
}
.upload-limit-grid span {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 7px;
    background: #f8fafc;
}
.doc360-profile-card { max-width: 760px; overflow: hidden; }
.doc360-profile-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at top right, rgba(99,102,241,.08), transparent 38%), #fff;
}
.doc360-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 21px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(79,70,229,.2);
}
.doc360-profile-hero span { color: #4f46e5; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.doc360-profile-hero h2 { margin: 4px 0 0; font-size: 22px; }
.doc360-profile-hero p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.doc360-profile-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    padding: 18px 20px;
}
.doc360-profile-meta > div { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.doc360-profile-meta span, .doc360-profile-meta strong { display: block; }
.doc360-profile-meta span { color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 800; }
.doc360-profile-meta strong { margin-top: 5px; font-size: 11px; }
.doc360-profile-actions { display: flex; gap: 8px; padding: 0 20px 20px; flex-wrap: wrap; }
@media (max-width: 620px) {
    .doc360-profile-meta { grid-template-columns: 1fr; }
    .person-card-open { grid-template-columns: auto minmax(0,1fr); }
    .person-card-arrow { display: none; }
}


/* Doc360 sidebar grouping separators */
.doc360-nav-separator {
    height: 1px;
    margin: 10px 10px 11px;
    background: rgba(148, 163, 184, .18);
    border-radius: 999px;
}

@media (max-width: 760px) {
    .doc360-nav-separator {
        margin-left: 8px;
        margin-right: 8px;
    }
}


/* Step 26 - Universal Document Management */
.btn-primary-soft {
    color: #4338ca;
    background: #eef2ff;
    border-color: #c7d2fe;
}

.btn-primary-soft:hover {
    color: #3730a3;
    background: #e0e7ff;
}

.managed-detail-hero {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 20px;
    margin-bottom: 18px !important;
    background:
        radial-gradient(circle at top right, rgba(99,102,241,.08), transparent 36%),
        #fff;
}

.managed-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #7c3aed;
    background: #f5f3ff;
}

.managed-detail-icon.education-icon {
    color: #059669;
    background: #ecfdf5;
}

.managed-detail-icon svg {
    width: 29px;
    height: 29px;
}

.managed-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.managed-detail-hero-copy h2 {
    margin: 8px 0 0;
    font-size: 21px;
}

.managed-detail-hero-copy p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.managed-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, .75fr);
    gap: 18px;
    align-items: start;
}

.managed-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
}

.managed-detail-grid > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfcff;
}

.managed-detail-grid span,
.managed-detail-grid strong {
    display: block;
}

.managed-detail-grid span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.managed-detail-grid strong {
    margin-top: 5px;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.managed-detail-notes {
    margin: 0 18px 18px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.managed-detail-notes > span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.managed-detail-notes p {
    margin: 7px 0 0;
    font-size: 11px;
    line-height: 1.6;
}

.managed-file-summary,
.managed-file-empty {
    min-height: 250px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.managed-file-summary strong,
.managed-file-empty strong {
    margin-top: 12px;
    max-width: 100%;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.managed-file-summary > span,
.managed-file-empty > span {
    margin: 5px 0 15px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.managed-file-big-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #4f46e5;
    background: #eef2ff;
}

.managed-file-big-icon svg {
    width: 25px;
    height: 25px;
}

.managed-history-card {
    margin-top: 18px !important;
}

.managed-history-version {
    width: 58px;
    flex: 0 0 58px;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

.managed-history-version span,
.managed-history-version strong {
    display: block;
}

.managed-history-version span {
    font-size: 7px;
    font-weight: 800;
    text-transform: uppercase;
}

.managed-history-version strong {
    margin-top: 3px;
    font-size: 11px;
}

.managed-history-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

.managed-file-fallback {
    min-height: 420px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.managed-file-fallback strong {
    margin-top: 14px;
    font-size: 12px;
}

.managed-file-fallback > span {
    margin: 5px 0 15px;
    color: var(--muted);
    font-size: 10px;
}

.managed-delete-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fafcff;
}

.managed-delete-summary > div {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.managed-delete-summary span,
.managed-delete-summary strong {
    display: block;
}

.managed-delete-summary span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.managed-delete-summary strong {
    margin-top: 4px;
    font-size: 10px;
}

@media (max-width: 980px) {
    .managed-detail-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 650px) {
    .managed-detail-hero {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .managed-detail-hero > .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .managed-detail-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .managed-detail-grid,
    .managed-delete-summary {
        grid-template-columns: 1fr;
    }

    .managed-history-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .managed-history-row .managed-document-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}


/* =========================================================
   Step 27 - Doc360 360° Dashboard
   ========================================================= */

.doc360-v2-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, .55fr);
    gap: 22px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 10%, rgba(99,102,241,.13), transparent 28%),
        radial-gradient(circle at 8% 100%, rgba(59,130,246,.08), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 12px 34px rgba(15,23,42,.055);
}

.doc360-v2-hero-copy {
    align-self: center;
    max-width: 690px;
}

.doc360-v2-eyebrow {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    color: #4f46e5;
    background: #eef2ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.doc360-v2-hero h2 {
    margin: 12px 0 0;
    max-width: 660px;
    color: #172033;
    font-size: clamp(22px, 2.5vw, 31px);
    line-height: 1.16;
    letter-spacing: -.025em;
}

.doc360-v2-hero p {
    max-width: 640px;
    margin: 9px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.65;
}

.doc360-v2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.doc360-v2-attention-box {
    align-self: stretch;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px);
}

.doc360-v2-attention-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
}

.doc360-v2-attention-top span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.doc360-v2-attention-top strong {
    font-size: 25px;
    line-height: 1;
}

.doc360-v2-attention-row {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 2px;
    color: #475569;
    font-size: 10px;
}

.doc360-v2-attention-row strong {
    color: #172033;
    font-size: 11px;
}

.doc360-v2-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.doc360-v2-dot.is-red {
    background: #ef4444;
}

.doc360-v2-dot.is-amber {
    background: #f59e0b;
}

.doc360-v2-attention-box > a {
    display: block;
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #4338ca;
    background: #eef2ff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.doc360-v2-primary-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 16px;
}

.doc360-v2-stat {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(15,23,42,.035);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.doc360-v2-stat:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15,23,42,.07);
}

.doc360-v2-stat-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
}

.doc360-v2-stat-icon svg {
    width: 20px;
    height: 20px;
}

.doc360-v2-stat.is-blue .doc360-v2-stat-icon {
    color: #2563eb;
    background: #eff6ff;
}

.doc360-v2-stat.is-purple .doc360-v2-stat-icon {
    color: #7c3aed;
    background: #f5f3ff;
}

.doc360-v2-stat.is-green .doc360-v2-stat-icon {
    color: #059669;
    background: #ecfdf5;
}

.doc360-v2-stat.is-cyan .doc360-v2-stat-icon {
    color: #0891b2;
    background: #ecfeff;
}

.doc360-v2-stat-copy {
    min-width: 0;
}

.doc360-v2-stat-copy small,
.doc360-v2-stat-copy strong,
.doc360-v2-stat-copy em {
    display: block;
}

.doc360-v2-stat-copy small {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
}

.doc360-v2-stat-copy strong {
    margin-top: 2px;
    font-size: 24px;
    line-height: 1.08;
}

.doc360-v2-stat-copy em {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 9px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc360-v2-status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.doc360-v2-status-card {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    color: inherit;
    background: #fafbfc;
    text-decoration: none;
}

.doc360-v2-status-card > span:last-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.doc360-v2-status-card small {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.doc360-v2-status-card strong {
    font-size: 13px;
}

.doc360-v2-status-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.doc360-v2-status-bullet.is-red {
    background: #ef4444;
}

.doc360-v2-status-bullet.is-amber {
    background: #f59e0b;
}

.doc360-v2-status-bullet.is-slate {
    background: #94a3b8;
}

.doc360-v2-status-bullet.is-purple {
    background: #8b5cf6;
}

.doc360-v2-main-grid,
.doc360-v2-lower-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.doc360-v2-main-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, .72fr);
}

.doc360-v2-lower-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, .62fr);
}

.doc360-v2-panel {
    overflow: hidden;
}

.doc360-v2-expiry-list,
.doc360-v2-recent-list,
.doc360-v2-people-list {
    display: grid;
}

.doc360-v2-expiry-item {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto 16px;
    gap: 11px;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
    transition: background .13s ease;
}

.doc360-v2-expiry-item:hover,
.doc360-v2-recent-item:hover,
.doc360-v2-person-row:hover {
    background: #fafcff;
}

.doc360-v2-expiry-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.doc360-v2-expiry-status.expired,
.doc360-v2-expiry-status.badge-expired,
.doc360-v2-expiry-status.status-expired {
    background: #ef4444;
}

.doc360-v2-expiry-status.expiring,
.doc360-v2-expiry-status.badge-warning,
.doc360-v2-expiry-status.status-warning,
.doc360-v2-expiry-status.expiring-soon {
    background: #f59e0b;
}

.doc360-v2-expiry-status.valid,
.doc360-v2-expiry-status.badge-valid,
.doc360-v2-expiry-status.status-valid {
    background: #10b981;
}

.doc360-v2-expiry-copy,
.doc360-v2-recent-copy,
.doc360-v2-person-copy {
    min-width: 0;
}

.doc360-v2-expiry-copy strong,
.doc360-v2-expiry-copy small,
.doc360-v2-recent-copy strong,
.doc360-v2-recent-copy small,
.doc360-v2-person-copy strong,
.doc360-v2-person-copy small {
    display: block;
}

.doc360-v2-expiry-copy strong,
.doc360-v2-recent-copy strong,
.doc360-v2-person-copy strong {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc360-v2-expiry-copy small,
.doc360-v2-recent-copy small,
.doc360-v2-person-copy small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

.doc360-v2-expiry-copy small span,
.doc360-v2-recent-copy small span {
    margin: 0 3px;
}

.doc360-v2-expiry-date,
.doc360-v2-recent-meta {
    text-align: right;
}

.doc360-v2-expiry-date strong,
.doc360-v2-expiry-date small,
.doc360-v2-recent-meta strong,
.doc360-v2-recent-meta small {
    display: block;
}

.doc360-v2-expiry-date strong,
.doc360-v2-recent-meta strong {
    font-size: 9.5px;
}

.doc360-v2-expiry-date small,
.doc360-v2-recent-meta small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 8.5px;
}

.doc360-v2-row-arrow {
    width: 15px;
    height: 15px;
    color: #cbd5e1;
}

.doc360-v2-quick-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.doc360-v2-quick-action {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    border-top: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
    transition: background .13s ease;
}

.doc360-v2-quick-action:hover {
    background: #fafcff;
}

.doc360-v2-quick-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
}

.doc360-v2-quick-icon svg {
    width: 17px;
    height: 17px;
}

.doc360-v2-quick-icon.is-blue {
    color: #2563eb;
    background: #eff6ff;
}

.doc360-v2-quick-icon.is-purple {
    color: #7c3aed;
    background: #f5f3ff;
}

.doc360-v2-quick-icon.is-cyan {
    color: #0891b2;
    background: #ecfeff;
}

.doc360-v2-quick-icon.is-green {
    color: #059669;
    background: #ecfdf5;
}

.doc360-v2-quick-icon.is-orange {
    color: #d97706;
    background: #fffbeb;
}

.doc360-v2-quick-icon.is-red {
    color: #dc2626;
    background: #fef2f2;
}

.doc360-v2-quick-action strong,
.doc360-v2-quick-action small {
    display: block;
}

.doc360-v2-quick-action strong {
    font-size: 10px;
}

.doc360-v2-quick-action small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 8.5px;
}

.doc360-v2-recent-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    border-top: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
    transition: background .13s ease;
}

.doc360-v2-recent-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
}

.doc360-v2-recent-icon svg {
    width: 17px;
    height: 17px;
}

.doc360-v2-recent-icon.is-purple {
    color: #7c3aed;
    background: #f5f3ff;
}

.doc360-v2-recent-icon.is-green {
    color: #059669;
    background: #ecfdf5;
}

.doc360-v2-recent-icon.is-cyan {
    color: #0891b2;
    background: #ecfeff;
}

.doc360-v2-person-row {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) 16px;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    border-top: 1px solid #f1f5f9;
    color: inherit;
    text-decoration: none;
    transition: background .13s ease;
}

.doc360-v2-person-avatar {
    width: 39px;
    height: 39px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: 13px;
    font-weight: 900;
}

.doc360-v2-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc360-v2-person-row > svg {
    width: 15px;
    height: 15px;
    color: #cbd5e1;
}

.doc360-v2-empty {
    min-height: 230px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
}

.doc360-v2-empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 11px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #059669;
    background: #ecfdf5;
}

.doc360-v2-empty-icon svg {
    width: 22px;
    height: 22px;
}

.doc360-v2-empty strong {
    color: #334155;
    font-size: 11px;
}

.doc360-v2-empty > span:not(.doc360-v2-empty-icon) {
    max-width: 380px;
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.55;
}

.doc360-v2-empty .btn {
    margin-top: 12px;
}

@media (max-width: 1120px) {
    .doc360-v2-primary-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doc360-v2-main-grid,
    .doc360-v2-lower-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    .doc360-v2-hero {
        grid-template-columns: 1fr;
    }

    .doc360-v2-status-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .doc360-v2-hero {
        padding: 18px;
        border-radius: 16px;
    }

    .doc360-v2-primary-stats,
    .doc360-v2-status-strip {
        grid-template-columns: 1fr;
    }

    .doc360-v2-stat {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .doc360-v2-stat-icon {
        width: 40px;
        height: 40px;
    }

    .doc360-v2-expiry-item {
        grid-template-columns: 8px minmax(0, 1fr) 14px;
    }

    .doc360-v2-expiry-date {
        grid-column: 2;
        text-align: left;
    }

    .doc360-v2-row-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .doc360-v2-recent-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .doc360-v2-recent-meta {
        grid-column: 2;
        text-align: left;
    }
}


/* Step 28 - Complete Backup & Export */
.settings-backup-featured {
    padding: 14px 14px 0;
}

.settings-export-card.settings-export-featured {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto 20px;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 14px 15px;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background:
        radial-gradient(circle at right top, rgba(245,158,11,.09), transparent 34%),
        #fffdf7;
}

.settings-export-card.settings-export-featured:hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 26px rgba(245,158,11,.10);
}

.export-gold .settings-export-icon {
    color: #b45309;
    background: #fef3c7;
}

.settings-export-recommended {
    display: inline-flex;
    padding: 5px 7px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.settings-backup-note-success {
    margin-top: 14px;
    border-color: #a7f3d0;
    color: #065f46;
    background: #ecfdf5;
}

.settings-backup-note-success > svg {
    color: #059669;
}

.settings-backup-note-success span {
    color: #047857;
}

@media (max-width: 700px) {
    .settings-export-card.settings-export-featured {
        grid-template-columns: 42px minmax(0, 1fr) 18px;
    }

    .settings-export-recommended {
        grid-column: 2;
        justify-self: start;
    }

    .settings-export-card.settings-export-featured .settings-export-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}


/* Doc360 V18 unified desktop document forms */
.doc360-unified-form .form-grid{align-items:start}
.doc360-unified-form .doc360-dynamic-fields{grid-column:1/-1;border:1px solid #e5e7eb;border-radius:14px;background:#fafafa;padding:18px}
.doc360-unified-form .doc360-dynamic-fields[hidden]{display:none!important}
.doc360-unified-form .doc360-dynamic-fields-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:14px}
.doc360-unified-form .doc360-dynamic-fields-heading strong{font-size:15px;color:#111827}
.doc360-unified-form .doc360-dynamic-fields-heading span{font-size:12px;color:#6b7280}
.doc360-unified-form .doc360-dynamic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.doc360-unified-form .doc360-input-affix{display:flex;align-items:stretch;border:1px solid #d1d5db;border-radius:10px;background:#fff;overflow:hidden}
.doc360-unified-form .doc360-input-affix i{display:flex;align-items:center;padding:0 11px;background:#f3f4f6;color:#6b7280;font-style:normal;font-size:13px;white-space:nowrap}
.doc360-unified-form .doc360-input-affix input{border:0!important;border-radius:0!important;min-width:0}
.doc360-current-file{display:flex;align-items:center;gap:10px;margin-top:8px;padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px solid #e5e7eb;color:#475569;font-size:13px}
.doc360-delete-card{max-width:720px;margin:0 auto}
.doc360-delete-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}
.doc360-delete-summary>div{padding:14px;border-radius:12px;background:#f8fafc;border:1px solid #e5e7eb}
.doc360-delete-summary span{display:block;font-size:12px;color:#6b7280;margin-bottom:4px}
.doc360-delete-summary strong{font-size:17px;color:#111827}
.doc360-renew-banner{padding:14px 16px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;margin-bottom:18px;color:#9a3412}
.doc360-renewal-list{display:flex;flex-direction:column;gap:10px}.doc360-renewal-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}.doc360-renewal-item small{display:block;color:#6b7280;margin-top:3px}
@media(max-width:900px){.doc360-unified-form .doc360-dynamic-grid{grid-template-columns:1fr}.doc360-delete-summary{grid-template-columns:1fr}}


/* ============================================================
   Step 45F3 — Clean Desktop Settings + Invite Workspace
   ============================================================ */

.settings-v3{
    max-width:1180px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.settings-v3-overview{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(380px,.9fr);
    gap:24px;
    align-items:center;
    padding:24px 26px;
    border:1px solid #e6eaf2;
    border-radius:18px;
    background:
        radial-gradient(circle at 88% 18%,rgba(91,72,246,.10),transparent 26%),
        linear-gradient(135deg,#ffffff,#fafbff);
    box-shadow:0 10px 30px rgba(15,23,42,.045);
}

.settings-v3-kicker,
.settings-v3-section-label,
.invites-v2-kicker{
    display:inline-flex;
    width:max-content;
    margin-bottom:7px;
    color:#6758e8;
    font-size:9px;
    line-height:1;
    font-weight:900;
    letter-spacing:.13em;
}

.settings-v3-overview h2,
.invites-v2-hero h2{
    margin:0;
    color:#172033;
    font-size:23px;
    line-height:1.18;
    letter-spacing:-.025em;
}

.settings-v3-overview p,
.invites-v2-hero p{
    max-width:660px;
    margin:8px 0 0;
    color:#6b7890;
    font-size:12px;
    line-height:1.65;
}

.settings-v3-mini-stats,
.invites-v2-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    overflow:hidden;
    border:1px solid #e8ebf2;
    border-radius:14px;
    background:#fff;
}

.settings-v3-mini-stats div,
.invites-v2-stats div{
    min-width:0;
    padding:15px 12px;
    text-align:center;
    border-left:1px solid #eef1f6;
}

.settings-v3-mini-stats div:first-child,
.invites-v2-stats div:first-child{
    border-left:0;
}

.settings-v3-mini-stats strong,
.invites-v2-stats strong{
    display:block;
    color:#20283a;
    font-size:18px;
    line-height:1;
}

.settings-v3-mini-stats span,
.invites-v2-stats span{
    display:block;
    margin-top:5px;
    color:#8a96aa;
    font-size:8px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.settings-v3-tools{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}

.settings-v3-tool{
    position:relative;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    min-height:78px;
    padding:14px;
    border:1px solid #e7ebf2;
    border-radius:16px;
    color:inherit;
    text-decoration:none;
    background:#fff;
    box-shadow:0 6px 18px rgba(15,23,42,.035);
    transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}

.settings-v3-tool:hover{
    transform:translateY(-2px);
    border-color:#d6dbea;
    box-shadow:0 12px 28px rgba(15,23,42,.07);
}

.settings-v3-tool-icon{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:13px;
}

.settings-v3-tool-icon svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.settings-v3-tool-icon.is-indigo{color:#5b4cf3;background:#f0eeff}
.settings-v3-tool-icon.is-purple{color:#7c3aed;background:#f5f3ff}
.settings-v3-tool-icon.is-blue{color:#2563eb;background:#eff6ff}
.settings-v3-tool-icon.is-green{color:#059669;background:#ecfdf5}

.settings-v3-tool-copy{
    min-width:0;
}

.settings-v3-tool-copy strong{
    display:block;
    color:#20283a;
    font-size:11px;
}

.settings-v3-tool-copy small{
    display:block;
    margin-top:3px;
    overflow:hidden;
    color:#8190a8;
    font-size:8px;
    line-height:1.4;
}

.settings-v3-tool-badge{
    padding:5px 7px;
    border-radius:999px;
    color:#5b4cf3;
    background:#f0eeff;
    font-size:8px;
    font-weight:900;
    white-space:nowrap;
}

.settings-v3-chevron{
    width:15px;
    height:15px;
    fill:none;
    stroke:#b6bfce;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.settings-v3-tool-badge + .settings-v3-chevron{
    display:none;
}

.settings-v3-main-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:16px;
    align-items:start;
}

.settings-v3-card{
    overflow:hidden;
    border-radius:17px;
}

.settings-v3-card-head{
    min-height:76px;
    padding:17px 19px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    border-bottom:1px solid #edf0f5;
}

.settings-v3-card-head h2{
    margin:0;
    color:#20283a;
    font-size:14px;
}

.settings-v3-card-head p{
    margin:4px 0 0;
    color:#8792a7;
    font-size:9px;
    line-height:1.5;
}

.settings-v3-section-label{
    margin-bottom:5px;
    font-size:8px;
}

.settings-v3-status,
.settings-v3-security-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    flex:0 0 auto;
    padding:6px 8px;
    border-radius:999px;
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.settings-v3-status{
    color:#64748b;
    background:#f1f5f9;
}

.settings-v3-status.is-on{
    color:#047857;
    background:#ecfdf5;
}

.settings-v3-status > span{
    width:6px;
    height:6px;
    border-radius:50%;
    background:currentColor;
}

.settings-v3-security-badge{
    color:#047857;
    background:#ecfdf5;
}

.settings-v3-security-badge svg{
    width:13px;
    height:13px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
}

.settings-v3-form{
    padding:18px 19px 19px;
}

.settings-v3-toggle-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:14px 15px;
    border:1px solid #e8ebf2;
    border-radius:13px;
    background:#fafbfe;
}

.settings-v3-toggle-row strong,
.settings-v3-checkbox strong{
    display:block;
    color:#283249;
    font-size:10px;
}

.settings-v3-toggle-row small,
.settings-v3-checkbox small{
    display:block;
    margin-top:3px;
    color:#8894a8;
    font-size:8px;
    line-height:1.45;
}

.settings-v3-switch{
    position:relative;
    width:38px;
    height:22px;
    flex:0 0 38px;
}

.settings-v3-switch input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.settings-v3-switch i{
    position:absolute;
    inset:0;
    border-radius:999px;
    background:#cbd5e1;
    cursor:pointer;
    transition:.18s ease;
}

.settings-v3-switch i::after{
    content:"";
    position:absolute;
    top:3px;
    left:3px;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 2px 5px rgba(15,23,42,.18);
    transition:.18s ease;
}

.settings-v3-switch input:checked + i{
    background:#5b4cf3;
}

.settings-v3-switch input:checked + i::after{
    transform:translateX(16px);
}

.settings-v3-reminder-panel{
    margin-top:14px;
    transition:opacity .15s ease;
}

.settings-v3-reminder-panel.is-disabled{
    opacity:.48;
}

.settings-v3-day-chips{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:10px;
}

.settings-v3-day-chips span{
    padding:5px 8px;
    border-radius:999px;
    color:#5b4cf3;
    background:#f0eeff;
    font-size:8px;
    font-weight:800;
}

.settings-v3-checkbox{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-top:14px;
    padding:12px 13px;
    border:1px solid #fde3a7;
    border-radius:12px;
    background:#fffaf0;
}

.settings-v3-checkbox input{
    margin-top:2px;
}

.settings-v3-actions{
    margin-top:15px;
    display:flex;
    justify-content:flex-start;
}

.settings-v3-account-summary{
    display:grid;
    grid-template-columns:46px minmax(0,1fr);
    gap:12px;
    align-items:center;
    margin:18px 19px 0;
    padding:14px;
    border:1px solid #e8ebf2;
    border-radius:13px;
    background:#fafbfe;
}

.settings-v3-avatar{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border-radius:14px;
    color:#fff;
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    font-size:18px;
    font-weight:900;
}

.settings-v3-account-summary span{
    display:block;
    color:#929db0;
    font-size:8px;
    font-weight:800;
    text-transform:uppercase;
}

.settings-v3-account-summary strong{
    display:block;
    margin-top:2px;
    color:#20283a;
    font-size:12px;
}

.settings-v3-account-summary small{
    display:block;
    margin-top:4px;
    color:#8490a5;
    font-size:8px;
    line-height:1.45;
}

.settings-v3-password-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.settings-v3-full{
    grid-column:1/-1;
}

.settings-v3-export-card{
    margin-bottom:8px;
}

.settings-v3-export-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:11px;
    padding:16px 18px 4px;
}

.settings-v3-export-item{
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 16px;
    gap:10px;
    align-items:center;
    min-height:70px;
    padding:12px;
    border:1px solid #e8ebf2;
    border-radius:13px;
    color:inherit;
    text-decoration:none;
    background:#fff;
    transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease;
}

.settings-v3-export-item:hover{
    transform:translateY(-1px);
    border-color:#d9dfeb;
    box-shadow:0 8px 20px rgba(15,23,42,.05);
}

.settings-v3-export-item > span{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:11px;
}

.settings-v3-export-item > span svg,
.settings-v3-export-item > svg{
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.settings-v3-export-item > svg{
    color:#b7c0cf;
}

.settings-v3-export-item.is-blue > span{color:#2563eb;background:#eff6ff}
.settings-v3-export-item.is-purple > span{color:#7c3aed;background:#f5f3ff}
.settings-v3-export-item.is-cyan > span{color:#0891b2;background:#ecfeff}
.settings-v3-export-item.is-gold > span{color:#b45309;background:#fffbeb}

.settings-v3-export-item strong{
    display:block;
    color:#273149;
    font-size:9px;
}

.settings-v3-export-item small{
    display:block;
    margin-top:3px;
    color:#8b97aa;
    font-size:7.5px;
    line-height:1.45;
}

.settings-v3-note{
    margin:12px 18px 17px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border:1px solid #fde3a7;
    border-radius:11px;
    color:#9a6700;
    background:#fffaf0;
    font-size:8px;
}

.settings-v3-note svg{
    width:15px;
    height:15px;
    flex:0 0 auto;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
}

/* Desktop Invite Workspace */
.invites-v2{
    max-width:1160px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.invites-v2-hero{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);
    gap:24px;
    align-items:center;
    padding:24px 26px;
    border:1px solid #e7eaf2;
    border-radius:18px;
    background:
        radial-gradient(circle at 88% 20%,rgba(124,58,237,.10),transparent 28%),
        linear-gradient(135deg,#fff,#fbfaff);
}

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

.invites-v2-grid{
    display:grid;
    grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr);
    gap:16px;
}

.invites-v2-create,
.invites-v2-result,
.invites-v2-history{
    overflow:hidden;
    border-radius:17px;
}

.invites-v2-create .card-body{
    text-align:center;
}

.invites-v2-create-icon{
    width:58px;
    height:58px;
    margin:2px auto 12px;
    display:grid;
    place-items:center;
    border-radius:18px;
    color:#6d4af2;
    background:#f2efff;
}

.invites-v2-create-icon svg{
    width:25px;
    height:25px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.invites-v2-create h3{
    margin:0;
    color:#263047;
    font-size:14px;
}

.invites-v2-create p{
    max-width:330px;
    margin:7px auto 15px;
    color:#8792a6;
    font-size:9px;
    line-height:1.6;
}

.invites-v2-create-button{
    width:100%;
    justify-content:center;
}

.invites-v2-empty{
    min-height:185px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#8b97aa;
    text-align:center;
}

.invites-v2-empty > span{
    width:50px;
    height:50px;
    display:grid;
    place-items:center;
    margin-bottom:10px;
    border-radius:16px;
    color:#8b7cf4;
    background:#f5f3ff;
}

.invites-v2-empty svg{
    width:22px;
    height:22px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
}

.invites-v2-empty strong{
    color:#39445a;
    font-size:11px;
}

.invites-v2-empty small{
    margin-top:4px;
    font-size:8px;
}

.invites-v2-copy-block{
    margin-bottom:13px;
}

.invites-v2-copy-block label{
    display:block;
    margin-bottom:6px;
    color:#667085;
    font-size:8px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.invites-v2-copy-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
}

.invites-v2-copy-row input{
    min-width:0;
}

.invites-v2-notice{
    margin-top:3px;
    padding:10px 11px;
    border-radius:10px;
    color:#6b7280;
    background:#f8fafc;
    font-size:8px;
    line-height:1.45;
}

.invites-v2-history-empty{
    min-height:120px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#8490a4;
    font-size:9px;
}

.invites-v2-history-empty strong{
    color:#354057;
    font-size:11px;
}

.invites-v2-table{
    display:flex;
    flex-direction:column;
}

.invites-v2-row{
    display:grid;
    grid-template-columns:78px minmax(0,1fr) auto;
    gap:13px;
    align-items:center;
    min-height:67px;
    padding:11px 15px;
    border-top:1px solid #edf0f5;
}

.invites-v2-row:first-child{
    border-top:0;
}

.invites-v2-status{
    justify-self:start;
    padding:5px 8px;
    border-radius:999px;
    font-size:7.5px;
    font-weight:900;
    text-transform:uppercase;
}

.invites-v2-status.is-active{color:#047857;background:#ecfdf5}
.invites-v2-status.is-used{color:#4338ca;background:#eef2ff}
.invites-v2-status.is-revoked{color:#b91c1c;background:#fef2f2}
.invites-v2-status.is-expired{color:#64748b;background:#f1f5f9}

.invites-v2-row-copy strong{
    display:block;
    color:#2d374d;
    font-size:10px;
}

.invites-v2-row-copy span{
    display:block;
    margin-top:3px;
    color:#8a95a8;
    font-size:8px;
}

.invites-v2-row-done{
    width:26px;
    height:26px;
    display:grid;
    place-items:center;
    border-radius:50%;
    color:#94a3b8;
    background:#f8fafc;
}

.invites-v2-row-done svg{
    width:13px;
    height:13px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
}

@media(max-width:1180px){
    .settings-v3-overview,
    .invites-v2-hero{
        grid-template-columns:1fr;
    }

    .settings-v3-tools,
    .settings-v3-export-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:900px){
    .settings-v3-main-grid,
    .invites-v2-grid{
        grid-template-columns:1fr;
    }

    .settings-v3-password-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .settings-v3-tools,
    .settings-v3-export-grid{
        grid-template-columns:1fr;
    }

    .settings-v3-mini-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .settings-v3-mini-stats div:nth-child(3){
        border-left:0;
        border-top:1px solid #eef1f6;
    }

    .settings-v3-mini-stats div:nth-child(4){
        border-top:1px solid #eef1f6;
    }

    .invites-v2-copy-row{
        grid-template-columns:1fr;
    }

    .invites-v2-row{
        grid-template-columns:70px minmax(0,1fr);
    }

    .invites-v2-row form,
    .invites-v2-row-done{
        grid-column:2;
        justify-self:start;
    }
}

/* Step 45G1 */
.settings-v3-tools-five{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1250px){.settings-v3-tools-five{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.settings-v3-tools-five{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.settings-v3-tools-five{grid-template-columns:1fr}}


/* Step 45G2 — Private beta cleanup */
.settings-v3-tools-three{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
@media(max-width:900px){
    .settings-v3-tools-three{
        grid-template-columns:1fr;
    }
}


/* ============================================================
   Step 46A — Private Beta Feedback
   ============================================================ */
.feedback-v1{
    max-width:1120px;
    margin:0 auto;
}
.feedback-v1-grid{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
    gap:16px;
    align-items:start;
}
.feedback-v1-form-card,
.feedback-v1-recent{
    overflow:hidden;
    border-radius:17px;
}
.feedback-v1-form{
    padding:18px 20px 20px;
}
.feedback-v1-form textarea{
    width:100%;
    resize:vertical;
}
.feedback-v1-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin:4px 0 14px;
    padding:11px 13px;
    border:1px solid #e8ebf3;
    border-radius:11px;
    color:#7c889c;
    background:#fafbfe;
    font-size:9px;
}
.feedback-v1-meta strong{
    color:#5b4cf3;
    font-size:10px;
    letter-spacing:.08em;
}
.feedback-v1-submit{
    min-width:170px;
    justify-content:center;
}
.feedback-v1-side{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.feedback-v1-tip{
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    gap:12px;
    align-items:center;
    padding:15px;
    border:1px solid #d9f3e8;
    border-radius:16px;
    background:linear-gradient(135deg,#f4fff9,#fff);
}
.feedback-v1-tip > span{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:13px;
    color:#059669;
    background:#dcfce7;
}
.feedback-v1-tip svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.feedback-v1-tip strong{
    display:block;
    color:#263147;
    font-size:11px;
}
.feedback-v1-tip p{
    margin:4px 0 0;
    color:#738096;
    font-size:8.5px;
    line-height:1.55;
}
.feedback-v1-empty{
    padding:24px 16px;
    color:#8b97a9;
    text-align:center;
    font-size:9px;
}
.feedback-v1-list{
    display:flex;
    flex-direction:column;
}
.feedback-v1-row{
    padding:12px 14px;
    border-top:1px solid #edf0f5;
}
.feedback-v1-row:first-child{
    border-top:0;
}
.feedback-v1-row-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}
.feedback-v1-row-top strong{
    color:#2b354b;
    font-size:9.5px;
    line-height:1.4;
}
.feedback-v1-row-top span{
    flex:0 0 auto;
    padding:4px 6px;
    border-radius:999px;
    color:#047857;
    background:#ecfdf5;
    font-size:7px;
    font-weight:900;
}
.feedback-v1-row small{
    display:block;
    margin-top:4px;
    color:#919bad;
    font-size:7.5px;
}
.feedback-v1-row a{
    display:inline-flex;
    margin-top:6px;
    color:#5b4cf3;
    font-size:8px;
    font-weight:800;
    text-decoration:none;
}
@media(max-width:900px){
    .feedback-v1-grid{
        grid-template-columns:1fr;
    }
}


/* ============================================================
   Step 46B — Beta Version + Update Notes
   ============================================================ */
.updates-v1{
    max-width:1050px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:16px;
}
.updates-v1-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 190px;
    gap:20px;
    align-items:center;
    padding:24px 26px;
    border:1px solid #e6eaf2;
    border-radius:18px;
    background:
        radial-gradient(circle at 88% 20%,rgba(79,70,229,.12),transparent 30%),
        linear-gradient(135deg,#fff,#fafbff);
}
.updates-v1-kicker{
    display:inline-flex;
    margin-bottom:7px;
    color:#6758e8;
    font-size:9px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}
.updates-v1-hero h2{
    margin:0;
    color:#172033;
    font-size:24px;
    letter-spacing:-.025em;
}
.updates-v1-hero p{
    max-width:650px;
    margin:8px 0 0;
    color:#748096;
    font-size:11px;
    line-height:1.6;
}
.updates-v1-build{
    padding:16px;
    border:1px solid #e5e8f1;
    border-radius:14px;
    background:#fff;
    text-align:center;
}
.updates-v1-build span,
.updates-v1-build small{
    display:block;
    color:#8a96aa;
    font-size:8px;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.updates-v1-build strong{
    display:block;
    margin:6px 0;
    color:#4f46e5;
    font-size:17px;
}
.updates-v1-list{
    display:flex;
    flex-direction:column;
    gap:13px;
}
.updates-v1-card{
    overflow:hidden;
    border-radius:17px;
}
.updates-v1-card.is-current{
    border-color:#dad6ff;
    box-shadow:0 10px 26px rgba(79,70,229,.055);
}
.updates-v1-card-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:16px 18px;
    border-bottom:1px solid #edf0f5;
}
.updates-v1-version-row{
    display:flex;
    align-items:center;
    gap:7px;
}
.updates-v1-version{
    color:#4f46e5;
    font-size:9px;
    font-weight:900;
}
.updates-v1-current{
    padding:4px 7px;
    border-radius:999px;
    color:#047857;
    background:#ecfdf5;
    font-size:7px;
    font-weight:900;
    text-transform:uppercase;
}
.updates-v1-card-head h2{
    margin:6px 0 0;
    color:#283249;
    font-size:14px;
}
.updates-v1-date{
    color:#8b97aa;
    font-size:8px;
    white-space:nowrap;
}
.updates-v1-items{
    list-style:none;
    margin:0;
    padding:10px 18px 15px;
}
.updates-v1-items li{
    display:grid;
    grid-template-columns:24px minmax(0,1fr);
    gap:9px;
    align-items:center;
    padding:7px 0;
    color:#67748a;
    font-size:9.5px;
    line-height:1.5;
}
.updates-v1-items li > span{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:50%;
    color:#059669;
    background:#ecfdf5;
}
.updates-v1-items svg{
    width:13px;
    height:13px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
}
@media(max-width:700px){
    .updates-v1-hero{
        grid-template-columns:1fr;
    }
}


/* ============================================================
   Step 46C — Beta Feedback Inbox
   ============================================================ */
.feedback-inbox{
    max-width:1120px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:14px;
}
.feedback-inbox-summary{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    overflow:hidden;
    border:1px solid #e7eaf2;
    border-radius:16px;
    background:#fff;
}
.feedback-inbox-summary div{
    padding:15px 12px;
    text-align:center;
    border-left:1px solid #edf0f5;
}
.feedback-inbox-summary div:first-child{
    border-left:0;
}
.feedback-inbox-summary span{
    display:block;
    color:#8a96aa;
    font-size:8px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.feedback-inbox-summary strong{
    display:block;
    margin-top:5px;
    color:#263147;
    font-size:18px;
}
.feedback-inbox-filters{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}
.feedback-inbox-filters a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 10px;
    border:1px solid #e5e9f0;
    border-radius:999px;
    color:#667085;
    background:#fff;
    font-size:8px;
    font-weight:800;
    text-decoration:none;
}
.feedback-inbox-filters a span{
    min-width:18px;
    padding:2px 5px;
    border-radius:999px;
    color:#64748b;
    background:#f1f5f9;
    text-align:center;
}
.feedback-inbox-filters a.is-active{
    border-color:#cfc8ff;
    color:#4f46e5;
    background:#f5f3ff;
}
.feedback-inbox-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.feedback-inbox-card{
    overflow:hidden;
    border-radius:17px;
}
.feedback-inbox-card-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding:16px 18px;
    border-bottom:1px solid #edf0f5;
}
.feedback-inbox-meta-line{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
}
.feedback-inbox-code,
.feedback-inbox-type,
.feedback-inbox-status{
    padding:4px 7px;
    border-radius:999px;
    font-size:7px;
    font-weight:900;
}
.feedback-inbox-code{
    color:#4f46e5;
    background:#eef2ff;
}
.feedback-inbox-type{
    color:#475569;
    background:#f1f5f9;
}
.feedback-inbox-status{
    text-transform:uppercase;
}
.feedback-inbox-status.is-open{color:#b45309;background:#fffbeb}
.feedback-inbox-status.is-reviewing{color:#1d4ed8;background:#eff6ff}
.feedback-inbox-status.is-fixed{color:#047857;background:#ecfdf5}
.feedback-inbox-status.is-closed{color:#64748b;background:#f1f5f9}
.feedback-inbox-card-head h2{
    margin:8px 0 0;
    color:#263147;
    font-size:14px;
}
.feedback-inbox-user{
    display:flex;
    gap:7px;
    align-items:center;
    margin-top:6px;
}
.feedback-inbox-user strong{
    color:#59667b;
    font-size:8px;
}
.feedback-inbox-user span{
    color:#939dac;
    font-size:8px;
}
.feedback-inbox-status-form select{
    min-width:112px;
}
.feedback-inbox-body{
    padding:15px 18px 17px;
}
.feedback-inbox-block{
    margin-bottom:13px;
}
.feedback-inbox-block > span,
.feedback-inbox-details span{
    display:block;
    margin-bottom:4px;
    color:#8c97a9;
    font-size:7.5px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.feedback-inbox-block p{
    margin:0;
    color:#4b5870;
    font-size:9.5px;
    line-height:1.65;
}
.feedback-inbox-details{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-bottom:13px;
}
.feedback-inbox-details div{
    min-width:0;
    padding:10px 11px;
    border:1px solid #edf0f5;
    border-radius:10px;
    background:#fafbfe;
}
.feedback-inbox-details strong{
    display:block;
    overflow-wrap:anywhere;
    color:#58657a;
    font-size:8px;
    line-height:1.45;
}
.feedback-inbox-empty{
    padding:32px;
    text-align:center;
}
.feedback-inbox-empty strong{
    display:block;
    color:#354057;
    font-size:12px;
}
.feedback-inbox-empty span{
    display:block;
    margin-top:5px;
    color:#8b97aa;
    font-size:9px;
}
@media(max-width:850px){
    .feedback-inbox-summary{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .feedback-inbox-summary div:nth-child(odd){
        border-left:0;
    }
    .feedback-inbox-details{
        grid-template-columns:1fr;
    }
    .feedback-inbox-card-head{
        flex-direction:column;
    }
}


/* ============================================================
   Step 46D — Private Beta Getting Started
   ============================================================ */
.beta-start{
    max-width:1100px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    gap:15px;
}
.beta-start-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:24px;
    align-items:center;
    padding:24px 26px;
    border:1px solid #e5e9f1;
    border-radius:18px;
    background:
        radial-gradient(circle at 88% 18%,rgba(79,70,229,.13),transparent 30%),
        linear-gradient(135deg,#fff,#fafbff);
}
.beta-start-kicker{
    display:inline-flex;
    margin-bottom:7px;
    color:#6758e8;
    font-size:9px;
    font-weight:900;
    letter-spacing:.11em;
}
.beta-start-hero h2{
    margin:0;
    color:#172033;
    font-size:24px;
    letter-spacing:-.025em;
}
.beta-start-hero p{
    max-width:670px;
    margin:8px 0 0;
    color:#748096;
    font-size:11px;
    line-height:1.6;
}
.beta-start-progress{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:190px;
    padding:12px 14px;
    border:1px solid #e5e8f1;
    border-radius:15px;
    background:#fff;
}
.beta-start-progress-ring{
    --progress:0;
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    flex:0 0 58px;
    border-radius:50%;
    background:
        radial-gradient(circle at center,#fff 62%,transparent 64%),
        conic-gradient(#5b4cf3 calc(var(--progress) * 1%),#e9edf4 0);
}
.beta-start-progress-ring strong{
    color:#4f46e5;
    font-size:11px;
}
.beta-start-progress > div:last-child span{
    display:block;
    color:#354057;
    font-size:10px;
    font-weight:850;
}
.beta-start-progress > div:last-child small{
    display:block;
    margin-top:4px;
    color:#909bad;
    font-size:8px;
}
.beta-start-checklist{
    overflow:hidden;
    border:1px solid #e7ebf2;
    border-radius:17px;
    background:#fff;
}
.beta-start-check{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    min-height:82px;
    padding:14px 17px;
    border-top:1px solid #edf0f5;
    color:inherit;
    text-decoration:none;
    transition:background .14s ease;
}
.beta-start-check:first-child{
    border-top:0;
}
.beta-start-check:hover{
    background:#fafbfe;
}
.beta-start-check-number{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:13px;
    color:#4f46e5;
    background:#eef2ff;
    font-size:11px;
    font-weight:900;
}
.beta-start-check.is-done .beta-start-check-number{
    color:#047857;
    background:#ecfdf5;
}
.beta-start-check-number svg{
    width:19px;
    height:19px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
}
.beta-start-check-copy strong{
    display:block;
    color:#263147;
    font-size:11px;
}
.beta-start-check-copy small{
    display:block;
    margin-top:4px;
    color:#8591a5;
    font-size:8.5px;
    line-height:1.5;
}
.beta-start-check-action{
    display:flex;
    align-items:center;
    gap:5px;
    color:#657188;
    font-size:8.5px;
    font-weight:850;
}
.beta-start-check-action svg{
    width:14px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
}
.beta-start-secondary-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}
.beta-start-card{
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    gap:13px;
    padding:16px;
    border-radius:16px;
}
.beta-start-card-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:14px;
}
.beta-start-card-icon.is-blue{color:#2563eb;background:#eff6ff}
.beta-start-card-icon.is-green{color:#059669;background:#ecfdf5}
.beta-start-card-icon svg{
    width:22px;
    height:22px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.beta-start-card-label{
    color:#8a96aa;
    font-size:7.5px;
    font-weight:900;
    letter-spacing:.07em;
}
.beta-start-card h3{
    margin:5px 0 0;
    color:#283249;
    font-size:12px;
}
.beta-start-card p{
    margin:5px 0 0;
    color:#7d899d;
    font-size:8.5px;
    line-height:1.55;
}
.beta-start-card a{
    display:inline-flex;
    margin-top:8px;
    color:#4f46e5;
    font-size:8.5px;
    font-weight:850;
    text-decoration:none;
}
.beta-start-complete{
    display:grid;
    grid-template-columns:46px minmax(0,1fr);
    gap:12px;
    align-items:center;
    padding:15px 17px;
    border:1px solid #d5f3e5;
    border-radius:16px;
    background:#f4fff9;
}
.beta-start-complete > span{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border-radius:14px;
    color:#047857;
    background:#dcfce7;
}
.beta-start-complete svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
}
.beta-start-complete strong{
    display:block;
    color:#24503f;
    font-size:11px;
}
.beta-start-complete p{
    margin:4px 0 0;
    color:#71877f;
    font-size:8.5px;
}
@media(max-width:760px){
    .beta-start-hero{
        grid-template-columns:1fr;
    }
    .beta-start-secondary-grid{
        grid-template-columns:1fr;
    }
}
