/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --sidebar-width: 240px;
    --mn-dark: #003865;
    --mn-light: #009FDA;
    --bg: #009FDA;
    --surface: rgba(255,255,255,0.92);
    --border: rgba(0,56,101,0.15);
    --text: #003865;
    --text-secondary: #3d6d8a;
    --primary: #003865;
    --primary-hover: #002a4e;
    --accent: #009FDA;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,56,101,0.08), 0 1px 2px rgba(0,56,101,0.06);
    --shadow-lg: 0 4px 12px rgba(0,56,101,0.12);
}

html { font-size: 15px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--mn-light);
    color: var(--text);
    min-height: 100vh;
}

/* === Dashboard Layout === */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
    width: var(--sidebar-width);
    background: var(--mn-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    background-image: url('/images/rebel-loon.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70%;
}

.sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,56,101,0.75);
    z-index: -1;
}

.sidebar-brand {
    padding: 24px 20px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--mn-light);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(0,159,218,0.15);
    border-right: 3px solid var(--mn-light);
}

.sidebar-footer {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer .sidebar-link.external {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.sidebar-footer .sidebar-link.external:hover {
    color: var(--accent);
}

.sidebar-footer .sidebar-link svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* === Main Content === */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--bg);
    min-height: 100vh;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.page-body {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin: 32px 40px;
    padding: 32px;
}

.content-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

/* === Cards === */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.card-header h2 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.card-body {
    padding: 24px;
}

/* === Search Form === */
.search-card {
    margin-bottom: 28px;
}

.search-card .card-body { padding: 0; }

.search-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 20px 24px;
}

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

.form-group:first-child {
    flex: 0 0 auto;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.form-group input[type="text"] {
    width: 10em;
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text);
    background: #fff;
    transition: border-color 0.15s;
    height: 42px;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--mn-dark);
    box-shadow: 0 0 0 3px rgba(0, 56, 101, 0.15);
}

.form-group select {
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    height: 42px;
}

.btn-primary {
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    height: 42px;
}

.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* === Spinner === */
.spinner {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.spinner-dot {
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003865' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='12' y1='2' x2='12' y2='5'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3Cline x1='2' y1='12' x2='5' y2='12'/%3E%3Cline x1='19' y1='12' x2='22' y2='12'/%3E%3Cline x1='4.93' y1='4.93' x2='7.07' y2='7.07'/%3E%3Cline x1='16.93' y1='16.93' x2='19.07' y2='19.07'/%3E%3Cline x1='4.93' y1='19.07' x2='7.07' y2='16.93'/%3E%3Cline x1='16.93' y1='7.07' x2='19.07' y2='4.93'/%3E%3C/svg%3E") no-repeat center / contain;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

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

/* === Error === */
.error-card {
    border-color: #fecaca;
    background: #fef2f2;
}

.error-text {
    color: var(--danger);
    font-size: 0.9rem;
}

.error-card .card-body { padding: 16px 24px; }

/* === Source Tabs === */
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-tabs { display: flex; gap: 4px; }

.source-tab {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.source-tab:hover { background: #f1f5f9; }
.source-tab.active { background: var(--mn-dark); color: #fff; border-color: var(--mn-dark); }
.source-tab.error { color: var(--danger); border-color: #fecaca; }
.source-tab.error.active { background: var(--danger); color: #fff; border-color: var(--danger); }
.source-tab.loading { opacity: 0.5; }

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    background: rgba(0,0,0,0.1);
}

.source-tab.active .tab-badge { background: rgba(255,255,255,0.25); }

.loading-dot {
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='12' y1='2' x2='12' y2='5'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3Cline x1='2' y1='12' x2='5' y2='12'/%3E%3Cline x1='19' y1='12' x2='22' y2='12'/%3E%3Cline x1='4.93' y1='4.93' x2='7.07' y2='7.07'/%3E%3Cline x1='16.93' y1='16.93' x2='19.07' y2='19.07'/%3E%3Cline x1='4.93' y1='19.07' x2='7.07' y2='16.93'/%3E%3Cline x1='16.93' y1='7.07' x2='19.07' y2='4.93'/%3E%3C/svg%3E") no-repeat center / contain;
    animation: spin 1s linear infinite;
}

.source-tab.active .loading-dot {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='12' y1='2' x2='12' y2='5'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3Cline x1='2' y1='12' x2='5' y2='12'/%3E%3Cline x1='19' y1='12' x2='22' y2='12'/%3E%3Cline x1='4.93' y1='4.93' x2='7.07' y2='7.07'/%3E%3Cline x1='16.93' y1='16.93' x2='19.07' y2='19.07'/%3E%3Cline x1='4.93' y1='19.07' x2='7.07' y2='16.93'/%3E%3Cline x1='16.93' y1='7.07' x2='19.07' y2='4.93'/%3E%3C/svg%3E");
}

/* === Multi-vehicle entries === */
.vehicle-entry.multi {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.vehicle-entry.multi:last-child { border-bottom: none; }
.vehicle-entry.multi:first-child { padding-top: 0; }

/* === Results Grid === */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* === Vehicle Info === */
.vehicle-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.vehicle-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.vehicle-links {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-retry {
    padding: 4px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 6px;
}

.btn-retry:hover { background: var(--primary-hover); }

.vehicle-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* === Status Card === */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.status-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.badge-confirmed { background: #fee2e2; color: #991b1b; }
.badge-suspected { background: #fef3c7; color: #92400e; }
.badge-cleared { background: #dcfce7; color: #166534; }
.badge-unknown, .badge-no-entry, .badge-error { background: #f1f5f9; color: #64748b; }
.badge-similar { background: #fff7ed; color: #9a3412; }

.status-text {
    font-size: 1.1rem;
    font-weight: 700;
}

/* === Chips === */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.chip-confirmed { background: #fee2e2; color: #991b1b; }
.chip-suspected { background: #fef3c7; color: #92400e; }
.chip-cleared { background: #dcfce7; color: #166534; }
.chip-unknown, .chip-muted { background: #f1f5f9; color: #64748b; }
.chip-rental { background: #ede9fe; color: #5b21b6; }
.chip-tag { background: #e0f2fe; color: #075985; }
.chip-similar { background: #fff7ed; color: #9a3412; }

/* === Detail Grid === */
.detail-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 20px;
    margin-top: 12px;
    font-size: 0.85rem;
}

.detail-grid dt {
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-grid dd {
    color: var(--text);
}

/* === Status Card border accents === */
.status-card.status-confirmed { border-top: 3px solid #dc2626; }
.status-card.status-suspected { border-top: 3px solid #d97706; }
.status-card.status-cleared { border-top: 3px solid #16a34a; }
.status-card.status-similar { border-top: 3px solid #ea580c; }

/* === Similar Plates === */
.similar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.similar-item {
    display: block;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.similar-item:hover {
    border-color: #94a3b8;
    box-shadow: var(--shadow);
}

.similar-plate {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: var(--text);
}

.similar-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.similar-item .chips { margin-bottom: 0; }

/* === S.A.L.U.T.E. Layout === */
.salute-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

/* === S.A.L.U.T.E. Form === */
.salute-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
}

.salute-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.salute-letter {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.salute-field textarea,
.salute-field input[type="datetime-local"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    resize: vertical;
}

.salute-field textarea:focus,
.salute-field input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--mn-dark);
    box-shadow: 0 0 0 3px rgba(0, 56, 101, 0.15);
}

.salute-time-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.salute-time-row input {
    width: auto;
    flex: 1 1 auto;
}

.btn-secondary {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f1f5f9;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-secondary:hover { background: #e2e8f0; }

/* === Report Output === */
.report-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
    color: var(--text);
}

/* === Tools Grid (Landing Page) === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
}

.tool-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--mn-dark);
    color: var(--mn-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.tool-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* === Bottom Tab Bar === */
.bottom-tab-bar {
    display: none;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    min-height: 56px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 600;
    gap: 2px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}

.tab-item.active { color: var(--mn-light); }
.tab-item:hover { color: rgba(255,255,255,0.8); }
.tab-item svg { width: 22px; height: 22px; }

/* === Camera Button === */
.btn-camera {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.btn-camera:hover { background: #f1f5f9; }

/* === Camera Overlay === */
.camera-overlay {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000;
}

.camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
}

.camera-close, .camera-pick {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-close:hover, .camera-pick:hover { background: rgba(255,255,255,0.25); }

#camera-video {
    flex: 1;
    object-fit: cover;
    width: 100%;
}

.camera-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 80px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.camera-controls {
    display: flex;
    justify-content: center;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    background: rgba(0,0,0,0.6);
    z-index: 2;
}

.camera-shutter {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.camera-shutter::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.1s;
}

.camera-shutter:active::after { transform: scale(0.9); }

.scan-status {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Responsive === */
@media (min-width: 720px) {
    .salute-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .salute-form {
        flex: 1;
    }

    #report-output {
        flex: 1;
        position: sticky;
        top: 32px;
    }
}

@media (max-width: 768px) {
    /* Hide sidebar, show tab bar */
    .sidebar { display: none; }

    .bottom-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--mn-dark);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .dashboard {
        flex-direction: column;
    }

    .main-content {
        margin-left: 0;
        padding-bottom: 72px;
    }

    /* Compact spacing */
    .page-body {
        margin: 6px;
        padding: 12px 10px;
        border-radius: 6px;
    }

    .page-header { margin-bottom: 10px; }
    .page-header h1 { font-size: 1.05rem; }
    .page-subtitle { font-size: 0.75rem; margin-top: 2px; }

    /* Compact search form: plate + state + camera on one row, button below */
    .search-card { margin-bottom: 12px; }

    .search-form {
        display: grid;
        grid-template-columns: 1fr auto auto auto;
        gap: 6px;
        padding: 10px;
    }

    .search-form .btn-primary {
        grid-column: 1 / -1;
        height: 36px;
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .form-group { gap: 2px; }

    .form-group label {
        font-size: 0.65rem;
        margin-bottom: 0;
    }

    .form-group input[type="text"],
    .form-group select {
        height: 34px;
        padding: 6px 8px;
        font-size: 0.85rem;
        border-radius: 4px;
    }

    .form-group input[type="text"] {
        width: 100%;
        letter-spacing: 1px;
    }

    .form-group:first-child {
        flex: 1 1 auto;
    }

    .btn-camera { width: 34px; height: 34px; align-self: end; border-radius: 4px; }
    .btn-camera svg { width: 16px; height: 16px; }

    .scan-status { padding: 8px 10px; font-size: 0.8rem; gap: 8px; }

    /* Compact cards */
    .card { margin-bottom: 10px; border-radius: 6px; }
    .card-header { padding: 10px 12px; }
    .card-header h2 { font-size: 0.75rem; }
    .card-body { padding: 12px; }

    /* Compact results */
    .results-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
    .vehicle-title { font-size: 1rem; }
    .vehicle-details { font-size: 0.8rem; }
    .vehicle-links { font-size: 0.75rem; margin-top: 8px; }

    .status-indicator { gap: 10px; margin-bottom: 10px; }
    .status-badge { width: 32px; height: 32px; font-size: 0.75rem; }
    .status-text { font-size: 0.95rem; }
    .chips { gap: 4px; margin-bottom: 8px; }
    .chip { padding: 2px 8px; font-size: 0.65rem; }
    .detail-grid { gap: 3px 10px; font-size: 0.75rem; margin-top: 8px; }

    .similar-item { padding: 8px 10px; }
    .similar-plate { font-size: 0.85rem; margin-bottom: 2px; }
    .similar-meta { font-size: 0.7rem; margin-bottom: 4px; }

    /* Compact tools grid */
    .tools-grid { grid-template-columns: 1fr; gap: 10px; }
    .tool-icon { width: 40px; height: 40px; border-radius: 8px; margin-bottom: 10px; }
    .tool-icon svg { width: 24px; height: 24px; }
    .tool-title { font-size: 0.95rem; margin-bottom: 4px; }
    .tool-description { font-size: 0.8rem; }

    /* Compact SALUTE */
    .salute-form { gap: 12px; }
    .salute-field textarea {
        font-size: 0.8rem;
        padding: 8px 10px;
        rows: 1;
    }
    .salute-field label { font-size: 0.75rem; margin-bottom: 2px; }
    .salute-letter { font-size: 0.95rem; }
    .salute-time-row { gap: 6px; }
    .salute-time-row input { height: 34px; padding: 6px 8px; font-size: 0.8rem; }
    .btn-secondary { padding: 6px 14px; font-size: 0.8rem; height: 34px; }
    .report-text { padding: 12px; font-size: 0.8rem; line-height: 1.5; }

    /* Error card */
    .error-card .card-body { padding: 10px 12px; }
    .error-text { font-size: 0.8rem; }
}
