:root {
    color-scheme: light;
    --ink: #111820;
    --ink-2: #1b2631;
    --ink-3: #293744;
    --paper: #f4f6f7;
    --surface: #ffffff;
    --surface-soft: #e9edef;
    --line: #d6dde1;
    --line-strong: #aeb9c0;
    --text: #17202a;
    --muted: #687680;
    --blue: #1262a3;
    --blue-soft: #e6f1f8;
    --green: #14805e;
    --amber: #bd7419;
    --teal: #137c78;
    --red: #c43a3a;
    --focus: #1873bd;
    font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--text); }
button, input, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, a, select { touch-action: manipulation; }
[hidden] { display: none !important; }
svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 1000; padding: 12px 18px; background: #fff; color: #000; text-decoration: none; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.skip-link:focus { top: 20px; }
.page-shell { min-height: 100vh; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(430px, .65fr); background: var(--surface); }
.auth-visual { position: relative; min-height: 100vh; padding: 38px clamp(38px, 4.2vw, 72px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background: var(--ink); isolation: isolate; }
.auth-visual::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(13,22,30,.18), rgba(13,22,30,.48)), url("/assets/tool-portal/vag-login-background.png?v=20261120-1") center / cover no-repeat; filter: saturate(.68) contrast(1.04); }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,18,23,.32) 0%, rgba(12,18,23,.14) 40%, rgba(11,18,24,.9) 100%); }
.visual-brand, .workspace-brand, .mobile-brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand-symbol { width: 52px; height: 52px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid currentColor; background: rgba(15,23,30,.25); font-size: 15px; font-weight: 800; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 21px; line-height: 1.2; }
.brand-copy small { margin-top: 4px; color: #bac4ca; font-size: 11px; }
.visual-copy { width: min(780px, 90%); padding: 13vh 0 7vh; }
.eyebrow { margin: 0 0 18px; color: #75b9e8; font: 750 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.visual-copy h1 { margin: 0; max-width: 820px; font-size: clamp(54px, 6.1vw, 104px); font-weight: 560; line-height: .98; letter-spacing: 0; }
.visual-copy > p:not(.eyebrow) { max-width: 650px; margin: 28px 0 0; color: #c8d0d5; font-size: 17px; line-height: 1.75; }
.service-index { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 9px; }
.service-index span { min-width: 134px; padding: 11px 14px; display: inline-flex; gap: 12px; border: 1px solid rgba(255,255,255,.24); background: rgba(10,17,22,.42); color: #dce3e7; font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.service-index b { color: #75b9e8; font-weight: 700; }
.visual-footer { display: flex; justify-content: space-between; gap: 20px; color: #87969f; font: 700 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }

.auth-side { position: relative; min-height: 100vh; padding: 112px clamp(34px, 4vw, 76px) 42px; display: flex; align-items: center; background: var(--surface); }
.auth-toolbar { position: absolute; top: 28px; right: clamp(34px, 4vw, 76px); left: clamp(34px, 4vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.service-state, .service-online, .available { display: inline-flex; align-items: center; gap: 9px; }
.service-state { color: var(--muted); font-size: 12px; }
.service-state i, .service-online i, .available i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(20,128,94,.09); }
.language-control { position: relative; min-width: 148px; height: 44px; display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.language-control > svg { position: absolute; left: 12px; width: 17px; color: var(--muted); pointer-events: none; }
.language-control .chevron { right: 11px; left: auto; width: 14px; }
.language-control select { width: 100%; height: 100%; padding: 0 34px 0 38px; appearance: none; border: 0; outline: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.language-control:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(24,115,189,.14); }
.auth-panel { width: 100%; max-width: 480px; margin: auto; }
.section-number { display: block; margin-bottom: 54px; color: #97a3aa; font: 700 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.auth-heading { margin-bottom: 34px; }
.auth-heading .eyebrow { margin-bottom: 12px; color: var(--blue); }
.auth-heading h2 { margin: 0; color: var(--ink); font-size: 44px; line-height: 1.1; letter-spacing: 0; }
.auth-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-form { display: grid; gap: 9px; }
.auth-form label { margin-top: 9px; color: #44515a; font-size: 12px; font-weight: 700; }
.input-shell { position: relative; min-height: 52px; display: flex; align-items: center; border: 1px solid var(--line); background: #fbfcfc; transition: border-color .18s, box-shadow .18s, background .18s; }
.input-shell > svg { position: absolute; left: 15px; width: 18px; color: #7d8b94; pointer-events: none; }
.input-shell:focus-within { border-color: var(--focus); background: #fff; box-shadow: 0 0 0 3px rgba(24,115,189,.12); }
.input-shell input { width: 100%; min-height: 50px; padding: 0 46px; border: 0; outline: 0; background: transparent; font-size: 14px; }
.input-shell input::placeholder { color: #9ca7ad; }
.password-toggle { position: absolute; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #78868e; cursor: pointer; }
.password-toggle:hover, .password-toggle.is-visible { color: var(--blue); }
.password-toggle svg { width: 18px; }
.primary-button { min-height: 54px; margin-top: 20px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font-size: 14px; font-weight: 750; transition: background .18s, transform .18s; }
.primary-button:hover { background: var(--blue); border-color: var(--blue); }
.primary-button:active { transform: scale(.99); }
.primary-button svg { width: 19px; }
.auth-message { min-height: 20px; margin: 13px 0 0; font-size: 12px; }
.auth-message.success { color: var(--green); }
.auth-message.error { color: var(--red); }
.text-button { min-height: 44px; margin: 4px auto 0; padding: 8px 12px; display: block; border: 0; background: transparent; color: #52616a; cursor: pointer; font-size: 13px; }
.text-button:hover { color: var(--blue); }
.security-copy { margin-top: 28px; padding-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid var(--line); color: #8b969d; font-size: 11px; }
.security-copy svg { width: 16px; color: var(--green); }

.workspace-view { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); background: #f4f7fb; }
.workspace-rail { position: sticky; top: 0; z-index: 30; height: 100vh; padding: 16px 12px 14px; display: flex; flex-direction: column; border-right: 1px solid #e1e7ee; background: #fff; color: var(--text); box-shadow: 4px 0 18px rgba(33,52,72,.025); }
.workspace-brand { min-height: 64px; padding: 4px 6px 16px; border-bottom: 1px solid #edf0f4; }
.workspace-brand .brand-symbol { width: 38px; height: 38px; border: 0; border-radius: 6px; background: linear-gradient(145deg,#246bfd,#19bdb7); color: #fff; box-shadow: 0 6px 14px rgba(36,107,253,.18); }
.workspace-brand .brand-copy strong { color: #121a23; font-size: 16px; }
.workspace-brand .brand-copy small { margin-top: 2px; color: #8a96a1; font-size: 9px; }
.brand-symbol.small { width: 44px; height: 44px; font-size: 13px; }
.rail-console { min-height: 44px; margin: 14px 0 10px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border-radius: 6px; background: linear-gradient(90deg,#12aa9f,#21c9c1); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 7px 18px rgba(18,170,159,.17); }
.rail-console svg { width: 17px; }
.workspace-nav { min-height: 0; display: grid; gap: 3px; overflow-y: auto; scrollbar-width: thin; }
.workspace-nav .nav-label { margin: 12px 12px 4px; color: #a0aab3; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.workspace-nav button { position: relative; width: 100%; min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 5px; background: transparent; color: #4e5a65; cursor: pointer; text-align: left; font-size: 12px; font-weight: 650; transition: color .18s, background .18s; }
.workspace-nav button::before { content: ""; position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.workspace-nav button:hover { background: #f5f7fb; color: #175ec4; }
.workspace-nav button.active { background: #edf3ff; color: #145dc6; }
.workspace-nav button.active::before { background: #246bfd; }
.workspace-nav svg { width: 17px; flex: 0 0 auto; }
.workspace-nav .nav-chevron { width: 14px; margin-left: auto; color: #89959e; transition: transform .18s ease; }
.workspace-nav button[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); color: #246bfd; }
.workspace-nav button:focus-visible { outline: 2px solid #246bfd; outline-offset: -2px; }
.service-subnav { display: none; margin: 0 0 3px 30px; padding-left: 9px; border-left: 1px solid #dbe4ee; }
.service-subnav[hidden] { display: none !important; }
.workspace-nav > button[aria-expanded="true"] + .service-subnav { display: grid; gap: 2px; }
.workspace-nav .service-subnav button { min-height: 44px; padding: 0 8px; color: #6b7883; font-size: 11px; font-weight: 600; }
.workspace-nav .service-subnav button::before { display: none; }
.workspace-nav .service-subnav button.active { background: transparent; color: #246bfd; }
.workspace-nav .service-subnav button.active span::before { content: ""; width: 5px; height: 5px; margin-right: 8px; display: inline-block; border-radius: 50%; background: #246bfd; vertical-align: 1px; }
.rail-collapse { min-height: 42px; margin-top: auto; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 0; border-top: 1px solid #edf0f4; background: transparent; color: #7f8b95; cursor: pointer; font-size: 11px; }
.rail-collapse:hover { color: #145dc6; }
.rail-collapse svg { width: 16px; }
.workspace-main { min-width: 0; }
.workspace-header { position: sticky; top: 0; z-index: 20; min-height: 64px; padding: 0 clamp(20px, 2.3vw, 38px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e3e9ef; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.header-location { display: flex; align-items: center; gap: 10px; }
.header-location strong { color: #202a34; font-size: 13px; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #52606b; cursor: pointer; }
.mobile-nav-button { display: none; }
.workspace-actions { display: flex; align-items: center; gap: 10px; }
.header-status { display: inline-flex; align-items: center; gap: 8px; color: #208064; font-size: 11px; font-weight: 700; }
.header-status i { width: 7px; height: 7px; border-radius: 50%; background: #1aaa7f; box-shadow: 0 0 0 4px rgba(26,170,127,.09); }
.language-control.compact { min-width: 130px; height: 40px; border-color: #e0e6ec; border-radius: 5px; }
.account-block { min-width: 96px; padding: 0 13px; display: grid; gap: 2px; border-left: 1px solid #e5eaef; }
.account-name { color: #26313b; font-size: 11px; font-weight: 750; }
.points { color: #246bfd; font-size: 10px; font-weight: 700; }
.secondary-button { min-height: 40px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dce3ea; border-radius: 5px; background: #fff; color: #53606b; cursor: pointer; font-size: 11px; font-weight: 700; }
.secondary-button:hover { border-color: #bdc8d2; background: #f7f9fb; color: #1d2730; }
.secondary-button svg { width: 16px; }
.workspace-content { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 24px; }
.workspace-pane { animation: pane-in .18s ease-out; }
@keyframes pane-in { from { transform: translateY(5px); } to { transform: translateY(0); } }
.page-heading { display: flex; align-items: center; gap: 14px; }
.heading-icon { width: 48px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #e9efff; color: #246bfd; font-size: 18px; font-weight: 850; }
.heading-icon svg { width: 21px; }
.heading-icon.amber { background: #fff3e5; color: #b96d13; }
.heading-icon.teal { background: #e5f7f4; color: #087a72; }
.heading-icon.blue { background: #e9efff; color: #145fc6; }
.heading-icon.violet { background: #f1eefe; color: #6652b9; }
.heading-icon.dark { background: #e9edf1; color: #26333d; font-size: 12px; }
.heading-icon.macro { background: #e9f4ee; color: #25724b; font-size: 12px; }
.heading-icon.firmware { background: #fbeceb; color: #ad4038; font-size: 11px; }
.page-heading p { margin: 0 0 3px; color: #246bfd; font: 750 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.page-heading h1, .page-heading h2 { margin: 0; color: #111923; font-size: 25px; line-height: 1.2; letter-spacing: 0; }
.page-heading > div > span { display: block; margin-top: 5px; color: #7c8993; font-size: 12px; line-height: 1.55; }
.overview-strip { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #e1e7ee; border-radius: 6px; background: #fff; box-shadow: 0 5px 18px rgba(35,55,74,.035); }
.overview-strip > div { min-height: 74px; padding: 14px 18px; display: grid; gap: 5px; border-right: 1px solid #e7ecf1; }
.overview-strip > div:last-child { border-right: 0; }
.overview-strip span { color: #929ea7; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.overview-strip strong { color: #17212b; font-size: 18px; font-variant-numeric: tabular-nums; }
.overview-strip .status-text { color: #16805f; font-size: 13px; }
.tool-section { margin-top: 24px; padding-top: 18px; border-top: 3px solid #81b8ff; }
.section-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; color: #19232d; font-size: 16px; }
.section-heading p { margin: 4px 0 0; color: #8a969f; font-size: 11px; }
.section-count { color: #8c98a2; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { --accent: #246bfd; min-height: 268px; padding: 18px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0e6ed; border-radius: 6px; background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 6px 20px rgba(37,56,75,.035); transition: transform .2s, border-color .2s, box-shadow .2s; }
.tool-card.accent-amber { --accent: #c17819; }
.tool-card.accent-teal { --accent: #0d9188; }
.tool-card.accent-blue { --accent: #246bfd; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 28px rgba(30,66,102,.08); }
.tool-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-letter { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 6px; background: #fff; color: var(--accent); font-size: 18px; font-weight: 850; }
.tool-body { margin-top: 26px; }
.tool-code { margin: 0 0 8px; color: var(--accent); font: 750 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }
.tool-card h3 { margin: 0; color: #121b24; font-size: 21px; line-height: 1.25; }
.tool-description { margin: 12px 0 0; color: #687681; font-size: 12px; line-height: 1.7; }
.tool-footer { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e6ebf0; color: #1f68cb; }
.available { color: #148060; font-size: 10px; font-weight: 750; }
.tool-footer strong { color: inherit; font-size: 11px; }
.tool-footer svg { width: 16px; }
.service-page-heading { margin-bottom: 22px; }
.service-work-area { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); gap: 16px; }
.service-access, .service-summary, .account-panel { border: 1px solid #e0e6ed; border-radius: 6px; background: #fff; box-shadow: 0 6px 20px rgba(37,56,75,.035); }
.service-access { min-height: 360px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; border-top: 3px solid #75b2ff; }
.service-access-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.service-mark { padding: 7px 10px; border-radius: 4px; background: #fff3e5; color: #ad6510; font: 800 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.service-mark.teal { background: #e5f7f4; color: #087a72; }
.service-mark.blue { background: #e9efff; color: #145fc6; }
.service-access h3 { margin: 64px 0 10px; color: #151e27; font-size: 28px; }
.service-access > p { max-width: 620px; margin: 0; color: #6e7b85; font-size: 13px; line-height: 1.75; }
.workspace-primary { min-width: 180px; min-height: 46px; margin-top: auto; padding: 0 18px; border: 0; border-radius: 5px; background: #246bfd; color: #fff; cursor: pointer; font-weight: 750; box-shadow: 0 8px 18px rgba(36,107,253,.2); }
.workspace-primary:hover { background: #1558c7; }
.service-summary { padding: 22px; }
.service-summary h3 { margin: 0 0 18px; color: #52606b; font: 750 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }
.service-summary dl { margin: 0; }
.service-summary dl div { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e7ecf1; }
.service-summary dt { color: #929da6; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.service-summary dd { margin: 0; color: #25303a; font-size: 12px; font-weight: 750; }
.service-summary dd.success { color: #12805e; }
.xml-work-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
.xml-task-form, .xml-side-panel, .records-panel, .results-panel { border: 1px solid #e0e6ed; border-radius: 6px; background: #fff; box-shadow: 0 6px 20px rgba(37,56,75,.035); }
.xml-task-form { overflow: hidden; border-top: 3px solid #75b2ff; }
.panel-heading { min-height: 70px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e7ecf1; }
.panel-heading h2 { margin: 0; color: #17212b; font-size: 15px; }
.panel-heading p { margin: 5px 0 0; color: #88949d; font-size: 10px; line-height: 1.5; }
.form-section { margin: 0; padding: 20px; border: 0; border-bottom: 1px solid #e8edf2; }
.form-section legend { width: 100%; margin: 0 0 14px; padding: 0; display: flex; align-items: center; gap: 9px; color: #26313a; font-size: 12px; }
.form-section legend > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; background: #edf3ff; color: #246bfd; font: 750 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.xml-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-group { position: relative; display: grid; gap: 7px; }
.field-group > span:first-child, .ecu-row label > span { color: #46535e; font-size: 10px; font-weight: 700; }
.field-group > span:first-child b { color: #d84b4b; }
.field-group input, .field-group select, .ecu-row input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #dce3e9; border-radius: 4px; outline: 0; background: #fafbfd; color: #26313a; font-size: 12px; transition: border-color .18s, box-shadow .18s, background .18s; }
.field-group input:focus, .field-group select:focus, .ecu-row input:focus { border-color: #4c8ff0; background: #fff; box-shadow: 0 0 0 3px rgba(36,107,253,.1); }
.field-group input::placeholder, .ecu-row input::placeholder { color: #a4afb7; }
.field-group small { color: #929da5; font-size: 9px; }
.select-shell { position: relative; display: block; }
.select-shell select { appearance: none; padding-right: 38px; cursor: pointer; }
.select-shell > svg { position: absolute; top: 50%; right: 12px; width: 16px; transform: translateY(-50%); color: #76838d; pointer-events: none; }
.folder-control { min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid #dce3e9; border-radius: 4px; background: #fafbfd; overflow: hidden; }
.folder-location { min-width: 0; padding: 0 12px; display: flex; align-items: center; gap: 9px; color: #34414b; font-size: 11px; }
.folder-location svg { width: 17px; flex: 0 0 auto; color: #246bfd; }
.folder-location b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-button { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-left: 1px solid #dce3e9; background: #fff; color: #246bfd; cursor: pointer; font-size: 10px; font-weight: 750; }
.folder-button:hover { background: #f2f7ff; }
.folder-button svg { width: 16px; }
.download-content-options { margin-top: 18px; padding-top: 16px; display: grid; grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(210px, .75fr)); gap: 12px; border-top: 1px solid #e7ecf1; }
.download-content-options > div { align-self: center; }
.download-content-options > div strong, .download-content-options > div small { display: block; }
.download-content-options > div strong { color: #34414b; font-size: 11px; }
.download-content-options > div small { margin-top: 5px; color: #8d99a2; font-size: 9px; line-height: 1.45; }
.switch-option { min-height: 56px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dce4eb; border-radius: 5px; background: #fafbfd; cursor: pointer; }
.switch-option:hover { border-color: #a9c6eb; background: #f7faff; }
.switch-option > span { min-width: 0; }
.switch-option strong, .switch-option small { display: block; }
.switch-option strong { color: #35424d; font-size: 10px; }
.switch-option small { margin-top: 4px; overflow: hidden; color: #929da6; font: 650 8px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.switch-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch-option i { position: relative; width: 42px; height: 24px; flex: 0 0 auto; border-radius: 12px; background: #bdc6ce; transition: background .18s; }
.switch-option i::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(25,40,54,.25); transition: transform .18s; }
.switch-option input:checked + i { background: #246bfd; }
.switch-option input:checked + i::before { transform: translateX(18px); }
.switch-option input:focus-visible + i { outline: 3px solid rgba(36,107,253,.28); outline-offset: 3px; }
.ecu-toolbar { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ecu-toolbar p { margin: 0; color: #8a969e; font-size: 10px; }
.small-action, .outline-action { min-height: 36px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d7e0e8; border-radius: 4px; background: #fff; color: #3e4c57; cursor: pointer; font-size: 10px; font-weight: 700; }
.small-action:hover, .outline-action:hover { border-color: #79a9e9; color: #246bfd; background: #f7faff; }
.small-action svg, .outline-action svg { width: 15px; }
.outline-action:disabled { opacity: .48; cursor: not-allowed; }
.ecu-rows { display: grid; gap: 12px; }
.ecu-row { border: 1px solid #dde5ec; border-radius: 5px; background: #fbfcfd; overflow: hidden; }
.ecu-row-heading { min-height: 42px; padding: 0 12px 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4eaf0; background: #f5f8fb; }
.ecu-fields { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ecu-row label { display: grid; gap: 7px; min-width: 0; }
.ecu-index { color: #246bfd; font: 750 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.ecu-row input[readonly] { background: #f0f3f6; color: #66737d; cursor: default; }
.remove-ecu { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e0e6eb; border-radius: 4px; background: #fff; color: #8b969f; cursor: pointer; }
.remove-ecu:hover:not(:disabled) { border-color: #efb4b4; color: #c13d3d; background: #fff8f8; }
.remove-ecu:disabled { opacity: .35; cursor: not-allowed; }
.remove-ecu svg { width: 15px; }
.xml-form-actions { min-height: 76px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #fafbfd; }
.xml-form-actions > p { margin: 0; color: #18805f; font-size: 10px; }
.xml-form-actions > div { margin-left: auto; display: flex; gap: 9px; }
.xml-form-actions .workspace-primary { min-width: 150px; min-height: 40px; margin: 0; font-size: 11px; box-shadow: 0 5px 14px rgba(36,107,253,.16); }
.xml-side-panel { align-self: start; }
.xml-side-panel .panel-heading { align-items: flex-start; }
.process-list { margin: 0; padding: 18px 20px; display: grid; gap: 4px; list-style: none; }
.process-list li { position: relative; min-height: 68px; display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; }
.process-list li:not(:last-child)::after { content: ""; position: absolute; top: 30px; bottom: 0; left: 14px; width: 1px; background: #dfe6ec; }
.process-list li > span { width: 30px; height: 30px; display: grid; place-items: center; z-index: 1; border: 1px solid #dce4eb; border-radius: 50%; background: #fff; color: #88949d; font-size: 10px; font-weight: 750; }
.process-list li.active > span { border-color: #79a9ec; background: #edf3ff; color: #246bfd; }
.process-list strong, .process-list small { display: block; }
.process-list strong { margin-top: 3px; color: #35414b; font-size: 11px; }
.process-list small { margin-top: 5px; color: #9aa5ad; font: 650 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.privacy-note { margin: 0 20px 20px; padding: 12px; display: flex; align-items: flex-start; gap: 9px; border-radius: 5px; background: #edf8f4; color: #19765b; font-size: 10px; line-height: 1.5; }
.privacy-note svg { width: 16px; flex: 0 0 auto; }
.records-panel, .results-panel { min-height: 410px; border-top: 3px solid #75b2ff; overflow: hidden; }
.records-search { max-width: 720px; padding: 0 18px 10px; display: grid; gap: 6px; }
.records-search > label { color: #687680; font-size: 9px; font-weight: 700; }
.records-search-field { height: 44px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; align-items: center; border: 1px solid #d9e2e9; border-radius: 5px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.records-search-field:focus-within { border-color: #6f9fe3; box-shadow: 0 0 0 3px rgba(36,107,253,.09); }
.records-search-field > svg { width: 16px; margin-left: 12px; color: #7d8993; }
.records-search-field input { min-width: 0; height: 42px; padding: 0 8px; border: 0; outline: 0; background: transparent; color: #283640; font-size: 11px; }
.records-search-field input::placeholder { color: #9aa5ad; }
.records-search-field input::-webkit-search-cancel-button { display: none; }
.records-search-field button { width: 44px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 0 4px 4px 0; background: transparent; color: #7c8993; cursor: pointer; }
.records-search-field button:hover { background: #f2f6fa; color: #246bfd; }
.records-search-field button:focus-visible { outline: 2px solid #246bfd; outline-offset: -3px; }
.records-search-field button svg { width: 15px; }
.table-wrap { overflow-x: auto; }
.records-panel table { width: 100%; border-collapse: collapse; }
.records-panel th, .records-panel td { padding: 14px 18px; border-bottom: 1px solid #e8edf1; text-align: left; }
.records-panel th { background: #fafbfd; color: #8d98a1; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.records-panel td { color: #34414b; font-size: 11px; }
.records-panel table { min-width: 1160px; }
.records-panel .control-unit-name { max-width: 300px; overflow-wrap: anywhere; color: #24547f; font: 650 10px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.panel-actions { display: flex; align-items: center; gap: 8px; }
.icon-action { width: 44px; min-height: 44px; padding: 0; }
.records-message { min-height: 18px; margin: 0; padding: 8px 18px 0; color: #65737e; font-size: 10px; }
.content-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.content-tag { padding: 4px 7px; border: 1px solid #c7d8ef; border-radius: 10px; background: #edf4ff; color: #1c62bd; font-size: 8px; font-weight: 750; white-space: nowrap; }
.content-tag.excluded { border-color: #dce2e7; background: #f4f6f7; color: #8b969f; text-decoration: line-through; }
.record-actions { display: flex; align-items: center; gap: 7px; }
.record-action { min-height: 36px; padding: 0 10px; border: 1px solid #d6e0e8; border-radius: 4px; background: #fff; color: #52616c; cursor: pointer; font-size: 9px; font-weight: 750; }
.record-action:hover { border-color: #83afe9; background: #f6f9ff; color: #1d63c2; }
.record-action.download { border-color: #b9cff0; color: #1c65c7; }
.record-action:disabled { opacity: .5; cursor: wait; }
.records-pagination { min-height: 60px; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e8edf1; background: #fafbfd; }
.records-pagination span { color: #7c8993; font-size: 10px; }
.empty-row td { height: 280px; text-align: center; }
.empty-row svg { width: 34px; color: #a6b2bb; }
.empty-row strong, .empty-row span { display: block; }
.empty-row strong { margin-top: 11px; color: #4c5963; font-size: 12px; }
.empty-row span { margin-top: 5px; color: #939fa7; font-size: 10px; }
.task-status { padding: 5px 8px; border-radius: 10px; background: #edf8f4; color: #14775a; font-size: 9px; font-weight: 750; }
.results-panel .outline-action { min-width: 76px; }
.result-empty { min-height: 330px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #edf3ff; color: #246bfd; }
.empty-icon svg { width: 24px; }
.result-empty strong { margin-top: 15px; color: #40505b; font-size: 13px; }
.result-empty p { max-width: 480px; margin: 7px 20px 0; color: #8b979f; font-size: 10px; line-height: 1.65; }
.download-detail-dialog { width: min(980px, calc(100vw - 40px)); max-height: min(860px, calc(100dvh - 40px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid #d9e1e8; border-radius: 7px; background: #fff; color: #26313a; box-shadow: 0 24px 70px rgba(22,39,55,.22); }
.download-detail-dialog::backdrop { background: rgba(20,33,45,.48); backdrop-filter: blur(2px); }
.download-detail-shell { max-height: min(860px, calc(100dvh - 40px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.download-detail-shell > header { min-height: 72px; padding: 14px 18px 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e4eaf0; }
.download-detail-shell > header p { margin: 0 0 4px; color: #246bfd; font: 750 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.download-detail-shell > header h2 { margin: 0; color: #18222c; font-size: 17px; }
.download-detail-body { min-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.detail-loading, .detail-error, .detail-empty { margin: 0; padding: 42px 22px; color: #7d8992; font-size: 11px; text-align: center; }
.detail-error { color: #b53c3c; }
.detail-summary { padding: 18px 22px; border-bottom: 1px solid #e5ebf0; background: #fafbfd; }
.detail-meta, .detail-inline-meta { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.detail-meta > div, .detail-inline-meta > div { min-width: 0; }
.detail-meta dt, .detail-inline-meta dt { color: #8d98a1; font-size: 8px; font-weight: 700; }
.detail-meta dd, .detail-inline-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #26323c; font-size: 10px; font-weight: 700; }
.detail-choices { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.detail-section { padding: 18px 22px; border-bottom: 1px solid #e5ebf0; }
.detail-section:last-child { border-bottom: 0; }
.detail-section-heading { margin-bottom: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.detail-section-heading h3 { margin: 0; color: #283640; font-size: 12px; }
.detail-section-heading span { color: #86929b; font-size: 9px; }
.detail-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #e0e6ec; border-radius: 4px; }
.detail-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.detail-table th, .detail-table td { padding: 10px 12px; border-bottom: 1px solid #e7ecf1; text-align: left; }
.detail-table tr:last-child td { border-bottom: 0; }
.detail-table tr.is-excluded td { background: #fafbfc; color: #8c979f; text-decoration: line-through; }
.detail-table th { background: #f7f9fb; color: #84919a; font: 700 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.detail-table td { color: #3c4953; font-size: 9px; }
.detail-table td:first-child { max-width: 480px; overflow-wrap: anywhere; }
.calibration-table { min-width: 680px; }
.coding-detail-item { padding: 12px 0; border-top: 1px solid #e6ebf0; }
.coding-detail-item:first-of-type { border-top: 0; }
.coding-value { margin-top: 10px; padding: 10px 12px; display: block; overflow-wrap: anywhere; border: 1px solid #e0e6ec; border-radius: 4px; background: #f7f9fb; color: #1e527f; font: 600 9px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.download-detail-shell > footer { min-height: 68px; padding: 10px 18px 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #e0e6ec; background: #fafbfd; }
.download-detail-shell > footer > span { color: #b33d3d; font-size: 10px; }
.download-detail-shell > footer .workspace-primary { min-height: 42px; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.download-detail-shell > footer .workspace-primary svg { width: 16px; }
.tool-panel { border: 1px solid #e0e6ed; border-top: 3px solid #75b2ff; border-radius: 6px; background: #fff; box-shadow: 0 6px 20px rgba(37,56,75,.035); overflow: hidden; }
.tool-panel-accent-teal { border-top-color: #28b6a9; }
.tool-panel-accent-amber { border-top-color: #e6a247; }
.tool-panel-accent-violet { border-top-color: #7666c9; }
.tool-panel-accent-dark { border-top-color: #35424d; }
.tool-panel-accent-macro { border-top-color: #3b9465; }
.local-badge { padding: 6px 9px; border-radius: 4px; background: #eef1f4; color: #53616c; font: 800 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-form { padding: 22px; border-bottom: 1px solid #e7ecf1; }
.tool-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-form-actions { min-height: 62px; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tool-form-actions p { margin: 0; color: #66747f; font-size: 10px; }
.tool-form-actions .workspace-primary { min-width: 174px; min-height: 42px; margin: 0; font-size: 11px; }
.tool-result-empty { min-height: 250px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.tool-result-empty strong { margin-top: 13px; color: #42515c; font-size: 13px; }
.tool-result-empty p { margin: 6px 20px 0; color: #8b979f; font-size: 10px; }
.tool-result-empty.validated { background: #fbfdfd; }
.tool-result-empty.validated .empty-icon { background: #e8f7f3; color: #138272; }
.pr-live-result { min-height: 250px; border-top: 1px solid #e4eaf0; background: #fff; }
.pr-live-summary { padding: 16px 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: #e4eaf0; }
.pr-live-summary > div { min-width: 0; min-height: 68px; padding: 13px 14px; display: grid; align-content: start; gap: 6px; background: #fafbfd; }
.pr-live-summary span { color: #87939d; font-size: 9px; }
.pr-live-summary strong { min-width: 0; color: #27343e; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.pr-live-note { grid-column: 1 / -1; margin: 0; padding: 11px 14px; background: #f4f7f9; color: #687681; font-size: 10px; line-height: 1.6; }
.pr-live-result table { width: 100%; min-width: 760px; border-collapse: collapse; }
.pr-live-result th, .pr-live-result td { padding: 11px 16px; border-bottom: 1px solid #e8edf1; color: #45525c; font-size: 10px; text-align: left; }
.pr-live-result th { background: #fafbfd; color: #8d98a1; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.command-result { min-height: 126px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fafbfd; }
.command-result > div span, .command-result > div strong { display: block; }
.command-result > div span { color: #7e8b95; font-size: 10px; font-weight: 700; }
.command-result > div strong { margin-top: 10px; color: #17212a; font: 800 clamp(18px, 2.2vw, 28px) ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.compare-form { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; border-bottom: 1px solid #e7ecf1; }
.compare-form label { display: grid; gap: 7px; }
.compare-form label > span { color: #687681; font: 750 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.compare-form textarea { width: 100%; min-height: 92px; padding: 12px; resize: vertical; border: 1px solid #dce3e9; border-radius: 4px; outline: 0; background: #fafbfd; color: #26313a; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.compare-form textarea:focus { border-color: #4c8ff0; background: #fff; box-shadow: 0 0 0 3px rgba(36,107,253,.1); }
.compare-form .workspace-primary { min-width: 110px; margin: 22px 0 0; align-self: stretch; }
.compare-layout { min-height: 380px; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.compare-history { padding: 18px; border-right: 1px solid #e4eaf0; background: #fafbfd; }
.compare-history h3, .compare-result h3, .byte-workspace h3 { margin: 0 0 14px; color: #5e6b76; font-size: 10px; }
.history-list { display: grid; gap: 6px; }
.history-list > p { color: #98a3ab; font-size: 10px; }
.history-list button { min-height: 48px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #e0e6ec; border-radius: 4px; background: #fff; color: #55636e; cursor: pointer; text-align: left; }
.history-list button:hover { border-color: #9f95dc; background: #fbfaff; }
.history-list button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.history-list button b { flex: 0 0 auto; color: #6857bb; font-size: 10px; }
.compare-result { min-width: 0; padding: 18px; }
.compare-result h3 { display: flex; align-items: center; justify-content: space-between; }
.compare-result h3 b { min-width: 28px; padding: 5px 8px; border-radius: 12px; background: #f0edfd; color: #6552b8; text-align: center; }
.comparison-empty { min-height: 270px; display: grid; place-items: center; color: #98a3ab; font-size: 11px; }
#differenceTable { width: 100%; border-collapse: collapse; }
#differenceTable th, #differenceTable td { padding: 13px 12px; border-bottom: 1px solid #e8edf1; text-align: left; }
#differenceTable th { color: #8c98a1; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
#differenceTable td { color: #35424c; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
#differenceTable td:nth-child(2) { color: #b54747; }
#differenceTable td:nth-child(3) { color: #168061; }
.coding-parse-form { padding: 20px; display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto auto; gap: 10px; align-items: end; border-bottom: 1px solid #e7ecf1; }
.coding-parse-form .workspace-primary { min-width: 100px; min-height: 44px; margin: 0; }
.coding-parse-form .outline-action { min-height: 44px; }
.byte-toolbar { min-height: 72px; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e4eaf0; background: #fafbfd; }
.byte-toolbar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.small-action.danger:hover { border-color: #e7aaaa; color: #b83e3e; background: #fff8f8; }
.byte-toolbar label { min-width: min(430px, 45%); display: flex; align-items: center; gap: 10px; color: #687681; font-size: 10px; font-weight: 700; }
.byte-toolbar input { min-width: 0; min-height: 38px; flex: 1; padding: 0 10px; border: 1px solid #dce3e9; border-radius: 4px; background: #fff; color: #26313a; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.byte-workspace { min-height: 470px; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.byte-workspace > aside { padding: 18px; border-right: 1px solid #e4eaf0; background: #fafbfd; }
.byte-list { max-height: 430px; display: grid; gap: 5px; overflow-y: auto; }
.byte-list button { min-height: 42px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; border: 1px solid transparent; border-radius: 4px; background: #fff; color: #64727d; cursor: pointer; }
.byte-list button:hover { border-color: #cad5df; }
.byte-list button.active { border-color: #8da8bf; background: #eef3f7; color: #26343f; }
.byte-list button span { font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.byte-list button b { font: 800 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.bit-editor { min-width: 0; padding: 22px; }
.byte-summary { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: center; }
.byte-summary > strong { min-height: 58px; display: grid; place-items: center; border-radius: 5px; background: #17212a; color: #57e3bd; font: 800 16px ui-monospace, SFMono-Regular, Consolas, monospace; }
.byte-summary dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.byte-summary dl div { min-height: 58px; padding: 9px 12px; border: 1px solid #e0e6ec; border-radius: 5px; background: #fafbfd; }
.byte-summary dt { color: #8c98a1; font: 700 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
.byte-summary dd { margin: 7px 0 0; color: #26343f; font: 800 14px ui-monospace, SFMono-Regular, Consolas, monospace; }
.bit-editor fieldset { margin: 20px 0; padding: 16px; border: 1px solid #e0e6ec; border-radius: 5px; }
.bit-editor legend { padding: 0 6px; color: #53616c; font-size: 11px; font-weight: 750; }
.bit-editor fieldset p { margin: 0 0 13px; color: #8a969f; font-size: 9px; }
.bit-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bit-controls label { min-height: 38px; padding: 0 10px; display: flex; align-items: center; border: 1px solid #e1e7ec; border-radius: 4px; background: #fafbfd; color: #43515c; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; cursor: pointer; }
.bit-controls input { accent-color: #246bfd; }
.bit-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.bit-rows > div { min-height: 38px; padding: 0 10px; display: grid; grid-template-columns: 54px 28px 1fr; align-items: center; border-bottom: 1px solid #e8edf1; }
.bit-rows span { color: #3c4a55; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.bit-rows b { width: 24px; padding: 4px; background: #27313a; color: #fff; text-align: center; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.bit-rows small { color: #7f8c95; font-size: 9px; }
.macro-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr); gap: 16px; align-items: start; }
.macro-builder { min-width: 0; }
.macro-import { padding: 20px; border-bottom: 1px solid #e7ecf1; }
.upload-zone { min-height: 112px; padding: 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed #aebdca; border-radius: 5px; background: #fafcfd; color: #51616d; cursor: pointer; text-align: center; transition: border-color .18s, background .18s, color .18s; }
.upload-zone:hover { border-color: #3b9465; background: #f5fbf7; color: #25724b; }
.upload-zone:focus-visible { outline: 2px solid #246bfd; outline-offset: 3px; }
.upload-zone.is-dragging { border-color: #24794f; background: #edf8f1; color: #17633e; box-shadow: inset 0 0 0 2px rgba(36,121,79,.12); }
.upload-zone.is-invalid { border-color: #c34d4d; background: #fff8f8; color: #a63737; }
.upload-zone.is-dragging svg { transform: translateY(-3px); }
.upload-zone svg { width: 25px; margin-bottom: 9px; transition: transform .18s ease; }
.upload-zone strong { font-size: 12px; }
.upload-zone span { margin-top: 5px; color: #8b98a1; font-size: 9px; }
.file-summary { min-height: 28px; margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #87949d; font-size: 9px; }
.file-chip { max-width: 100%; padding: 6px 8px; overflow: hidden; border: 1px solid #dce8e1; border-radius: 4px; background: #f4faf6; color: #347153; text-overflow: ellipsis; white-space: nowrap; }
.macro-form .form-section { padding-bottom: 22px; }
.macro-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-group.is-disabled { opacity: .52; }
.macro-options { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.macro-options label, .macro-confirm label { display: flex; align-items: flex-start; gap: 8px; color: #52616c; cursor: pointer; font-size: 10px; line-height: 1.55; }
.macro-options input, .macro-confirm input { margin-top: 1px; accent-color: #246bfd; }
.macro-items-heading { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.macro-items-heading p { margin: 0; color: #89959e; font-size: 9px; }
.macro-items { display: grid; gap: 8px; }
.macro-item { padding: 10px; display: grid; grid-template-columns: 34px minmax(120px, .6fr) minmax(190px, 1fr) minmax(130px, .7fr) 36px; gap: 9px; align-items: end; border: 1px solid #dde5eb; border-radius: 5px; background: #fbfcfd; }
.macro-item-index { width: 30px; height: 30px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 4px; background: #e9f4ee; color: #26724c; font: 750 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.macro-item label { min-width: 0; display: grid; gap: 6px; }
.macro-item label span { color: #687681; font-size: 9px; font-weight: 700; }
.macro-item input { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid #dce3e9; border-radius: 4px; outline: 0; background: #fff; color: #26313a; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.macro-item input:focus { border-color: #4c8ff0; box-shadow: 0 0 0 3px rgba(36,107,253,.1); }
.remove-macro-item { width: 36px; height: 36px; margin-bottom: 3px; display: grid; place-items: center; border: 1px solid #dce3e9; border-radius: 4px; background: #fff; color: #87939c; cursor: pointer; }
.remove-macro-item:hover { border-color: #e1aaaa; background: #fff8f8; color: #b13e3e; }
.remove-macro-item svg { width: 15px; }
.macro-confirm { padding: 15px 20px; border-bottom: 1px solid #e7ecf1; background: #fff9ed; }
.macro-confirm label { color: #806328; }
.macro-actions > div { display: flex; gap: 8px; }
.macro-preview-panel { position: sticky; top: 82px; border-top-color: #35424d; }
.macro-preview-panel pre { min-height: 570px; max-height: calc(100vh - 250px); margin: 0; padding: 18px; overflow: auto; background: #152029; color: #c6d3dc; font: 10px/1.72 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 4; white-space: pre; }
.macro-download-settings { padding: 12px 16px; display: grid; gap: 6px; border-top: 1px solid #293640; background: #fafbfd; }
.macro-download-settings > label { color: #5f6d77; font-size: 9px; font-weight: 700; }
.macro-download-settings > small { color: #8b969f; font-size: 8px; }
.macro-filename-field { min-width: 0; height: 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; border: 1px solid #dce3e9; border-radius: 4px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.macro-filename-field:focus-within { border-color: #4c8ff0; box-shadow: 0 0 0 3px rgba(36,107,253,.1); }
.macro-filename-field input { min-width: 0; height: 40px; padding: 0 11px; border: 0; outline: 0; background: transparent; color: #26313a; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.macro-filename-field input::placeholder { color: #a4afb7; }
.macro-filename-field span { height: 40px; padding: 0 11px; display: flex; align-items: center; border-left: 1px solid #e1e7ed; background: #f3f6f8; color: #52616c; font: 700 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.macro-preview-actions { min-height: 68px; padding: 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; background: #fafbfd; }
.macro-preview-actions .workspace-primary { min-width: 0; min-height: 42px; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; }
.macro-preview-actions svg { width: 15px; }
.firmware-panel { overflow: hidden; border: 1px solid #e0e6ed; border-top: 3px solid #cf5a51; border-radius: 6px; background: #fff; box-shadow: 0 6px 20px rgba(37,56,75,.035); }
.firmware-connection-bar { min-height: 68px; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e7ecf1; background: #fafbfd; }
.firmware-connection-copy { min-width: 0; display: flex; align-items: center; gap: 11px; }
.firmware-connection-copy > div { min-width: 0; display: grid; gap: 4px; }
.firmware-connection-copy strong { color: #27343e; font-size: 11px; }
.firmware-connection-copy small { overflow: hidden; color: #8b969f; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.firmware-connection-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #a6b0b8; box-shadow: 0 0 0 4px #edf0f2; }
.firmware-connection-dot.checking { background: #d0952d; box-shadow: 0 0 0 4px #fbf2df; animation: firmware-pulse 1.2s ease-in-out infinite; }
.firmware-connection-dot.online { background: #17815f; box-shadow: 0 0 0 4px #e5f5ef; }
.firmware-connection-dot.offline { background: #c44848; box-shadow: 0 0 0 4px #fae9e9; }
@keyframes firmware-pulse { 50% { opacity: .45; } }
.icon-action { width: 38px; min-width: 38px; padding: 0; }
.icon-action svg { width: 16px; }
.firmware-search-form { padding: 20px; display: grid; grid-template-columns: 260px minmax(280px, 1fr) 160px; gap: 12px; align-items: end; border-bottom: 1px solid #e7ecf1; }
.firmware-search-input { position: relative; display: block; }
.firmware-search-input > svg { position: absolute; top: 50%; left: 12px; z-index: 1; width: 17px; color: #7d8992; transform: translateY(-50%); pointer-events: none; }
.firmware-search-input input { padding-left: 40px; }
.firmware-search-form .workspace-primary { min-width: 0; min-height: 44px; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; }
.firmware-search-form .workspace-primary svg { width: 16px; }
.firmware-search-form .workspace-primary:disabled { opacity: .55; cursor: wait; }
.firmware-browser-bar { min-height: 50px; padding: 9px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e7ecf1; background: #fff; }
.firmware-breadcrumbs { min-width: 0; display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.firmware-breadcrumbs button { min-height: 30px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: #246bfd; cursor: pointer; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; }
.firmware-breadcrumbs button:hover { background: #edf3ff; }
.firmware-breadcrumbs span { color: #a1abb3; font-size: 10px; }
.firmware-result-count { flex: 0 0 auto; color: #8d98a1; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.firmware-table-wrap { min-height: 410px; overflow-x: auto; }
.firmware-table { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; }
.firmware-table th, .firmware-table td { padding: 13px 16px; border-bottom: 1px solid #e8edf1; text-align: left; }
.firmware-table th { background: #fafbfd; color: #8d98a1; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.firmware-table th:nth-child(1) { width: 31%; }
.firmware-table th:nth-child(2) { width: 28%; }
.firmware-table th:nth-child(3) { width: 12%; }
.firmware-table th:nth-child(4) { width: 18%; }
.firmware-table th:nth-child(5) { width: 11%; }
.firmware-table td { color: #45525c; font-size: 10px; vertical-align: middle; }
.firmware-table td:nth-child(3), .firmware-table td:nth-child(4) { color: #73808a; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.firmware-table td:nth-child(2) strong, .firmware-table td:nth-child(2) small { display: block; }
.firmware-table td:nth-child(2) strong { color: #3b4852; font-size: 10px; }
.firmware-table td:nth-child(2) small { margin-top: 4px; overflow: hidden; color: #929ca4; font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.firmware-name-button, .firmware-file-name { width: 100%; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #26343e; text-align: left; }
.firmware-name-button { padding: 0; cursor: pointer; }
.firmware-name-button:hover strong { color: #246bfd; }
.firmware-name-button strong, .firmware-file-name strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.firmware-file-icon { width: 36px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 4px; background: #edf1f4; color: #5f6d77; font: 800 7px ui-monospace, SFMono-Regular, Consolas, monospace; }
.firmware-file-icon.folder { background: #fff2d9; color: #9a6919; }
.firmware-row-action { min-height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d7e0e8; border-radius: 4px; background: #fff; color: #3f5f7c; cursor: pointer; font-size: 9px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.firmware-row-action:hover { border-color: #79a9e9; background: #f7faff; color: #246bfd; }
.firmware-row-action.download { border-color: #b8d0f3; color: #1c65c7; }
.firmware-state-row td { height: 310px; text-align: center; }
.firmware-state-row strong, .firmware-state-row small { display: block; }
.firmware-state-row strong { margin-top: 13px; color: #46545e; font-size: 12px; }
.firmware-state-row small { max-width: 520px; margin: 6px auto 0; color: #909ba3; font-size: 9px; line-height: 1.6; }
.firmware-spinner { width: 28px; height: 28px; margin: 0 auto; display: block; border: 2px solid #dce4eb; border-top-color: #246bfd; border-radius: 50%; animation: firmware-spin .7s linear infinite; }
@keyframes firmware-spin { to { transform: rotate(360deg); } }
.firmware-pagination { min-height: 58px; padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 14px; border-top: 1px solid #e7ecf1; background: #fafbfd; }
.firmware-pagination[hidden] { display: none; }
.firmware-pagination span { color: #7f8b94; font: 9px ui-monospace, SFMono-Regular, Consolas, monospace; }
.account-panel { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); }
.account-panel > div { min-height: 112px; padding: 22px; display: grid; align-content: center; gap: 8px; border-right: 1px solid #e6ebf0; }
.account-panel > div:last-child { border-right: 0; }
.account-panel span { color: #87939d; font-size: 11px; }
.account-panel strong { color: #17212a; font-size: 15px; }
.workspace-footer { margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #dfe5eb; color: #8a96a0; font: 700 9px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .05em; }
.workspace-view.rail-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.workspace-view.rail-collapsed .workspace-rail { padding-inline: 10px; }
.workspace-view.rail-collapsed .brand-copy, .workspace-view.rail-collapsed .rail-console span, .workspace-view.rail-collapsed .workspace-nav span, .workspace-view.rail-collapsed .rail-collapse span { display: none; }
.workspace-view.rail-collapsed .workspace-brand, .workspace-view.rail-collapsed .rail-console, .workspace-view.rail-collapsed .workspace-nav button, .workspace-view.rail-collapsed .rail-collapse { justify-content: center; padding-inline: 0; }
.workspace-view.rail-collapsed .rail-console { width: 44px; align-self: center; }
.workspace-view.rail-collapsed .workspace-nav .nav-label { height: 8px; margin: 6px 0; }
.workspace-view.rail-collapsed .service-subnav { display: none !important; }
.workspace-view.rail-collapsed .rail-collapse svg { transform: rotate(180deg); }

.primary-button:focus-visible, .secondary-button:focus-visible, .password-toggle:focus-visible, .text-button:focus-visible, .tool-card:focus-visible, .workspace-nav button:focus-visible, .rail-collapse:focus-visible, .workspace-primary:focus-visible, .icon-button:focus-visible, .small-action:focus-visible, .outline-action:focus-visible, .folder-button:focus-visible, .record-action:focus-visible, .firmware-name-button:focus-visible, .firmware-row-action:focus-visible, .firmware-breadcrumbs button:focus-visible, a:focus-visible { outline: 3px solid rgba(36,107,253,.28); outline-offset: 3px; }

@media (max-width: 1180px) {
    .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(400px, .75fr); }
    .workspace-view { grid-template-columns: 210px minmax(0, 1fr); }
    .header-status { display: none; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-live-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xml-work-layout { grid-template-columns: 1fr; }
    .download-content-options { grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(190px, .8fr)); }
    .coding-parse-form { grid-template-columns: minmax(240px, 1fr) 200px auto auto; }
    .macro-layout { grid-template-columns: 1fr; }
    .macro-preview-panel { position: static; }
    .macro-preview-panel pre { min-height: 420px; max-height: 560px; }
    .firmware-search-form { grid-template-columns: 230px minmax(240px, 1fr) 150px; }
    .xml-side-panel { display: grid; grid-template-columns: 1fr 1.3fr .9fr; }
    .xml-side-panel .panel-heading { border-right: 1px solid #e7ecf1; border-bottom: 0; }
    .process-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .process-list li { min-height: 52px; grid-template-columns: 26px 1fr; gap: 7px; }
    .process-list li:not(:last-child)::after { display: none; }
    .process-list li > span { width: 26px; height: 26px; }
    .privacy-note { margin: 14px; align-self: center; }
}

@media (max-width: 820px) {
    .auth-layout { display: block; }
    .auth-visual { min-height: 46vh; padding: 24px; }
    .visual-copy { width: 100%; padding: 86px 0 28px; }
    .visual-copy h1 { font-size: 48px; }
    .visual-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 14px; }
    .service-index, .visual-footer { display: none; }
    .auth-side { min-height: 54vh; padding: 96px 24px 42px; }
    .auth-toolbar { top: 24px; right: 24px; left: 24px; }
    .section-number { margin-bottom: 32px; }
    .auth-heading h2 { font-size: 38px; }
    .workspace-view { display: block; }
    .workspace-rail { position: fixed; left: 0; top: 0; width: 226px; transform: translateX(-105%); transition: transform .22s ease-out; }
    .workspace-rail.mobile-open { transform: translateX(0); box-shadow: 14px 0 40px rgba(30,49,68,.18); }
    .workspace-view.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 25; background: rgba(20,33,45,.28); }
    .workspace-header { min-height: 64px; padding: 10px 16px; }
    .mobile-nav-button { display: grid; }
    .account-block { display: none; }
    .secondary-button { width: 44px; padding: 0; justify-content: center; }
    .secondary-button span { display: none; }
    .workspace-content { width: calc(100% - 32px); padding-top: 24px; }
    .overview-strip { grid-template-columns: repeat(2, 1fr); }
    .overview-strip > div:nth-child(2) { border-right: 0; }
    .overview-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card { min-height: 250px; }
    .service-work-area { grid-template-columns: 1fr; }
    .service-access { min-height: 320px; }
    .account-panel { grid-template-columns: 1fr; }
    .account-panel > div { border-right: 0; border-bottom: 1px solid #e6ebf0; }
    .account-panel > div:last-child { border-bottom: 0; }
    .xml-side-panel { display: block; }
    .xml-side-panel .panel-heading { border-right: 0; border-bottom: 1px solid #e7ecf1; }
    .process-list { grid-template-columns: 1fr; }
    .process-list li { min-height: 64px; grid-template-columns: 30px 1fr; }
    .process-list li:not(:last-child)::after { display: block; top: 30px; left: 14px; }
    .xml-form-grid { grid-template-columns: 1fr; }
    .download-content-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .download-content-options > div { grid-column: 1 / -1; }
    .detail-meta, .detail-inline-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-form-grid { grid-template-columns: 1fr; }
    .pr-live-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .compare-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .coding-parse-form { grid-template-columns: 1fr 1fr; }
    .coding-parse-form .field-group:first-child { grid-column: 1 / -1; }
    .byte-toolbar { align-items: stretch; flex-direction: column; }
    .byte-toolbar label { width: 100%; min-width: 0; }
    .byte-workspace { grid-template-columns: 180px minmax(0, 1fr); }
    .byte-summary { grid-template-columns: 1fr; }
    .macro-item { grid-template-columns: 34px minmax(110px, .55fr) minmax(180px, 1fr) 36px; }
    .macro-item label:nth-of-type(3) { grid-column: 2 / 4; }
    .firmware-search-form { grid-template-columns: 1fr 1.4fr; }
    .firmware-search-form .workspace-primary { grid-column: 1 / -1; }
    .xml-form-actions { align-items: stretch; flex-direction: column; }
    .xml-form-actions > div { width: 100%; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; }
    .xml-form-actions .workspace-primary { width: auto; min-width: 0; }
}

@media (max-width: 520px) {
    .auth-visual { min-height: 43vh; }
    .visual-brand .brand-symbol { width: 44px; height: 44px; }
    .visual-copy { padding-top: 72px; }
    .visual-copy h1 { font-size: 39px; }
    .auth-side { padding-right: 20px; padding-left: 20px; }
    .service-state { display: none; }
    .auth-toolbar { justify-content: flex-end; }
    .language-control { min-width: 142px; }
    .workspace-actions { gap: 8px; }
    .header-location strong { display: none; }
    .language-control.compact { min-width: 120px; }
    .page-heading { align-items: flex-start; }
    .page-heading h1, .page-heading h2 { font-size: 22px; }
    .overview-strip > div { padding-inline: 14px; }
    .service-access { padding: 20px; }
    .service-access h3 { margin-top: 46px; font-size: 24px; }
    .workspace-primary { width: 100%; }
    .panel-heading { padding-inline: 16px; }
    .records-panel .panel-heading { align-items: flex-start; flex-direction: column; }
    .records-panel .panel-actions { width: 100%; }
    .records-panel .panel-actions .outline-action:last-child { flex: 1; min-height: 44px; }
    .records-search { max-width: none; padding-inline: 16px; }
    .records-search-field input { font-size: 16px; }
    .form-section { padding-inline: 16px; }
    .download-content-options { grid-template-columns: 1fr; }
    .download-content-options > div { grid-column: auto; }
    .switch-option { min-height: 64px; }
    .xml-form-actions > div { grid-template-columns: 1fr; }
    .field-group input, .field-group select, .ecu-row input { font-size: 16px; }
    .macro-filename-field input { font-size: 16px; }
    .tool-form-actions, .command-result { align-items: stretch; flex-direction: column; }
    .pr-live-summary { padding: 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-live-summary > div { min-height: 0; }
    .tool-form-actions .workspace-primary { width: 100%; }
    .command-result .outline-action { min-height: 42px; }
    .compare-form { grid-template-columns: 1fr; }
    .compare-form .workspace-primary { min-height: 44px; margin: 0; }
    .compare-layout { grid-template-columns: 1fr; }
    .compare-history { border-right: 0; border-bottom: 1px solid #e4eaf0; }
    .history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coding-parse-form { grid-template-columns: 1fr; }
    .coding-parse-form .field-group:first-child { grid-column: auto; }
    .coding-parse-form input, .coding-parse-form select { font-size: 16px; }
    .byte-workspace { grid-template-columns: 1fr; }
    .byte-workspace > aside { border-right: 0; border-bottom: 1px solid #e4eaf0; }
    .byte-list { max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bit-editor { padding: 16px; }
    .byte-summary dl { grid-template-columns: 1fr; }
    .bit-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bit-rows { grid-template-columns: 1fr; }
    .macro-settings-grid { grid-template-columns: 1fr; }
    .macro-items-heading { align-items: stretch; flex-direction: column; }
    .macro-items-heading .small-action { min-height: 44px; }
    .macro-item { grid-template-columns: 30px minmax(0, 1fr) 36px; align-items: end; }
    .macro-item-index { grid-row: 1 / 2; }
    .macro-item label { grid-column: 1 / -1; }
    .macro-item label:nth-of-type(3) { grid-column: 1 / -1; }
    .remove-macro-item { position: absolute; top: 10px; right: 10px; }
    .macro-item { position: relative; }
    .macro-actions > div { width: 100%; display: grid; grid-template-columns: 1fr; }
    .macro-preview-actions { grid-template-columns: 1fr; }
    .macro-preview-panel pre { min-height: 380px; max-height: 520px; }
    .firmware-connection-bar { padding-inline: 16px; }
    .firmware-search-form { padding: 16px; grid-template-columns: 1fr; }
    .firmware-search-form .workspace-primary { grid-column: auto; }
    .firmware-browser-bar { padding-inline: 14px; }
    .firmware-table-wrap { min-height: 380px; }
    .ecu-fields { grid-template-columns: 1fr; padding: 14px; }
    .folder-control { grid-template-columns: 1fr; }
    .folder-button { border-left: 0; border-top: 1px solid #dce3e9; }
    .record-action { min-height: 44px; }
    .records-panel .table-wrap { padding: 12px; overflow: visible; }
    .records-panel table { min-width: 0; display: block; }
    .records-panel thead { display: none; }
    .records-panel tbody { display: grid; gap: 10px; }
    .records-panel tbody tr:not(.empty-row) { padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 1px solid #dfe6ec; border-radius: 5px; background: #fff; }
    .records-panel tbody tr:not(.empty-row) td { min-width: 0; padding: 0; display: block; border: 0; overflow-wrap: anywhere; }
    .records-panel tbody tr:not(.empty-row) td::before { content: attr(data-label); margin-bottom: 5px; display: block; color: #8d98a1; font: 700 8px ui-monospace, SFMono-Regular, Consolas, monospace; }
    .records-panel tbody tr:not(.empty-row) td:nth-child(1),
    .records-panel tbody tr:not(.empty-row) td:nth-child(3),
    .records-panel tbody tr:not(.empty-row) td:nth-child(4),
    .records-panel tbody tr:not(.empty-row) td:nth-child(5),
    .records-panel tbody tr:not(.empty-row) td:nth-child(7) { grid-column: 1 / -1; }
    .records-panel .empty-row { display: table-row; }
    .records-panel .empty-row td { width: 100%; height: 240px; display: table-cell; }
    .record-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .records-pagination { align-items: stretch; flex-direction: column; }
    .records-pagination .outline-action { min-height: 44px; }
    .download-detail-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .download-detail-shell { max-height: calc(100dvh - 20px); }
    .download-detail-shell > header { min-height: 64px; padding: 10px 10px 10px 16px; }
    .download-detail-shell > header h2 { font-size: 15px; }
    .detail-summary, .detail-section { padding: 16px; }
    .detail-meta, .detail-inline-meta { grid-template-columns: 1fr; }
    .detail-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .download-detail-shell > footer { padding: 10px 14px; align-items: stretch; flex-direction: column; }
    .download-detail-shell > footer .workspace-primary { width: 100%; min-height: 46px; }
    .workspace-footer { display: grid; }
}

@media (max-width: 360px) {
    .pr-live-summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
