:root {
  --focus-line8215: #2563c9;
  --focus-width8215: 1.5px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
}

:root:is([data-theme="dark"], [data-mode="dark"], .dk) {
  --focus-line8215: #85b8ff;
}

details:not([open]) > :not(summary) { display: none !important; }

/* The line stays at the control edge, including controls with no border. */
@layer focus8215 {
  :where(:focus-visible, input:not([type="hidden"]):focus, select:focus, textarea:focus,
         [contenteditable]:not([contenteditable="false"]):focus,
         .orders-e :is(.search, .ctl):has(> :is(input, select):focus),
         .bill-search:has(> input:focus), .dir-search:has(> input:focus),
         :is(.row-photo, .np2 .tp):has(input:focus-visible),
         .overview-original342[aria-pressed="true"], .e-tbtn[aria-pressed="true"],
         .driver-stop8183[data-next], .invoice172segments .doc[aria-pressed="true"],
         .candrow181 .btn.on, .here, [aria-current="true"]:not(#historyResults8207 *),
         .chat187:is(:focus-visible, .reply-target179) > .bubble187,
         #rb:not([data-overview346]) .order-source179 .bubble187,
         #rb[data-overview346] [data-current346="true"] .bubble187, .e-bub.e-this,
         .history-row8207:has([aria-current="true"])) {
    border-color: var(--focus-line8215) !important;
    outline: var(--focus-width8215) solid var(--focus-line8215) !important;
    outline-offset: calc(-1 * var(--focus-width8215)) !important;
    box-shadow: none !important;
  }

  /* Compound controls share one outline on their shell. */
  :where(.orders-e :is(.search, .ctl) > :is(input, select),
         :is(.bill-search, .dir-search) > input,
         :is(.file-picker395, .row-photo, .np2 .tp) input,
         .e-tile .kcard__body, .overview-card342 header input,
         .chat187:has(> .bubble187)):focus {
    outline: none !important;
    box-shadow: none !important;
  }

  /* These controls already have a continuous border on all four sides. */
  :where(input.num:focus, #historySearch8207 input:focus, .login input:focus,
         .head-details196 :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus,
         .e-tile:is([data-selected="true"], :has(.kcard__body:focus-visible)),
         .overview-card342:is([data-current342="true"], :has(header input:checked), :has(header input:focus-visible)),
         .file-picker395:has(input:focus-visible) .file-caption395,
         .driver-choices8194 button[aria-pressed="true"],
         .doc[aria-pressed="true"]:not(.invoice172segments *)) {
    border-color: var(--focus-line8215) !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

@media (forced-colors: active) {
  :root, :root:is([data-theme="dark"], [data-mode="dark"], .dk) { --focus-line8215: Highlight; }
}
