/* JATCO CVT Studio: стили (все селекторы ограничены контейнером .smartgen69) */
.smartgen69 {
            --bg: #080c18;
            --surface: #0f1a2e;
            --surface2: #182a44;
            --surface3: #1e3454;
            --border: #2a4060;
            --border-light: #3a5a80;
            --text: #e8edf5;
            --text-muted: #8899b0;
            --text-dim: #5a6a82;
            --accent: #4a8af4;
            --accent-hover: #2a6ad4;
            --accent-glow: rgba(74, 138, 244, 0.15);
            --success: #10b981;
            --success-bg: rgba(16, 185, 129, 0.10);
            --warning: #f59e0b;
            --warning-bg: rgba(245, 158, 11, 0.10);
            --danger: #ef4444;
            --danger-bg: rgba(239, 68, 68, 0.10);
            --purple: #8b5cf6;
            --purple-bg: rgba(139, 92, 246, 0.10);
            --pink: #ec4899;
            --pink-bg: rgba(236, 72, 153, 0.10);
            --cyan: #06b6d4;
            --cyan-bg: rgba(6, 182, 212, 0.10);
            --orange: #fb923c;
            --orange-bg: rgba(251, 146, 60, 0.10);
            --radius: 12px;
            --radius-sm: 6px;
            --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
            --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
            --mono: 'Courier New', monospace;
        }
.smartgen69,
.smartgen69 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
.smartgen69 {
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            padding: 16px;
        }
.smartgen69 ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
.smartgen69 ::-webkit-scrollbar-track {
            background: var(--surface);
        }
.smartgen69 ::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 3px;
        }
.smartgen69 ::-webkit-scrollbar-thumb:hover {
            background: var(--accent);
        }
.smartgen69 .app {
            max-width: 1600px;
            margin: 0 auto;
        }
.smartgen69 .header {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 18px 28px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
            box-shadow: var(--shadow);
        }
.smartgen69 .header-logo {
            width: 52px;
            height: 52px;
            background: linear-gradient(135deg, var(--accent), var(--purple));
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            flex-shrink: 0;
        }
.smartgen69 .header-text h1 {
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: -0.3px;
            background: linear-gradient(135deg, #fff, var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
.smartgen69 .header-text p {
            color: var(--text-muted);
            font-size: 0.82rem;
        }
.smartgen69 .header-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-left: auto;
        }
.smartgen69 .badge {
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.6rem;
            font-weight: 600;
            border: 1px solid transparent;
            white-space: nowrap;
        }
.smartgen69 .badge-blue {
            background: var(--accent-glow);
            color: var(--accent);
            border-color: rgba(74, 138, 244, 0.2);
        }
.smartgen69 .badge-green {
            background: var(--success-bg);
            color: var(--success);
            border-color: rgba(16, 185, 129, 0.2);
        }
.smartgen69 .badge-yellow {
            background: var(--warning-bg);
            color: var(--warning);
            border-color: rgba(245, 158, 11, 0.2);
        }
.smartgen69 .badge-red {
            background: var(--danger-bg);
            color: var(--danger);
            border-color: rgba(239, 68, 68, 0.2);
        }
.smartgen69 .badge-purple {
            background: var(--purple-bg);
            color: var(--purple);
            border-color: rgba(139, 92, 246, 0.2);
        }
.smartgen69 .badge-pink {
            background: var(--pink-bg);
            color: var(--pink);
            border-color: rgba(236, 72, 153, 0.2);
        }
.smartgen69 .badge-cyan {
            background: var(--cyan-bg);
            color: var(--cyan);
            border-color: rgba(6, 182, 212, 0.2);
        }
.smartgen69 .badge-orange {
            background: var(--orange-bg);
            color: var(--orange);
            border-color: rgba(251, 146, 60, 0.2);
        }
.smartgen69 .mode-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
.smartgen69 .mode-tab {
            padding: 9px 20px;
            background: var(--surface);
            border: 2px solid var(--border);
            border-radius: var(--radius);
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.25s;
            font-size: 0.82rem;
            font-weight: 600;
        }
.smartgen69 .mode-tab:hover {
            border-color: var(--accent);
            color: var(--text);
            transform: translateY(-1px);
        }
.smartgen69 .mode-tab.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
            box-shadow: 0 4px 16px rgba(74, 138, 244, 0.25);
        }
.smartgen69 .panel {
            display: none;
            animation: smartgen69_fadeIn 0.35s ease;
        }
.smartgen69 .panel.active {
            display: block;
        }
@keyframes smartgen69_fadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
.smartgen69 .card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 18px 22px;
            margin-bottom: 16px;
            box-shadow: var(--shadow);
        }
.smartgen69 .card-title {
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            color: var(--text);
            border-bottom: 1px solid var(--border);
            padding-bottom: 10px;
        }
.smartgen69 .card-title .icon {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            flex-shrink: 0;
        }
.smartgen69 .icon-blue {
            background: var(--accent-glow);
        }
.smartgen69 .icon-green {
            background: var(--success-bg);
        }
.smartgen69 .icon-yellow {
            background: var(--warning-bg);
        }
.smartgen69 .icon-purple {
            background: var(--purple-bg);
        }
.smartgen69 .icon-pink {
            background: var(--pink-bg);
        }
.smartgen69 .icon-red {
            background: var(--danger-bg);
        }
.smartgen69 .icon-cyan {
            background: var(--cyan-bg);
        }
.smartgen69 .icon-orange {
            background: var(--orange-bg);
        }
.smartgen69 .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
.smartgen69 .grid-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 16px;
        }
.smartgen69 .grid-4 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 16px;
        }
@media (max-width: 1024px) {
.smartgen69 .grid-2,
.smartgen69 .grid-3,
.smartgen69 .grid-4 {
                grid-template-columns: 1fr 1fr;
            }
}
@media (max-width: 640px) {
.smartgen69 .grid-2,
.smartgen69 .grid-3,
.smartgen69 .grid-4 {
                grid-template-columns: 1fr;
            }
}
.smartgen69 .btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 16px;
            border: none;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.25s;
            font-family: inherit;
        }
.smartgen69 .btn-primary {
            background: var(--accent);
            color: #fff;
        }
.smartgen69 .btn-primary:hover {
            background: var(--accent-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(74, 138, 244, 0.3);
        }
.smartgen69 .btn-success {
            background: var(--success);
            color: #fff;
        }
.smartgen69 .btn-success:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
.smartgen69 .btn-warning {
            background: var(--warning);
            color: #000;
        }
.smartgen69 .btn-warning:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
.smartgen69 .btn-danger {
            background: var(--danger);
            color: #fff;
        }
.smartgen69 .btn-danger:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
.smartgen69 .btn-outline {
            background: transparent;
            border: 2px solid var(--border);
            color: var(--text);
        }
.smartgen69 .btn-outline:hover {
            border-color: var(--accent);
            color: var(--accent);
            transform: translateY(-1px);
        }
.smartgen69 .btn-purple {
            background: var(--purple);
            color: #fff;
        }
.smartgen69 .btn-purple:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }
.smartgen69 .btn-sm {
            padding: 3px 10px;
            font-size: 0.7rem;
        }
.smartgen69 .btn-block {
            width: 100%;
            justify-content: center;
        }
.smartgen69 .btn-group {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 10px;
        }
.smartgen69 .param-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            margin-bottom: 5px;
            border-left: 4px solid var(--border);
            transition: all 0.2s;
            flex-wrap: wrap;
        }
.smartgen69 .param-row:hover {
            background: var(--surface3);
        }
.smartgen69 .param-row.good {
            border-left-color: var(--success);
        }
.smartgen69 .param-row.warning {
            border-left-color: var(--warning);
            background: var(--warning-bg);
        }
.smartgen69 .param-row.danger {
            border-left-color: var(--danger);
            background: var(--danger-bg);
        }
.smartgen69 .param-info {
            flex: 1;
            min-width: 180px;
        }
.smartgen69 .param-name {
            font-weight: 700;
            font-size: 0.88rem;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
.smartgen69 .param-desc {
            font-size: 0.75rem;
            color: var(--text-muted);
        }
.smartgen69 .param-tip {
            font-size: 0.68rem;
            color: var(--cyan);
            font-style: italic;
        }
.smartgen69 .param-consult {
            font-size: 0.62rem;
            color: var(--purple);
            margin-top: 2px;
        }
.smartgen69 .param-value {
            font-family: var(--mono);
            font-size: 0.88rem;
            font-weight: 700;
            min-width: 46px;
            text-align: center;
            padding: 2px 8px;
            border-radius: 4px;
            background: var(--bg);
        }
.smartgen69 .param-value.good {
            color: var(--success);
        }
.smartgen69 .param-value.warning {
            color: var(--warning);
        }
.smartgen69 .param-value.danger {
            color: var(--danger);
        }
.smartgen69 .param-badge {
            font-size: 0.5rem;
            padding: 2px 10px;
            border-radius: 12px;
            font-weight: 700;
            text-transform: uppercase;
        }
.smartgen69 .param-badge.safe {
            background: var(--success-bg);
            color: var(--success);
        }
.smartgen69 .param-badge.caution {
            background: var(--warning-bg);
            color: var(--warning);
        }
.smartgen69 .param-badge.danger {
            background: var(--danger-bg);
            color: var(--danger);
        }
.smartgen69 .btn-pm {
            width: 28px;
            height: 28px;
            border-radius: var(--radius-sm);
            border: 2px solid var(--border);
            background: var(--bg);
            color: var(--text);
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }
.smartgen69 .btn-pm:hover {
            border-color: var(--accent);
            background: var(--accent);
            color: #fff;
        }
.smartgen69 .btn-pm.minus:hover {
            border-color: var(--danger);
            background: var(--danger);
            color: #fff;
        }
.smartgen69 .btn-pm.plus:hover {
            border-color: var(--success);
            background: var(--success);
            color: #fff;
        }
.smartgen69 .btn-reset {
            padding: 3px 10px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--warning);
            background: transparent;
            color: var(--warning);
            cursor: pointer;
            font-size: 0.68rem;
            transition: all 0.2s;
            flex-shrink: 0;
        }
.smartgen69 .btn-reset:hover {
            background: var(--warning);
            color: #000;
        }
.smartgen69 .map-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 5px 10px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            margin-bottom: 4px;
            font-size: 0.78rem;
        }
.smartgen69 .map-label {
            font-weight: 600;
            min-width: 90px;
            color: var(--text-muted);
            font-size: 0.68rem;
        }
.smartgen69 .map-value {
            font-family: var(--mono);
            font-weight: 700;
            min-width: 46px;
            text-align: center;
            color: var(--text);
        }
.smartgen69 .map-value.good {
            color: var(--success);
        }
.smartgen69 .map-value.warning {
            color: var(--warning);
        }
.smartgen69 .btn-pm-sm {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            border: 1px solid var(--border);
            background: var(--bg);
            color: var(--text);
            cursor: pointer;
            font-size: 0.68rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }
.smartgen69 .btn-pm-sm:hover {
            border-color: var(--accent);
            background: var(--accent);
            color: #fff;
        }
.smartgen69 .btn-pm-sm.minus:hover {
            border-color: var(--danger);
            background: var(--danger);
            color: #fff;
        }
.smartgen69 .btn-pm-sm.plus:hover {
            border-color: var(--success);
            background: var(--success);
            color: #fff;
        }
.smartgen69 .init-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
            gap: 6px;
        }
.smartgen69 .init-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 5px 10px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            font-size: 0.72rem;
        }
.smartgen69 .init-label {
            font-weight: 600;
            min-width: 90px;
            color: var(--text-muted);
            font-size: 0.62rem;
        }
.smartgen69 .init-item input {
            width: 54px;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid var(--border);
            background: var(--bg);
            color: var(--text);
            font-size: 0.68rem;
            text-align: center;
            font-family: var(--mono);
        }
.smartgen69 .init-item input:focus {
            outline: none;
            border-color: var(--accent);
        }
.smartgen69 .hex-view {
            font-family: var(--mono);
            font-size: 0.68rem;
            line-height: 2.2;
            word-break: break-all;
            padding: 12px 14px;
            background: #000a14;
            border-radius: var(--radius-sm);
            color: #a0c0e0;
            max-height: 220px;
            overflow-y: auto;
            border: 1px solid var(--border);
            letter-spacing: 0.5px;
        }
.smartgen69 .hex-highlight {
            padding: 1px 3px;
            border-radius: 2px;
        }
.smartgen69 .hex-highlight.gain {
            background: rgba(74, 138, 244, 0.25);
            color: #6a9af4;
        }
.smartgen69 .hex-highlight.offset {
            background: rgba(16, 185, 129, 0.25);
            color: #34d399;
        }
.smartgen69 .hex-highlight.danger {
            background: rgba(239, 68, 68, 0.25);
            color: #f87171;
        }
.smartgen69 .hex-highlight.crc {
            background: rgba(245, 158, 11, 0.25);
            color: #fbbf24;
        }
.smartgen69 .hex-highlight.mapid {
            background: rgba(139, 92, 246, 0.25);
            color: #a78bfa;
        }
.smartgen69 .hex-highlight.init {
            background: rgba(236, 72, 153, 0.25);
            color: #f472b6;
        }
.smartgen69 .hex-highlight.map {
            background: rgba(6, 182, 212, 0.25);
            color: #22d3ee;
        }
.smartgen69 .hex-highlight.id1 {
            background: rgba(251, 146, 60, 0.3);
            color: #fb923c;
        }
.smartgen69 .hex-highlight.id2 {
            background: rgba(244, 114, 182, 0.3);
            color: #f472b6;
        }
.smartgen69 .hex-highlight.changed {
            background: rgba(251, 191, 36, 0.35);
            color: #fbbf24;
            border: 1px solid rgba(251, 191, 36, 0.2);
        }
.smartgen69 .passport-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 8px;
        }
.smartgen69 .passport-item {
            padding: 8px 12px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
        }
.smartgen69 .passport-label {
            font-size: 0.6rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
.smartgen69 .passport-value {
            font-family: var(--mono);
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text);
            word-break: break-all;
        }
.smartgen69 .passport-value.status-ok {
            color: var(--success);
        }
.smartgen69 .passport-value.status-warn {
            color: var(--warning);
        }
.smartgen69 .passport-value.status-error {
            color: var(--danger);
        }
.smartgen69 .car-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 8px;
            max-height: 420px;
            overflow-y: auto;
            padding-right: 4px;
        }
.smartgen69 .car-card {
            padding: 10px 14px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.25s;
            border: 2px solid transparent;
        }
.smartgen69 .car-card:hover {
            border-color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        }
.smartgen69 .car-card.selected {
            border-color: var(--success);
            background: var(--success-bg);
        }
.smartgen69 .car-name {
            font-weight: 700;
            font-size: 0.88rem;
        }
.smartgen69 .car-specs {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 2px;
        }
.smartgen69 .car-tcm {
            font-size: 0.68rem;
            color: var(--text-dim);
            font-family: var(--mono);
        }
.smartgen69 .car-tags {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
            margin-top: 4px;
        }
.smartgen69 .car-tag {
            font-size: 0.52rem;
            padding: 2px 8px;
            border-radius: 10px;
            background: var(--surface);
            color: var(--text-muted);
            border: 1px solid var(--border);
        }
.smartgen69 .car-tag.jf017e {
            background: var(--orange-bg);
            color: var(--orange);
            border-color: rgba(251, 146, 60, 0.2);
        }
.smartgen69 .car-tag.mitsubishi {
            background: var(--purple-bg);
            color: var(--purple);
            border-color: rgba(139, 92, 246, 0.2);
        }
.smartgen69 .car-tag.infiniti {
            background: var(--pink-bg);
            color: var(--pink);
            border-color: rgba(236, 72, 153, 0.2);
        }
.smartgen69 .filter-bar {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            flex-wrap: wrap;
            align-items: center;
        }
.smartgen69 .filter-btn {
            padding: 3px 12px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 0.72rem;
            font-weight: 600;
            transition: all 0.2s;
        }
.smartgen69 .filter-btn:hover {
            border-color: var(--accent);
            color: var(--text);
        }
.smartgen69 .filter-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: #fff;
        }
.smartgen69 .search-input {
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            border: 2px solid var(--border);
            background: var(--surface2);
            color: var(--text);
            font-size: 0.82rem;
            flex: 1;
            min-width: 140px;
            transition: all 0.3s;
        }
.smartgen69 .search-input:focus {
            outline: none;
            border-color: var(--accent);
        }
.smartgen69 .slider-group {
            margin-bottom: 14px;
        }
.smartgen69 .slider-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
            font-weight: 600;
            font-size: 0.82rem;
        }
.smartgen69 .slider-value {
            color: var(--accent);
            font-weight: 700;
        }
.smartgen69 input[type="range"] {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: var(--surface2);
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }
.smartgen69 input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--accent);
            cursor: pointer;
            border: 2px solid #fff;
            box-shadow: 0 2px 8px rgba(74, 138, 244, 0.3);
        }
.smartgen69 .slider-hint {
            font-size: 0.62rem;
            color: var(--text-dim);
            margin-top: 2px;
        }
.smartgen69 .sim-dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 10px;
        }
.smartgen69 .sim-gauge {
            padding: 10px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            text-align: center;
        }
.smartgen69 .sim-gauge-label {
            font-size: 0.6rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
.smartgen69 .sim-gauge-value {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--accent);
            font-family: var(--mono);
        }
.smartgen69 .sim-gauge-unit {
            font-size: 0.6rem;
            color: var(--text-dim);
        }
.smartgen69 .sim-gauge .value-good {
            color: var(--success);
        }
.smartgen69 .sim-gauge .value-warning {
            color: var(--warning);
        }
.smartgen69 .sim-gauge .value-danger {
            color: var(--danger);
        }
.smartgen69 .progress-bar {
            height: 18px;
            background: var(--surface2);
            border-radius: 10px;
            overflow: hidden;
            margin-top: 4px;
        }
.smartgen69 .progress-fill {
            height: 100%;
            border-radius: 10px;
            transition: width 0.5s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.55rem;
            font-weight: 700;
            color: #fff;
            padding: 0 8px;
            white-space: nowrap;
        }
.smartgen69 .progress-fill.primary {
            background: linear-gradient(90deg, #4a8af4, #6a9af4);
        }
.smartgen69 .progress-fill.secondary {
            background: linear-gradient(90deg, #10b981, #34d399);
        }
.smartgen69 .progress-fill.line {
            background: linear-gradient(90deg, #8b5cf6, #a78bfa);
        }
.smartgen69 .progress-fill.tcc {
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
        }
.smartgen69 .progress-fill.danger {
            background: linear-gradient(90deg, #ef4444, #f87171);
        }
.smartgen69 .history-list {
            max-height: 160px;
            overflow-y: auto;
        }
.smartgen69 .history-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 5px 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            font-size: 0.72rem;
            flex-wrap: wrap;
        }
.smartgen69 .history-time {
            color: var(--text-dim);
            font-size: 0.62rem;
            min-width: 60px;
        }
.smartgen69 .history-name {
            font-weight: 600;
            min-width: 70px;
        }
.smartgen69 .history-change {
            font-family: var(--mono);
            font-weight: 700;
        }
.smartgen69 .history-change.plus {
            color: var(--success);
        }
.smartgen69 .history-change.minus {
            color: var(--danger);
        }
.smartgen69 .history-undo {
            cursor: pointer;
            color: var(--warning);
            font-size: 0.75rem;
            margin-left: auto;
            transition: all 0.2s;
        }
.smartgen69 .history-undo:hover {
            color: var(--text);
            transform: scale(1.1);
        }
.smartgen69 .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-width: 400px;
            width: 100%;
        }
.smartgen69 .toast {
            padding: 10px 18px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 0.8rem;
            animation: smartgen69_toastSlide 0.35s ease;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            border-left: 4px solid var(--success);
        }
.smartgen69 .toast.success {
            background: var(--surface);
            border-left-color: var(--success);
            color: var(--text);
        }
.smartgen69 .toast.warning {
            background: var(--surface);
            border-left-color: var(--warning);
            color: var(--text);
        }
.smartgen69 .toast.error {
            background: var(--surface);
            border-left-color: var(--danger);
            color: var(--text);
        }
@keyframes smartgen69_toastSlide {
            from {
                transform: translateX(120%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
.smartgen69 .danger-zone {
            background: var(--danger-bg);
            border: 1px dashed rgba(239, 68, 68, 0.25);
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
            color: var(--danger);
            margin: 8px 0;
        }
.smartgen69 .danger-zone strong {
            color: #f87171;
        }
.smartgen69 .danger-zone .warning-text {
            color: var(--warning);
        }
.smartgen69 .upload-zone {
            border: 2px dashed var(--border);
            border-radius: var(--radius);
            padding: 28px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            color: var(--text-muted);
        }
.smartgen69 .upload-zone:hover {
            border-color: var(--accent);
            background: var(--accent-glow);
        }
.smartgen69 .upload-zone.dragover {
            border-color: var(--success);
            background: var(--success-bg);
        }
.smartgen69 .risk-score {
            font-size: 1.5rem;
            font-weight: 700;
        }
.smartgen69 .risk-low {
            color: var(--success);
        }
.smartgen69 .risk-medium {
            color: var(--warning);
        }
.smartgen69 .risk-high {
            color: var(--danger);
        }
.smartgen69 .confidence-bar {
            height: 6px;
            border-radius: 3px;
            background: var(--surface2);
            overflow: hidden;
            margin-top: 4px;
        }
.smartgen69 .confidence-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--success), var(--accent));
            transition: width 0.5s ease;
        }
.smartgen69 .wizard-step {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
            font-size: 0.8rem;
        }
.smartgen69 .wizard-step-num {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.68rem;
            flex-shrink: 0;
        }
.smartgen69 .wizard-step-text {
            flex: 1;
            color: var(--text-muted);
        }
.smartgen69 .wizard-step-status {
            font-weight: 600;
            font-size: 0.68rem;
        }
.smartgen69 .wizard-step-status.pending {
            color: var(--text-dim);
        }
.smartgen69 .wizard-step-status.running {
            color: var(--accent);
        }
.smartgen69 .wizard-step-status.done {
            color: var(--success);
        }
.smartgen69 .assist-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 6px;
        }
.smartgen69 .assist-grid input {
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            border: 2px solid var(--border);
            background: var(--surface2);
            color: var(--text);
            font-size: 0.78rem;
            font-family: var(--mono);
        }
.smartgen69 .assist-grid input:focus {
            outline: none;
            border-color: var(--accent);
        }
.smartgen69 .assist-results {
            margin-top: 6px;
            max-height: 130px;
            overflow-y: auto;
        }
.smartgen69 .assist-result {
            padding: 5px 10px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            margin-bottom: 4px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.75rem;
        }
.smartgen69 .assist-result:hover {
            background: var(--accent);
            color: #fff;
        }
.smartgen69 .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(4px);
        }
.smartgen69 .modal-content {
            background: var(--surface);
            padding: 28px;
            border-radius: var(--radius);
            max-width: 480px;
            width: 90%;
            text-align: center;
            border: 1px solid var(--border);
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
        }
.smartgen69 .modal-content h2 {
            margin-bottom: 14px;
            color: var(--text);
        }
.smartgen69 .ml-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 8px;
        }
.smartgen69 .ml-item {
            display: flex;
            justify-content: space-between;
            padding: 5px 10px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            font-size: 0.75rem;
        }
.smartgen69 .ml-item .ml-label {
            color: var(--text-muted);
        }
.smartgen69 .ml-item .ml-value {
            font-weight: 700;
            font-family: var(--mono);
        }
.smartgen69 .norms-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 6px;
        }
.smartgen69 .norm-item {
            display: flex;
            justify-content: space-between;
            padding: 3px 8px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            font-size: 0.7rem;
        }
.smartgen69 .norm-item .norm-label {
            color: var(--text-muted);
        }
.smartgen69 .norm-item .norm-value {
            font-weight: 600;
        }
.smartgen69 .norm-ok {
            color: var(--success);
        }
.smartgen69 .norm-warn {
            color: var(--warning);
        }
.smartgen69 .norm-err {
            color: var(--danger);
        }
.smartgen69 .model-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 8px;
        }
.smartgen69 .model-param {
            padding: 8px 12px;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            border-left: 3px solid var(--accent);
        }
.smartgen69 .model-param .mp-label {
            font-size: 0.62rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
.smartgen69 .model-param .mp-value {
            font-family: var(--mono);
            font-size: 0.9rem;
            font-weight: 700;
        }
.smartgen69 .model-param .mp-confidence {
            font-size: 0.6rem;
            color: var(--text-dim);
        }
.smartgen69 .model-param .mp-confidence.high {
            color: var(--success);
        }
.smartgen69 .model-param .mp-confidence.medium {
            color: var(--warning);
        }
.smartgen69 .model-param .mp-confidence.low {
            color: var(--danger);
        }
@media (max-width: 768px) {
.smartgen69 {
                padding: 8px;
            }
.smartgen69 .header {
                padding: 12px 16px;
            }
.smartgen69 .header-text h1 {
                font-size: 1.1rem;
            }
.smartgen69 .header-badges {
                margin-left: 0;
            }
.smartgen69 .card {
                padding: 12px 14px;
            }
.smartgen69 .param-row {
                padding: 8px 10px;
            }
.smartgen69 .grid-2,
.smartgen69 .grid-3,
.smartgen69 .grid-4 {
                grid-template-columns: 1fr;
            }
.smartgen69 .car-grid {
                max-height: 260px;
            }
.smartgen69 .sim-dashboard {
                grid-template-columns: 1fr 1fr;
            }
.smartgen69 .passport-grid {
                grid-template-columns: 1fr 1fr;
            }
.smartgen69 .assist-grid {
                grid-template-columns: 1fr;
            }
.smartgen69 .mode-tab {
                padding: 6px 12px;
                font-size: 0.72rem;
            }
}
@media (max-width: 480px) {
.smartgen69 .header-logo {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
.smartgen69 .header-text h1 {
                font-size: 0.95rem;
            }
.smartgen69 .sim-dashboard {
                grid-template-columns: 1fr;
            }
.smartgen69 .passport-grid {
                grid-template-columns: 1fr;
            }
.smartgen69 .param-row {
                flex-direction: column;
                align-items: stretch;
            }
.smartgen69 .param-value {
                text-align: left;
            }
.smartgen69 .btn-pm {
                width: 24px;
                height: 24px;
                font-size: 0.8rem;
            }
}
.smartgen69 .text-muted {
            color: var(--text-muted);
        }
.smartgen69 .text-sm {
            font-size: 0.72rem;
        }
.smartgen69 .mt-8 {
            margin-top: 8px;
        }
.smartgen69 .mt-12 {
            margin-top: 12px;
        }
.smartgen69 .mb-8 {
            margin-bottom: 8px;
        }
.smartgen69 .mb-12 {
            margin-bottom: 12px;
        }
.smartgen69 .flex {
            display: flex;
        }
.smartgen69 .flex-wrap {
            flex-wrap: wrap;
        }
.smartgen69 .gap-8 {
            gap: 8px;
        }
.smartgen69 .gap-12 {
            gap: 12px;
        }
.smartgen69 .items-center {
            align-items: center;
        }
.smartgen69 .justify-between {
            justify-content: space-between;
        }
.smartgen69 .justify-center {
            justify-content: center;
        }
.smartgen69 .sim-telemetry-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:12px}
.smartgen69 .sim-telemetry-grid>div {background:var(--surface2);padding:9px;border-radius:7px}
.smartgen69 .sim-telemetry-grid span,
.smartgen69 .sim-telemetry-grid strong {display:block}
.smartgen69 .sim-telemetry-grid strong {font-family:var(--mono);margin-top:4px}
.smartgen69 .sim-controls-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.smartgen69 .sim-controls-grid label {background:var(--surface2);padding:10px;border-radius:8px;font-size:.78rem}
.smartgen69 .sim-controls-grid output {float:right;font-family:var(--mono);font-weight:700}
.smartgen69 .sim-controls-grid input {display:block;width:100%;margin-top:9px}
.smartgen69 .sim-warning-box {padding:10px;border-radius:8px;background:var(--surface2);font-size:.78rem}
.smartgen69 .sim-warning-box.danger {border:1px solid var(--danger)}
.smartgen69 .sim-warning-box.warning {border:1px solid var(--warning)}
.smartgen69 .sim-calibration-preview {display:grid;grid-template-columns:240px 1fr;gap:16px;align-items:start}
.smartgen69 .sim-qr-card {background:#fff;border-radius:12px;padding:12px;min-height:240px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 18px rgba(0,0,0,.18)}
.smartgen69 .sim-qr-card canvas,
.smartgen69 .sim-qr-card img {max-width:210px;height:auto!important;image-rendering:auto}
.smartgen69 .sim-calibration-meta {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.smartgen69 .sim-meta-item {padding:10px 12px;background:var(--surface2);border:1px solid var(--border);border-radius:9px}
.smartgen69 .sim-meta-item span {display:block;color:var(--text-muted);font-size:.72rem;margin-bottom:3px}
.smartgen69 .sim-meta-item strong {font-family:var(--mono);font-size:.82rem;word-break:break-word}
.smartgen69 .sim-summary {margin-top:12px;padding:14px 16px;border-radius:10px;border:1px solid var(--border);background:var(--surface2);line-height:1.55}
.smartgen69 .sim-summary.good {border-color:rgba(52,211,153,.5)}
.smartgen69 .sim-summary.warn {border-color:rgba(251,191,36,.55)}
.smartgen69 .sim-summary.bad {border-color:rgba(248,113,113,.6)}
@media(max-width:760px) {
.smartgen69 .sim-calibration-preview {grid-template-columns:1fr}
.smartgen69 .sim-calibration-meta {grid-template-columns:1fr}
}
.smartgen69[data-theme="light"] {--bg:#f3f6fb;--surface:#fff;--surface2:#eef3f9;--surface3:#e2eaf4;--border:#c7d3e2;--border-light:#aebed1;--text:#152033;--text-muted:#5d6b80;--text-dim:#7d8ca1;--accent:#2463d4;--accent-hover:#174da9;--accent-glow:rgba(36,99,212,.12)}
.smartgen69 .pro-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.smartgen69 .pro-card {border:1px solid var(--border);border-radius:10px;padding:12px;background:var(--surface2)}
.smartgen69 .pro-card h4 {margin:0 0 8px;font-size:.92rem}
.smartgen69 .pro-actions {display:flex;flex-wrap:wrap;gap:8px}
.smartgen69 .pro-muted {font-size:.76rem;color:var(--text-muted)}
.smartgen69 .diff-table {width:100%;border-collapse:collapse;font-size:.74rem}
.smartgen69 .diff-table th,
.smartgen69 .diff-table td {padding:5px 7px;border-bottom:1px solid var(--border);text-align:left}
.smartgen69 .diff-changed {background:var(--warning-bg)}
.smartgen69 .scenario-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px;margin-top:8px}
.smartgen69 .scenario-item {padding:7px;border:1px solid var(--border);border-radius:7px;display:flex;justify-content:space-between;gap:6px;align-items:center}
.smartgen69 .pro-modal {position:fixed;inset:0;background:rgba(0,0,0,.72);display:none;align-items:center;justify-content:center;z-index:9999;padding:18px}
.smartgen69 .pro-modal.open {display:flex}
.smartgen69 .pro-modal-box {max-width:1100px;width:100%;max-height:92vh;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px;box-shadow:0 20px 70px rgba(0,0,0,.35)}
.smartgen69 .diff-heatmap {width:100%;height:42px;border:1px solid var(--border);border-radius:6px;background:var(--surface2);image-rendering:pixelated}
.smartgen69 .rt-dot {display:inline-block;width:9px;height:9px;border-radius:50%;background:#777;margin-right:5px}
.smartgen69 .rt-dot.on {background:#10b981;box-shadow:0 0 8px #10b981}
.smartgen69 .print-only {display:none}
@media(max-width:800px) {
.smartgen69 .pro-grid {grid-template-columns:1fr}
}

/* ===== Страховка читаемости (шаблон Joomla/Helix не должен перебивать цвета) ===== */
@media screen {
.smartgen69 { color: var(--text); color-scheme: dark; }
.smartgen69[data-theme="light"] { color-scheme: light; }
.smartgen69 :is(h1,h2,h3,h4,h5,h6,p,li,td,th,label,span,div,small,strong,b) { color: inherit; }
.smartgen69 .card:not([style*="background"]) { background: var(--surface) !important; }
.smartgen69 .card { color: var(--text) !important; }
.smartgen69 .hex-view { background: #000a14 !important; color: #a0c0e0 !important; }
.smartgen69 select,
.smartgen69 textarea,
.smartgen69 input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="button"]) { background-color: var(--surface2); color: var(--text); border-color: var(--border); }
.smartgen69 select option { background: var(--surface); color: var(--text); }
.smartgen69 { display: block; float: none; box-sizing: border-box; min-width: 0; }
.smartgen69 .app, .smartgen69 .panel { width: 100%; max-width: 100%; min-width: 0; }
@media (max-width: 900px) {
.smartgen69 { padding: 8px; position: relative; max-width: none; width: 100vw; flex: 0 0 auto; margin-left: calc(50% - 50vw); }
.smartgen69 .app { max-width: none; margin: 0; }
.smartgen69 .grid-2, .smartgen69 .grid-3, .smartgen69 .grid-4 { grid-template-columns: minmax(0, 1fr) !important; }
.smartgen69 .grid-2 > *, .smartgen69 .grid-3 > *, .smartgen69 .grid-4 > * { min-width: 0; width: 100%; }
.smartgen69 .card { width: 100%; margin-left: 0; margin-right: 0; }
.smartgen69 .toast-container { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; }
}
.smartgen69[data-theme="light"] .header-text h1 { background: linear-gradient(135deg, #152033, var(--accent)); -webkit-background-clip: text; background-clip: text; }
}
@media print {
.smartgen69 {background:#fff!important;color:#111!important}
.smartgen69 .app {max-width:none!important}
.smartgen69 .mode-tabs,
.smartgen69 .header-badges,
.smartgen69 .btn,
.smartgen69 .pro-card,
.smartgen69 .pro-modal {display:none!important}
.smartgen69 .print-only {display:block}
.smartgen69 .card {break-inside:avoid;box-shadow:none!important;border:1px solid #bbb!important;background:#fff!important;color:#111!important}
}
