/* ==========================================================================
   Media Parser Console - Tailwind Companion & Dynamic Component Styles
   Lightweight utilities and keyframe animations complementing Tailwind CSS CDN
   ========================================================================== */

/* Custom Scrollbars */
.analytics-page { max-width: 1320px; margin: 0 auto; color: #334155; }
.analytics-page .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.analytics-intro, .analytics-section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.analytics-intro { margin-bottom: 16px; }
.analytics-eyebrow { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6366f1; }
.analytics-intro h2 { margin: 0; font-size: 24px; line-height: 1.4; font-weight: 750; color: #0f172a; letter-spacing: -.03em; }
.analytics-intro p, .analytics-section-head p { font-size: 13px; color: #64748b; margin: 5px 0 0; }
.analytics-button { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; min-height: 36px; padding: 7px 14px; border: 1px solid #cbd5e1; border-radius: 8px; color: #475569; background: white; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.analytics-button:hover { background: #f8fafc; border-color: #94a3b8; }
.analytics-button.primary { background: #4f46e5; border-color: #4f46e5; color: white; }
.analytics-button.primary:hover { background: #4338ca; }
.analytics-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11px; color: #64748b; margin: 15px 0; }
.analytics-live-dot { height: 6px; width: 6px; background: #10b981; border-radius: 50%; }
.analytics-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.analytics-stat { padding: 20px; background: white; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 2px #0f172a03; }
.analytics-stat.featured { background: linear-gradient(130deg,#eef2ff,#ffffff); border-color: #c7d2fe; }
.analytics-stat > span { display: block; font-size: 12px; font-weight: 600; color: #475569; }
.analytics-stat > strong { display: block; font-size: 32px; line-height: 1.5; font-weight: 750; color: #0f172a; font-variant-numeric: tabular-nums; letter-spacing: -.04em; margin-top: 8px; }
.analytics-stat.featured > strong { color: #4338ca; }
.analytics-stat small { display: block; color: #94a3b8; font-size: 11px; margin-top: 5px; }
.analytics-note { color: #64748b; font-size: 11px; line-height: 1.8; margin: 12px 0 22px; }
.analytics-panel { margin-top: 24px; background: white; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; scroll-margin-top: 85px; }
.analytics-section-head { padding: 22px 22px 16px; }
.analytics-section-head h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0; }
.analytics-inline-link { font-size: 12px; color: #4f46e5; text-decoration: none; white-space: nowrap; }
.analytics-inline-link:hover { text-decoration: underline; }
.analytics-parse-link { display: block; min-width: 180px; max-width: 420px; overflow-wrap: anywhere; color: #4f46e5; font-size: 12px; }
.analytics-parse-link:hover { text-decoration: underline; }
.analytics-subtle { font-size: 11px; color: #94a3b8; }
.analytics-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 0 22px 20px; }
.analytics-filters label { color: #64748b; font-size: 11px; font-weight: 600; display: block; }
.analytics-filters input:not([type=hidden]), .analytics-filters select { display: block; margin-top: 6px; width: 220px; min-height: 36px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 7px 10px; font-size: 12px; background: white; color: #334155; font-weight: 400; }
.analytics-filters select { width: 150px; }
.analytics-filters input:focus, .analytics-filters select:focus { outline: 2px solid #e0e7ff; border-color: #818cf8; }
.analytics-filters .analytics-inline-link { margin: 0 0 10px 1px; }
.analytics-table-scroll { overflow-x: auto; }
.analytics-table { border-collapse: collapse; width: 100%; min-width: 830px; font-size: 12px; text-align: left; }
.analytics-table th { color: #64748b; background: #f8fafc; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #e2e8f0; padding: 12px 18px; white-space: nowrap; font-size: 11px; font-weight: 600; }
.analytics-table td { padding: 15px 18px; border-bottom: 1px solid #f1f5f9; font-variant-numeric: tabular-nums; }
.analytics-table tbody tr:hover { background: #fafbff; }
/* Desktop tool tables look like .analytics-table; a separate class keeps the IP table's selectors exact. */
.tool-usage-table { border-collapse: collapse; width: 100%; min-width: 830px; font-size: 12px; text-align: left; }
.tool-usage-table th { color: #64748b; background: #f8fafc; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #e2e8f0; padding: 12px 18px; white-space: nowrap; font-size: 11px; font-weight: 600; }
.tool-usage-table thead th[colspan] { text-align: center; border-left: 1px solid #e2e8f0; }
.tool-usage-table tbody th { background: none; border-top: 0; border-bottom: 1px solid #f1f5f9; color: #1e293b; font-size: 12px; padding: 15px 18px; }
.tool-usage-table td { padding: 15px 18px; border-bottom: 1px solid #f1f5f9; font-variant-numeric: tabular-nums; }
.tool-usage-table tbody tr:hover { background: #fafbff; }
.tool-usage-table .analytics-mini-tag { display: inline-block; margin: 2px 4px 2px 0; white-space: nowrap; }
.analytics-count { font-weight: 650; color: #1e293b; }
.analytics-good { color: #059669; }
.analytics-bad { color: #dc2626; }
.analytics-muted { color: #94a3b8; }
.analytics-slash { color: #cbd5e1; padding: 0 7px; }
.analytics-time { color: #64748b; white-space: nowrap; font-size: 11px; }
.analytics-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; font-size: 11px; color: #64748b; }
.analytics-pagination > div { display: flex; gap: 8px; }
.analytics-pagination a { padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 6px; color: #475569; text-decoration: none; }
.analytics-pagination a:hover { background: #f8fafc; border-color: #c7d2fe; }
.analytics-notice { border-radius: 10px; padding: 13px 16px; font-size: 12px; line-height: 1.8; margin: 14px 0; }
.analytics-notice strong { font-weight: 650; }
.analytics-notice p { margin: 0; }
.analytics-notice.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.analytics-notice.neutral { background: #f8fafc; border: 1px solid #e2e8f0; color: #64748b; }
.analytics-download-help { margin: 0 22px 18px; font-size: 11px; }
.analytics-download-list { padding: 0 22px; display: grid; gap: 12px; }
.analytics-download { border: 1px solid #e2e8f0; border-radius: 11px; padding: 17px; background: white; }
.analytics-download.bad { border-color: #fecaca; background: #fffafa; }
.analytics-download.warning { border-color: #fde68a; background: #fffefa; }
.analytics-download-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.analytics-download-head > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.analytics-download-head strong { font-size: 12px; color: #334155; font-weight: 650; }
.analytics-platform { font-size: 11px; color: #64748b; }
.analytics-mini-tag { font-size: 10px; border: 1px solid #e2e8f0; padding: 1px 5px; border-radius: 4px; color: #64748b; }
.analytics-badge { padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.analytics-badge.good { color: #047857; background: #ecfdf5; }
.analytics-badge.active { color: #4338ca; background: #eef2ff; }
.analytics-badge.bad { color: #b91c1c; background: #fee2e2; }
.analytics-badge.warning { color: #92400e; background: #fef3c7; }
.analytics-badge.neutral { color: #64748b; background: #f1f5f9; }
.analytics-download-source { font-size: 11px; color: #64748b; margin-top: 7px; }
.analytics-download-source > span { margin-left: 5px; color: #94a3b8; }
.analytics-download-link { margin-top: 9px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.analytics-download-link > span:first-child { color: #64748b; }
.analytics-download-link a { color: #4f46e5; }
.analytics-download-link a:hover { text-decoration: underline; }
.analytics-download-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; padding: 17px 0; margin: 0; }
.analytics-download-metrics dt { font-size: 10px; color: #94a3b8; }
.analytics-download-metrics dd { font-size: 13px; color: #334155; font-weight: 600; margin: 5px 0 0; font-variant-numeric: tabular-nums; }
.analytics-download-metrics dd.analytics-bad { color: #dc2626; }
.analytics-download-metrics small { display: block; font-size: 10px; font-weight: 400; color: #94a3b8; margin-top: 2px; }
.analytics-download-foot { display: flex; gap: 16px; flex-wrap: wrap; font-size: 10px; color: #94a3b8; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.analytics-download-reason { font-size: 11px; color: #b45309; padding-top: 10px; overflow-wrap: anywhere; margin: 0; }
.analytics-download-reason strong { margin-right: 5px; font-weight: 600; }
.analytics-empty { padding: 40px 20px !important; text-align: center; }
.analytics-empty strong { display: block; font-size: 13px; color: #64748b; font-weight: 600; }
.analytics-empty span { display: block; margin-top: 6px; font-size: 11px; color: #94a3b8; }
.analytics-bottom-note { padding: 0 22px; margin-top: 0; }
@media (max-width: 1150px) {
  .analytics-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-download-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 18px; }
}
@media (max-width: 600px) {
  .analytics-intro { align-items: flex-start; }
  .analytics-intro h2 { font-size: 19px; }
  .analytics-intro p { max-width: 230px; line-height: 1.7; }
  .analytics-stats { gap: 8px; }
  .analytics-stat { padding: 14px; }
  .analytics-stat > strong { font-size: 26px; }
  .analytics-section-head { padding: 18px 14px 15px; align-items: flex-start; }
  .analytics-filters { padding: 0 14px 18px; gap: 10px; }
  .analytics-filters label { flex: 1 1 140px; }
  .analytics-filters input:not([type=hidden]), .analytics-filters select { width: 100%; }
  .analytics-download-help { margin: 0 14px 14px; }
  .analytics-download-list { padding: 0 14px; }
  .analytics-download { padding: 13px; }
  .analytics-download-head { align-items: flex-start; }
  .analytics-download-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-pagination { padding: 14px; }
}
/* Only this page replaces the fixed desktop rail on narrow screens. */
@media (max-width: 900px) {
  .analytics-console .console-app { width: 100%; min-width: 0; }
  .analytics-console .sidebar { position: static; inset: auto; width: 100%; min-width: 0; border-right: 0; }
  .analytics-console .sidebar-head { height: 52px; padding: 0 16px; }
  .analytics-console .sidebar-nav { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; }
  .analytics-console .sidebar-nav .nav-group-title { display: none; }
  .analytics-console .sidebar-nav .nav-item { margin: 0 !important; flex: 0 0 auto; gap: 6px; padding: 8px 10px; white-space: nowrap; font-size: 12px; }
  .analytics-console .sidebar-foot { display: none; }
  .analytics-console .main-wrapper { width: 100%; min-width: 0; padding-left: 0; }
  .analytics-console .main-wrapper > div.flex-1 { padding: 18px 14px; min-width: 0; }
  .analytics-console .main-topbar { padding: 0 16px; height: 54px; gap: 12px; }
  .analytics-console .topbar-breadcrumb { font-size: 11px; flex-wrap: wrap; }
  .analytics-console .topbar-right { flex-shrink: 0; }
  .analytics-console .status-pill { font-size: 10px; padding: 5px 8px; gap: 5px; }
  .analytics-console .analytics-page { width: 100%; min-width: 0; }
}

.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* ==========================================================================
   Bulletproof Switch Toggle Component
   ========================================================================== */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 9999px;
}
.switch-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}
.switch-toggle input:checked + .switch-slider {
  background-color: #4f46e5;
}
.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(18px);
}
.switch-toggle input:focus-visible + .switch-slider {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}


/* ==========================================================================
   Interactive Custom Select Menus (Table Manager)
   ========================================================================== */
.custom-select-wrap {
  position: relative;
  display: inline-block;
}
.custom-select-wrap.w-full,
.custom-select-wrap.w-full-wrap {
  display: block;
  width: 100%;
}
.custom-select-wrap.w-full .custom-select-btn,
.custom-select-wrap.w-full-wrap .custom-select-btn {
  width: 100%;
}
.custom-select-wrap.w-full .custom-select-popover,
.custom-select-wrap.w-full-wrap .custom-select-popover {
  width: 100%;
  max-width: 100%;
}
.custom-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  box-sizing: border-box;
  white-space: nowrap;
}
.custom-select-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}
.custom-select-btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-btn-chevron {
  transition: transform 0.2s ease;
  color: #94a3b8;
  flex-shrink: 0;
}
.custom-select-wrap.open .custom-select-btn-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   Date Range Picker & Filter Toolbar Controls (Unified 32px Height)
   ========================================================================== */
.date-range-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.date-range-group input[type="date"] {
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: #334155;
  box-sizing: border-box;
}
.date-range-group input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  padding: 0;
  margin-left: 2px;
}
.date-range-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 0.9;
}
.table-filter-form .filter-input-text {
  height: 32px;
  box-sizing: border-box;
}
.table-filter-form .btn-small {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.custom-select-popover {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 280px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  z-index: 50;
  padding: 4px;
  max-height: 240px;
  overflow-y: auto;
  box-sizing: border-box;
}
.custom-select-wrap.open .custom-select-popover {
  display: block;
}
.custom-select-wrap.drop-up .custom-select-popover {
  top: auto;
  bottom: calc(100% + 4px);
}
.custom-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  color: #475569;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.1s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.custom-select-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}
.custom-select-item.active {
  background-color: #eef2ff;
  color: #4f46e5;
  font-weight: 600;
}
.custom-select-item-check {
  display: none;
  color: #4f46e5;
  flex-shrink: 0;
}
.custom-select-item.active .custom-select-item-check {
  display: block;
}
.custom-select-group-header {
  padding: 8px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.025em;
  user-select: none;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
}
.custom-select-group-header:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 4px;
}

/* ==========================================================================
   Table Batch Select Dropdown & Floating Toolbar
   ========================================================================== */
.batch-select-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.batch-select-dropdown .batch-dropdown-trigger {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 2px;
}
.batch-select-dropdown .batch-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 105px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  z-index: 40;
  padding: 4px;
  white-space: nowrap;
}
.batch-select-dropdown.open .batch-dropdown-menu {
  display: block;
}
.batch-dropdown-item {
  display: block;
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  color: #475569;
  background: none;
  border: none;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.1s ease;
}
.batch-dropdown-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.batch-floating-toolbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.batch-floating-toolbar.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   SVG Charts & Tooltips
   ========================================================================== */
.chart-container {
  position: relative;
  width: 100%;
}
.chart-guide-line {
  pointer-events: none;
}
.chart-hover-dot {
  pointer-events: none;
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 30;
  display: none;
  opacity: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: left 0.06s ease, opacity 0.12s ease, transform 0.12s ease;
  transform: translateY(4px);
}
.chart-tooltip.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.chart-tooltip .tt-title {
  font-weight: 700;
  margin-bottom: 5px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
  font-size: 11.5px;
}
.chart-tooltip .tt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 3px;
  color: #475569;
  font-size: 12px;
}
.chart-tooltip .tt-row strong {
  color: #0f172a;
  font-weight: 600;
}
.chart-tooltip .tt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.pie-slice {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
  cursor: pointer;
  transform-origin: 100px 100px;
}
.pie-slice:hover, .pie-slice.active {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}
.pie-pill-item {
  transition: all 0.15s ease;
}
.pie-pill-item:hover,
.pie-pill-item.active {
  background-color: #f1f5f9;
  color: #0f172a !important;
  font-weight: 600;
}
.pie-pill-item.active span:first-child {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

/* ==========================================================================
   Modal Dialogs & Toasts
   ========================================================================== */
#confirm-modal-backdrop.open {
  display: flex !important;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.toast-bubble {
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Code Syntax Highlighting (Clean Minimalist Light Theme)
   ========================================================================== */
.hl-cmd { color: #2563eb; font-weight: 600; }
.hl-kw { color: #e11d48; font-weight: 600; }
.hl-type { color: #7c3aed; }
.hl-str { color: #0969da; }
.hl-cmt { color: #8c959f; font-style: italic; }
.hl-num { color: #d97706; }
.hl-var { color: #0f172a; font-weight: 500; }

.user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* Hide number input spinners for clean inline unit badges */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
