:root {
  color-scheme: light;
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --surface-2: #F1F3F5;
  --ink: #18212C;
  --muted: #66717D;
  --line: #DEE3E8;
  --line-strong: #B9C3CE;
  --accent: #002FA7;
  --on-accent: #FFFFFF;
  --danger: #C33C32;
  --font: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); letter-spacing: 0; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; letter-spacing: 0; border-radius: 0; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; }
h3 { font-size: 15px; }
.icon { display: block; width: 19px; height: 19px; flex: 0 0 auto; }
.muted, .meta { color: var(--muted); }
.meta { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { transition: background-color 140ms, color 140ms, border-color 140ms; }
.primary, .secondary, .text-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 18px; border: 1px solid transparent; font-weight: 600; }
.primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.primary:not(:disabled):hover { background: #003CC4; border-color: #003CC4; }
.secondary { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.secondary:not(:disabled):hover { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }
.text-button { padding: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 400; }
.text-button:hover { color: var(--accent); }
.icon-button { width: 40px; height: 40px; min-height: 40px; padding: 0; background: transparent; color: var(--muted); flex-shrink: 0; }
.icon-button:hover { color: var(--accent); background: var(--surface-2); }
label { display: grid; gap: 9px; font-size: 12px; color: var(--muted); }
input, select, textarea { display: block; width: 100%; min-width: 0; height: 44px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 12px; outline: none; }
input::placeholder, textarea::placeholder { color: #7B8792; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type="file"] { padding: 10px; height: auto; }
input::file-selector-button { background: var(--surface-2); border: 0; color: var(--ink); font: inherit; padding: 5px 10px; margin-right: 10px; }
.full-width { width: 100%; }

.app-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; padding: 28px 18px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.brand, .auth-brand { display: flex; align-items: center; gap: 12px; }
.brand { padding: 0 4px; }
.brand-mark { width: 42px; height: 42px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark .icon { width: 26px; height: 26px; }
.brand-name { font-size: 21px; font-weight: 700; line-height: 1.25; }
.brand-category { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.nav { display: grid; gap: 8px; margin-top: 54px; }
.nav-button { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; height: 48px; padding: 0 12px; background: transparent; border: 1px solid transparent; color: var(--muted); text-align: left; font-size: 13px; }
.nav-button span { flex: 1; white-space: nowrap; }
.nav-arrow { width: 15px; height: 15px; opacity: 0; }
.nav-button.active { color: var(--accent); border-color: var(--line); background: var(--surface); border-left: 2px solid var(--accent); }
.nav-button.active .nav-arrow { opacity: 1; }
.nav-button:not(.active):hover { background: var(--surface-2); color: var(--ink); }
.sidebar-bottom { margin-top: auto; padding-top: 48px; }
.sidebar-status { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--muted); padding: 16px 0; }
.status-square { width: 5px; height: 5px; background: var(--muted); flex-shrink: 0; }
.sidebar-status[data-state="connected"] .status-square { background: var(--accent); }
.account-summary { display: flex; align-items: center; gap: 9px; padding: 18px 0; border-top: 1px solid var(--line); }
.user-avatar { width: 30px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); flex-shrink: 0; }
.account-copy { flex: 1; min-width: 0; }
.account-copy strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy span { color: var(--muted); font-size: 10px; }
.account-summary .icon-button { width: 28px; }
.workspace { padding: 28px 36px 40px; min-width: 0; background: #FFFFFF; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 74px; margin-bottom: 28px; }
.breadcrumb { display: flex; gap: 12px; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.breadcrumb > span:first-child { color: var(--line-strong); }
.topbar h2 { font-size: 26px; line-height: 1.3; }
.status-strip { display: flex; align-items: center; }
.status-strip > div { padding: 0 22px; border-left: 1px solid var(--line); }
.status-strip > div:last-child { padding-right: 0; }
.metric-label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.status-strip strong { font-size: 15px; font-weight: 400; white-space: nowrap; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.section-heading > div { display: flex; align-items: center; gap: 12px; }
.section-number { color: var(--accent); font-size: 11px; }

.search-workspace { display: grid; grid-template-columns: minmax(0,1fr) 258px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.query-station { padding: 12px 24px 16px 0; min-width: 0; }
.query-station .section-heading { margin-bottom: 10px; }
.dropzone { position: relative; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); cursor: pointer; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.dropzone:focus-within, .dropzone.dragging { border-color: var(--accent); }
.scan-frame { height: 324px; border: 1px solid var(--line); overflow: hidden; }
.scan-frame img { display: none; width: 100%; height: 100%; object-fit: contain; }
.upload-empty { display: flex; flex-direction: column; align-items: center; padding: 20px; gap: 14px; text-align: center; }
.upload-icon { width: 48px; height: 48px; color: var(--muted); margin-bottom: 6px; }
.upload-title { color: var(--ink); font-size: 16px; }
.upload-formats { font-size: 10px; }
.upload-command { font-size: 12px; margin-top: 6px; min-height: 36px; }
.scan-corner { position: absolute; width: 14px; height: 14px; color: var(--accent); pointer-events: none; opacity: .8; }
.corner-tl { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }
.corner-tr { right: -1px; top: -1px; border-right: 2px solid; border-top: 2px solid; }
.corner-bl { left: -1px; bottom: -1px; border-left: 2px solid; border-bottom: 2px solid; }
.corner-br { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.query-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 13px; font-size: 10px; color: var(--muted); }
#queryFileName { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#searchState { flex-shrink: 0; }
.search-controls { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding: 12px 0 16px 24px; }
.search-controls .section-heading { margin-bottom: 22px; }
.query-properties { margin: 24px 0; font-size: 11px; }
.query-properties > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding: 15px 0; }
.query-properties dt { color: var(--muted); flex-shrink: 0; }
.query-properties dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
#searchSubmit { margin-top: auto; width: 100%; }
#searchSubmit span { flex: 1; }
.results-section { margin-top: 26px; }
.results-section > .section-heading, .recent-section > .section-heading { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.results, .library-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(212px,1fr)); gap: 18px; padding-top: 20px; }
.result-empty { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; min-height: 100px; gap: 12px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.recent-section { margin-top: 24px; }
.sample-strip { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.recent-sample { padding: 0; text-align: left; background: transparent; border: 0; color: var(--ink); min-width: 0; }
.recent-sample img { display: block; width: 100%; height: 104px; object-fit: cover; }
.recent-sample span { display: block; font-size: 11px; padding-top: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-sample:hover span { color: var(--accent); }

.library-toolbar { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding-top: 22px; }
.search-field { display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); padding-left: 14px; flex: 1; max-width: 480px; min-width: 0; color: var(--muted); }
.search-field input { border: 0; background: transparent; padding-left: 12px; font-size: 12px; }
.search-field:focus-within { border-color: var(--accent); }
.library-toolbar > .primary { margin-left: auto; white-space: nowrap; }
.filter-bar { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-top: 18px; overflow-x: auto; }
.filter-button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 12px; white-space: nowrap; }
.filter-button.active { color: var(--accent); border-bottom-color: var(--accent); }
.filter-button:hover { color: var(--ink); }
.fabric-card, .result-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.fabric-card:hover, .result-card:hover { border-color: var(--line-strong); }
.fabric-image-wrap { position: relative; }
.fabric-image-wrap > img, .result-card > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; cursor: zoom-in; background: var(--surface-2); }
.image-record { position: absolute; top: 10px; left: 10px; background: var(--bg); color: var(--ink); padding: 3px 6px; font-size: 9px; pointer-events: none; }
.image-expand { position: absolute; bottom: 8px; right: 8px; width: 26px; height: 26px; background: var(--bg); color: var(--ink); display: grid; place-items: center; pointer-events: none; }
.image-expand .icon { width: 13px; height: 13px; }
.card-body { padding: 15px; }
.code-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.code-line strong { font-size: 17px; overflow-wrap: anywhere; }
.pill { color: var(--accent); border: 1px solid var(--line); padding: 2px 6px; font-size: 9px; white-space: nowrap; }
.pill.off { color: var(--muted); }
.card-metadata { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 12px; }
.card-metadata span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-tools { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 8px; }
.card-tools .tool-group { display: flex; gap: 2px; }
.sync-label { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.sync-label::before { content: ""; width: 4px; height: 4px; background: var(--muted); }
.sync-label.synced::before { background: var(--accent); }
.sync-label.failed { color: var(--danger); }
.sync-label.failed::before { background: var(--danger); }
.image-edit-form { display: grid; gap: 12px; padding-top: 16px; margin-top: 10px; border-top: 1px solid var(--line); }
.image-edit-form input { height: 38px; font-size: 12px; }
.image-edit-form .secondary { font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.score { color: var(--accent); font-size: 11px; white-space: nowrap; }
.result-card .meta { margin-top: 12px; }
.feedback-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; gap: 8px; }
.feedback-row button { background: transparent; color: var(--muted); border: 1px solid var(--line); height: 36px; font-size: 11px; }
.feedback-row button:hover, .feedback-row button.selected { border-color: var(--accent); color: var(--accent); }
.section-title { grid-column: 1/-1; font-size: 14px; }
.import-report, .empty-state { grid-column: 1/-1; padding: 22px 0; border-bottom: 1px solid var(--line); }
.import-report { border-left: 2px solid var(--danger); padding-left: 18px; }
.empty-state { color: var(--muted); font-size: 12px; }
.list-end { display: flex; justify-content: center; padding-top: 30px; }

.settings-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.settings-block { padding: 20px 30px 28px 0; min-width: 0; }
.settings-block + .settings-block { border-left: 1px solid var(--line); padding: 20px 0 28px 30px; }
.form-stack { display: grid; gap: 20px; }
.settings-block .section-heading { margin-bottom: 22px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.provider-card { padding: 0 0 24px; }
.provider-card .code-line h3 { font-size: 13px; }
.provider-card p { color: var(--muted); margin-top: 14px; font-size: 12px; }
.sync-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 26px 0; }
.sync-metrics > div { border-right: 1px solid var(--line); padding-left: 14px; }
.sync-metrics > div:first-child { padding-left: 0; }
.sync-metrics > div:last-child { border: 0; }
.sync-metrics strong { display: block; font-size: 26px; font-weight: 400; margin-top: 8px; }
.sync-metrics span { font-size: 11px; color: var(--muted); }
.sync-metrics .failure strong { color: var(--danger); }
#syncProgress { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; max-height: 360px; overflow-y: auto; font-size: 12px; }
#syncProgress p { margin: 12px 0; }
progress { width: 100%; height: 4px; border: 0; border-radius: 0; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--accent); }
.accounts-section { margin-top: 30px; }
.accounts-section > .section-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.account-create { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 150px auto; align-items: end; gap: 16px; padding: 24px 0; }
.account-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding: 16px 0; font-size: 12px; }
.account-row span { overflow-wrap: anywhere; }
.account-row .secondary { min-height: 34px; font-size: 11px; }
#accountList h3 { padding: 20px 0; font-size: 14px; }

dialog { color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); padding: 0; }
dialog::backdrop { background: rgb(0 0 0 / .76); }
.import-dialog { width: min(560px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 19px; }
.import-tabs { display: flex; justify-content: space-between; gap: 16px; margin: 0 24px; border-bottom: 1px solid var(--line); }
.import-tabs .filter-button { min-height: 56px; }
.import-tabs .icon { width: 16px; height: 16px; }
.import-form { padding: 24px; }
.dropzone.compact { min-height: 104px; padding: 20px; gap: 14px; }
.dropzone.compact [data-file-label] { max-width: 90%; overflow-wrap: anywhere; }
.lightbox { width: min(1280px,calc(100% - 40px)); max-height: calc(100dvh - 32px); padding: 16px 24px 24px; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.lightbox img { display: block; width: 100%; height: calc(100dvh - 144px); object-fit: contain; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%,12px); opacity: 0; z-index: 100; max-width: min(560px,calc(100% - 32px)); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); color: var(--ink); background: var(--surface-2); padding: 14px 20px; font-size: 12px; pointer-events: none; transition: opacity 160ms,transform 160ms; }
.toast.show { transform: translate(-50%,0); opacity: 1; }

.auth-screen { min-height: 100dvh; display: flex; flex-direction: column; padding: 36px 48px 0; }
.auth-brand { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.auth-form { width: min(100%,400px); margin: auto; padding: 54px 0; }
.auth-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
.auth-heading > .icon { color: var(--accent); width: 28px; height: 28px; }
.auth-heading h1 { font-size: 30px; }
.auth-form label { margin-top: 24px; }
.password-field { display: flex; align-items: center; border: 1px solid var(--line); }
.password-field:focus-within { border-color: var(--accent); }
.password-field input { border: 0; }
#authMessage { min-height: 24px; margin: 14px 0; color: var(--danger); font-size: 12px; overflow-wrap: anywhere; }
.auth-form > .primary { width: 100%; justify-content: space-between; min-height: 48px; }
.auth-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 20px 0; font-size: 10px; color: var(--muted); }

@media (min-width: 1600px) {
  .workspace { padding-left: 48px; padding-right: 48px; }
  .search-workspace { grid-template-columns: minmax(0,1fr) 310px; }
  .scan-frame { height: 380px; }
  .library-list, .results { grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 80px minmax(0,1fr); }
  .sidebar { padding: 24px 12px 0; }
  .brand { justify-content: center; padding: 0; }
  .sidebar .brand-name, .sidebar .nav-button span, .sidebar .nav-arrow, .sidebar-status, .account-copy, .user-avatar { display: none; }
  .nav-button { justify-content: center; padding: 0; }
  .account-summary { justify-content: center; padding: 16px 0; }
  .workspace { padding: 24px; }
  .sample-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .recent-sample:nth-child(n+5) { display: none; }
  .account-create { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .search-workspace { grid-template-columns: minmax(0,1fr); }
  .query-station { padding-right: 0; }
  .search-controls { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .search-controls .section-heading { margin-bottom: 14px; }
  .query-properties { margin: 12px 0; }
  .query-properties > div { padding: 10px 0; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-block { padding-right: 0; }
  .settings-block + .settings-block { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}
@media (max-width: 600px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; flex-direction: row; align-items: center; gap: 16px; height: 66px; width: 100%; padding: 0 16px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg); z-index: 10; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark .icon { width: 22px; height: 22px; }
  .nav { display: flex; gap: 4px; margin-top: 0; flex: 1; justify-content: center; }
  .nav-button { width: 48px; height: 44px; }
  .nav-button.active { border-left: 1px solid var(--line); border-bottom: 2px solid var(--accent); }
  .sidebar-bottom { margin: 0; padding: 0; }
  .account-summary { border: 0; padding: 0; }
  .workspace { padding: 20px 16px 32px; }
  .topbar { min-height: 65px; margin-bottom: 20px; }
  .topbar h2 { font-size: 22px; }
  .breadcrumb { font-size: 10px; gap: 7px; }
  .status-strip > div { padding: 0 12px; }
  .status-strip strong { font-size: 12px; }
  .scan-frame { height: 300px; }
  .search-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px 14px; }
  .search-controls .section-heading { grid-column: 1/-1; margin: 0; }
  .search-controls > label { align-self: end; font-size: 11px; }
  #searchSubmit { margin: 0; align-self: end; min-height: 44px; }
  #searchSubmit > .icon:last-child { display: none; }
  .query-properties { grid-column: 1/-1; grid-row: 3; margin: 0; }
  .query-properties > div { padding: 8px 0; }
  .library-toolbar { flex-wrap: wrap; gap: 12px; }
  .search-field { flex-basis: 100%; max-width: none; }
  .library-toolbar .primary { font-size: 12px; min-height: 40px; }
  .filter-bar { gap: 20px; }
  .library-list, .results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .code-line { flex-wrap: wrap; gap: 6px; }
  .code-line strong { font-size: 15px; }
  .card-metadata { grid-template-columns: 1fr; gap: 4px; font-size: 10px; }
  .card-tools { flex-wrap: wrap; }
  .card-tools .tool-group { margin-left: auto; }
  .card-tools .icon-button { width: 32px; height: 40px; }
  .image-edit-form .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .sample-strip { gap: 10px; }
  .recent-sample img { height: 84px; }
  .recent-sample span { font-size: 10px; }
  .form-grid, .account-create { grid-template-columns: 1fr; }
  .auth-screen { padding: 24px 24px 0; }
  .auth-brand { padding-bottom: 24px; }
  .auth-form { padding: 44px 0; }
  .auth-heading h1 { font-size: 26px; }
  .auth-footer { font-size: 9px; }
  .import-form { padding: 20px; }
  .dialog-heading { padding: 14px 20px; }
  .import-tabs { margin: 0 20px; gap: 12px; }
  .import-tabs .filter-button { font-size: 11px; }
  .lightbox { width: calc(100% - 20px); padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.parameter-editor { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.parameter-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.parameter-editor-heading .text-button { font-size: 11px; }
.parameter-editor-row { padding: 12px 0; border-top: 1px solid var(--line); }
.parameter-name-row, .parameter-value-row { display: flex; gap: 8px; align-items: center; }
.parameter-name-row > input, .parameter-value-row > textarea { flex: 1; min-width: 0; }
.parameter-value-row > textarea { height: 44px; padding: 8px 12px; resize: vertical; }
.parameter-value-row { margin-top: 8px; }
.parameter-value-row > input:last-child { width: 88px; flex-shrink: 0; }
.parameter-editor > .secondary { margin-top: 12px; width: 100%; }
.parameter-summary { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.parameter-summary summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.parameter-summary dl { margin: 8px 0 0; }
.parameter-summary dl > div { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.parameter-summary dt { color: var(--muted); overflow-wrap: anywhere; }
.parameter-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.parameter-summary dd span { color: var(--muted); }
