    :root{
      --bg:#f3f5f9;
      --card:#ffffff;
      --line:#d7dde7;
      --text:#1f2a37;
      --muted:#5f6b7a;
      --accent:#0d6efd;
    }
    body {
      margin: 14px;
      font-family: Arial, "Microsoft YaHei", sans-serif;
      background: var(--bg);
      color: var(--text);
      -webkit-user-select: none;
      -moz-user-select: none;
      user-select: none;
    }
    input, textarea, select, option {
      -webkit-user-select: auto;
      -moz-user-select: auto;
      user-select: text;
    }
    .annotationList {
      -webkit-user-select: text;
      -moz-user-select: text;
      user-select: text;
    }
    .layout { display: flex; gap: 12px; align-items: stretch; min-width: 0; }
    .panel {
      border: 1px solid var(--line); border-radius: 10px; padding: 12px;
      width: 300px; flex: 0 0 300px; background: var(--card); box-shadow: 0 1px 2px rgba(16,24,40,.04);
      height: calc(100vh - 96px);
      max-height: calc(100vh - 96px);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-width: 0;
    }
    .panelTabs {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      margin-bottom: 10px;
      flex: 0 0 auto;
    }
    .panelTabBtn {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f8fafc;
      color: #334155;
      font-size: 12px;
      font-weight: 700;
      padding: 6px 4px;
      cursor: pointer;
      text-align: center;
    }
    .panelTabBtn[aria-selected="true"] {
      border-color: #9dc0ff;
      background: #e8f1ff;
      color: #084298;
      box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.12);
    }
    .panelPages {
      flex: 1 1 auto;
      min-height: 0;
    }
    .viewer {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--card); box-shadow: 0 1px 2px rgba(16,24,40,.04);
      flex: 0 1 auto; width: fit-content; max-width: calc(100vw - 350px);
      min-width: 0; min-height: calc(100vh - 96px);
      overflow: auto;
    }
    h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #0f172a; }
    hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
    label { display: block; margin: 8px 0 4px; font-size: 13px; color: #334155; }
    input[type="range"] { width: 230px; }
    input[type="number"], select, input[type="text"], button { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #0f172a; }
    button, select { padding: 6px 10px; }
    button:hover { border-color: #b8c2cf; }
    .hint { color: var(--muted); font-size: 12px; line-height: 1.45; }
    .fileTreeRoot, .fileTreeRoot ul {
      list-style: none;
      margin: 0;
      padding-left: 16px;
    }
    .fileTreeRoot li {
      position: relative;
      margin: 2px 0;
      padding-left: 10px;
    }
    .fileTreeRoot li::before {
      content: "";
      position: absolute;
      left: 0;
      top: -8px;
      bottom: -8px;
      border-left: 1px solid #c6d1de;
    }
    .fileTreeRoot li::after {
      content: "";
      position: absolute;
      left: 0;
      top: 12px;
      width: 8px;
      border-top: 1px solid #c6d1de;
    }
    .fileTreeRoot > li::before { top: 8px; }
    .fileTreeRoot li:last-child::before { bottom: 12px; }
    .fileTreeDirLabel {
      display: inline-block;
      max-width: calc(100% - 22px);
      color: #334155;
      font-weight: 600;
      line-height: 1.35;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      vertical-align: top;
    }
    .fileTreeFileBtn {
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.35;
    }
    .fileTreeDirToggle {
      border: 0;
      background: transparent;
      color: #475569;
      cursor: pointer;
      padding: 0 4px 0 0;
      line-height: 1.2;
      font-size: 12px;
      vertical-align: middle;
    }

    body[dir="rtl"] .fileTreeRoot,
    body[dir="rtl"] .fileTreeRoot ul {
      padding-left: 0;
      padding-right: 16px;
    }
    body[dir="rtl"] .fileTreeRoot li {
      padding-left: 0;
      padding-right: 10px;
    }
    body[dir="rtl"] .fileTreeRoot li::before {
      left: auto;
      right: 0;
      border-left: 0;
      border-right: 1px solid #c6d1de;
    }
    body[dir="rtl"] .fileTreeRoot li::after {
      left: auto;
      right: 0;
      border-top: 1px solid #c6d1de;
    }
    body[dir="rtl"] .fileTreeDirToggle {
      padding: 0 0 0 4px;
    }
    .fileTreeFileBtn.is-selected {
      background: #e8f1ff !important;
      border: 1px solid #8bb4ff !important;
      border-radius: 6px;
      color: #084298 !important;
      font-weight: 700;
      box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.12);
    }
    .pageHeader { margin-bottom: 12px; }
    .pageHeader h3 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .langSwitchLabel { font-size: 12px; color: #475569; font-weight: 500; }
    .langSwitchSelect { font-size: 12px; padding: 4px 8px; min-width: 120px; }
    .rtlToggleLabel { display: inline-flex; align-items: center; gap: 4px; user-select: none; }
    .panelSection {
      margin: 0;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 8px;
      background: #fff;
      box-sizing: border-box;
      height: 100%;
      display: none;
      min-height: 0;
    }
    .panelSection.is-active {
      display: flex;
      flex-direction: column;
    }
    .panelSectionBody {
      min-height: 0;
      overflow: auto;
      flex: 1 1 auto;
      padding-right: 2px;
    }
    .panelSection[data-panel-tab="file"] .panelSectionBody,
    .panelSection[data-panel-tab="anno"] .panelSectionBody {
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    .panelLoadRow {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 10px;
      margin-top: 6px;
    }
    .panelLoadRowLabel {
      display: inline-block;
      margin: 0 !important;
      font-size: 13px;
      color: #334155;
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .panelLoadRow #processMode {
      flex: 1 1 0;
      min-width: 0;
    }
    .panelLoadRow #btnLoad {
      flex: 0 0 auto;
    }
    .panelLoadActions {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      flex-wrap: wrap;
    }
    .panelLoadActions button {
      flex: 0 0 auto;
    }
    .custom-steps-panel { font-size: 11px; line-height: 1.2; }

    .custom-step-block {
      display: grid;
      grid-template-columns: 22px minmax(0, 1fr);
      column-gap: 6px;
      align-items: center;
      margin-bottom: 4px;
      padding-bottom: 3px;
      border-bottom: 1px solid rgba(15, 23, 42, 0.08);
      min-height: 22px;
      box-sizing: border-box;
    }
    .custom-step-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
    .custom-step-block input.custom-step-cb,
    .custom-step-block .step-item.custom-step-cb {
      margin: 0;
      justify-self: start;
      align-self: center;
      flex-shrink: 0;
    }
    .custom-step-block:not(.custom-step-block--inline) > label.custom-step-label-only {
      display: block;
      font-weight: 600;
      margin: 0;
      cursor: pointer;
      line-height: 1.2;
      min-width: 0;
    }

    .custom-step-inline-body {
      display: flex;
      flex-direction: row;
      align-items: center;
      flex-wrap: nowrap;
      gap: 6px 8px;
      min-width: 0;
    }
    .custom-step-inline-body > .custom-step-title {
      font-weight: 600;
      white-space: nowrap;
      cursor: pointer;
      margin: 0;
      line-height: 1.2;
      flex: 0 0 auto;
    }
    .custom-step-params--inline {
      margin-left: 0;
      flex: 1 1 0;
      min-width: 0;
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;
      gap: 4px 6px;
    }
    .custom-step-params--inline label {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      margin: 0;
      line-height: 1.2;
    }
    .custom-step-params--inline label input[type="radio"] {
      margin: 0;
      flex-shrink: 0;
    }
    .custom-step-inline-dim {
      font-size: 11px;
      line-height: 1.2;
      color: var(--muted);
      white-space: nowrap;
    }
    .custom-step-params {
      margin-left: 22px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .custom-step-param-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 10px;
    }
    .custom-step-params--inline .custom-step-param-row {
      flex: 1 1 auto;
      min-width: 0;
      flex-wrap: nowrap;
      align-items: center;
      gap: 4px 6px;
    }

    .custom-step-params--inline input.custom-param-line {
      width: 48px;
      min-width: 0;
      height: 18px;
      line-height: 18px;
      padding: 0 3px;
      margin: 0;
      font-size: 11px;
      font-family: inherit;
      color: inherit;
      border: none;
      border-bottom: 1px solid #94a3b8;
      border-radius: 0;
      background: transparent;
      box-sizing: border-box;
      outline: none;
      vertical-align: middle;
    }
    .custom-step-params--inline input.custom-param-line::placeholder {
      color: #94a3b8;
      opacity: 0.75;
    }
    .custom-step-params--inline input.custom-param-line:disabled {
      border-bottom-color: #cbd5e1;
      color: #94a3b8;
      cursor: not-allowed;
    }
    .custom-step-params--inline input.custom-param-line:focus:not(:disabled) {
      border-bottom-color: #2563eb;
    }
    .custom-step-params label { font-weight: 400; cursor: pointer; white-space: nowrap; }
    .custom-step-params--inline label { font-weight: 400; cursor: pointer; white-space: nowrap; }
    .annotationList {
      overflow: auto; border: 1px solid var(--line); border-radius: 8px;
      background: #fafbfc; padding: 0; font-size: 11px; margin-bottom: 6px; min-height: 52px;
      flex: 1 1 auto;
      max-height: 100%;
    }
    .annotationTable {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
    }
    .annotationTable th,
    .annotationTable td {
      border-bottom: 1px solid var(--line);
      padding: 4px 3px;
      text-align: center;
      vertical-align: middle;
      line-height: 1.25;
    }
    .annotationTable th {
      font-weight: 700;
      font-size: 10px;
      color: var(--muted);
      background: #eef2f7;
      position: sticky;
      top: 0;
      z-index: 1;
    }
    .annotationTable th:nth-child(1) { width: 28px; }
    .annotationTable th:nth-child(2) { width: 34px; }
    .annotationTable th:nth-child(3) { width: 44px; }
    .annotationTable th:nth-child(4),
    .annotationTable th:nth-child(5) { width: 40px; }
    .annotationTable td:nth-child(6) {
      text-align: left;
      word-break: break-all;
      white-space: normal;
      font-size: 10px;
    }
    .annotationTable tbody tr:nth-child(even) td { background: rgba(15, 23, 42, 0.03); }
    .annotationListEmpty { color: var(--muted); padding: 10px 8px; text-align: center; font-size: 12px; }
    .userMarkListWrap {
      margin-top: 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fafbfc;
      overflow: auto;
      max-height: 220px;
    }
    .userMarkTable {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 11px;
    }
    .userMarkTable th,
    .userMarkTable td {
      border-bottom: 1px solid var(--line);
      padding: 4px 3px;
      text-align: center;
      line-height: 1.25;
      vertical-align: middle;
    }
    .userMarkTable th {
      font-weight: 700;
      font-size: 10px;
      color: var(--muted);
      background: #eef2f7;
      position: sticky;
      top: 0;
      z-index: 1;
    }
    .userMarkTable td:nth-child(2),
    .userMarkTable td:nth-child(3) {
      text-align: left;
      word-break: break-all;
    }
    .userMarkSpacingInput {
      width: 100%;
      box-sizing: border-box;
      border: 1px solid #c7d2e0;
      border-radius: 4px;
      padding: 2px 4px;
      font-size: 11px;
      line-height: 1.2;
    }
    .userMarkListEmpty {
      color: var(--muted);
      padding: 10px 8px;
      text-align: center;
      font-size: 12px;
    }
    #fileTree {
      flex: 1 1 0;
      min-height: 0;
      max-height: none;
      overflow-y: auto;
      overflow-x: hidden;
    }
    .annoPanelBtns { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; margin-top: 4px; }
    .annoPanelBtns button { flex: 1 1 0; min-width: 0; box-sizing: border-box; padding-left: 6px; padding-right: 6px; }
    .viewerTopBar {
      flex: 0 0 auto;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 9px 14px;
      background: linear-gradient(180deg, #fafbfd 0%, #f4f6fa 100%);
      box-shadow: 0 1px 2px rgba(16,24,40,.04);
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
    }
    .cmdRow {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 0 14px;
      width: max-content;
      min-width: 100%;
    }
    .cmdGroup {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
      padding: 0 14px;
      border-left: 1px solid var(--line);
    }
    .cmdGroup:first-child {
      padding-left: 0;
      border-left: none;
    }
    .cmdGroupBody {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 8px 10px;
      flex: 0 0 auto;
    }
    .cmdGroupBody label { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); white-space: nowrap; }
    .cmdInlineRange { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); white-space: nowrap; flex: 0 0 auto; }
    #contrast.viewerContrast { width: 140px; min-width: 120px; vertical-align: middle; flex-shrink: 0; }
    .viewerTopBar select,
    .viewerTopBar input[type="number"],
    .viewerTopBar input[type="text"] {
      font-size: 13px;
      box-sizing: border-box;
      height: 36px;
      min-height: 36px;
      max-height: 36px;
      padding: 0 10px;
      line-height: 34px;
    }
    .viewerTopBar button {
      font-size: 13px;
      box-sizing: border-box;
      height: 36px;
      min-height: 36px;
      max-height: 36px;
      padding: 0 12px;
      line-height: 1.15;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .viewerTopBar #btnExportPdf {
      background: #dc2626;
      color: #fff;
      border-color: #b91c1c;
    }
    .viewerTopBar #btnExportPdf:hover {
      background: #b91c1c;
      border-color: #991b1b;
      color: #fff;
    }
    .viewerTopBar #cmap {
      min-width: 7.5em;
      max-width: none;
    }
    .viewerTopBar #pdfWidthMode { min-width: 5em; max-width: none; }
    .viewerVelocity { width: 5em; min-width: 4.5em; }
    .viewerPdfWidth { width: 5em; min-width: 4.5em; }
    .viewerDielectricHint { font-size: 12px; color: var(--muted); white-space: nowrap; }
    .statusBar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin: 0;
      background: #f0f4ff;
      border: 1px solid #c5d4f5;
      border-radius: 10px;
      padding: 8px 10px;
      font-size: 12px;
      color: #1e3a8a;
    }
    .statusItem {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      box-sizing: border-box;
      min-height: 30px;
      padding: 0 10px;
      line-height: 1.25;
      white-space: nowrap;
      background: #fff;
      border: 1px solid #dbe4fb;
      border-radius: 8px;
      box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
    }
    .statusZoomItem {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
    }
    .statusZoomItem input[type="number"] {
      width: 4.5em;
      padding: 0 5px;
      font-size: 12px;
      border: 1px solid #b8c9f0;
      border-radius: 5px;
      background: #fff;
      color: #1e3a8a;
      box-sizing: border-box;
      height: 26px;
      line-height: 26px;
    }
    .statusZoomItem input[type="number"]:focus {
      outline: 2px solid rgba(13, 110, 253, 0.35);
      outline-offset: 0;
    }
    .statusZoomItem #statusTimeWindowNs {
      width: 5.2em;
    }
    .statusZoomItem #statusTraceSpacingM {
      width: 5.4em;
    }
    .statusZoomItem #statusTraceDistanceOriginM {
      width: 5em;
    }
    .statusZoomItem #distanceAxisMode,
    .statusZoomItem #distanceTickMode {
      height: 26px;
      font-size: 12px;
      padding: 0 5px;
      border: 1px solid #b8c9f0;
      border-radius: 5px;
      color: #1e3a8a;
      background: #fff;
    }
    .statusZoomItem #stakePrefixInput {
      width: 5.8em;
      height: 26px;
      font-size: 12px;
      padding: 0 5px;
      border: 1px solid #b8c9f0;
      border-radius: 5px;
      color: #1e3a8a;
      background: #fff;
      box-sizing: border-box;
    }
    .statusZoomItem .statusZoomSep {
      opacity: 0.4;
      margin: 0 4px;
      user-select: none;
    }
    .zoomWheelUnlockBtn {
      font-size: 11px;
      padding: 0 7px;
      border-radius: 5px;
      border: 1px solid #94a8e0;
      background: #eef2ff;
      color: #1e3a8a;
      cursor: pointer;
      box-sizing: border-box;
      height: 26px;
      line-height: 26px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .dataEditText {
      width: 100%;
      box-sizing: border-box;
      height: 28px;
      font-size: 12px;
      padding: 0 8px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #fff;
      color: #1e3a8a;
    }
    .traceExtractBtn {
      font-size: 11px;
      padding: 0 6px;
      border-radius: 5px;
      border: 1px solid #94a8e0;
      background: #eef2ff;
      color: #1e3a8a;
      cursor: pointer;
      box-sizing: border-box;
      height: 26px;
      line-height: 24px;
    }
    .traceExtractBtn:hover {
      background: #e0e7ff;
      border-color: #7c8fd4;
    }
    .traceExtractBtn.active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }
    #traceExtractSummary {
      font-size: 11px;
      color: var(--muted);
      line-height: 1.35;
    }
    .zoomWheelUnlockBtn:hover {
      background: #e0e7ff;
      border-color: #7c8fd4;
    }
    .zoomWheelUnlockBtn[hidden] {
      display: none !important;
    }
    #btnCrossCursor.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .anno-mode-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .gpr-plot-host { position: relative; width: max-content; max-width: 100%; }
    .gprClickInfoBar {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      margin-top: 8px;
    }
    .gprClickInfoBar .gprClickInfoItem {
      display: flex;
      align-items: flex-start;
      justify-content: flex-start;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      min-height: auto;
      padding: 6px 10px;
      font-size: 60%;
      line-height: 1.35;
      white-space: normal;
      word-break: break-word;
    }
    .gprOpHint {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      margin-top: 6px;
      padding: 8px 12px;
      background: #f8fafc;
      border: 1px solid var(--line);
      border-radius: 10px;
      font-size: 12px;
      line-height: 1.4;
      color: var(--muted);
      white-space: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
    }
    .plotWrap { display: flex; align-items: flex-start; width: max-content; }
    .gpr-loading-overlay {
      position: absolute;
      inset: 0;
      background: rgba(255,255,255,0.85);
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
      z-index: 20;
      border-radius: 4px;
    }
    .gpr-loading-overlay.is-visible { display: flex; }
    .gpr-loading-spinner {
      width: 40px;
      height: 40px;
      border: 3px solid #e2e8f0;
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: gpr-loading-spin 0.75s linear infinite;
    }
    @keyframes gpr-loading-spin { to { transform: rotate(360deg); } }
    .gpr-loading-text { font-size: 13px; color: var(--muted); }

    body[dir="rtl"] .gpr-plot-host,
    body[dir="rtl"] .plotWrap,
    body[dir="rtl"] .plotBodyRow,
    body[dir="rtl"] .tracePanel,
    body[dir="rtl"] .gpr-x-scroll-row {
      direction: ltr;
    }
    .anno-export-modal {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(15, 23, 42, 0.48);
      padding: 16px;
      box-sizing: border-box;
    }
    .anno-export-modal.is-open {
      display: flex;
    }
    .anno-export-dialog {
      background: var(--card);
      border-radius: 12px;
      border: 1px solid var(--line);
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
      max-width: 440px;
      width: 100%;
      padding: 16px 18px 14px;
      max-height: min(92vh, 640px);
      overflow: auto;
    }
    .anno-export-dialog h4 {
      margin: 0 0 10px;
      font-size: 15px;
      font-weight: 700;
      color: #0f172a;
    }
    .anno-export-kind {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      margin: 10px 0 12px;
      font-size: 13px;
    }
    .anno-export-kind label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin: 0;
      cursor: pointer;
      font-weight: 500;
      color: #334155;
    }
    .anno-export-line-opts {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 12px;
      margin-bottom: 12px;
      background: #f8fafc;
    }
    .anno-export-line-opts[hidden] { display: none !important; }
    .anno-export-line-opts .row2 {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 16px;
      align-items: flex-end;
      margin-top: 8px;
    }
    .anno-export-line-opts label { margin: 0; font-size: 12px; }
    .anno-export-line-opts input[type="number"] { width: 88px; }
    .anno-export-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 6px;
      padding-top: 10px;
      border-top: 1px solid var(--line);
    }
    .anno-export-actions .anno-export-ok {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }
    .anno-export-actions .anno-export-ok:hover {
      filter: brightness(1.05);
    }
    .anno-export-hint {
      font-size: 11px;
      color: var(--muted);
      line-height: 1.4;
      margin: 0 0 8px;
    }
    .anno-style-fields {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 12px;
      margin: 8px 0;
    }
    .anno-style-fields label {
      margin: 0;
      font-size: 12px;
    }
    .anno-style-fields input[type="text"],
    .anno-style-fields input[type="number"],
    .anno-style-fields select,
    .anno-style-fields input[type="color"] {
      width: 100%;
      box-sizing: border-box;
    }
    .anno-style-fields .anno-inline-field {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .anno-style-fields .anno-inline-field > span {
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .anno-style-fields .anno-inline-field > input[type="text"] {
      flex: 1 1 auto;
      min-width: 0;
    }
    .anno-style-fields .anno-inline-field > input[type="number"] {
      flex: 0 0 92px;
      width: 92px;
    }
    .anno-style-fields .anno-label-font-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 10px;
      align-items: center;
    }
    .anno-style-fields .anno-label-font-cell {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .anno-style-fields .anno-label-font-cell > span {
      flex: 0 0 auto;
      white-space: nowrap;
    }
    .anno-style-fields .anno-label-font-cell > input[type="text"],
    .anno-style-fields .anno-label-font-cell > input[type="number"] {
      flex: 1 1 auto;
      min-width: 0;
      width: 100%;
    }
    .anno-color-palette {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }
    .anno-color-chip {
      width: 22px;
      height: 22px;
      border-radius: 5px;
      border: 1px solid #94a3b8;
      cursor: pointer;
      box-sizing: border-box;
      padding: 0;
      outline: none;
    }
    .anno-color-chip:hover {
      transform: translateY(-1px);
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
    }
    .anno-color-chip.active {
      border: 2px solid #111827;
      box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
    }
    .anno-color-chip[data-color="#ffffff"] {
      border-color: #64748b;
    }
    .anno-style-fields .span2 {
      grid-column: span 2;
    }
    .anno-style-fields .anno-inline-check {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 2px;
    }
    #leftAxisSpacer { width: 90px; height: 40px; }
    #axisCanvas { display: block; background: #fff; border-bottom: none; }
    .plotRowsStack {
      height: 600px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow: hidden;
    }
    .plotBodyRow {
      display: flex;
      align-items: stretch;
      gap: 0;
      height: 600px;
    }
    .mainPlotRow { display: flex; align-items: flex-start; flex: 1 1 auto; min-height: 0; }
    .mainPlotRow #imgCanvas,
    .splitSubRow #imgCanvas2 {
      width: 1040px;
      height: 100%;
    }
    #depthAxisCanvas { width: 90px; height: 600px; }
    #timeAxisCanvas { display: block; background: #fff; }
    #depthAxisCanvas { display: block; background: #fff; }
    #depthAxisCanvas2 { display: none; background: #fff; }
    #imgCanvas {
      display: block;
      background: #000;
      cursor: grab;
      -webkit-user-select: none;
      -moz-user-select: none;
      user-select: none;
    }
    #imgCanvas.dragging { cursor: grabbing; }
    #imgCanvas2 {
      display: block;
      background: #000;
      cursor: grab;
    }
    #imgCanvas2.dragging { cursor: grabbing; }
    .splitSubRow {
      display: none;
      flex: 1 1 auto;
      min-height: 0;
    }
    .splitSubRow.is-visible {
      display: flex;
      align-items: flex-start;
    }
    .plotRowsStack.is-split .mainPlotRow,
    .plotRowsStack.is-split .splitSubRow {
      flex: 1 1 0;
    }
    #axisCanvas, #timeAxisCanvas, #depthAxisCanvas, #traceCanvas {
      -webkit-user-select: none;
      -moz-user-select: none;
      user-select: none;
    }
    .tracePanel {
      margin-left: 10px;
      border-left: 1px solid #ddd;
      padding-left: 10px;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
    }
    .traceHeader { height: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
    .traceHeaderTitle { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; align-self: flex-end; padding-bottom: 2px; }
    #traceCanvas { display: block; background: #fff; border: 1px solid #ddd; }
    .tracePanel .gprClickInfoBar {
      width: 240px;
      max-width: 240px;
      margin-top: 8px;
    }
    .gpr-x-scroll-row {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 1040px;
      max-width: 100%;
      box-sizing: border-box;
      padding: 8px 0 4px;
    }
    .gpr-x-scroll-btn {
      flex: 0 0 auto;
      min-width: 38px;
      height: 34px;
      padding: 0 8px;
      font-size: 15px;
      line-height: 1;
      border-radius: 8px;
      cursor: pointer;
      background: #f1f5f9;
      border: 1px solid var(--line);
      color: #0f172a;
    }
    .gpr-x-scroll-btn:hover:not(:disabled) {
      background: #e2e8f0;
      border-color: #b8c2cf;
    }
    .gpr-x-scroll-btn:disabled {
      opacity: 0.42;
      cursor: not-allowed;
    }
    #scrollX.gpr-x-slider {
      flex: 1 1 auto;
      min-width: 0;
      height: 32px;
      margin: 0;
      -webkit-appearance: none;
      appearance: none;
      background: transparent;
    }
    #scrollX.gpr-x-slider::-webkit-slider-runnable-track {
      height: 10px;
      border-radius: 5px;
      background: linear-gradient(to bottom, #eef2f7, #e2e8f0);
      border: 1px solid #c5d0e0;
      box-shadow: inset 0 1px 2px rgba(15,23,42,.06);
    }
    #scrollX.gpr-x-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 20px;
      height: 20px;
      margin-top: -5px;
      border-radius: 50%;
      background: var(--accent);
      border: 2px solid #fff;
      box-shadow: 0 1px 4px rgba(13,110,253,.45);
      cursor: grab;
    }
    #scrollX.gpr-x-slider:active::-webkit-slider-thumb {
      cursor: grabbing;
    }
    #scrollX.gpr-x-slider::-moz-range-track {
      height: 10px;
      border-radius: 5px;
      background: #e2e8f0;
      border: 1px solid #c5d0e0;
    }
    #scrollX.gpr-x-slider::-moz-range-thumb {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--accent);
      border: 2px solid #fff;
      box-shadow: 0 1px 4px rgba(13,110,253,.45);
      cursor: grab;
    }