/**
 * Linkyy Admin Styles
 *
 * Branded admin UI for Dashboard and Settings pages.
 */

/* ---- Brand Tokens ---- */

:root {
  /* Brand */
  --linkyy-brand: #E8593C;
  --linkyy-brand-hover: #D14A2F;
  --linkyy-brand-light: #FEF0ED;
  --linkyy-brand-light-hover: #FDE0D9;
  --linkyy-dark: #1E2432;
  --linkyy-dark-soft: #2A3040;

  /* Surfaces */
  --linkyy-surface: #ffffff;
  --linkyy-surface-raised: #ffffff;
  --linkyy-surface-muted: #f8f9fa;
  --linkyy-border: #e2e5ea;
  --linkyy-border-light: #f0f1f3;

  /* Text */
  --linkyy-text: #1E2432;
  --linkyy-text-secondary: #6B7280;
  --linkyy-text-muted: #9CA3AF;
  --linkyy-text-on-brand: #ffffff;

  /* Status */
  --linkyy-success: #16A34A;
  --linkyy-warning: #D97706;
  --linkyy-danger: #DC2626;

  /* Spacing */
  --linkyy-radius: 8px;
  --linkyy-radius-sm: 6px;
  --linkyy-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --linkyy-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* ---- Wrap Reset ---- */

.linkyy-wrap {
  max-width: none;
  margin-right: 20px;
  padding: 0;
}

.linkyy-wrap > h1:first-of-type {
  display: none;
}

/* ---- Branded Header ---- */

.linkyy-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--linkyy-dark);
  padding: 0 20px;
  margin: -1px -1px 24px -20px;
  min-height: 56px;
}

.linkyy-admin-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.linkyy-admin-header__logo {
  border-radius: 6px;
}

.linkyy-admin-header__name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.linkyy-admin-header__version {
  font-size: 11px;
  font-weight: 500;
  color: var(--linkyy-brand);
  background: rgba(232, 89, 60, 0.15);
  padding: 2px 8px;
  border-radius: 9999px;
}

.linkyy-admin-header__nav {
  display: flex;
  gap: 4px;
}

.linkyy-admin-header__tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-radius: var(--linkyy-radius-sm);
  transition: color 0.15s, background 0.15s;
}

.linkyy-admin-header__tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.linkyy-admin-header__tab:focus {
  color: #fff;
}

.linkyy-admin-header__tab--active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* ---- Stat Cards ---- */

.linkyy-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.linkyy-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--linkyy-surface);
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius);
  padding: 18px 20px;
  box-shadow: var(--linkyy-shadow);
}

.linkyy-stat-card--wide {
  grid-column: span 2;
}

.linkyy-stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.linkyy-stat-card__icon--clicks {
  background: var(--linkyy-brand-light);
  color: var(--linkyy-brand);
}

.linkyy-stat-card__icon--links {
  background: #EFF6FF;
  color: #3B82F6;
}

.linkyy-stat-card__icon--page {
  background: #F0FDF4;
  color: #16A34A;
}

.linkyy-stat-card__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--linkyy-text-secondary);
  margin-bottom: 2px;
}

.linkyy-stat-card__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--linkyy-text);
  font-variant-numeric: tabular-nums;
}

.linkyy-stat-card__value--url {
  font-size: 14px;
  font-weight: 500;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Filter Bar ---- */

.linkyy-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  background: var(--linkyy-surface);
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--linkyy-shadow);
}

.linkyy-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.linkyy-filter-group--page {
  flex: 1 1 280px;
  min-width: 200px;
}

.linkyy-filter-group--export {
  margin-left: auto;
}

.linkyy-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--linkyy-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Page Selector ---- */

.linkyy-page-selector {
  position: relative;
}

.linkyy-page-search {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius-sm);
  background: var(--linkyy-surface);
  color: var(--linkyy-text);
  box-sizing: border-box;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.linkyy-page-search:focus {
  border-color: var(--linkyy-brand);
  box-shadow: 0 0 0 1px var(--linkyy-brand);
  outline: none;
}

.linkyy-page-search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.linkyy-page-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--linkyy-surface);
  border: 1px solid var(--linkyy-border);
  border-top: none;
  border-radius: 0 0 var(--linkyy-radius-sm) var(--linkyy-radius-sm);
  max-height: 300px;
  overflow-y: auto;
  box-shadow: var(--linkyy-shadow-md);
}

.linkyy-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.linkyy-page-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid var(--linkyy-border-light);
  transition: background-color 0.15s;
}

.linkyy-page-item:last-child {
  border-bottom: none;
}

.linkyy-page-item:hover {
  background: var(--linkyy-brand-light);
}

.linkyy-page-item--selected {
  background: var(--linkyy-brand-light);
  font-weight: 600;
}

.linkyy-page-item--empty {
  color: var(--linkyy-text-muted);
  cursor: default;
  font-style: italic;
}

.linkyy-page-item--empty:hover {
  background: transparent;
}

.linkyy-auto-select-hint {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--linkyy-text-secondary);
  background: var(--linkyy-surface-muted);
  border: 1px solid var(--linkyy-border-light);
  border-radius: var(--linkyy-radius-sm);
}

.linkyy-page-item-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  margin-right: 12px;
  color: var(--linkyy-text);
}

.linkyy-page-item-meta {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--linkyy-text-muted);
  white-space: nowrap;
}

/* ---- Date Presets ---- */

.linkyy-date-presets {
  display: flex;
  gap: 0;
}

.linkyy-date-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--linkyy-border);
  background: var(--linkyy-surface-muted);
  color: var(--linkyy-text);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
}

.linkyy-date-btn:first-child {
  border-radius: var(--linkyy-radius-sm) 0 0 var(--linkyy-radius-sm);
}

.linkyy-date-btn:last-child {
  border-radius: 0 var(--linkyy-radius-sm) var(--linkyy-radius-sm) 0;
}

.linkyy-date-btn:not(:first-child) {
  border-left: none;
}

.linkyy-date-btn:hover {
  border-color: var(--linkyy-brand);
  color: var(--linkyy-brand);
}

.linkyy-date-btn--active {
  background: var(--linkyy-brand);
  border-color: var(--linkyy-brand);
  color: var(--linkyy-text-on-brand);
}

.linkyy-date-btn--active:hover {
  background: var(--linkyy-brand-hover);
  border-color: var(--linkyy-brand-hover);
  color: var(--linkyy-text-on-brand);
}

.linkyy-date-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Select Dropdowns ---- */

.linkyy-select {
  padding: 6px 28px 6px 10px;
  font-size: 14px;
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius-sm);
  background: var(--linkyy-surface);
  color: var(--linkyy-text);
  cursor: pointer;
  line-height: 1.4;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%232c3338'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  min-width: 140px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.linkyy-select:focus {
  border-color: var(--linkyy-brand);
  box-shadow: 0 0 0 1px var(--linkyy-brand);
  outline: none;
}

.linkyy-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Export Buttons ---- */

.linkyy-export-buttons {
  display: flex;
  gap: 4px;
}

.linkyy-export-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius-sm);
  background: var(--linkyy-surface-muted);
  color: var(--linkyy-text);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}

.linkyy-export-btn:hover:not(:disabled) {
  border-color: var(--linkyy-brand);
  color: var(--linkyy-brand);
}

.linkyy-export-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.linkyy-export-btn:disabled:hover {
  background: var(--linkyy-surface-muted);
  border-color: var(--linkyy-border);
  color: var(--linkyy-text);
}

/* ---- Loading ---- */

.linkyy-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  font-size: 14px;
  color: var(--linkyy-text-secondary);
}

.linkyy-loading[hidden] {
  display: none;
}

.linkyy-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--linkyy-border);
  border-top-color: var(--linkyy-brand);
  border-radius: 50%;
  animation: linkyy-spin 0.7s linear infinite;
}

@keyframes linkyy-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Empty States ---- */

.linkyy-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--linkyy-surface);
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius);
  box-shadow: var(--linkyy-shadow);
  margin-bottom: 20px;
}

.linkyy-empty-state p {
  font-size: 15px;
  color: var(--linkyy-text-secondary);
  margin: 0;
}

/* ---- Data Table ---- */

.linkyy-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  background: var(--linkyy-surface);
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius);
  box-shadow: var(--linkyy-shadow);
  -webkit-overflow-scrolling: touch;
}

.linkyy-table {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

.linkyy-table thead {
  background: var(--linkyy-dark);
}

.linkyy-th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: none;
  user-select: none;
}

.linkyy-th:first-child {
  border-radius: var(--linkyy-radius) 0 0 0;
}

.linkyy-th:last-child {
  border-radius: 0 var(--linkyy-radius) 0 0;
}

.linkyy-th--sortable {
  cursor: pointer;
  transition: color 0.15s;
}

.linkyy-th--sortable:hover {
  color: var(--linkyy-brand);
}

.linkyy-th--sorted-asc,
.linkyy-th--sorted-desc {
  color: var(--linkyy-brand);
}

.linkyy-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.linkyy-sort-icon {
  font-size: 10px;
  line-height: 1;
}

.linkyy-row {
  border-bottom: 1px solid var(--linkyy-border-light);
  transition: background-color 0.1s;
}

.linkyy-row:nth-child(even) {
  background: var(--linkyy-surface-muted);
}

.linkyy-row:hover {
  background: var(--linkyy-brand-light);
}

.linkyy-row:last-child {
  border-bottom: none;
}

.linkyy-td {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--linkyy-text);
  vertical-align: middle;
}

.linkyy-td--num {
  text-align: left;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.linkyy-td--dest {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--linkyy-brand);
}

.linkyy-td--selector {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  color: var(--linkyy-text-muted);
  cursor: pointer;
  transition: color 0.15s;
}

.linkyy-td--selector:hover {
  color: var(--linkyy-brand);
}

.linkyy-td--selector-expanded {
  white-space: normal;
  word-break: break-all;
  max-width: none;
  overflow: visible;
  background: var(--linkyy-surface-muted);
}

.linkyy-td--confidence {
  white-space: nowrap;
}

/* ---- Confidence Dots ---- */

.linkyy-confidence-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.linkyy-confidence-dot--high {
  background: var(--linkyy-success);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.linkyy-confidence-dot--medium {
  background: var(--linkyy-warning);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

.linkyy-confidence-dot--low {
  background: var(--linkyy-danger);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.linkyy-confidence-label {
  font-size: 12px;
  color: var(--linkyy-text-muted);
  vertical-align: middle;
}

/* ---- Settings Grid ---- */

.linkyy-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.linkyy-settings-card {
  background: var(--linkyy-surface);
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius);
  box-shadow: var(--linkyy-shadow);
  overflow: hidden;
}

.linkyy-settings-card--full {
  grid-column: 1 / -1;
}

.linkyy-settings-card__header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--linkyy-border-light);
}

.linkyy-settings-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--linkyy-text);
  margin: 0 0 4px;
  padding: 0;
}

.linkyy-settings-card__desc {
  font-size: 13px;
  color: var(--linkyy-text-secondary);
  margin: 0;
}

.linkyy-settings-card__body {
  padding: 18px 20px;
}

/* ---- Form Fields ---- */

.linkyy-field {
  margin-bottom: 18px;
}

.linkyy-field:last-child {
  margin-bottom: 0;
}

.linkyy-field--conditional {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--linkyy-border-light);
}

.linkyy-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--linkyy-text);
  margin-bottom: 6px;
}

.linkyy-field__input {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius-sm);
  background: var(--linkyy-surface);
  color: var(--linkyy-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.linkyy-field__input:focus {
  border: 1px solid var(--linkyy-brand) !important;
  box-shadow: 0 0 0 1px var(--linkyy-brand) !important;
}

.linkyy-field__input--sm {
  width: 100px;
}

.linkyy-field__input:focus {
  border-color: var(--linkyy-brand);
  box-shadow: 0 0 0 2px rgba(232, 89, 60, 0.15);
  outline: none;
}

.linkyy-field__textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-family: Consolas, Monaco, monospace;
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius-sm);
  background: var(--linkyy-surface);
  color: var(--linkyy-text);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.linkyy-field__textarea:focus {
  border-color: var(--linkyy-brand);
  box-shadow: 0 0 0 2px rgba(232, 89, 60, 0.15);
  outline: none;
}

.linkyy-field__hint {
  font-size: 12px;
  color: var(--linkyy-text-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

.linkyy-field__hint--warning {
  color: var(--linkyy-danger);
}

/* ---- Checkboxes ---- */

.linkyy-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.linkyy-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--linkyy-radius-sm);
  cursor: pointer;
  transition: background 0.1s;
}

.linkyy-checkbox:hover {
  background: var(--linkyy-surface-muted);
}

.linkyy-checkbox__label {
  font-size: 13px;
  color: var(--linkyy-text);
}

.linkyy-checkbox__note {
  font-size: 11px;
  color: var(--linkyy-text-muted);
  font-style: italic;
}

/* ---- Radio Buttons ---- */

.linkyy-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.linkyy-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--linkyy-border);
  border-radius: var(--linkyy-radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.linkyy-radio:hover {
  border-color: var(--linkyy-brand);
  background: var(--linkyy-brand-light);
}

.linkyy-radio:has(input:checked) {
  border-color: var(--linkyy-brand);
  background: var(--linkyy-brand-light);
}

.linkyy-radio input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--linkyy-brand);
}

.linkyy-radio__content {
  display: flex;
  flex-direction: column;
}

.linkyy-radio__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--linkyy-text);
}

.linkyy-radio__desc {
  font-size: 12px;
  color: var(--linkyy-text-secondary);
  margin-top: 2px;
}

/* ---- Save Button ---- */

.linkyy-settings-footer {
  padding: 16px 0;
}

.linkyy-save-btn,
input.linkyy-save-btn {
  background: var(--linkyy-brand) !important;
  border-color: var(--linkyy-brand) !important;
  color: var(--linkyy-text-on-brand) !important;
  border-radius: var(--linkyy-radius-sm) !important;
  padding: 8px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  box-shadow: none !important;
  text-shadow: none !important;
}

.linkyy-save-btn:hover,
input.linkyy-save-btn:hover {
  background: var(--linkyy-brand-hover) !important;
  border-color: var(--linkyy-brand-hover) !important;
}

/* ---- Pro Callout ---- */

.linkyy-pro-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--linkyy-surface);
  border: 1px solid var(--linkyy-border);
  border-left: 4px solid var(--linkyy-brand);
  border-radius: var(--linkyy-radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--linkyy-shadow);
}

.linkyy-pro-callout__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--linkyy-text);
  margin: 0 0 4px;
}

.linkyy-pro-callout__desc {
  font-size: 13px;
  color: var(--linkyy-text-secondary);
  margin: 0 0 12px;
}

.linkyy-pro-callout__features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--linkyy-text);
}

.linkyy-pro-callout__features li::before {
  content: "\2713";
  color: var(--linkyy-success);
  font-weight: 700;
  margin-right: 6px;
}

.linkyy-pro-callout__action {
  flex-shrink: 0;
}

.linkyy-pro-callout__btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--linkyy-text-on-brand);
  background: var(--linkyy-brand);
  border-radius: var(--linkyy-radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.linkyy-pro-callout__btn:hover,
.linkyy-pro-callout__btn:focus {
  background: var(--linkyy-brand-hover);
  color: var(--linkyy-text-on-brand);
}

/* ---- Responsive ---- */

@media screen and (max-width: 960px) {
  .linkyy-admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .linkyy-filter-bar {
    gap: 12px;
  }

  .linkyy-filter-group--export {
    margin-left: 0;
    width: 100%;
  }

  .linkyy-export-buttons {
    flex-wrap: wrap;
  }

  .linkyy-stat-cards {
    grid-template-columns: 1fr 1fr;
  }

  .linkyy-stat-card--wide {
    grid-column: 1 / -1;
  }

  .linkyy-settings-grid {
    grid-template-columns: 1fr;
  }

  .linkyy-settings-card--full {
    grid-column: 1;
  }
}

@media screen and (max-width: 600px) {
  .linkyy-pro-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .linkyy-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .linkyy-filter-group {
    width: 100%;
  }

  .linkyy-filter-group--page {
    flex: 1 1 auto;
  }

  .linkyy-date-presets {
    width: 100%;
  }

  .linkyy-date-btn {
    flex: 1;
    text-align: center;
  }

  .linkyy-select {
    width: 100%;
    min-width: 0;
  }

  .linkyy-stat-cards {
    grid-template-columns: 1fr;
  }

  .linkyy-stat-card--wide {
    grid-column: 1;
  }

  .linkyy-admin-header__nav {
    width: 100%;
  }

  .linkyy-admin-header__tab {
    flex: 1;
    text-align: center;
  }
}
