/* One neutral hover; green communicates a deliberate selected state. */
#root { --ui-hover-v138: #17212c; --ui-hover-border-v138: #354659; --ui-selected-v138: #162611; --ui-selected-border-v138: #80c51d; }
#root#root :is(button,a[href],summary,label:has(> input[type="checkbox"]),.upload-avatar-button):hover:not(:disabled):not([aria-disabled="true"]):not(.nav-item):not(.run-button):not(.settings-save-v83):not(.profile-limits-done-v22):not(.modal-confirm.neutral):not([type="submit"]):not(.active):not(.selected):not(.complete):not([aria-selected="true"]):not([aria-pressed="true"]):not(:has(> input:checked)) {
  background-color: var(--ui-hover-v138) !important; border-color: var(--ui-hover-border-v138) !important;
  box-shadow: none !important; filter: none !important; transform: none !important;
}
#root#root :is(button,a[href],summary,.upload-avatar-button):not(.nav-item):hover { box-shadow: none !important; transform: none !important; }
#root#root :is(.costs-tabs-v124,.v95-tabs,.usage-period-switch-v63,.app-select-popover-v135) > button:is(.active,.selected,[aria-selected="true"]),
#root#root :is(button.model-choice,button.auto-profile-choice-v16,button.avatar-option,label):is(.selected,[aria-pressed="true"]),
#root#root :is(.allowed-market-options-v49,.league-country-v81) label:has(> input:checked),
#root#root .allowed-market-group-heading-v49 button.complete {
  background-color: var(--ui-selected-v138) !important; border-color: var(--ui-selected-border-v138) !important;
  box-shadow: none !important; transform: none !important; filter: none !important;
}
#root#root :is(.costs-tabs-v124,.v95-tabs,.usage-period-switch-v63,.app-select-popover-v135) > button:is(.active,.selected,[aria-selected="true"]) { color: #a4f12e !important; }
#root#root :is(.run-button,.settings-save-v83,.profile-limits-done-v22,.modal-confirm.neutral,button[type="submit"]):hover:not(:disabled) { box-shadow: none !important; transform: none !important; filter: brightness(1.035) !important; }
#root#root :is(.prompt-direct-v125,.pricing-direct-v125) summary:hover .prompt-expand-label-v7 { background: transparent !important; border: 0 !important; color: #d5dfeb !important; }

/* Identical row hover and return memory, with the actual opener also marked. */
#root#root :is(tr.pick-row,.coupon-slip-row-v80,.analysis-run-row-v134,.v95-coupon-summary,.coupon-slip-footer-v80):is(:hover,.last-opened-row-v138,.last-opened-row-v135):not(.selected),
#root#root .picks-heading-v102:is(.last-opened-row-v138,:has(.analysis-info-button-v136:hover)) { background-color: var(--ui-hover-v138) !important; box-shadow: none !important; }
#root#root tr.pick-row:is(:hover,.last-opened-row-v138):not(.selected) > td { background-color: var(--ui-hover-v138) !important; }
#root#root button.last-opened-v135 { background-color: var(--ui-hover-v138) !important; border-color: var(--ui-hover-border-v138) !important; box-shadow: none !important; filter: none !important; transform: none !important; }

/* The launch clock reuses the range field control and its exact typography. */
#root .auto-launch-clock-v138 { display: grid; gap: 6px; min-width: 0; max-width: 100%; }
#root .auto-launch-clock-v138 > .manual-clock-v122 { display: inline-flex; align-items: center; position: relative; width: 112px; max-width: 100%; min-height: 48px; box-sizing: border-box; border: 1px solid #304559; border-radius: 10px; background: #08121d; }
#root .auto-launch-clock-v138 input { box-sizing: border-box; width: 100%; min-width: 0; height: 46px; padding: 10px 34px 10px 12px; border: 0; background: transparent; color: #eef3fa; font: 700 16px/1.4 Arial, Helvetica, sans-serif; text-align: center; }
#root .auto-launch-clock-v138 .manual-clock-v122 > svg { position: absolute; right: 10px; pointer-events: none; color: #93a7bd; }
#root .auto-launch-clock-v138 > .manual-clock-v122:focus-within { border-color: #90ba56; outline: 1px solid #90ba56; outline-offset: 1px; }
#root .auto-launch-clock-v138 input:focus { box-shadow: none !important; outline: none !important; }
#root .auto-launch-clock-v138:has(input[aria-invalid="true"]) > .manual-clock-v122 { border-color: #dba26a; }
#root .auto-launch-clock-v138 .launch-clock-error-v138 { font: 400 12px/1.4 Arial, Helvetica, sans-serif; color: #edbb82; }
#root .analysis-range-v133 .manual-clock-v122 input { font: 700 16px/1.4 Arial, Helvetica, sans-serif !important; }

/* Initial fetch uses placeholders. Refresh keeps the last genuine values. */
#root .api-account-stat-v122 > small { display: flex; align-items: center; justify-content: center; gap: 8px; }
#root .api-value-skeleton-v138 { display: block; width: min(128px,75%); min-height: 23px; margin-inline: auto; border-radius: 6px; background: #273645; animation: api-pulse-v138 1.2s ease-in-out infinite; }
#root .api-value-checking-v138 { display: inline-block; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #a3b5c7; animation: api-pulse-v138 1.2s ease-in-out infinite; }
@keyframes api-pulse-v138 { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* Broader desktop choosers fit their content without forced full-screen height. */
#root .app-modal:is(.allowed-markets-modal-v49,.allowed-leagues-modal-v81) { width: min(1280px,calc(100vw - 32px)) !important; max-width: min(1280px,calc(100vw - 32px)) !important; height: auto !important; max-height: calc(100dvh - 40px) !important; }
#root :is(.allowed-market-groups-v49,.allowed-leagues-scroll-v81) { flex: 0 1 auto !important; padding-right: 2px !important; }
#root .allowed-market-groups-v49.allowed-market-groups-v58 { gap: 12px; }
#root .allowed-market-options-v49 label, #root .league-country-v81 label { min-height: 44px; box-sizing: border-box; }
#root .allowed-market-group-heading-v49 button { min-height: 44px; }
@media (min-width: 1101px) {
  #root .allowed-market-groups-v49.allowed-market-groups-v58 { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #root .allowed-market-group-v49.wide-v58 { grid-column: span 2; }
  #root .allowed-market-group-v49.wide-v58 .allowed-market-options-v49 { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #root .allowed-leagues-scroll-v81 { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
  #root .league-country-v81 { padding: 10px; }
  #root .league-country-v81 label { padding: 7px; gap: 6px; }
}
@media (min-width: 1360px) { #root .allowed-leagues-scroll-v81 { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 760px) {
  #root .app-modal:is(.allowed-markets-modal-v49,.allowed-leagues-modal-v81) { width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; max-height: calc(100dvh - 24px) !important; }
}
@media (prefers-reduced-motion: reduce) { #root :is(.api-value-skeleton-v138,.api-value-checking-v138) { animation: none !important; opacity: .8; } }
/* Keep every market name readable in the denser desktop grid. */
#root#root .allowed-market-options-v49 strong { min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
#root .allowed-market-options-v49:has(> label:nth-child(2):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
/* Text inputs and joined day/time fields follow the same neutral hover. */
#root#root :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select):hover:not(:disabled):not(:focus) { background-color: var(--ui-hover-v138) !important; border-color: var(--ui-hover-border-v138) !important; box-shadow: none !important; }
#root#root :is(.manual-range-inputs-v122,.auto-launch-clock-v138 > .manual-clock-v122):hover:not(:focus-within) { background-color: var(--ui-hover-v138) !important; border-color: var(--ui-hover-border-v138) !important; box-shadow: none !important; }
/* Replace the older selectable-history minimum too, including at 1366 px. */
@media (min-width: 761px) {
  #root#root .table-wrap .pick-table-v72.pick-table-v103 { width: 100% !important; min-width: var(--pick-table-min-v137,900px) !important; max-width: none !important; margin: 0 !important; }
}
