:root {
    --bg: #f5f5f5;
    --surface: #ffffff;
    --surface-strong: #1a1a1a;
    --text: #171717;
    --muted: #6b6b6b;
    --line: #dedede;
    --primary: #e11d2e;
    --primary-dark: #a70f1c;
    --dark: #111111;
    --accent: #ffc400;
    --danger: #b42318;
    --warning: #946200;
    --shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(180deg, rgba(17, 17, 17, 0.06), transparent 260px),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
    background: linear-gradient(180deg, var(--dark), #21090c 64%, var(--primary-dark));
    color: #ffffff;
    padding: 22px 18px;
    border-right: 4px solid var(--accent);
    box-shadow: 12px 0 28px rgba(17, 17, 17, 0.18);
}

.topbar {
    min-height: 68px;
    padding: 0 26px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.06);
}

.topbar strong,
.topbar span {
    display: block;
}

.top-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    padding: 9px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 4px 0;
    border-radius: 99px;
    background: var(--dark);
}

.sidebar-backdrop {
    display: none;
}

.topbar strong {
    font-size: 18px;
}

.topbar span {
    color: var(--muted);
    font-size: 13px;
}

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

.bell-link {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--dark);
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.16);
}

.bell-icon {
    color: transparent;
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-block;
    font-size: 0;
}

.bell-icon::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 12px;
    height: 14px;
    border-radius: 10px 10px 5px 5px;
    background: var(--accent);
}

.bell-icon::after {
    content: "";
    position: absolute;
    left: 6px;
    bottom: 0;
    width: 6px;
    height: 4px;
    border-radius: 0 0 8px 8px;
    background: var(--accent);
}

.bell-count {
    position: absolute;
    right: -6px;
    top: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    font-weight: 700;
    border: 2px solid #ffffff;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    min-height: 54px;
    width: 100%;
    color: #ffffff;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 18px;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    padding: 3px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.side-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
}

.side-nav a:hover {
    background: rgba(255, 196, 0, 0.16);
    border-color: rgba(255, 196, 0, 0.42);
    color: #ffffff;
}

.nav-group {
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    overflow: hidden;
}

.nav-group summary {
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
    padding: 10px 12px;
    text-transform: uppercase;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group summary::after {
    content: "+";
    float: right;
}

.nav-group[open] summary::after {
    content: "-";
}

.nav-group a {
    border-radius: 0;
    display: block;
    font-size: 13px;
    padding: 9px 12px 9px 20px;
}

.nav-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin: 14px 0 3px;
    text-transform: uppercase;
}

.sidebar-version {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    display: grid;
    font-size: 12px;
    gap: 3px;
    margin-top: auto;
    padding-top: 14px;
}

.sidebar-version strong {
    color: var(--accent);
}

.app-version-footer {
    color: var(--muted);
    font-size: 12px;
    padding: 22px 0 4px;
    text-align: center;
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

p {
    color: var(--muted);
    line-height: 1.45;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

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

.stat {
    background: var(--surface);
    border: 1px solid #ececec;
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.stat strong {
    display: block;
    font-size: 30px;
    margin-top: 8px;
    color: var(--dark);
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
}

.check-item input {
    width: auto;
}

.check-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.print-area {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
}

.receipt-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.receipt-title {
    font-size: 26px;
    font-weight: 700;
}

.receipt-meta {
    text-align: right;
    color: var(--muted);
}

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

.receipt-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.receipt-box h2 {
    margin-top: 0;
}

.total-line {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    margin-top: 18px;
}

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

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(255, 196, 0, 0.32);
    border-color: var(--primary);
}

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

.actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(180deg, #f02a3b, var(--primary-dark));
}

.btn.secondary {
    background: #ffffff;
    color: var(--text);
    border-color: #cfcfcf;
}

.btn.secondary:hover {
    background: #fff7d6;
    border-color: var(--accent);
}

.btn.danger {
    background: var(--danger);
}

.btn.small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 14px;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.inline-form select {
    width: auto;
    min-width: 150px;
    padding: 7px 10px;
    min-height: 34px;
}

.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.alert.success {
    border-color: #f0cb38;
    background: #fff8dc;
}

.alert.error {
    border-color: #f0aaa4;
    background: #fff0ee;
    color: var(--danger);
}

.alert.info {
    border-color: #b8d7ff;
    background: #eef6ff;
    color: #1f4b78;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

th {
    background: var(--dark);
    color: #ffffff;
    font-size: 14px;
}

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

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(115deg, rgba(17, 17, 17, 0.88), rgba(225, 29, 46, 0.58)),
        linear-gradient(0deg, rgba(17, 17, 17, 0.34), rgba(17, 17, 17, 0.34)),
        url('/assets/brand/login-automotive-bg.png') center / cover no-repeat;
}

.login-box {
    width: min(420px, 100%);
    background: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    border-top: 6px solid var(--accent);
}

.login-box h1 {
    text-align: center;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.login-logo img {
    width: min(230px, 100%);
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 8px 12px;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.help {
    font-size: 14px;
    color: var(--muted);
}

.login-links {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.login-link {
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--primary);
    display: block;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 12px;
    position: relative;
    text-align: center;
    text-decoration: none;
    z-index: 2;
}

.login-link:hover {
    background: #fff3c2;
    border-color: var(--accent);
    color: var(--primary-dark);
}

.login-link.muted {
    color: var(--dark);
}

.login-separator {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    gap: 10px;
    margin: 16px 0 12px;
}

.login-separator::before,
.login-separator::after {
    background: var(--line);
    content: "";
    flex: 1;
    height: 1px;
}

.google-login-btn {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--dark);
    display: flex;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 44px;
    text-decoration: none;
}

.google-login-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.10);
}

.google-mark {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #4285f4;
    display: inline-flex;
    font-weight: 900;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #f1f1f1;
    color: var(--text);
}

.badge.aberta {
    background: #fff3c2;
    color: #6f4a00;
}

.badge.em_andamento {
    background: #fff5d6;
    color: var(--warning);
}

.badge.concluida {
    background: #e9f8ef;
    color: #126b3c;
}

.badge.cancelada {
    background: #fff0ee;
    color: var(--danger);
}

.badge.entrada {
    background: #e9f8ef;
    color: #126b3c;
}

.badge.saida {
    background: #fff0ee;
    color: var(--danger);
}

.badge.pendente {
    background: #fff5d6;
    color: var(--warning);
}

.badge.enviada {
    background: #e9f8ef;
    color: #126b3c;
}

.badge.erro {
    background: #fff0ee;
    color: var(--danger);
}

.badge.baixo {
    background: #fff0ee;
    color: var(--danger);
}

.badge.ok {
    background: #e9f8ef;
    color: #126b3c;
}

.badge.ativo {
    background: #e9f8ef;
    color: #126b3c;
}

.badge.agendado {
    background: #fff3c2;
    color: #6f4a00;
}

.badge.confirmado {
    background: #e9f2ff;
    color: #144c8f;
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    background: #ffffff;
}

.preview-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 4px;
}

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

.preview-brand strong {
    font-size: 20px;
}

.config-image-preview {
    width: 120px;
    max-height: 80px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px;
    background: #ffffff;
    margin-top: 8px;
}

.public-page {
    background: #f7f7f7;
}

.public-hero {
    min-height: 520px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 17, 17, 0.90), rgba(225, 29, 46, 0.88)),
        radial-gradient(circle at 78% 20%, rgba(255, 196, 0, 0.44), transparent 300px);
    padding: 22px;
}

.public-nav {
    width: min(1160px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
}

.public-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 5px;
}

.public-hero-content {
    width: min(1160px, 100%);
    margin: 120px auto 0;
}

.public-hero-content h1 {
    font-size: 52px;
    color: #ffffff;
}

.public-hero-content p {
    max-width: 680px;
    color: #fff2b8;
    font-size: 20px;
}

.public-container {
    width: min(1160px, calc(100% - 32px));
    margin: 32px auto;
}

.public-section {
    margin-bottom: 34px;
}

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

.public-card,
.media-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.public-card strong {
    display: block;
    color: var(--primary);
    font-size: 22px;
}

.notice-list {
    display: grid;
    gap: 12px;
}

.notice-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.notice-card.lida {
    border-left-color: var(--line);
    opacity: 0.82;
}

.notice-card h2 {
    margin: 8px 0 6px;
}

.badge.nova {
    background: #fff3c2;
    color: #6f4a00;
}

.badge.lida {
    background: #f1f1f1;
    color: var(--muted);
}

.media-card img,
.media-card video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    background: #111111;
}

.badge.inativo {
    background: #fff0ee;
    color: var(--danger);
}

.badge.ativa {
    background: #e9f8ef;
    color: #126b3c;
}

.badge.inativa {
    background: #fff0ee;
    color: var(--danger);
}

.badge.teste {
    background: #fff3c2;
    color: #6f4a00;
}

.badge.vencido,
.badge.suspenso,
.badge.cancelado {
    background: #fff0ee;
    color: var(--danger);
}

.badge.pago {
    background: #e9f8ef;
    color: #126b3c;
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        width: min(82vw, 310px);
        overflow-y: auto;
        border-right: 4px solid var(--accent);
        border-bottom: 0;
        padding: 18px;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 16px 0 34px rgba(0, 0, 0, 0.32);
    }

    body.menu-aberto {
        overflow: hidden;
    }

    body.menu-aberto .sidebar {
        transform: translateX(0);
    }

    body.menu-aberto .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 30;
        background: rgba(0, 0, 0, 0.42);
    }

    .brand {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .side-nav {
        display: flex;
        flex-direction: column;
    }

    .nav-label {
        grid-column: auto;
    }

    .menu-toggle {
        display: inline-block;
        flex: 0 0 auto;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        min-height: 62px;
        padding: 10px 14px;
        align-items: center;
    }

    .topbar strong {
        font-size: 16px;
    }

    .topbar span {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .top-actions {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .top-actions .btn.small {
        width: auto;
        min-width: 0;
        padding: 7px 10px;
    }

    .page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 14px;
    }

    .notice-card {
        align-items: stretch;
        flex-direction: column;
    }

    .container,
    .public-container {
        width: min(100% - 20px, 1120px);
        margin: 16px auto;
    }

    .grid,
    .form-grid,
    .check-list,
    .receipt-grid,
    .public-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .public-hero-content {
        margin-top: 70px;
    }

    .public-hero-content h1 {
        font-size: 36px;
    }

    .actions {
        justify-content: flex-start;
        gap: 8px;
    }

    .actions .btn {
        width: auto;
        flex: 1 1 150px;
    }

    .page-head .actions {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        margin-top: 2px !important;
    }

    .page-head .actions .btn {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 36px;
        padding: 8px 10px;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .topbar,
    .sidebar,
    .page-head,
    .actions,
    .no-print {
        display: none !important;
    }

    .container {
        width: 100%;
        margin: 0;
    }

    .print-area {
        border: 0;
        padding: 0;
    }
}

.dashboard-hero {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.dashboard-hero h1 {
    font-size: 30px;
    margin-bottom: 6px;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dashboard-actions .btn {
    background: #29c779;
    border-color: #29c779;
    color: #ffffff;
}

.dashboard-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.2fr) minmax(280px, 0.9fr);
}

.panel-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel-title-row h2 {
    margin: 0;
}

.calendar-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(7, minmax(34px, 1fr));
}

.calendar-grid strong,
.calendar-grid a,
.calendar-grid span {
    align-items: center;
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.calendar-grid strong {
    aspect-ratio: auto;
    color: var(--muted);
    font-size: 13px;
}

.calendar-grid a {
    background: #f1f3fa;
    color: var(--dark);
    font-weight: 700;
}

.calendar-grid a.today {
    background: var(--primary);
    color: #ffffff;
}

.calendar-grid small {
    background: var(--accent);
    border-radius: 999px;
    bottom: 5px;
    color: var(--dark);
    font-size: 10px;
    min-width: 16px;
    padding: 1px 4px;
    position: absolute;
    right: 5px;
}

.sales-bars {
    display: grid;
    gap: 14px;
}

.sales-bars div {
    display: grid;
    gap: 6px;
}

.sales-bars span {
    color: var(--muted);
}

.sales-bars i {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
    display: block;
    height: 10px;
    min-width: 0;
}

.finance-split {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.finance-split div {
    border-radius: 8px;
    padding: 20px;
}

.finance-split span {
    display: block;
    margin-bottom: 12px;
}

.finance-split strong {
    font-size: 24px;
}

.finance-split .positive {
    background: #e9fff3;
    color: #159458;
}

.finance-split .negative {
    background: #fff0ee;
    color: var(--danger);
}

.checklist-top,
.checklist-summary {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr minmax(160px, 280px) auto;
}

.progress-bar {
    background: #eceff5;
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
}

.progress-bar span {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    display: block;
    height: 100%;
}

.checklist-layout {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.checklist-category h2,
.checklist-side h2 {
    margin-top: 0;
}

.checklist-row {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    min-height: 58px;
    padding: 12px;
}

.checklist-row input {
    height: 26px;
    width: 26px;
}

.checklist-row span {
    display: grid;
    gap: 3px;
}

.checklist-row small {
    color: var(--muted);
}

.checklist-photos {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
}

.checklist-photos a {
    color: inherit;
    text-decoration: none;
}

.checklist-photos img {
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

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

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-actions {
        justify-content: flex-start;
    }

    .checklist-layout,
    .checklist-top,
    .checklist-summary {
        grid-template-columns: 1fr;
    }
}

.login-legal-footer {
    align-items: center;
    background: #ffffff;
    border-top: 1px solid var(--line);
    bottom: 0;
    color: var(--dark);
    display: flex;
    font-size: 15px;
    gap: 18px;
    justify-content: space-between;
    left: 0;
    padding: 12px 28px;
    position: fixed;
    right: 0;
    z-index: 5;
}

.login-legal-footer nav {
    display: flex;
    gap: 22px;
}

.login-legal-footer a {
    color: var(--dark);
    font-weight: 800;
    text-decoration: none;
}

.login-legal-footer a:hover {
    color: var(--primary);
}

.legal-page {
    background: var(--bg);
}

.legal-container {
    margin: 32px auto;
    max-width: 980px;
    padding: 0 18px 40px;
}

.legal-container h1 {
    font-size: 34px;
    margin: 18px 0 6px;
}

.legal-container h2 {
    margin-top: 22px;
}

.legal-container p {
    line-height: 1.65;
}

@media (max-width: 760px) {
    .login-page {
        padding-bottom: 130px;
    }

    .login-legal-footer {
        align-items: flex-start;
        flex-direction: column;
        font-size: 13px;
        gap: 10px;
        padding: 12px 16px;
        position: static;
    }

    .login-legal-footer nav {
        gap: 14px;
    }
}
