:root {
    --bg: #040705;
    --bg-soft: #0d140e;
    --bg-soft-2: #162118;
    --panel: rgba(10, 16, 12, 0.82);
    --panel-2: rgba(128, 211, 46, 0.08);
    --text: #f4f7ef;
    --muted: #b0bea7;
    --line: rgba(255, 255, 255, 0.09);
    --primary: #80d32e;
    --primary-2: #f4c425;
    --primary-3: #4fa816;
    --success: #2ec98a;
    --warning: #ffbf3c;
    --danger: #ff6b6b;
    --info: #3bb3ff;
    --purple: #8f67ff;
    --dark: #121914;
    --shadow: 0 26px 70px rgba(0, 0, 0, .35);
    --radius: 22px;
}

html[data-theme='light'] {
    --bg: #f7f8f1;
    --bg-soft: #ffffff;
    --bg-soft-2: #eef2e8;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-2: rgba(79, 168, 22, 0.08);
    --text: #1b2417;
    --muted: #617051;
    --line: rgba(27, 36, 23, 0.10);
    --dark: #1d2818;
    --shadow: 0 18px 45px rgba(44, 66, 31, .12);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(128, 211, 46, .14), transparent 24%),
        radial-gradient(circle at top right, rgba(244, 196, 37, .12), transparent 22%),
        linear-gradient(145deg, #030503 0%, var(--bg) 42%, #11170f 100%);
}

html[data-theme='light'] body {
    background:
        radial-gradient(circle at top left, rgba(128, 211, 46, .10), transparent 24%),
        radial-gradient(circle at top right, rgba(244, 196, 37, .08), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f6f8ef 58%, #eef3e7 100%);
}

a { color: inherit; text-decoration: none; }
small, .muted { color: var(--muted); }

/* Layout Estrutural */
.app-shell { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    padding: 28px 22px;
    background: rgba(5, 10, 7, .82);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

html[data-theme='light'] .sidebar { background: rgba(255,255,255,.88); }

.brand { display:flex; gap:14px; margin-bottom: 24px; }
.brand--sidebar { flex-direction: column; align-items: flex-start; gap: 12px; }
.brand-logo { width: 100%; max-width: 220px; height: auto; display: block; }
.brand-copy strong { display:block; font-size: 18px; letter-spacing: .04em; }
.brand-copy small { display:block; color: var(--muted); margin-top: 4px; line-height: 1.5; }

.nav-menu { display:flex; flex-direction:column; gap:8px; }
.nav-menu a {
    padding: 14px 16px;
    border-radius: 16px;
    color: #cfdbca;
    font-weight: 700;
    transition: .2s ease;
    border: 1px solid transparent;
}

html[data-theme='light'] .nav-menu a { color: var(--text); }

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, rgba(128, 211, 46, .12), rgba(244, 196, 37, .08));
    color: var(--text);
    border-color: rgba(128, 211, 46, .18);
}

.user-card {
    margin-top: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    display:flex;
    flex-direction:column;
    gap:10px;
    box-shadow: var(--shadow);
}

.user-card span { color: var(--muted); text-transform: capitalize; }

/* Conteúdo Principal */
.main-content { padding: 24px; min-width: 0; }

.topbar {
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    margin-bottom: 24px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.topbar h1 { margin:0; font-size: clamp(26px, 4vw, 34px); }
.topbar p { margin:8px 0 0; color: var(--muted); max-width: 720px; }

/* Cards e Paineis */
.panel, .kpi-card, .login-card, .glass-card, .public-trace-card, .print-card, .login-modal, .login-form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.kpi-card { padding: 20px; position:relative; overflow:hidden; min-height: 118px; }
.kpi-card strong { font-size: clamp(26px, 3vw, 34px); }

/* QR Code e Impressão de Etiquetas */
.print-label-page { width:100%; display:flex; justify-content:center; padding: 30px; }
.print-card { width:min(900px, 100%); max-width: 440px; text-align:center; padding: 28px; }

.qr-box { 
    margin: 18px auto; 
    width: 220px; 
    min-height: 220px; 
    background: #fff; 
    padding: 10px; 
    border-radius: 18px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.print-canvas-image { display:none; max-width:100%; height:auto; }
.screen-only-canvas { display:block; margin: 0 auto; }
.screen-only-image { display:block; margin: 0 auto; }

/* Responsividade Geral */
@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: sticky; top: 0; z-index: 30; }
}

@media (max-width: 760px) {
    .main-content { padding: 14px; }
    .btn, .theme-switch { width:100%; }
}

.file-panel {
    display: grid;
    gap: 14px;
}
.file-card {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(128, 211, 46, .06);
}
.file-meta {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}
.file-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
}
.checkbox-inline {
    display:flex;
    align-items:center;
    gap:10px;
    margin-top: 4px;
    color: var(--muted);
}
.checkbox-inline input {
    width:auto;
    margin:0;
}
.public-trace-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    flex-wrap:wrap;
}
.public-trace-footer p {
    margin: 6px 0 0;
}

:root {
    --bg: #040705;
    --bg-soft: #0d140e;
    --bg-soft-2: #162118;
    --panel: rgba(10, 16, 12, 0.82);
    --panel-2: rgba(128, 211, 46, 0.08);
    --text: #f4f7ef;
    --muted: #b0bea7;
    --line: rgba(255, 255, 255, 0.09);
    --primary: #80d32e;
    --primary-2: #f4c425;
    --primary-3: #4fa816;
    --success: #2ec98a;
    --warning: #ffbf3c;
    --danger: #ff6b6b;
    --info: #3bb3ff;
    --purple: #8f67ff;
    --dark: #121914;
    --shadow: 0 26px 70px rgba(0, 0, 0, .35);
    --radius: 22px;
}
html[data-theme='light'] {
    --bg: #f7f8f1;
    --bg-soft: #ffffff;
    --bg-soft-2: #eef2e8;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-2: rgba(79, 168, 22, 0.08);
    --text: #1b2417;
    --muted: #617051;
    --line: rgba(27, 36, 23, 0.10);
    --dark: #1d2818;
    --shadow: 0 18px 45px rgba(44, 66, 31, .12);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(128, 211, 46, .14), transparent 24%),
        radial-gradient(circle at top right, rgba(244, 196, 37, .12), transparent 22%),
        linear-gradient(145deg, #030503 0%, var(--bg) 42%, #11170f 100%);
}
html[data-theme='light'] body {
    background:
        radial-gradient(circle at top left, rgba(128, 211, 46, .10), transparent 24%),
        radial-gradient(circle at top right, rgba(244, 196, 37, .08), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f6f8ef 58%, #eef3e7 100%);
}
a { color: inherit; text-decoration: none; }
small, .muted { color: var(--muted); }
.app-shell { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    padding: 28px 22px;
    background: rgba(5, 10, 7, .82);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
html[data-theme='light'] .sidebar { background: rgba(255,255,255,.88); }
.brand { display:flex; gap:14px; margin-bottom: 24px; }
.brand--sidebar { flex-direction: column; align-items: flex-start; gap: 12px; }
.brand-logo { width: 100%; max-width: 220px; height: auto; display: block; }
.brand-copy strong { display:block; font-size: 18px; letter-spacing: .04em; }
.brand-copy small { display:block; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.nav-menu { display:flex; flex-direction:column; gap:8px; }
.nav-menu a {
    padding: 14px 16px;
    border-radius: 16px;
    color: #cfdbca;
    font-weight: 700;
    transition: .2s ease;
    border: 1px solid transparent;
}
html[data-theme='light'] .nav-menu a { color: var(--text); }
.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, rgba(128, 211, 46, .12), rgba(244, 196, 37, .08));
    color: var(--text);
    border-color: rgba(128, 211, 46, .18);
}
.user-card {
    margin-top: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    display:flex;
    flex-direction:column;
    gap:10px;
    box-shadow: var(--shadow);
}
.user-card span { color: var(--muted); text-transform: capitalize; }
.main-content { padding: 24px; min-width: 0; }
.topbar {
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    margin-bottom: 24px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.topbar h1 { margin:0; font-size: clamp(26px, 4vw, 34px); }
.topbar p { margin:8px 0 0; color: var(--muted); max-width: 720px; }
.topbar-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.topbar-pill {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(128, 211, 46, .14);
    color: #dff1cd;
    border:1px solid rgba(128, 211, 46, .24);
    font-weight: 700;
}
html[data-theme='light'] .topbar-pill { color: #3d6f18; }
.panel, .kpi-card, .login-card, .glass-card, .public-trace-card, .print-card, .login-modal, .login-form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}
.panel-soft { background: rgba(255,255,255,.04); box-shadow: none; }
html[data-theme='light'] .panel-soft { background: rgba(27,36,23,.03); }
.panel { padding: 20px; }
.panel-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom: 18px; flex-wrap:wrap; }
.panel-header h3, .panel-header h4 { margin:0; font-size: 18px; }
.kpi-grid, .panel-grid { display:grid; gap:18px; margin-bottom: 18px; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.panel-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-grid.two-col-fixed { grid-template-columns: minmax(320px, 440px) 1fr; }
.chart-grid-compact .panel { padding-bottom: 14px; }
.chart-sm { position: relative; height: 200px; }
.kpi-card { padding: 20px; position:relative; overflow:hidden; min-height: 118px; }
.kpi-card span { display:block; color: var(--muted); margin-bottom: 10px; }
.kpi-card strong { font-size: clamp(26px, 3vw, 34px); }
.accent-blue::after, .accent-orange::after, .accent-purple::after, .accent-green::after, .accent-red::after, .accent-pink::after {
    content:''; position:absolute; inset:auto -30px -30px auto; width:110px; height:110px; border-radius:50%; opacity:.22;
}
.accent-blue::after { background: var(--info); }
.accent-orange::after { background: var(--warning); }
.accent-purple::after { background: var(--purple); }
.accent-green::after { background: var(--primary); }
.accent-red::after { background: var(--danger); }
.accent-pink::after { background: var(--primary-2); }
.form-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; }
.single-col { grid-template-columns: 1fr; }
.full-width { grid-column: 1 / -1; }
label { display:block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
input, select, textarea, button { font-family: inherit; }
input, select, textarea {
    width:100%;
    padding: 14px 14px;
    border-radius: 14px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.04);
    color: var(--text);
    outline:none;
}
input:focus, select:focus, textarea:focus {
    border-color: rgba(128, 211, 46, .45);
    box-shadow: 0 0 0 4px rgba(128, 211, 46, .10);
}
html[data-theme='light'] input,
html[data-theme='light'] select,
html[data-theme='light'] textarea { background: rgba(17,32,59,.03); }
textarea { min-height: 110px; resize: vertical; }
.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding: 13px 18px;
    border-radius: 14px;
    border:1px solid transparent;
    cursor:pointer;
    font-weight:700;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color:#0d1209;
}
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-dark { background: rgba(255,255,255,.08); color:#fff; }
html[data-theme='light'] .btn-dark { background: var(--dark); }
.btn-danger { background: linear-gradient(135deg, #ff6b6b, #ff9658); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.btn-block { width:100%; }
.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid rgba(128, 211, 46, .22);
    background: rgba(5, 10, 7, .72);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
html[data-theme='light'] .theme-switch { background: rgba(255,255,255,.88); }
.theme-switch--floating {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 40;
}
.action-bar { display:flex; justify-content:flex-end; margin-bottom: 16px; }
.action-bar.left { justify-content:flex-start; }
.wrap-gap { flex-wrap: wrap; gap: 10px; }
.table-wrap { overflow:auto; width:100%; }
.table-toolbar {
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    align-items:flex-end;
    margin-bottom: 16px;
}
.table-search {
    flex: 1 1 300px;
}
.table-search span {
    display:block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}
.table-search input[type="search"] {
    width:100%;
}
.table-search-meta {
    color: var(--muted);
    font-size: 13px;
    padding-bottom: 12px;
}
.table-empty-state {
    display:none;
    padding: 18px;
    margin-top: 12px;
    text-align:center;
    border:1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(255,255,255,.03);
}
.table-empty-state.is-visible {
    display:block;
}
table { width:100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align:left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.badge {
    display:inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.badge-info { background: rgba(59,179,255,.16); color: #bfe6ff; }
.badge-warning { background: rgba(255,191,60,.16); color: #ffe2a6; }
.badge-success { background: rgba(46,201,138,.16); color: #abf3d0; }
.badge-danger { background: rgba(255,107,107,.16); color: #ffd3d3; }
.badge-primary { background: rgba(128,211,46,.16); color: #def6b9; }
.badge-purple { background: rgba(143,103,255,.16); color: #ddd0ff; }
.badge-dark { background: rgba(255,255,255,.12); color: #fff; }
.badge-secondary { background: rgba(255,255,255,.12); color: #d8deed; }
html[data-theme='light'] .badge-dark,
html[data-theme='light'] .badge-secondary { color: var(--text); }
.timeline { position:relative; padding-left: 24px; }
.timeline::before { content:''; position:absolute; left:6px; top:0; bottom:0; width:2px; background: var(--line); }
.timeline-item { position:relative; padding-bottom: 18px; }
.timeline-dot {
    position:absolute;
    left:-24px;
    top:6px;
    width:14px;
    height:14px;
    border-radius:50%;
    background: linear-gradient(135deg,var(--primary),var(--primary-2));
    box-shadow: 0 0 0 6px rgba(128,211,46,.12);
}
.timeline-content strong { display:block; margin-bottom: 5px; }
.timeline-content span { color: var(--muted); font-size: 13px; }
.timeline-content p { margin: 7px 0 0; color: var(--text); opacity: .9; }
.detail-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; margin-bottom: 14px; }
.detail-grid span { display:block; color: var(--muted); margin-bottom: 6px; font-size: 13px; }
.detail-grid strong { font-size: 15px; }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 16px; border:1px solid var(--line); }
.alert-success { background: rgba(46,201,138,.15); color: #b0f5d5; }
.alert-danger { background: rgba(255,107,107,.15); color: #ffd7d7; }
.guest-body {
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 36px;
    position: relative;
    overflow-x: hidden;
}
.guest-body:not(.tv-body) {
    background-image:
        linear-gradient(135deg, rgba(0,0,0,.56), rgba(6,12,7,.68)),
        url('../../../img/logo_fundo_tela.png');
    background-position: center center, center center;
    background-size: cover, min(76vw, 920px);
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
}
html[data-theme='light'] .guest-body:not(.tv-body) {
    background-image:
        linear-gradient(135deg, rgba(255,255,255,.82), rgba(246,249,240,.74)),
        url('../../../img/logo_fundo_tela.png');
}
.guest-body:not(.tv-body)::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(128,211,46,.15), transparent 25%),
        radial-gradient(circle at bottom right, rgba(244,196,37,.12), transparent 28%),
        linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.22));
    pointer-events: none;
}
html[data-theme='light'] .guest-body:not(.tv-body)::before {
    background:
        radial-gradient(circle at top left, rgba(128,211,46,.12), transparent 25%),
        radial-gradient(circle at bottom right, rgba(244,196,37,.08), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.18));
}
.guest-body.login-body {
    background: #000;
}
.guest-body.login-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(128,211,46,.18), transparent 26%),
        radial-gradient(circle at bottom right, rgba(244,196,37,.16), transparent 28%),
        linear-gradient(135deg, rgba(0,0,0,.48), rgba(0,0,0,.26));
    pointer-events: none;
    z-index: 1;
}
html[data-theme='light'] .guest-body.login-body::before {
    background:
        radial-gradient(circle at top left, rgba(128,211,46,.16), transparent 26%),
        radial-gradient(circle at bottom right, rgba(244,196,37,.12), transparent 28%),
        linear-gradient(135deg, rgba(0,0,0,.42), rgba(0,0,0,.24));
}
.guest-alert { position:fixed; top:86px; right:24px; min-width:260px; z-index: 45; }
.login-shell, .installer-shell {
    width: min(1240px, 100%);
    position: relative;
    z-index: 2;
}
.login-shell { min-height: calc(100vh - 72px); display:flex; align-items:center; justify-content:center; }
.login-video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #000;
    overflow: hidden;
}
.login-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.login-overlay {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
}
.login-modal {
    width: 100%;
    position: relative;
    display:grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    gap: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}
.login-branding {
    padding: 42px;
    background: transparent;
    border-right: 1px solid rgba(255,255,255,.18);
}
html[data-theme='light'] .login-branding {
    background: transparent;
}
.login-logo {
    width: min(320px, 100%);
    height: auto;
    display: block;
    margin: 0 0 18px;
}
.eyebrow {
    display:inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(128,211,46,.14);
    color: #eff9e3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
html[data-theme='light'] .eyebrow { color: #3d6f18; }
.login-branding h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.05; margin: 0 0 16px; }
.login-branding p { color: var(--text); opacity: 1; max-width: 720px; font-size: 17px; line-height: 1.65; }
html[data-theme='light'] .login-branding p { color: #44533a; }
.hero-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.glass-card {
    padding: 18px;
    background: rgba(255,255,255,.09);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
}
html[data-theme='light'] .glass-card {
    background: rgba(255,255,255,.80);
    border-color: rgba(27,36,23,.10);
}
.glass-card strong { display:block; margin-bottom: 8px; color: var(--text); }
.glass-card span { color: #dfe7d5; font-size: 14px; line-height: 1.6; font-weight: 500; }
html[data-theme='light'] .glass-card span { color: #556649; }
.login-form-wrapper {
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 30px;
    background: transparent;
}
html[data-theme='light'] .login-form-wrapper { background: transparent; }
.login-form-card {
    width: min(460px, 100%);
    padding: 30px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}
.login-card, .print-card, .public-trace-card { padding: 28px; }
.login-card-header h2 { margin: 0 0 8px; }
.login-card-header p { color: var(--muted); margin:0 0 20px; }
.credentials-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border:1px solid var(--line);
    display:flex;
    flex-direction:column;
    gap:6px;
}
.credentials-ip {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: .02em;
    word-break: break-word;
}
html[data-theme='light'] .credentials-ip { color: #24311c; }
.auth-footnote {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.login-body .theme-switch--floating,
.login-body .guest-alert,
.login-body .login-modal,
.login-body .login-branding,
.login-body .login-form-wrapper,
.login-body .login-form-card {
    position: relative;
    z-index: 2;
}
.login-body .login-branding h1,
.login-body .login-branding p,
.login-body .login-card-header h2,
.login-body .login-card-header p,
.login-body label,
.login-body .credentials-box,
.login-body .auth-footnote {
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.login-body .glass-card,
.login-body .credentials-box,
.login-body input,
.login-body .theme-switch {
    background: rgba(0, 0, 0, .28);
    border-color: rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
}
html[data-theme='light'] .login-body .glass-card,
html[data-theme='light'] .login-body .credentials-box,
html[data-theme='light'] .login-body input,
html[data-theme='light'] .login-body .theme-switch {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.26);
}
.login-body .glass-card {
    box-shadow: none;
}
.login-body .btn-primary {
    box-shadow: 0 14px 30px rgba(0,0,0,.26);
}
.login-body .credentials-ip,
.login-body .login-card-header h2,
.login-body .login-branding h1 {
    color: #fff;
}
html[data-theme='light'] .login-body .credentials-ip,
html[data-theme='light'] .login-body .login-card-header h2,
html[data-theme='light'] .login-body .login-branding h1 {
    color: #fff;
}
.login-body .login-card-header p,
.login-body label,
.login-body .auth-footnote,
.login-body .glass-card span {
    color: rgba(255,255,255,.82);
}
html[data-theme='light'] .login-body .login-card-header p,
html[data-theme='light'] .login-body label,
html[data-theme='light'] .login-body .auth-footnote,
html[data-theme='light'] .login-body .glass-card span {
    color: rgba(255,255,255,.84);
}
.installer-card { max-width: 820px; width: 100%; position: relative; z-index: 2; }
.print-label-page, .public-trace-shell { width:100%; display:flex; justify-content:center; padding: 30px; }
.print-card, .public-trace-card { width:min(900px, 100%); }
.print-card { max-width: 440px; text-align:center; }
.print-label-page--10x15 {
    padding: 20px;
}
.print-card--label-10x15 {
    width: min(100mm, 100%);
    max-width: 100mm;
    min-height: 150mm;
    padding: 24px 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}
.gradient-print-card {
    background:
        linear-gradient(145deg, rgba(128, 211, 46, .12), rgba(244, 196, 37, .08)),
        var(--panel);
}
.qr-brand-logo, .public-trace-logo {
    display:block;
    margin: 0 auto 18px;
    width: min(220px, 68%);
    height: auto;
}
.print-header h1 { margin:0 0 6px; font-size: 24px; }
.qr-box { margin: 18px auto; width:220px; min-height:220px; background:#fff; padding: 10px; border-radius: 18px; }
.print-card--label-10x15 .qr-brand-logo {
    width: min(220px, 70%);
    margin-bottom: 14px;
}
.print-card--label-10x15 .print-header h1 {
    margin-bottom: 4px;
    font-size: 22px;
    line-height: 1.12;
}
.print-card--label-10x15 .print-header span {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}
.print-card--label-10x15 .qr-box {
    width: 230px;
    min-height: 230px;
    margin: 16px auto 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.print-card--label-10x15 .qr-box canvas,
.print-card--label-10x15 .qr-box img,
.print-card--label-10x15 .qr-box table {
    max-width: 100%;
    height: auto;
}
.print-card--label-10x15 .print-meta {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.55;
}
.print-canvas-image { display:none; max-width:100%; height:auto; }
.screen-only-canvas { display:block; }
.screen-only-image { display:block; }
.print-meta { color: var(--text); text-align:left; font-size: 14px; }
.shipment-box { margin: 18px 0; padding: 16px; border:1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); }
.no-print { margin-top: 18px; }
.actions-inline { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.inline-form { display:inline-flex; margin: 0; }
.table-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.action-center { justify-content: center; }
.print-surface { min-width: 0; }
body.modal-open {
    overflow: hidden;
}
.user-card-actions {
    justify-content: flex-end;
}
.app-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 14, 8, .58);
    backdrop-filter: blur(8px);
}
.app-modal-backdrop[hidden] {
    display: none !important;
}
.app-modal-card {
    width: min(540px, 100%);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .30);
}
.app-modal-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}
.app-modal-header h2 {
    margin: 0 0 6px;
}
.app-modal-header p {
    margin: 0;
    color: var(--muted);
}
.app-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.app-modal-form {
    display: grid;
    gap: 14px;
}
.app-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.stack-list { display:flex; flex-direction:column; gap:10px; }
.stack-item { padding: 14px; border:1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); }
.stack-item.compact { padding: 10px 12px; }
.stack-item strong { display:block; }
.stack-item span { color: var(--muted); font-size: 13px; }
.audit-filter-grid { align-items: end; }
.audit-detail-cell { min-width: 320px; }
.audit-code-list { gap: 6px; max-width: 560px; }
.audit-code-list span { border-radius: 14px; line-height: 1.45; }
.mini-columns { display:grid; gap:14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dynamic-items { display:flex; flex-direction:column; gap:12px; }
.dynamic-row { display:grid; grid-template-columns: 1fr 180px 110px; gap: 12px; align-items:end; }
.row-action { min-width: 100px; }
.code-list { display:flex; flex-wrap:wrap; gap:8px; }
.code-list span { padding:6px 10px; border-radius: 999px; background: rgba(128,211,46,.12); color: var(--text); font-size: 12px; }
.simple-list { margin: 0; padding-left: 18px; }
.simple-list li { margin-bottom: 8px; color: var(--muted); }
.tv-body { align-items: stretch; justify-content: stretch; padding: 22px; }
.tv-shell { width: 100%; display:flex; flex-direction:column; gap:18px; }
.tv-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.tv-brand-block { display:flex; align-items:flex-start; gap:18px; }
.tv-brand-logo { width: min(260px, 34vw); height: auto; display:block; }
.tv-grid { display:grid; grid-template-columns: 2fr 1fr; gap:18px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
@page { margin: 14mm; }
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    html, body {
        background: #fff !important;
        color:#111 !important;
    }
    html.label-print-body,
    body.label-print-body {
        width: 100mm !important;
        min-width: 100mm !important;
        max-width: 100mm !important;
        height: 150mm !important;
        min-height: 150mm !important;
        max-height: 150mm !important;
        overflow: hidden !important;
    }
    .no-print,
    .sidebar,
    .topbar,
    .theme-switch,
    .theme-switch--floating,
    .action-bar,
    .user-card .actions-inline,
    .inline-form .btn.no-print {
        display:none !important;
    }
    .app-shell {
        display:block;
        min-height: auto;
    }
    .main-content,
    .print-label-page,
    .public-trace-shell {
        padding: 0 !important;
        margin: 0 !important;
    }
    .panel,
    .kpi-card,
    .print-card,
    .public-trace-card,
    .stack-item,
    .shipment-box,
    .topbar-pill,
    .badge {
        box-shadow:none !important;
        break-inside: avoid;
    }
    .panel,
    .kpi-card,
    .print-card,
    .public-trace-card,
    .shipment-box {
        border: 1px solid rgba(27, 36, 23, .14) !important;
        background: #fff !important;
    }
    .print-card {
        max-width: none;
    }
    .print-label-page--10x15 {
        width: 100mm !important;
        min-width: 100mm !important;
        max-width: 100mm !important;
        min-height: 150mm !important;
        height: 150mm !important;
        display: block !important;
        padding: 0 !important;
    }
    .print-card--label-10x15 {
        width: 100mm !important;
        max-width: 100mm !important;
        min-height: 150mm !important;
        height: 150mm !important;
        margin: 0 !important;
        padding: 8mm 7mm 6mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        box-shadow: none !important;
    }
    .print-card--label-10x15 .qr-brand-logo {
        width: 52mm !important;
        max-width: none !important;
        margin: 0 auto 4mm !important;
    }
    .print-card--label-10x15 .print-header h1 {
        font-size: 5.8mm !important;
        line-height: 1.08 !important;
        margin: 0 0 1.5mm !important;
    }
    .print-card--label-10x15 .print-header span {
        font-size: 3.2mm !important;
        line-height: 1.3 !important;
    }
    .print-card--label-10x15 .qr-box {
        width: 58mm !important;
        min-height: 58mm !important;
        margin: 5mm auto 4mm !important;
        padding: 3mm !important;
        border-radius: 4mm !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .print-canvas-image {
        display:block !important;
        margin: 0 auto;
    }
    .qr-box > * {
        display:none !important;
    }
    .qr-box canvas,
    .qr-box .screen-only-canvas,
    .qr-box .screen-only-image,
    .qr-box img,
    .qr-box table {
        display:none !important;
    }
    .qr-box .print-canvas-image {
        display:block !important;
        width:100% !important;
        max-width:220px;
        height:auto !important;
    }
    .print-card--label-10x15 .qr-box .print-canvas-image {
        width: 52mm !important;
        max-width: none !important;
        height: 52mm !important;
        object-fit: contain !important;
    }
    .print-card--label-10x15 .print-meta {
        margin-top: 2mm !important;
        font-size: 3.1mm !important;
        line-height: 1.38 !important;
    }
    .screen-only-canvas {
        display:none !important;
    }
    .table-toolbar,
    .table-empty-state {
        display:none !important;
    }
    table {
        min-width: 0;
    }
}
@media (max-width: 1280px) {
    .kpi-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: sticky; top: 0; z-index: 30; gap: 18px; }
    .kpi-grid, .kpi-grid-6, .panel-grid.two-col, .panel-grid.two-col-fixed, .hero-grid, .tv-grid, .login-modal { grid-template-columns: 1fr; }
    .login-branding { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
    .main-content, .guest-body, .tv-body { padding: 14px; }
    .topbar { flex-direction:column; padding: 16px; }
    .form-grid, .detail-grid, .mini-columns, .dynamic-row { grid-template-columns: 1fr; }
    .action-bar, .actions-inline, .panel-header, .topbar-actions, .table-toolbar { align-items:stretch; }
    .action-bar { justify-content:stretch; }
    .table-search-meta { padding-bottom: 0; }
    .btn, .btn-sm, .theme-switch { width:100%; }
    .sidebar { padding: 18px 14px; }
    .panel, .print-card, .public-trace-card, .login-card, .login-form-card, .login-branding { padding: 16px; }
    .login-form-wrapper { padding: 16px; }
    .chart-sm { height: 180px; }
    table { min-width: 560px; }
    .theme-switch--floating { left: 14px; right: 14px; top: 14px; }
    .guest-alert { top: 72px; left: 14px; right: 14px; min-width: 0; }
    .tv-brand-block { flex-direction: column; }
    .app-modal-backdrop { padding: 14px; }
    .app-modal-card { padding: 18px; border-radius: 20px; }
}

.product-workspace {
    display: grid;
    gap: 22px;
}
.panel-header--stack {
    align-items: flex-start;
}
.tab-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tab-chip {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(128, 211, 46, .05);
    color: var(--muted);
    font-weight: 700;
    transition: .2s ease;
}
.tab-chip:hover,
.tab-chip.is-active {
    color: var(--text);
    border-color: rgba(128, 211, 46, .35);
    background: linear-gradient(135deg, rgba(128, 211, 46, .18), rgba(244, 196, 37, .12));
}
.product-tab-panels {
    display: grid;
    gap: 18px;
}
.product-tab-panel {
    display: none;
    gap: 18px;
}
.product-tab-panel.is-active {
    display: grid;
}
.actions-inline--wrap {
    flex-wrap: wrap;
}
.clipboard-upload-zone {
    border: 2px dashed rgba(128, 211, 46, .28);
    border-radius: 18px;
    padding: 22px;
    display: grid;
    gap: 8px;
    background: rgba(128, 211, 46, .05);
    cursor: pointer;
    transition: .2s ease;
}
.clipboard-upload-zone strong {
    font-size: 16px;
}
.clipboard-upload-zone span {
    color: var(--muted);
    line-height: 1.55;
}
.clipboard-upload-zone:hover,
.clipboard-upload-zone.is-dragover,
.clipboard-upload-zone.is-active {
    border-color: rgba(128, 211, 46, .55);
    background: rgba(128, 211, 46, .10);
    transform: translateY(-1px);
}
.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.upload-preview-card,
.asset-card,
.photo-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
}
.upload-preview-card__media,
.asset-preview {
    aspect-ratio: 16 / 10;
    background: rgba(255,255,255,.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.upload-preview-card__media img,
.asset-preview img,
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.upload-preview-card__media iframe,
.asset-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.upload-preview-card__body,
.asset-body,
.photo-card__body {
    padding: 14px;
    display: grid;
    gap: 8px;
}
.upload-preview-card__body strong,
.asset-body strong,
.photo-card__body strong {
    word-break: break-word;
}
.upload-preview-card__body span,
.upload-preview-card__body small {
    color: var(--muted);
}
.upload-preview-card__placeholder,
.asset-placeholder {
    color: var(--muted);
    text-align: center;
    padding: 16px;
}
.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.photo-card img {
    aspect-ratio: 4 / 3;
}
.attachment-form {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}
.checkbox-group-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.checklist-form {
    display: grid;
    gap: 18px;
}
.checklist-block {
    display: grid;
    gap: 12px;
}
.checklist-table-wrap {
    overflow-x: auto;
}
.checklist-table {
    width: 100%;
    min-width: 980px;
}
.checklist-table th,
.checklist-table td {
    vertical-align: top;
}
.status-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.status-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--muted);
}
.status-choice input {
    width: auto;
    margin: 0;
}
.quality-status-wrap {
    display: grid;
    gap: 10px;
}
.quality-status-wrap input[type='text'] {
    min-width: 220px;
}
@media (max-width: 760px) {
    .asset-grid,
    .photo-grid,
    .upload-preview-grid {
        grid-template-columns: 1fr;
    }
    .tab-chip-group {
        width: 100%;
    }
    .tab-chip {
        width: 100%;
        text-align: center;
    }
}

/* Integração Checklist Mobile + responsividade aprimorada */
.topbar-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.sidebar-toggle {
    display: none;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(128, 211, 46, .10);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 5, .64);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 39;
}

.mobile-picker-panel,
.mobile-selected-product,
.mobile-checklist-panel,
.mobile-photo-panel,
.mobile-empty-state {
    padding: 18px;
}
.mobile-product-picker,
.mobile-checklist-form,
.mobile-photo-form,
.mobile-checklist-section,
.mobile-checklist-items {
    display: grid;
    gap: 14px;
}
.mobile-product-search {
    font-size: 16px;
}
.mobile-product-results {
    display: grid;
    gap: 10px;
    max-height: 45vh;
    overflow: auto;
}
.mobile-product-result {
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--text);
    display: grid;
    gap: 6px;
}
.mobile-product-result.is-selected {
    border-color: rgba(128, 211, 46, .55);
    background: rgba(128, 211, 46, .10);
}
.mobile-product-result__sku {
    color: var(--primary);
    font-weight: 800;
}
.mobile-selected-product__header {
    display: grid;
    gap: 12px;
}
.mobile-selected-product__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.mobile-selected-product__meta span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}
.mobile-selected-product__meta strong {
    display: block;
    line-height: 1.4;
}
.mobile-tab-switcher,
.mobile-camera-actions,
.mobile-toggle-group {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.mobile-toggle-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
}
.mobile-checklist-item {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}
.mobile-checklist-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}
.mobile-status-choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.mobile-status-choice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.02);
    font-weight: 800;
    color: var(--text);
    overflow: hidden;
}
.mobile-status-choice.is-active {
    border-color: rgba(128, 211, 46, .65);
    background: rgba(128, 211, 46, .12);
}
.mobile-status-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.mobile-sticky-actions {
    position: sticky;
    bottom: max(12px, env(safe-area-inset-bottom));
    padding-top: 8px;
    background: linear-gradient(180deg, rgba(4,7,5,0), rgba(4,7,5,.82) 35%, rgba(4,7,5,.96) 100%);
}
html[data-theme='light'] .mobile-sticky-actions {
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.88) 35%, rgba(255,255,255,.98) 100%);
}
.mobile-photo-count {
    color: var(--muted);
    font-size: 13px;
}
.mobile-photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.mobile-photo-card img {
    aspect-ratio: 1 / 1;
}
.mobile-form-grid {
    gap: 14px;
}
.mobile-picker-header p {
    margin: 6px 0 0;
}

@media (min-width: 761px) {
    .mobile-tab-switcher,
    .mobile-camera-actions,
    .mobile-toggle-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .app-shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 88vw);
        max-width: 320px;
        transform: translateX(-100%);
        transition: transform .22s ease;
        z-index: 40;
        overflow-y: auto;
        border-right: 1px solid var(--line);
    }
    body.sidebar-open .sidebar {
        transform: translateX(0);
    }
    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 760px) {
    .topbar-heading,
    .topbar-actions {
        width: 100%;
    }
    .topbar-heading {
        align-items: center;
    }
    .mobile-selected-product__meta,
    .mobile-photo-gallery {
        grid-template-columns: 1fr;
    }
    .mobile-picker-panel,
    .mobile-selected-product,
    .mobile-checklist-panel,
    .mobile-photo-panel,
    .mobile-empty-state {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: min(100vw, 320px);
    }
    .mobile-status-choice-group {
        grid-template-columns: 1fr;
    }
}

.checklist-inline-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
}
.checklist-inline-card.is-readonly {
    background: rgba(255,255,255,.02);
}
.checklist-inline-card textarea,
.checklist-inline-card input[type='file'] {
    width: 100%;
}
.checklist-inline-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.checklist-inline-photo-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.02);
    color: inherit;
    text-decoration: none;
}
.checklist-inline-photo-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}
.checklist-inline-photo-card span {
    font-size: 12px;
    color: var(--muted);
    word-break: break-word;
}
.checklist-solution-list {
    display: grid;
    gap: 18px;
}
.checklist-solution-item {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}
.checklist-solution-item__header,
.checklist-solution-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.checklist-solution-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.mobile-inline-file-actions {
    display: grid;
    gap: 10px;
}
.checklist-solution-card {
    gap: 14px;
}
@media (min-width: 761px) {
    .mobile-inline-file-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .checklist-solution-grid {
        grid-template-columns: 1fr;
    }
}
