.xlkc-visit-panel { min-width: 0; gap: 18px; }
.xlkc-analytics-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.xlkc-analytics-heading h3 { margin: 0; color: #263144; font-size: 20px; }
.xlkc-analytics-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.xlkc-visit-panel button, .xlkc-visit-panel select, .xlkc-visit-panel input { font: inherit; }
.xlkc-visit-panel button, .xlkc-visit-panel select, .xlkc-visit-panel input:not([type="checkbox"]) { min-height: 36px; border: 1px solid #e4d6cd; border-radius: 8px; padding: 7px 10px; color: #514b46; background: #fff; font-size: 14px; }
.xlkc-visit-panel button { cursor: pointer; }
.xlkc-visit-panel button:hover { border-color: #cc6a48; background: #fff7f2; }
.xlkc-visit-panel button:disabled { opacity: .45; cursor: default; }
.xlkc-visit-panel :is(button, input, select, summary):focus-visible { outline: 2px solid #b75d3f; outline-offset: 3px; }
.xlkc-analytics-filters { display: grid; gap: 14px; padding: 16px; border: 1px solid #eadfd6; border-radius: 12px; background: #fffaf7; }
.xlkc-analytics-presets { display: flex; gap: 7px; flex-wrap: wrap; }
.xlkc-analytics-presets button { min-height: 32px; border-radius: 999px; padding: 5px 13px; }
.xlkc-analytics-presets button.is-active { color: #9e482e; border-color: #cf7658; background: #ffede2; }
.xlkc-analytics-filter-row { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.xlkc-analytics-filter-row label { display: grid; flex: 1 1 135px; gap: 6px; min-width: 0; color: #6b625a; font-size: 13px; }
.xlkc-analytics-filter-row select { max-width: 100%; width: 100%; }
.xlkc-analytics-filter-row input { min-width: 0; width: 100%; box-sizing: border-box; }
.xlkc-analytics-filter-row .xlkc-analytics-search { flex-basis: 220px; }
.xlkc-analytics-check { display: flex; align-items: center; gap: 7px; color: #6b625a; font-size: 13px; }
.xlkc-analytics-check input { width: 16px; height: 16px; accent-color: #b75d3f; }
.xlkc-analytics-note { margin: 0; color: #766a60; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.xlkc-analytics-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.xlkc-analytics-metrics .admin-metric-card { min-width: 0; padding: 17px; }
.xlkc-analytics-metrics .admin-metric-card strong { font-size: 27px; }
.xlkc-analytics-metrics .admin-metric-card small { line-height: 1.6; }
.xlkc-analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.xlkc-analytics-grid[hidden] { display: none; }
.xlkc-analytics-grid > div, .xlkc-analytics-grid > article { min-width: 0; }
.xlkc-visit-panel .admin-form-panel { min-width: 0; margin: 0; }
.xlkc-analytics-breakdown h3 { margin: 0 0 12px; font-size: 16px; }
.xlkc-analytics-table-wrap { max-width: 100%; max-height: 370px; overflow: auto; overscroll-behavior: contain; }
.xlkc-visit-panel table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; line-height: 1.6; }
.xlkc-visit-panel th { position: sticky; z-index: 1; top: 0; background: #fbf6f1; color: #6f6359; font-weight: 600; white-space: nowrap; }
.xlkc-visit-panel td, .xlkc-visit-panel th { padding: 10px 9px; border-bottom: 1px solid #eee6df; vertical-align: top; }
.xlkc-visit-panel td { color: #4e5967; overflow-wrap: anywhere; }
.xlkc-visit-panel td:not(:first-child) { font-variant-numeric: tabular-nums; }
.xlkc-visit-panel td strong { color: #263144; font-size: 13px; }
.xlkc-visit-panel td small { display: block; margin-top: 3px; color: #867b72; font-size: 12px; overflow-wrap: anywhere; }
.xlkc-analytics-empty { color: #8c7d71; text-align: center; padding: 24px !important; }
.xlkc-analytics-trend-panel { display: grid; gap: 16px; }
.xlkc-analytics-bars { display: flex; gap: 2px; align-items: end; height: 155px; border-bottom: 1px solid #eadfd6; background: repeating-linear-gradient(to top, transparent 0, transparent 38px, #f5eee8 38px, #f5eee8 39px); }
.xlkc-analytics-bars > div { display: flex; align-items: end; flex: 1; min-width: 0; height: 100%; }
.xlkc-analytics-bars span { width: 100%; max-width: 45px; margin: 0 auto; border-radius: 3px 3px 0 0; background: #c97454; }
.xlkc-analytics-bars > div:hover span { background: #9e4a30; }
.xlkc-analytics-axis { display: flex; justify-content: space-between; gap: 10px; padding-top: 7px; color: #7b6b60; font-size: 12px; }
.xlkc-visit-panel summary { width: fit-content; cursor: pointer; color: #775441; font-size: 13px; }
.xlkc-visit-panel details[open] > summary { margin-bottom: 12px; }
.xlkc-analytics-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid #eadfd6; padding-bottom: 10px; }
.xlkc-analytics-tabs button[aria-selected="true"] { color: #9e482e; border-color: #cf7658; background: #ffede2; }
.xlkc-analytics-recent > .xlkc-analytics-heading { margin-bottom: 14px; }
.xlkc-analytics-recent .xlkc-analytics-table-wrap { max-height: 680px; }
.xlkc-analytics-recent table { min-width: 1040px; }
.xlkc-analytics-recent td:nth-child(1) { min-width: 132px; }
.xlkc-analytics-recent td:nth-child(2) { min-width: 125px; max-width: 220px; }
.xlkc-analytics-recent td:nth-child(3) { min-width: 100px; }
.xlkc-analytics-recent td:nth-child(4) { min-width: 135px; max-width: 210px; }
.xlkc-analytics-recent td:nth-child(5) { min-width: 110px; }
.xlkc-analytics-recent td:nth-child(6), .xlkc-analytics-recent td:nth-child(7) { white-space: nowrap; }
.xlkc-analytics-recent td:nth-child(8) { min-width: 130px; }
.xlkc-analytics-recent .xlkc-analytics-text-button { min-height: 28px; padding: 2px 7px; color: #a25135; }
.xlkc-analytics-recent td:last-child, .xlkc-analytics-recent th:last-child { position: sticky; right: 0; min-width: 36px; background: #fffdfa; box-shadow: -5px 0 8px rgb(80 60 40 / 4%); }
.xlkc-analytics-recent th:last-child { background: #fbf6f1; }
.xlkc-analytics-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 13px; color: #7d6e63; }
.xlkc-analytics-pagination > div { display: flex; gap: 8px; }
.xlkc-analytics-definitions { padding: 14px 16px; border: 1px solid #eadfd6; border-radius: 10px; background: #fffaf7; }
.xlkc-analytics-definitions p { color: #766a60; font-size: 13px; line-height: 1.8; }
.xlkc-analytics-dialog { width: min(820px, calc(100vw - 40px)); max-height: calc(100dvh - 50px); box-sizing: border-box; padding: 24px; overflow: auto; color: #374151; border: 1px solid #dfd2c7; border-radius: 14px; background: #fffdfa; }
.xlkc-analytics-dialog::backdrop { background: rgb(31 28 25 / 45%); }
.xlkc-analytics-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.xlkc-analytics-dialog-heading h3 { margin: 0; }
.xlkc-analytics-dialog dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 20px 0; }
.xlkc-analytics-dialog dl > div { min-width: 0; padding-bottom: 8px; border-bottom: 1px solid #eee6df; }
.xlkc-analytics-dialog dt { color: #8a7768; font-size: 12px; }
.xlkc-analytics-dialog dd { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.xlkc-analytics-dialog h4 { margin-bottom: 10px; }
.xlkc-analytics-dialog .xlkc-analytics-table-wrap { max-height: 300px; }
@media (max-width: 1100px) { .xlkc-analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .xlkc-analytics-grid { grid-template-columns: 1fr; }
  .xlkc-analytics-filters { padding: 12px; }
  .xlkc-analytics-filter-row label { flex-basis: 125px; }
  .xlkc-analytics-metrics .admin-metric-card { padding: 13px; }
  .xlkc-analytics-metrics .admin-metric-card strong { font-size: 23px; }
  .xlkc-analytics-heading h3 { font-size: 18px; }
  .xlkc-analytics-heading > div { width: 100%; }
  .xlkc-analytics-dialog { padding: 18px; }
  .xlkc-analytics-dialog dl { grid-template-columns: 1fr; }
}
