/* ============================================================================
   ui-polish.css — conservative, SAFE global touches only. Loaded last.
   Deliberately does NOT change border-radius or strip borders anywhere — those
   experiments made the dense UI look inconsistent/boxy. This keeps only the
   unambiguous, professional refinements. Terracotta house accent #d97757.
   ============================================================================ */

/* Crisper text rendering */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Premium terracotta text selection */
::selection { background: rgba(217, 119, 87, 0.30); color: #faf9f5; }
::-moz-selection { background: rgba(217, 119, 87, 0.30); color: #faf9f5; }

/* Slim, calm scrollbars (the chunky defaults read as clutter) */
* { scrollbar-width: thin; scrollbar-color: rgba(217, 119, 87, 0.45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(217, 119, 87, 0.55); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ONE calm terracotta focus ring (replaces stacked blue/amber rings) */
*:focus-visible {
  outline: 2px solid rgba(217, 119, 87, 0.6) !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
}
*:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }

/* Subtle interactive transitions on buttons/links */
button, .btn, a { transition: color .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease; }

/* Tabular numerals on common data classes (clean column alignment) */
:is([class*="kpi"], [class*="stat"], [class*="metric"], [class*="value"], td, .num, .mono) {
  font-variant-numeric: tabular-nums;
}
