:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#192b40;background:#f3f6fa;font-size:16px;--panel:#fff;--bg:#f3f6fa;--line:#e2e8f0;--muted:#66768a;--text:#192b40;--blue:#2563eb;--soft:#edf3ff;--hover:#f8fafd}*{box-sizing:border-box}body{margin:0}body.dark{color:#e5edf7;background:#101923;--panel:#182431;--bg:#101923;--line:#2c3b4b;--muted:#a1afbf;--text:#e5edf7;--soft:#203653;--hover:#1e2c3a}button,input,select{font:inherit;font-size:.875rem}button,select{cursor:pointer}button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:8px;padding:10px 15px;font-weight:550}button:hover{background:var(--hover)}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #7daaff;outline-offset:2px}button.primary{background:var(--blue);border-color:var(--blue);color:white}button.primary:hover{background:#1d4ed8}button:disabled{opacity:.45;cursor:not-allowed}.icon{font-size:22px;padding:3px 10px}.link{border:0;background:transparent;color:var(--blue);padding:0;text-align:left}header{height:78px;background:var(--panel);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 40px;position:sticky;top:0;z-index:5}.brand,.header-right,.row,.actions,.legend{display:flex;align-items:center;gap:12px}.brand b{font-size:20px}.logo{display:grid;place-items:center;width:35px;height:35px;background:var(--blue);color:white;font-size:30px;border-radius:10px}.pill{font-size:12px;padding:5px 8px;border-radius:5px;background:var(--bg);color:var(--muted)}.muted,small{color:var(--muted);font-size:14px}small{display:block;margin-top:4px}.eyebrow{font-size:12px;letter-spacing:.09em;color:var(--muted);font-weight:650}main{max-width:1440px;margin:auto;padding:0 40px 50px}nav{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:30px}nav button{border:0;border-radius:0;background:transparent;padding:22px 0 17px;color:var(--muted);border-bottom:3px solid transparent}nav button.active{border-bottom-color:var(--blue);color:var(--blue)}nav span{background:var(--soft);padding:3px 7px;border-radius:5px;margin-left:5px}.titlebar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}h1{font-size:28px;letter-spacing:-.035em;margin:0 0 7px;font-weight:650}h2{font-size:19px;letter-spacing:-.02em;margin:0}h3{font-size:16px;margin:0}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:24px}.toolbar{padding:18px 20px;display:flex;gap:12px;justify-content:space-between;align-items:center}.search{width:320px;max-width:100%}input,select{padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--text)}input[type=checkbox]{width:17px;height:17px;accent-color:var(--blue);cursor:pointer}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th{text-align:left;color:var(--muted);font-size:12px;font-weight:600;background:var(--hover)}th,td{padding:18px 20px;border-bottom:1px solid var(--line)}tbody tr:last-child td{border-bottom:0}td{font-size:14px}tbody tr:hover{background:var(--hover)}.name{font-size:16px;font-weight:650}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px}.modelsub{margin:5px 0 0 17px;color:var(--muted);font-size:13px}.highlight{font-weight:650;font-size:17px}.subline{font-size:12px;color:var(--muted);margin-top:5px}.selectionbar{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:16px 20px;background:var(--hover)}.chip{border:1px solid var(--line);border-radius:6px;background:var(--panel);padding:7px 10px;font-size:13px}.graphs{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}.graphhead{padding:20px 22px 8px;display:flex;align-items:center;justify-content:space-between;gap:12px}.legend{padding:12px 22px;flex-wrap:wrap;font-size:13px}.graph{width:100%;display:block;overflow:visible}.chartarea{padding:0 12px 12px}.chartarea text{font-family:inherit;fill:var(--muted);font-size:12px}.chartarea .grid{stroke:var(--line)}.graphnote{border-top:1px solid var(--line);padding:12px 22px;font-size:12px;color:var(--muted)}.summary{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:24px}.summarycard{padding:22px 24px;background:var(--panel);border:1px solid var(--line);border-radius:10px;display:flex;justify-content:space-between;align-items:center;border-left:4px solid var(--car)}.summarycard strong{display:block;font-size:30px;letter-spacing:-.04em}.summarycard .unit{font-size:14px;color:var(--muted);font-weight:400;margin-left:5px}.comparison table{table-layout:fixed;min-width:650px}.comparison th:first-child{width:230px}.comparison td{white-space:normal;vertical-align:top}.comparison td:first-child{color:var(--muted);font-size:14px}.comparison .group td{background:var(--hover);font-size:12px;font-weight:650;letter-spacing:.06em;color:var(--muted);padding-top:12px;padding-bottom:12px}.comparison th{background:var(--panel);font-size:16px;color:var(--text);border-top:4px solid var(--car)}.detailstats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:24px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:20px}.stat strong{font-size:25px;display:block;margin:8px 0}.note{background:var(--hover);padding:15px 20px;color:var(--muted);font-size:14px;border-left:3px solid #d79c37;margin:0 0 20px}a{color:var(--blue)}details{padding:20px}summary{cursor:pointer;font-weight:600}.sources{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-top:20px}.sources a{display:block;margin:10px 0;font-size:14px}.empty{padding:50px;text-align:center;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:14px;padding:0;width:900px;max-width:calc(100% - 32px);max-height:90vh;background:var(--panel);color:var(--text)}dialog::backdrop{background:#08142580;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid var(--line)}.dialog-head h2{margin-top:4px}#editbody{padding:24px;max-height:65vh;overflow:auto}footer{padding:18px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--hover)}footer button{margin-left:8px}.fields{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}label{font-size:14px;display:block}label input{width:100%;margin-top:7px}.urlfields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.editor-section{border-top:1px solid var(--line);margin-top:25px;padding-top:20px}.importreview{margin-top:15px}.importreview th,.importreview td{padding:12px;font-size:13px}.importreview input{width:150px}.danger{color:#d64545}#remove{width:460px}#remove p{padding:0 24px;line-height:1.6}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#192b40;color:white;padding:13px 22px;border-radius:9px;display:none;z-index:20}.tooltip{min-height:22px;font-size:13px;color:var(--muted);padding:0 22px 8px}.rangecontrol{font-size:13px}.rangecontrol select{padding:6px}.back{margin-bottom:18px}.metricselect{font-size:14px}.mobile-count{display:none}@media(max-width:1000px){main{padding:0 22px 35px}header{padding:0 22px}.graphs{grid-template-columns:1fr}.session{display:none}.detailstats{grid-template-columns:repeat(2,1fr)}.fields{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){header{height:65px;padding:0 16px}.brand{gap:8px}.brand b{font-size:18px}.pill{font-size:11px}main{padding:0 14px 30px}nav{margin-bottom:22px}h1{font-size:24px}.titlebar{gap:15px;align-items:flex-start}.titlebar .actions{flex-wrap:wrap;justify-content:flex-end}.titlebar .muted{font-size:13px}.toolbar{flex-wrap:wrap;padding:14px}.search{width:100%}.selectionbar{align-items:flex-start;gap:12px;flex-direction:column}.summary{grid-template-columns:1fr;gap:12px}.summarycard{padding:16px 20px}.summarycard strong{font-size:26px}.fields,.urlfields,.sources{grid-template-columns:1fr}.detailstats{gap:10px}.stat{padding:14px}.stat strong{font-size:22px}.dialog-head,#editbody{padding:18px}footer{flex-wrap:wrap;padding:14px}.graphhead{flex-wrap:wrap;padding:18px}.legend{padding:10px 18px}.comparison th:first-child{width:180px}th,td{padding:15px}.comparison table{min-width:570px}.chip{font-size:12px}.row{flex-wrap:wrap}.graphnote{line-height:1.5}}

/* Revision 0.2: aligned charts, compact model details and vertical SoC data. */
.graphs{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.graphs>.panel{min-width:0;display:flex;flex-direction:column}
.graphhead{min-height:69px;padding:18px 22px 10px}
.graphhead h2{white-space:nowrap}.legend{min-height:43px}
.chartarea{width:100%;min-width:0;padding:0 14px 12px}
.graph{overflow:hidden;width:100%;height:auto;display:block;aspect-ratio:640/280}
.tooltip{line-height:1.5;min-height:40px}.graphnote{margin-top:auto;min-height:57px;line-height:1.5}
.detailstats .stat{display:grid;grid-template-rows:minmax(40px,auto) minmax(40px,auto) minmax(24px,auto);align-content:start;min-width:0}
.detailstats .stat strong{font-size:clamp(21px,1.8vw,25px);margin:3px 0 7px;line-height:1.4}
.spec-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.compact-table{min-width:0}.compact-table table{table-layout:fixed;white-space:normal}
.compact-table td{padding:14px 20px;line-height:1.5;overflow-wrap:anywhere}.compact-table td:first-child{width:52%;color:var(--muted)}
.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line)}
.soc-table table{table-layout:fixed;white-space:normal}.soc-table th,.soc-table td{padding:13px 22px}
.soc-table th:nth-child(2),.soc-table td:nth-child(2){text-align:right}.soc-table th:last-child,.soc-table td:last-child{text-align:right}
.comparison th,.comparison td{overflow-wrap:anywhere}.comparison table{min-width:0}.comparison th:first-child{width:24%}
.comparison .tablewrap{overflow-x:auto}#theme{min-width:98px}
@media(max-width:1000px){.graphs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.graphhead{padding:16px 18px;min-height:78px;flex-wrap:wrap}.spec-grid{gap:16px}.compact-table td{padding:12px 16px}}
@media(max-width:720px){.graphs,.spec-grid{grid-template-columns:1fr}.graphhead{min-height:65px}.detailstats .stat{grid-template-rows:minmax(40px,auto) minmax(40px,auto) minmax(24px,auto)}.titlebar .actions{gap:8px}.comparison table{min-width:570px}.soc-table th,.soc-table td{padding:12px 14px}.soc-table th{font-size:12px}.soc-table td{font-size:13px}.soc-table th:first-child{width:29%}.soc-table th:nth-child(2){width:27%}.soc-table th:last-child{width:44%}}

/* v0.3 */
.home-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text)}
.car-link:hover{text-decoration:underline;text-underline-offset:3px}
.segmented{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);background:var(--bg);border-radius:9px;white-space:nowrap}
.segmented button{border:0;background:transparent;color:var(--muted);padding:9px 18px;border-radius:6px;font-size:14px}
.segmented button.active{background:var(--panel);color:var(--text);box-shadow:0 1px 4px #00000016}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2378899c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding:12px 38px 12px 14px;min-height:44px}
.rangecontrol{display:flex;align-items:center;gap:10px;color:var(--muted)}.rangecontrol select{min-width:74px;padding:10px 34px 10px 13px;min-height:42px}
.overview-table table{width:100%;table-layout:fixed;min-width:1080px}
.overview-table .check-col{width:38px}.overview-table .name-col{width:21%}.overview-table .action-col{width:156px}
.overview-table th,.overview-table td{padding:16px 12px;white-space:normal;line-height:1.45}
.overview-table td:first-child,.overview-table th:first-child{padding-left:16px;padding-right:4px}
.overview-table td:nth-child(2),.overview-table th:nth-child(2){padding-left:6px}
.overview-table .row-actions{padding-right:16px}.row-actions .actions{justify-content:flex-end;gap:8px;flex-wrap:nowrap}
.overview-table .name{font-size:15px}.overview-table .modelsub{margin-left:0}.modelsub span{display:block;margin-top:2px}
.overview-table .subline{line-height:1.5}.overview-table .highlight{font-size:16px}
.comparison th:first-child{width:23%}.comparison th{vertical-align:top;text-align:left;padding:22px 24px;border-top-width:4px}
.comparison td{padding:16px 24px;line-height:1.5}
.comparison th:not(:first-child),.comparison td:not(:first-child){border-left:2px solid var(--line)}
.comparison th:not(:first-child){background:color-mix(in srgb,var(--car) 5%,var(--panel))}
.comparison td:not(:first-child){background:color-mix(in srgb,var(--car) 2%,var(--panel))}
.compare-head{display:flex;flex-direction:column;min-width:0;height:100%}.compare-head .name{font-size:17px;text-decoration:none;color:var(--text)}.compare-head .name:hover{text-decoration:underline}
.compare-head>small{font-size:13px;line-height:1.5}.header-metric{display:flex;align-items:center;gap:9px;margin-top:20px}.header-metric strong{font-size:30px;letter-spacing:-.035em;color:var(--car)}.header-metric>span{font-size:14px;color:var(--muted)}.header-metric small{font-size:12px}
.header-action{display:flex;justify-content:flex-end;margin-top:18px}
.tinted-button{display:inline-block;color:var(--car);background:color-mix(in srgb,var(--car) 10%,var(--panel));border:1px solid color-mix(in srgb,var(--car) 23%,var(--panel));border-radius:7px;padding:8px 14px;font-size:13px;text-decoration:none}
.comparison .group td{background:var(--hover);border-left:2px solid var(--line);text-transform:uppercase;font-size:12px;letter-spacing:.04em}
.detailstats .stat>.muted,.detailstats .stat>small{color:color-mix(in srgb,var(--muted) 82%,var(--panel));font-size:13px}.detailstats .stat strong{color:var(--text)}
.source-input-table{margin:20px 0 18px;border:1px solid var(--line);border-radius:9px;overflow:hidden}.source-input-row{display:grid;grid-template-columns:155px minmax(0,1fr);align-items:center;gap:20px;padding:18px;background:var(--hover)}.source-input-row+.source-input-row{border-top:1px solid var(--line)}.source-input-row label{font-weight:600}.source-input-row small{font-size:12px;font-weight:400;margin-top:6px}.source-input-row input{width:100%;min-width:0;background:var(--panel);font-size:14px;padding:13px 14px}
#editbody>h3{margin-bottom:8px}#importmessage{margin-top:12px}.editor-section{padding-top:24px}
@media(max-width:1050px){.overview-table .name-col{width:240px}.comparison th,.comparison td{padding:16px}.header-metric{margin-top:16px}.compare-head .name{font-size:15px}}
@media(max-width:720px){.source-input-row{grid-template-columns:1fr;gap:10px;padding:15px}.source-input-row label{display:flex;justify-content:space-between;align-items:center}.source-input-row small{margin-top:0}.segmented button{padding:8px 14px}.comparison th:first-child{width:150px}.comparison table{min-width:570px}.comparison th{padding:15px}.header-metric{flex-wrap:wrap}.header-metric strong{font-size:25px}.rangecontrol{gap:8px}.rangecontrol select{min-width:72px}.home-brand{gap:8px}}

/* v0.4 */
.overview-table .check-col{width:51px}
.overview-table td:first-child,.overview-table th:first-child{padding-left:16px;padding-right:16px;vertical-align:top}
.overview-table td:first-child input{display:block;margin:2px 0 0}
.overview-table td:nth-child(2),.overview-table th:nth-child(2){padding-left:0}
.compare-head{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:16px}
.compare-identity{min-width:0}.compare-identity small{font-size:13px;line-height:1.5}
.header-action{margin-top:0;flex-shrink:0}.tinted-button{white-space:nowrap}
.source-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.source-editor-head h3{margin-bottom:8px}.source-editor-head small{line-height:1.6}
button.import-button{background:#193b68;border-color:#193b68;flex-shrink:0;padding:12px 18px}
button.import-button:hover{background:#123056;border-color:#123056}
.theme-filter{border:0;background:var(--bg);padding:4px;gap:3px}
.theme-filter button{display:flex;align-items:center;gap:7px;padding:8px 12px;font-weight:500}
.theme-filter button span{font-size:17px;line-height:1}
@media(max-width:720px){.compare-head{gap:10px;flex-wrap:wrap}.header-action{margin-left:auto}.source-editor-head{flex-wrap:wrap;gap:14px}.theme-filter button{padding:8px 9px;gap:5px}}
@media(max-width:400px){header{padding:0 10px}.brand{gap:5px}.brand b{font-size:16px}.home-brand{gap:6px}.logo{width:29px;height:29px}.theme-filter button{padding:8px 7px;font-size:12px}.theme-filter button span{font-size:15px}}

/* v0.5 */
html{min-height:100%;background:var(--bg)}body{min-height:100vh;min-height:100dvh;background:var(--bg)}
.overview-table .modelsub{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:12px;row-gap:3px}
.overview-table .modelsub span{display:inline;margin-top:0}
.model-meta{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:12px;row-gap:3px}
nav{border-bottom:0;gap:10px;padding:20px 0 0;margin-bottom:26px;flex-wrap:wrap}
nav button{border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:12px 18px;color:var(--text);font-weight:600;box-shadow:0 1px 2px #00000006}
nav button:hover{background:var(--soft)}
nav button.active{border:1px solid var(--blue);background:var(--blue);color:#fff;box-shadow:0 2px 5px #2563eb20}
nav button.active span{background:#ffffff24;color:#fff}
nav span{display:inline-block;min-width:23px;text-align:center;margin-left:8px}
.comparison .range-focus td{padding-top:23px;padding-bottom:23px;border-top:2px solid color-mix(in srgb,var(--blue) 20%,var(--line));border-bottom:2px solid color-mix(in srgb,var(--blue) 20%,var(--line));background:var(--soft);box-shadow:inset 0 1px 0 #ffffff08}
.comparison .range-focus td:first-child{font-size:16px;font-weight:650;color:var(--text);border-left:4px solid var(--blue);padding-left:20px}
.comparison .range-focus td:not(:first-child){background:color-mix(in srgb,var(--car) 9%,var(--panel))}
.comparison .range-focus b{display:block;font-size:26px;line-height:1.3;letter-spacing:-.025em;color:var(--car)}
.comparison .range-focus small{margin-top:7px;font-size:13px}
@media(max-width:720px){nav{padding-top:16px;margin-bottom:22px}nav button{padding:11px 15px}.comparison .range-focus td{padding-top:20px;padding-bottom:20px}.comparison .range-focus td:first-child{padding-left:12px}.comparison .range-focus b{font-size:23px}}

/* v0.6 */
main{padding-top:28px}.titlebar{margin-bottom:22px}
.overview-table td:nth-child(2){vertical-align:top}
.overview-table td:first-child input{margin-top:2px}
.view-switcher{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:0;border-bottom:1px solid var(--line)}
.view-switcher nav{display:flex;gap:6px;margin:0;padding:0;flex-wrap:nowrap;border:0;align-self:stretch;align-items:flex-end}
.view-switcher nav button{position:relative;bottom:-1px;margin:0;border:1px solid transparent;border-bottom:1px solid var(--line);border-radius:10px 10px 0 0;background:transparent;color:var(--muted);padding:15px 22px;box-shadow:none;font-weight:600;white-space:nowrap}
.view-switcher nav button:hover{background:var(--hover);color:var(--text)}
.view-switcher nav button.active{background:var(--panel);color:var(--blue);border-color:var(--line);border-bottom-color:var(--panel);box-shadow:inset 0 3px 0 var(--blue)}
.view-switcher nav button.active span{background:var(--soft);color:var(--blue)}
.view-switcher .create-car{margin-bottom:10px}
.view-switcher+.panel{border-top-left-radius:0}
.view-switcher+.graphs{margin-top:20px}
@media(max-width:720px){main{padding-top:22px}.view-switcher{gap:10px}.view-switcher nav{gap:2px}.view-switcher nav button{padding:13px 12px;font-size:13px}.view-switcher nav span{margin-left:5px;min-width:19px}.view-switcher .create-car{padding:10px 12px;font-size:13px;white-space:nowrap}.titlebar{margin-bottom:18px}}
@media(max-width:380px){.view-switcher nav button{padding:13px 8px;font-size:12px}.view-switcher .create-car{padding:9px;font-size:12px}}

/* v0.7 */
.view-switcher nav button.active{box-shadow:none;z-index:1;border-bottom-color:var(--panel)}
.view-switcher nav button.active::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:3px;background:var(--panel)}
.view-switcher+.panel{border-top:0}

/* v0.8 */
.detail-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:24px;margin-bottom:24px}
.detail-bottom>.panel{margin-bottom:0;min-width:0}
.detail-bottom .sectionhead{min-height:78px;align-items:center}
.source-card .sources{padding:22px;gap:24px}
.source-card .sources small{line-height:1.5}
.source-card .sources a{margin:14px 0;line-height:1.5;overflow-wrap:anywhere}
.source-card .note{margin:0 22px 20px;padding:16px;line-height:1.65}
.source-explanation{margin:0;padding:0 22px 24px;line-height:1.75}
@media(max-width:1050px){.source-card .sources{grid-template-columns:1fr;gap:16px}.detail-bottom .sectionhead{padding:18px}.detail-bottom .sectionhead h2{font-size:17px}.soc-table th,.soc-table td{padding:13px 16px}}
@media(max-width:720px){.detail-bottom{grid-template-columns:1fr;gap:20px}.detail-bottom .sectionhead{min-height:70px}.source-card .sources{grid-template-columns:1fr}}

/* PHP/MySQL v1.0 */
.auth-main{max-width:500px;padding-top:8vh}.auth-panel{padding:32px}.auth-panel label{margin:18px 0}.auth-panel button{margin-top:10px;width:100%}.check-label{display:flex;align-items:center;gap:10px}.check-label input{width:17px;margin:0}.html-import{padding:16px 0}.html-import .fields{grid-template-columns:1fr 1fr}.html-import input{font-size:12px}.import-alternatives{margin-top:16px;padding:14px;background:var(--soft);border-radius:7px;font-size:13px;line-height:1.8}#importmessage{line-height:1.6}#toast{max-width:calc(100% - 32px);text-align:center}header .header-right form{margin:0}@media(max-width:600px){header{height:auto;min-height:78px;flex-wrap:wrap;gap:12px;padding-top:12px;padding-bottom:12px}.header-right{margin-left:auto}.html-import .fields{grid-template-columns:1fr}}

.dialog-feedback,.import-error{padding:14px 16px;border:1px solid #dc6666;border-radius:8px;background:#fff1f1;color:#8f2525;font-size:14px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}.dialog-feedback{margin:16px 24px 0}.dialog-feedback[hidden]{display:none}body.dark .dialog-feedback,body.dark .import-error{background:#3c2429;color:#ffbaba;border-color:#a95361}#importmessage:empty{display:none}

header{padding:0;height:auto;min-height:78px}.header-inner{width:100%;max-width:1440px;margin:auto;padding:0 40px;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:16px}@media(max-width:1000px){.header-inner{padding:0 22px}}@media(max-width:600px){header{padding:0}.header-inner{padding:12px 14px;flex-wrap:wrap;gap:12px}}
/* Comparison headings: full-width title and metadata, separate action row. */
.comparison .compare-head{flex-direction:column;align-items:stretch;gap:0;flex-wrap:nowrap}
.comparison .compare-identity{width:100%;min-width:0}
.comparison .compare-identity .name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:normal;line-height:1.4;min-height:2.8em}
.comparison .model-meta{display:flex;flex-wrap:nowrap;gap:8px;white-space:nowrap;font-size:12px;line-height:1.5;margin-top:6px}
.comparison .model-meta span{flex-shrink:0}
.comparison .header-action{align-self:flex-end;margin:12px 0 0;position:relative;isolation:isolate}
.comparison .header-action::before{content:"";position:absolute;inset:-6px -8px;border-radius:12px;background:var(--panel);opacity:.9;z-index:-1;box-shadow:0 0 12px 5px var(--panel);pointer-events:none}
.comparison .tinted-button{background:color-mix(in srgb,var(--car) 14%,var(--panel));border-color:color-mix(in srgb,var(--car) 35%,var(--panel));box-shadow:0 1px 4px #0000000d;font-weight:600}
.comparison .tinted-button:hover{background:color-mix(in srgb,var(--car) 22%,var(--panel))}

.view-actions{display:flex;align-items:center;gap:12px;padding-bottom:12px}.view-actions .create-car{margin:0}
.comparison .compare-head{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:3px;align-items:start}
.comparison .compare-identity{display:contents}
.comparison .compare-identity .name{grid-column:1;grid-row:1;font-size:20px;line-height:1.3;min-height:0}
.comparison .model-meta{grid-column:1/-1;grid-row:2;margin-top:0}
.comparison .header-action{grid-column:2;grid-row:1;align-self:start;margin:0}
.comparison .header-action::before{display:none}
.comparison .tinted-button{box-shadow:none}
.fields input[type=color]{display:block;height:44px;padding:5px;cursor:pointer;border-radius:7px}
.fields input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.fields input[type=color]::-webkit-color-swatch{border:0;border-radius:4px}
.fields input[type=color]::-moz-color-swatch{border:0;border-radius:4px}
@media(max-width:800px){.view-switcher{flex-wrap:wrap}.view-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.comparison .compare-head{column-gap:8px}.comparison .compare-identity .name{font-size:18px}.comparison .tinted-button{padding:7px 10px}}

/* v1.0.5 */
.comparison .range-focus td:first-child{border-left:0;padding-left:24px}
.overview-table th{font-weight:750;color:var(--text)}
.sort-header{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font-size:inherit;font-weight:750;text-align:left;line-height:1.45}
.sort-header:hover{background:transparent;color:var(--blue)}
.sort-header span{flex-shrink:0;color:var(--muted)}
.overview-table input[type=checkbox]:disabled{opacity:.35;cursor:not-allowed}
body.dark{--blue:#a9c8e8;--soft:#263747;--muted:#b1bdca}
body.dark button.primary,body.dark .logo{background:#c0d5e8;border-color:#c0d5e8;color:#142536}
body.dark button.primary:hover{background:#d2e2ef;border-color:#d2e2ef}
body.dark button.import-button{background:#c0d5e8;border-color:#c0d5e8;color:#142536}
body.dark button.import-button:hover{background:#d2e2ef;border-color:#d2e2ef}
body.dark a{color:#b9d5ee}
body.dark .home-brand,body.dark .comparison .compare-head .name{color:var(--text)}
body.dark .tinted-button,body.dark .comparison .range-focus b{color:color-mix(in srgb,var(--car) 58%,white)}
body.dark .comparison td b[style]{color:color-mix(in srgb,var(--car) 58%,white)!important}
body.dark input[type=checkbox]{accent-color:#c0d5e8}
@media(max-width:720px){.comparison .range-focus td:first-child{padding-left:12px}}

/* v1.0.6 */
.comparison thead th:not(:first-child){border-top:0;border-bottom:4px solid var(--car)}
.overview-table th:nth-child(8) .sort-header{white-space:nowrap}

/* v1.0.8 editor */
#editor{width:1160px}
#editor .fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
#editor .fields label{min-width:0;line-height:1.45}
#editor .fields input{min-width:0}
.source-card-editor{border:1px solid var(--line);border-radius:12px;background:var(--hover);overflow:hidden}
.source-card-editor .source-editor-head{padding:18px 20px;display:grid;grid-template-columns:1fr auto;gap:10px 20px;align-items:center}
.source-card-editor .source-editor-head>div{display:contents}
.source-card-editor .source-editor-head h3{grid-column:1;grid-row:1;margin:0}
.source-card-editor .source-editor-head small{grid-column:1/-1;grid-row:2;margin:0;white-space:nowrap;font-size:13px}
.source-card-editor .import-button{grid-column:2;grid-row:1}
.source-card-editor .source-input-table{margin:0;border:0;border-radius:0}
.source-card-editor .source-input-row{border-top:1px solid var(--line);background:transparent;padding:18px 20px}
.editor-card{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--hover)}
.editor-card h3{margin:0 0 8px;font-size:15px}.editor-card .fields{margin:16px 0 0}.editor-card input{background:var(--panel)}
#editor .html-import .fields{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:850px){#editor .fields,#editor .html-import .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.source-card-editor .source-editor-head small{white-space:normal}.editor-card{padding:16px}}
@media(max-width:500px){#editor .fields,#editor .html-import .fields{grid-template-columns:1fr}.source-card-editor .source-input-row{padding:16px}.source-card-editor .source-editor-head{padding:16px}}

/* v1.0.9 */
#editor{width:1040px}
.source-card-editor .source-editor-head{display:flex;align-items:center;gap:16px;padding:14px 16px 8px}
.source-card-editor .source-editor-head>div{display:block;min-width:0;flex:1}
.source-card-editor .source-editor-head h3{margin:0 0 4px}
.source-card-editor .source-editor-head small{margin:0;font-size:12px;line-height:1.5;white-space:nowrap}
.source-card-editor .source-input-row{border:0;padding:8px 16px;gap:14px;grid-template-columns:120px minmax(0,1fr)}
.source-card-editor .source-input-row+.source-input-row{border:0;padding-top:4px;padding-bottom:14px}
.source-card-editor .source-input-row input{padding:10px 12px}
.source-card-editor .source-input-row small{margin-top:2px}
.overview-table table{min-width:1240px}
.overview-table .name-col{width:20%}
.overview-table th:nth-child(8) .sort-header{white-space:normal}
.overview-table th:nth-child(9) .sort-header{white-space:nowrap}
.detailstats{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.detailstats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.source-card-editor .source-editor-head small{white-space:normal}}
@media(max-width:720px){.detailstats{grid-template-columns:repeat(2,minmax(0,1fr))}.source-card-editor .source-input-row{grid-template-columns:1fr;gap:6px}}

/* v1.0.10 */
.overview-table .row-actions .icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;flex-shrink:0}
.overview-table .action-col{width:104px}
.overview-table .modelsub{column-gap:6px}
.comparison .model-meta{column-gap:6px}
.detailstats{gap:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.detailstats .stat{background:transparent;border:0;border-radius:0;padding:20px;box-shadow:none}
.detailstats .stat+.stat{border-left:1px solid var(--line)}
@media(max-width:1100px){.detailstats{grid-template-columns:repeat(5,minmax(0,1fr))}.detailstats .stat{padding:16px 12px}.detailstats .stat strong{font-size:20px}}
@media(max-width:800px){.detailstats{grid-template-columns:repeat(2,minmax(0,1fr))}.detailstats .stat{border-bottom:1px solid var(--line)}.detailstats .stat:nth-child(odd){border-left:0}.detailstats .stat:last-child{grid-column:1/-1;border-bottom:0}}

/* v1.0.11 overview groups */
.overview-table{--range-bg:#f0f6fb;--range-head:#e7f0f8;--charge-bg:#f2f7f4;--charge-head:#e8f1eb;--group-edge:#ccd9e3}
body.dark .overview-table{--range-bg:#1e2e3e;--range-head:#24394d;--charge-bg:#20332e;--charge-head:#294039;--group-edge:#425663}
.overview-table .power-col{width:7%}.overview-table .battery-col{width:9%}.overview-table .acceleration-col{width:8%}
.overview-table .range-col{width:12%}.overview-table .efficiency-col{width:9%}.overview-table .charge-col{width:12%}.overview-table .speed-col{width:12%}
.overview-table th:nth-child(6),.overview-table th:nth-child(7){background:var(--range-head)}
.overview-table td:nth-child(6),.overview-table td:nth-child(7){background:var(--range-bg)}
.overview-table th:nth-child(8),.overview-table th:nth-child(9){background:var(--charge-head)}
.overview-table td:nth-child(8),.overview-table td:nth-child(9){background:var(--charge-bg)}
.overview-table th:nth-child(6),.overview-table td:nth-child(6),.overview-table th:nth-child(8),.overview-table td:nth-child(8){border-left:2px solid var(--group-edge)}
.overview-table th:nth-child(7),.overview-table td:nth-child(7),.overview-table th:nth-child(9),.overview-table td:nth-child(9){border-left:1px solid var(--line);border-right:2px solid var(--group-edge)}
.overview-table tbody tr:hover td:nth-child(6),.overview-table tbody tr:hover td:nth-child(7){background:var(--range-head)}
.overview-table tbody tr:hover td:nth-child(8),.overview-table tbody tr:hover td:nth-child(9){background:var(--charge-head)}

/* v1.0.12 softer overview groups */
.overview-table{--range-bg:#f8fafc;--range-head:#f2f6fa;--charge-bg:#f8fbf9;--charge-head:#f2f7f4}
body.dark .overview-table{--range-bg:#1a2734;--range-head:#1e2c3a;--charge-bg:#1a2a30;--charge-head:#1e2f35}
.overview-table .range-col,.overview-table .efficiency-col,.overview-table .charge-col,.overview-table .speed-col{width:11.25%}
.overview-table th:nth-child(6),.overview-table td:nth-child(6),.overview-table th:nth-child(8),.overview-table td:nth-child(8){border-left:0}
.overview-table th:nth-child(7),.overview-table td:nth-child(7),.overview-table th:nth-child(9),.overview-table td:nth-child(9){border-right:0}
.overview-table .action-col{width:120px}
.overview-table td.row-actions{padding-left:24px}

/* v1.0.13 group separator and dark range contrast */
.overview-table th:nth-child(8),.overview-table td:nth-child(8){border-left:1px solid var(--line)}
body.dark .overview-table{--range-bg:#223448;--range-head:#293e54}

/* Compact comparison labels leave equal space for up to four cars. */
.comparison th:first-child{width:170px}
.comparison th:first-child,.comparison td:first-child{padding-left:16px;padding-right:12px;overflow-wrap:normal}
.comparison .range-focus td:first-child{padding-left:16px}
@media(max-width:720px){.comparison th:first-child{width:135px}.comparison th:first-child,.comparison td:first-child,.comparison .range-focus td:first-child{padding-left:12px;padding-right:10px}}

/* v1.0.15 comparison proportions and quieter typography */
.comparison th:first-child{width:230px}
.comparison .compare-identity .name{font-size:17px;line-height:1.35}
.comparison .range-focus b{font-size:20px}
.comparison .charge-range-focus td:not(:first-child){background:color-mix(in srgb,var(--car) 4%,var(--panel))}
.comparison-four th:first-child{width:250px}
.comparison-four th:not(:first-child),.comparison-four td:not(:first-child){padding-left:16px;padding-right:16px}
@media(max-width:720px){.comparison th:first-child,.comparison-four th:first-child{width:205px}.comparison table{min-width:700px}.comparison-four table{min-width:940px}.comparison .range-focus b{font-size:20px}}

/* Comparison subtitles */
.comparison td small{font-size:12px}

.overview-filters{flex-wrap:wrap;justify-content:flex-end}
.body-filter{white-space:nowrap}
.fields select{display:block;width:100%;margin-top:7px}
@media(max-width:720px){.overview-filters{justify-content:flex-start}.body-filter button{padding-inline:9px}}
