/* Native Distance Box geometry, scoped to the contained PCD windows. */
#distance-editor [hidden] { display: none !important; }
#distance-editor.is-pony,
#distance-editor.is-hunter {
  box-sizing: border-box;
  max-width: calc(100% - 16px);
  max-height: calc(100% - 115px);
  top: 108px;
  padding: 0;
  overflow: auto;
  font: 12px/1.2 "Segoe UI", sans-serif;
  color: #23354e;
}
#distance-editor.is-pony { width: 856px; height: 549px; border: 1px solid #aeb7c1; border-radius: 0; background: #f3f6fb; }
#distance-editor.is-hunter { width: 642px; height: 427px; border: 1px solid #8192a4; border-radius: 5px; background: #fff; }
#distance-editor.is-pony .distance-editor-titlebar,
#distance-editor.is-hunter .distance-editor-titlebar {
  box-sizing: border-box;
  min-height: 0;
  padding: 0 3px 0 4px;
  border: 0;
  gap: 0;
}
#distance-editor.is-pony .distance-editor-titlebar { height: 26px; background: #fff; }
#distance-editor.is-hunter .distance-editor-titlebar { height: 24px; background: linear-gradient(#d8e4ee, #bccfdf); }
#distance-editor.is-pony .distance-editor-titlebar strong,
#distance-editor.is-hunter .distance-editor-titlebar strong { font: 12px "Segoe UI", sans-serif; color: #8b969f; }
#distance-editor.is-pony #distance-editor-close,
#distance-editor.is-hunter #distance-editor-close { width: 27px; height: 19px; min-height: 0; padding: 0; font: 17px/17px "Segoe UI", sans-serif; color: #82909d; border: 0; border-radius: 0; background: transparent; }
#distance-editor.is-hunter #distance-editor-close { border: 1px solid #8091a2; border-radius: 3px; background: linear-gradient(#edf3f8, #d9e3ed); color: #556779; }
#distance-editor.is-pony #distance-editor-body { box-sizing: border-box; height: auto; min-height: 469px; padding: 12px 13px 0; }
#distance-editor.is-hunter #distance-editor-body { box-sizing: border-box; height: 310px; padding: 13px 15px 0; background: #fff; }
#distance-editor.is-pony .tool-panel,
#distance-editor.is-hunter .tool-panel { display: block; width: auto; padding: 0; margin: 0; border: 0; background: transparent; }

/* 58-pixel stride axis and twelve native 64-pixel style columns. */
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix { box-sizing: border-box; width: 827px; max-width: 100%; height: auto; min-height: 273px; margin: 0; overflow: auto; border: 1px solid #d6dfeb; border-radius: 0; background: #fff; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix table { width: 826px; min-width: 826px; margin: 0; border: 0; border-spacing: 0; border-collapse: collapse; table-layout: fixed; font: 12px/14px "Segoe UI", sans-serif; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix th,
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td { box-sizing: border-box; padding: 0; margin: 0; border: 0; border-bottom: 1px solid #d6dfeb; text-align: center; background: #fff; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix thead tr:first-child { height: 27px; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix thead tr:first-child th { height: 27px; background: #e8eff9; font-weight: 700; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix thead tr:nth-child(2) { height: 47px; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody tr { height: 33px; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody th { width: 58px; height: 33px; background: #e8eff9; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody td { width: 64px; height: 33px; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td:nth-of-type(2),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td:nth-of-type(5),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td:nth-of-type(8),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td:nth-of-type(11),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix thead tr:nth-child(2) th:nth-child(3n + 2) { background: #edf4fc; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td:nth-of-type(3),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td:nth-of-type(6),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td:nth-of-type(9),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td:nth-of-type(12),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix thead tr:nth-child(2) th:nth-child(3n) { background: #dbe9fa; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix td:nth-of-type(10),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix thead tr:nth-child(2) th:nth-child(10) { background: #c9def7; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody td:nth-of-type(1),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody td:nth-of-type(4),
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody td:nth-of-type(7) { border-left: 3px solid #4f76a5; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix button { box-sizing: border-box; display: block; width: 100%; height: 32px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #23354e; font: inherit; white-space: pre-line; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix thead button { height: 46px; font-weight: 700; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody th button { font-weight: 700; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody tr.is-selected > th,
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody tr.is-selected > td { background: #a5c6ed; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix thead button[aria-pressed="true"] { background: #a5c6ed; color: #23354e; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody td button[aria-pressed="true"] { background: #245fa6; color: #fff; font-weight: 700; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix button:focus-visible { outline: 1px solid #4f76a5; outline-offset: -2px; }

/* The native adjustment editor is one centered table. */
.hunter-grid-layer { position: absolute; z-index: 10; inset: 0; background: #03214312; }
#hunter-grid-editor { position: absolute; top: 108px; left: 50%; transform: translateX(-50%); box-sizing: border-box; width: 856px; max-width: calc(100% - 16px); max-height: calc(100% - 115px); padding: 0 12px 12px; overflow: auto; border: 1px solid #aeb7c1; border-radius: 0; background: #f3f6fb; color: #23354e; box-shadow: 0 .7rem 2rem #0321434d; font: 12px/1.2 "Segoe UI", sans-serif; }
#hunter-grid-editor .distance-editor-titlebar { height: 26px; min-height: 0; margin: 0 -12px 12px; padding: 0 3px 0 4px; border: 0; background: #fff; }
#hunter-grid-editor .distance-editor-titlebar strong { color: #8b969f; font: 12px "Segoe UI", sans-serif; }
#hunter-grid-editor .distance-editor-titlebar button { width: 27px; height: 19px; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: #82909d; font: 17px/17px "Segoe UI", sans-serif; }
#hunter-grid-editor .pony-distance-matrix thead th { white-space: pre-line; }
#hunter-grid-editor .pony-distance-matrix button[aria-pressed="true"] { background: #17477e; color: #fff; }
#hunter-grid-editor .pony-distance-matrix button:focus { outline: 2px solid #103966; outline-offset: -2px; background: #103966; color: #fff; font-weight: 700; }
:is(#distance-editor.is-pony, #hunter-grid-editor) .pony-distance-matrix tbody td:nth-of-type(11) { border-left: 3px solid #4f76a5; }
#distance-editor.is-pony .pony-adjustments { box-sizing: border-box; display: block; width: 414px; max-width: 100%; margin: 6px auto 0; padding: 0; overflow-x: auto; border: 1px solid #d6dfeb; border-radius: 0; background: #d6dfeb; }
#distance-editor.is-pony .pony-adjustments > strong { display: block; height: 26px; padding: 0; line-height: 26px; text-align: center; font-size: 12px; font-weight: 700; background: #e8eff9; }
#distance-editor.is-pony .pony-adjustment-row { box-sizing: border-box; position: relative; display: block; width: 412px; height: 37px; margin: 0; padding: 0; border: 0; border-top: 1px solid #d6dfeb; border-radius: 0; background: #fff; }
#distance-editor.is-pony .pony-adjustment-row > * { box-sizing: border-box; position: absolute; top: 4px; height: 28px; margin: 0; font: 12px/28px "Segoe UI", sans-serif; }
#distance-editor.is-pony .pony-size-name { left: 8px; width: 57px; padding: 0; font-weight: 700; }
#distance-editor.is-pony .pony-style-name { left: 69px; width: 67px; color: #556881; }
#distance-editor.is-pony .pony-distance-input { left: 138px; width: 77px; min-width: 0; min-height: 0; padding: 3px 4px; border: 1px solid #d6dfeb; border-radius: 0; background: #fff; color: #23354e; font-weight: 700; line-height: normal; }
#distance-editor.is-pony .pony-step-minus,
#distance-editor.is-pony .pony-step-plus { width: 41px; min-width: 0; min-height: 0; padding: 0; border: 1px solid #d6dfeb; border-radius: 0; background: #edf6f3; color: #23354e; }
#distance-editor.is-pony .pony-step-minus { left: 221px; }
#distance-editor.is-pony .pony-step-plus { left: 266px; }
#distance-editor.is-pony .pony-distance-offset { left: 313px; width: 61px; overflow: hidden; color: #556881; white-space: nowrap; }
#distance-editor.is-pony .pony-remove { left: 379px; width: 28px; min-width: 0; min-height: 0; padding: 0; border: 1px solid #d6dfeb; border-radius: 0; background: #fff; color: #556881; }

/* Hunter fields retain their native scrolling region and independent rows. */
#distance-editor.is-hunter .hunter-distance-rows { position: relative; width: 610px; height: 278px; margin: 0; overflow: hidden; }
#distance-editor.is-hunter .hunter-distance-rows table { display: block; width: 610px; margin: 0; border: 0; border-spacing: 0; border-collapse: separate; background: #fff; font: 13px "Segoe UI", sans-serif; }
#distance-editor.is-hunter .hunter-distance-rows thead { display: block; width: 610px; height: 29px; }
#distance-editor.is-hunter .hunter-distance-rows thead tr { position: relative; display: block; height: 29px; }
#distance-editor.is-hunter .hunter-distance-rows th { position: absolute; top: 5px; height: 20px; margin: 0; padding: 0; border: 0; background: #fff; color: #10263b; font: 700 13px/20px "Segoe UI", sans-serif; text-align: left; }
#distance-editor.is-hunter .hunter-distance-rows th:nth-child(2) { left: 47px; }
#distance-editor.is-hunter .hunter-distance-rows th:nth-child(3) { left: 178px; }
#distance-editor.is-hunter .hunter-distance-rows tbody { box-sizing: border-box; display: block; width: 610px; height: 249px; overflow-y: auto; border: 1px solid #6b6b6b; background: #fff; }
#distance-editor.is-hunter .hunter-distance-rows tbody tr { position: relative; display: block; height: 41px; }
#distance-editor.is-hunter .hunter-distance-rows td { position: absolute; top: 4px; height: 32px; margin: 0; padding: 0; border: 0; }
#distance-editor.is-hunter .hunter-distance-rows td:nth-child(1) { left: 4px; width: 30px; }
#distance-editor.is-hunter .hunter-distance-rows td:nth-child(2) { left: 43px; width: 120px; }
#distance-editor.is-hunter .hunter-distance-rows td:nth-child(3) { left: 174px; width: 146px; }
#distance-editor.is-hunter .hunter-distance-rows td:nth-child(4) { left: 333px; width: 67px; }
#distance-editor.is-hunter .hunter-distance-rows td:nth-child(5) { left: 411px; width: 67px; }
#distance-editor.is-hunter .hunter-distance-rows td:nth-child(6) { left: 488px; width: 67px; }
#distance-editor.is-hunter .hunter-distance-rows input { box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 32px; min-height: 0; margin: 0; padding: 3px 2px; border: 2px solid #607ea4; border-radius: 0; background: #fff; color: #14528b; font: 13px "Segoe UI", sans-serif; }
#distance-editor.is-hunter .hunter-distance-rows button { box-sizing: border-box; width: 100%; height: 32px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 1px solid #d6dfeb; border-radius: 5px; background: #fff; color: #00417a; font: 12px "Segoe UI", sans-serif; }
#distance-editor.is-hunter .hunter-distance-rows td:first-child button { font-size: 16px; }

/* Window action positions match their respective native forms. */
#distance-editor.is-pony .distance-editor-footer,
#distance-editor.is-hunter .distance-editor-footer { box-sizing: border-box; display: flex; justify-content: space-between; flex-wrap: nowrap; align-items: flex-start; gap: 0; margin: 0; border: 0; }
#distance-editor.is-pony .distance-editor-footer { height: auto; min-height: 52px; flex-wrap: wrap; gap: 8px; padding: 10px 13px; background: #f3f6fb; }
#distance-editor.is-hunter .distance-editor-footer { height: 93px; padding: 13px 15px 48px; background: #fff; }
#distance-editor.is-pony .distance-preset-actions,
#distance-editor.is-pony .distance-editor-actions,
#distance-editor.is-hunter .distance-preset-actions,
#distance-editor.is-hunter .distance-editor-actions { display: flex; flex-wrap: nowrap; align-items: flex-start; padding: 0; gap: 8px; }
#distance-editor.is-pony .distance-editor-footer button,
#distance-editor.is-hunter .distance-editor-footer button { box-sizing: border-box; min-width: 0; min-height: 0; height: 32px; padding: 0; border: 1px solid #d6dfeb; border-radius: 5px; background: #fff; color: #23354e; opacity: 1; font: 12px "Segoe UI", sans-serif; }
#distance-editor.is-pony .distance-preset-actions button { width: 92px; }
#distance-editor.is-pony #distance-editor-cancel,
#distance-editor.is-pony #pony-apply { width: 80px; }
#distance-editor.is-hunter .distance-preset-actions button { width: 114px; }
#distance-editor.is-hunter .distance-editor-actions { gap: 14px; }
#distance-editor.is-hunter #distance-editor-cancel { width: 94px; }
#distance-editor.is-hunter #hunter-finish { width: 88px; text-transform: uppercase; }
#distance-editor.is-pony #pony-apply,
#distance-editor.is-hunter #hunter-finish { border-color: #245fa6; background: #245fa6; color: #fff; }

/* The current narrow Course Specs surface. */
.specs-panel .pcd-ta-panel { padding: 6px 7px 9px; background: #f2f5f9; color: #23354e; font: 12px/1.25 "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-toolbar { display: flex; justify-content: space-between; align-items: start; height: 32px; gap: 0; margin: 0 0 4px; }
.pcd-ta-panel .pcd-ta-toolbar > div { display: flex; gap: 3px; }
.pcd-ta-panel .pcd-ta-toolbar button { min-height: 0; height: 30px; margin: 0; padding: 0 12px; border: 0; border-radius: 8px; background: #fff; color: #285b9f; font: 12px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-toolbar button.is-selected { background: #285b9f; color: #fff; font-weight: 700; }
.pcd-ta-panel .pcd-ta-toolbar .pcd-ta-clear { background: #f5dfe3; color: #9d414e; }
.pcd-ta-panel .pcd-ta-preset { box-sizing: border-box; width: 100%; height: 30px; margin: 0 0 5px; padding: 3px 6px; border: 0; border-radius: 6px; background: #dce5f1; color: #23354e; opacity: 1; font: 12px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-general { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 6px; margin: 0 0 5px; padding: 5px; border: 1px solid #adbed3; border-radius: 6px; background: #fff; }
.pcd-ta-panel .pcd-ta-field.full-width { grid-column: 1 / -1; }
.pcd-ta-panel .pcd-ta-field > label { display: block; margin: 0 0 2px; color: #556881; font: 12px/14px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-field input,
.pcd-ta-panel .pcd-ta-field select,
.pcd-ta-panel .pcd-ta-value,
.pcd-ta-panel .pcd-ta-field > output { box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 26px; min-height: 0; margin: 0; padding: 3px 6px; border: 0; border-radius: 6px; background: #dce5f1; color: #23354e; opacity: 1; font: 12px/20px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-value { display: flex; align-items: center; gap: 5px; }
.pcd-ta-panel .pcd-ta-value > input { flex: 1; width: 0; height: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; line-height: 20px; }
.pcd-ta-panel .pcd-ta-value > output { flex: 1; min-width: 0; font-size: 12px; }
.pcd-ta-panel .pcd-ta-value > span { flex: none; color: #556881; font-size: 12px; }
.pcd-ta-panel .pcd-ta-locked { background: #eceff3 !important; }
.pcd-ta-panel .pcd-ta-show-field { display: flex; grid-column: 1 / -1; gap: 6px; align-items: center; height: 20px; margin: -3px 0 0; padding: 0 2px; border: 0; background: transparent; color: #285b9f; font: 12px "Segoe UI", sans-serif; text-align: left; }
.pcd-ta-panel .pcd-ta-show-field svg { width: 18px; height: 16px; color: #727e8c; }
.pcd-ta-panel .round-card { margin: 0 0 5px; padding: 6px; border: 1px solid #adbed3; border-radius: 6px; background: #fff; }
.pcd-ta-panel .pcd-ta-round-header { gap: 3px; min-height: 30px; margin: 0 0 4px; font: 700 13px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-round-header .route-actions { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 0 auto; }
.pcd-ta-panel .route-actions button { min-width: 0; min-height: 0; height: 30px; margin: 0; padding: 3px 12px; border-radius: 8px; font: 12px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-collapse { flex: none; width: 15px; height: 24px; padding: 0; border: 0; background: transparent; color: #285b9f; font-size: 10px; }
.pcd-ta-panel .pcd-ta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 5px; }
.pcd-ta-panel .pcd-ta-round > .pcd-ta-field { margin-bottom: 5px; }
.pcd-ta-panel .pcd-ta-override { display: flex; flex: none; align-items: center; gap: 4px; padding: 0; margin: 0; color: #23354e; font: 10px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-override input { width: 14px; height: 14px; min-height: 0; padding: 0; margin: 0; accent-color: #285b9f; }
.pcd-ta-panel .pcd-ta-leads { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 5px 0; color: #556881; font: 12px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-leads label { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.pcd-ta-panel .pcd-ta-leads input { width: 14px; height: 14px; margin: 0; accent-color: #285b9f; opacity: 1; }
.pcd-ta-panel .pcd-ta-live { display: flex; justify-content: space-between; gap: 6px; margin-top: 5px; padding: 5px; background: #eceff3; font-size: 12px; }
.pcd-ta-panel .pcd-ta-live strong { color: #29715b; font-size: 12px; }
.pcd-ta-panel .panel-note { margin-top: 4px; font: 11px/1.3 "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-advanced { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; font: 12px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-advanced label { display: flex; align-items: center; gap: 5px; }
.pcd-ta-panel .pcd-ta-advanced input { width: 17px; height: 17px; margin: 0; }
.pcd-ta-panel .pcd-ta-advanced button { font: 11px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-manual { height: 28px; margin-top: 8px; padding: 4px 10px; border: 0; border-radius: 7px; background: #285b9f; color: #fff; font: 12px "Segoe UI", sans-serif; }
.pcd-ta-panel .pcd-ta-footer { margin-top: 8px; font: 10px/1.3 "Segoe UI", sans-serif; }
.pcd-ta-panel #demo-speed { appearance: textfield; }
.pcd-ta-panel #demo-speed::-webkit-inner-spin-button { appearance: none; }

/* Compact ordinary Distance form, measured from the native 384 × 229 window. */
#distance-editor.is-set-distance { box-sizing: border-box; width: 384px; height: 229px; max-width: calc(100% - 16px); max-height: calc(100% - 115px); top: 108px; padding: 0; overflow: auto; border: 1px solid #8192a4; border-radius: 5px; background: #f3f6fb; color: #193b60; font: 12px/1.2 "Segoe UI", sans-serif; }
#distance-editor.is-set-distance .distance-editor-titlebar { box-sizing: border-box; height: 24px; min-height: 0; padding: 0 3px 0 4px; border: 0; background: linear-gradient(#d8e4ee, #bccfdf); }
#distance-editor.is-set-distance .distance-editor-titlebar strong { color: #8b969f; font: 12px "Segoe UI", sans-serif; }
#distance-editor.is-set-distance #distance-editor-close { width: 29px; height: 19px; min-height: 0; padding: 0; border: 1px solid #8091a2; border-radius: 3px; background: linear-gradient(#edf3f8, #d9e3ed); color: #556779; font: 17px/17px "Segoe UI", sans-serif; }
#distance-editor.is-set-distance #distance-editor-body { box-sizing: border-box; height: 203px; padding: 10px 15px 15px; }
#distance-editor.is-set-distance .intro-distance-panel { width: 352px; margin: 0; padding: 0; }
#distance-editor.is-set-distance .intro-distance-top { display: grid; grid-template-columns: 208px 1fr 88px; align-items: center; gap: 8px; height: 32px; margin: 0 0 5px; }
#distance-editor.is-set-distance .intro-distance-top input { box-sizing: border-box; width: 208px; height: 32px; min-width: 0; margin: 0; padding: 3px; border: 1px solid #68727e; border-radius: 0; background: #fff; color: #193b60; font: 12px "Segoe UI", sans-serif; }
#distance-editor.is-set-distance .intro-distance-top span { padding: 0; font-size: 12px; }
#distance-editor.is-set-distance .intro-distance-panel button { box-sizing: border-box; width: 100%; height: 31px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 1px solid #d6dfeb; border-radius: 5px; background: #edf3fc; color: #193b60; font: 12px "Segoe UI", sans-serif; }
#distance-editor.is-set-distance .intro-distance-top button { height: 32px; border-color: #245fa6; background: #245fa6; color: #fff; }
#distance-editor.is-set-distance .intro-distance-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 31px 31px; gap: 6px; height: 68px; margin: 0 0 5px; }
#distance-editor.is-set-distance .intro-distance-grid button:nth-last-child(-n + 2) { background: #edf6f3; }
#distance-editor.is-set-distance .intro-distance-operations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 31px; margin: 0 0 6px; }
#distance-editor.is-set-distance .intro-distance-minor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 31px; margin: 0; }
#distance-editor.is-set-distance .intro-distance-operations button,
#distance-editor.is-set-distance .intro-distance-minor button { background: #edf6f3; }
#distance-editor.is-set-distance .intro-distance-operations button:nth-child(-n + 2),
#distance-editor.is-set-distance .intro-distance-minor button:nth-child(-n + 2) { background: #f2eef8; }
#distance-editor.is-set-distance .intro-distance-panel button[aria-pressed="true"] { border-color: #607ea4; background: #a5c6ed; color: #193b60; }
#distance-editor.is-set-distance .intro-distance-operations button:disabled { opacity: .5; cursor: default; }
