/* Ura Admin Theme v3.7 — modern filters, edit row, infos polish */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

:root {
  --ura-bg: #fafafa;
  --ura-surface: #ffffff;
  --ura-ink: #0a0a0a;
  --ura-muted: #595959;
  --ura-faint: #a3a3a3;
  --ura-line: #e8e8e8;
  --ura-line-strong: #d4d4d4;
  --ura-sidebar: #f5f5f5;
  --ura-brand: #fd5825;
  --ura-brand-hover: #e44a1c;
  --ura-danger: #ef4444;
  --ura-ok: #10b981;
  --ura-focus: color-mix(in srgb, var(--ura-brand) 35%, white);
  --ura-radius: 12px;
  --ura-radius-sm: 8px;
  --ura-sidebar-w: 248px;
  --ura-topbar-h: 56px;
  --ura-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ura-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ura-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
  --ura-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ura-z-sidebar: 40;
  --ura-z-topbar: 50;
  --ura-z-drawer: 60;
  --ura-z-overlay: 55;
  --ura-icon-edit: url("../img/icons/edit.svg");
  --ura-icon-delete: url("../img/icons/delete.svg");
  --ura-icon-stats: url("../img/icons/stats.svg");
  --ura-icon-share: url("../img/icons/share.svg");
}

*, *::before, *::after { box-sizing: border-box; }

html.ura-theme { height: 100%; -webkit-text-size-adjust: 100%; }

html.ura-theme,
html.ura-theme body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
  font-family: var(--ura-font) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: var(--ura-ink) !important;
  background: var(--ura-bg) !important;
  text-align: left !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.ura-theme body.ura-booted { overflow-x: hidden; }

html.ura-theme a,
html.ura-theme a:link,
html.ura-theme a:visited { color: var(--ura-ink); text-decoration: none; }
html.ura-theme a:hover { color: var(--ura-brand); }

html.ura-theme h1,
html.ura-theme h2,
html.ura-theme h3,
html.ura-theme h4 {
  font-family: var(--ura-font) !important;
  color: var(--ura-ink) !important;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}
html.ura-theme h2 { font-size: 1.35rem; font-weight: 650; line-height: 1.25; }
html.ura-theme h3 { font-size: 1.05rem; font-weight: 650; margin-top: 1.5rem; }

html.ura-theme p,
html.ura-theme li,
html.ura-theme td,
html.ura-theme th,
html.ura-theme thead,
html.ura-theme tbody,
html.ura-theme tfoot,
html.ura-theme tr,
html.ura-theme table,
html.ura-theme div,
html.ura-theme span,
html.ura-theme label,
html.ura-theme legend,
html.ura-theme strong,
html.ura-theme b,
html.ura-theme em,
html.ura-theme i,
html.ura-theme small,
html.ura-theme button,
html.ura-theme input,
html.ura-theme select,
html.ura-theme textarea,
html.ura-theme option,
html.ura-theme optgroup,
html.ura-theme a,
html.ura-theme nav,
html.ura-theme section,
html.ura-theme article,
html.ura-theme header,
html.ura-theme footer,
html.ura-theme main,
html.ura-theme aside,
html.ura-theme form,
html.ura-theme fieldset,
html.ura-theme caption,
html.ura-theme summary,
html.ura-theme details {
  font-family: var(--ura-font) !important;
}

/* Explicit table chrome — YOURLS/tablesorter often force Verdana/Arial on headers */
html.ura-theme table#main_table,
html.ura-theme table#main_table th,
html.ura-theme table#main_table td,
html.ura-theme table#main_table thead,
html.ura-theme table#main_table thead th,
html.ura-theme table#main_table thead td,
html.ura-theme table.tblSorter,
html.ura-theme table.tblSorter th,
html.ura-theme table.tblSorter td,
html.ura-theme table.tblSorter thead,
html.ura-theme table.tblSorter thead th,
html.ura-theme table.tblSorter thead td,
html.ura-theme .tablesorter,
html.ura-theme .tablesorter th,
html.ura-theme .tablesorter thead td,
html.ura-theme #wrap,
html.ura-theme #content,
html.ura-theme #main,
html.ura-theme .ura-app,
html.ura-theme .ura-topbar,
html.ura-theme .ura-sidebar,
html.ura-theme .button,
html.ura-theme input[type="submit"],
html.ura-theme input[type="button"],
html.ura-theme input[type="text"],
html.ura-theme input[type="search"],
html.ura-theme input[type="url"],
html.ura-theme input[type="password"],
html.ura-theme select {
  font-family: var(--ura-font) !important;
}

html.ura-theme #yourls-logo,
html.ura-theme header[role="banner"]:not(.ura-brand-header):not(.ura-topbar),
html.ura-theme body > #wrap > header:not(.ura-brand-header) {
  display: none !important;
}

/* ===== App shell ===== */
.ura-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: var(--ura-topbar-h) 1fr;
  grid-template-areas: "topbar" "main";
}

.ura-sidebar {
  grid-area: sidebar;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  width: var(--ura-sidebar-w);
  background: var(--ura-sidebar);
  border-right: 1px solid var(--ura-line);
  padding: 1.1rem 0.85rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.ura-sidebar__brand {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.55rem 0.75rem;
  text-decoration: none;
}
.ura-sidebar__brand img { height: 28px; width: auto; display: block; }

.ura-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.ura-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--ura-radius-sm);
  color: var(--ura-ink) !important;
  font-size: 0.9rem;
  font-weight: 550;
  transition: background 160ms var(--ura-ease), color 160ms var(--ura-ease);
}
.ura-sidebar__nav a:hover {
  background: rgba(10, 10, 10, 0.05);
  color: var(--ura-ink) !important;
  text-decoration: none !important;
}
.ura-sidebar__nav a.is-active {
  background: var(--ura-ink);
  color: #fff !important;
}

.ura-sidebar__meta {
  margin-top: auto;
  padding: 0.75rem 0.65rem 0.25rem;
  border-top: 1px solid var(--ura-line);
  color: var(--ura-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}
.ura-sidebar__meta strong { color: var(--ura-ink); font-weight: 650; }
.ura-sidebar__meta a { color: var(--ura-brand) !important; font-weight: 600; }

.ura-topbar {
  grid-area: topbar;
  position: sticky;
  top: 0;
  z-index: var(--ura-z-topbar);
  height: var(--ura-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
  background: color-mix(in srgb, var(--ura-surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ura-line);
}
.ura-topbar__left { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.ura-topbar__brand { display: flex; align-items: center; }
.ura-topbar__brand img { height: 26px; width: auto; display: block; }
.ura-topbar__title {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ura-topbar__crumb { display: none; color: var(--ura-faint); font-weight: 500; }

.ura-icon-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: var(--ura-radius-sm);
  border: 1px solid var(--ura-line);
  background: var(--ura-surface);
  color: var(--ura-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms var(--ura-ease), border-color 160ms var(--ura-ease);
  padding: 0 !important;
}
.ura-icon-btn:hover { background: var(--ura-bg); border-color: var(--ura-line-strong); }
.ura-icon-btn:focus-visible { outline: 2px solid var(--ura-focus); outline-offset: 2px; }
.ura-icon-btn svg { width: 18px; height: 18px; }

.ura-workspace {
  grid-area: main;
  min-width: 0;
  padding: 1.15rem 1rem 3rem;
}
.ura-workspace #wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}
.ura-workspace .ura-brand-header { display: none !important; }
.ura-workspace nav[role="navigation"] > #admin_menu { display: none !important; }

.ura-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--ura-z-overlay);
  background: rgba(10, 10, 10, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ura-ease);
}
.ura-overlay.is-open { opacity: 1; pointer-events: auto; }

.ura-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: var(--ura-z-drawer);
  width: min(86vw, 300px);
  background: var(--ura-sidebar);
  border-right: 1px solid var(--ura-line);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(-104%);
  transition: transform 220ms var(--ura-ease);
}
.ura-drawer.is-open { transform: translateX(0); }
.ura-drawer .ura-sidebar__nav { display: flex; }

@media (min-width: 960px) {
  .ura-app {
    grid-template-columns: var(--ura-sidebar-w) 1fr;
    grid-template-rows: var(--ura-topbar-h) 1fr;
    grid-template-areas: "sidebar topbar" "sidebar main";
  }
  .ura-sidebar { display: flex; }
  .ura-topbar__menu,
  .ura-topbar__brand { display: none; }
  .ura-topbar__crumb { display: inline; }
  .ura-overlay,
  .ura-drawer { display: none !important; }
  .ura-workspace { padding: 1.5rem 1.75rem 3.5rem; }
}

/* ===== Login ===== */
html.ura-theme body.login {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(253, 88, 37, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(10, 10, 10, 0.05), transparent 50%),
    var(--ura-bg) !important;
}
html.ura-theme body.login .ura-app,
html.ura-theme body.login .ura-topbar,
html.ura-theme body.login .ura-sidebar,
html.ura-theme body.login .ura-drawer,
html.ura-theme body.login .ura-overlay { display: none !important; }

html.ura-theme body.login #wrap {
  max-width: 420px !important;
  min-height: 100vh !important;
  margin: 0 auto !important;
  padding: 2.5rem 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html.ura-theme body.login .ura-brand-header {
  display: flex !important;
  justify-content: center;
  margin-bottom: 1.75rem;
}
html.ura-theme body.login .ura-brand-logo { height: 36px; width: auto; display: block; }
html.ura-theme body.login .ura-brand-mark { display: none; }
html.ura-theme body.login #login {
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: var(--ura-shadow);
}
html.ura-theme body.login #login p {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
}
html.ura-theme body.login #login p > br { display: none !important; }
html.ura-theme body.login #login label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ura-muted);
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}
html.ura-theme body.login #login input.text,
html.ura-theme body.login #login input[type="text"],
html.ura-theme body.login #login input[type="password"] {
  margin: 0 !important;
}
html.ura-theme body.login #login p:last-of-type { margin-bottom: 0; text-align: left !important; }
html.ura-theme body.login #submit { width: 100%; margin-top: 0.15rem; }
html.ura-theme body.login .error,
html.ura-theme body.login #error-message {
  background: color-mix(in srgb, var(--ura-danger) 10%, white);
  color: #b91c1c !important;
  border: 1px solid color-mix(in srgb, var(--ura-danger) 25%, white);
  border-radius: var(--ura-radius-sm);
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  font-size: 0.875rem;
}
html.ura-theme body.login #footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--ura-muted);
  font-size: 0.75rem;
}

/* ===== Forms / primary buttons (exclude action icon buttons) ===== */
html.ura-theme input.text,
html.ura-theme input[type="text"],
html.ura-theme input[type="password"],
html.ura-theme input[type="url"],
html.ura-theme input[type="search"],
html.ura-theme input[type="number"],
html.ura-theme select,
html.ura-theme textarea {
  width: 100%;
  max-width: 100%;
  appearance: none;
  font-family: var(--ura-font) !important;
  font-size: 0.95rem !important;
  color: var(--ura-ink) !important;
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line-strong) !important;
  border-radius: var(--ura-radius-sm) !important;
  padding: 0.75rem 0.9rem !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: border-color 160ms var(--ura-ease), box-shadow 160ms var(--ura-ease);
}
html.ura-theme input:focus,
html.ura-theme select:focus,
html.ura-theme textarea:focus {
  outline: none !important;
  border-color: var(--ura-brand) !important;
  box-shadow: 0 0 0 3px var(--ura-focus) !important;
}

html.ura-theme input[type="submit"],
html.ura-theme input.button:not([class*="button_"]),
html.ura-theme input.primary,
html.ura-theme button:not(.ura-icon-btn):not(.close):not([class*="button_"]):not(.ura-hits-month__toggle):not(.ura-kpi__btn):not(.ura-ff__btn),
html.ura-theme a.button:not([class*="button_"]) {
  appearance: none;
  font-family: var(--ura-font) !important;
  font-size: 0.875rem !important;
  font-weight: 650 !important;
  color: #fff !important;
  background: var(--ura-ink) !important;
  border: 0 !important;
  border-radius: var(--ura-radius-sm) !important;
  padding: 0.75rem 1.15rem !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 160ms var(--ura-ease), transform 160ms var(--ura-ease);
  text-indent: 0 !important;
  width: auto !important;
  height: auto !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
html.ura-theme input[type="submit"]:hover,
html.ura-theme input.button:not([class*="button_"]):hover,
html.ura-theme input.primary:hover,
html.ura-theme a.button:not([class*="button_"]):hover {
  background: var(--ura-brand) !important;
}
html.ura-theme input[type="reset"].button,
html.ura-theme .button-group input[type="reset"] {
  background: var(--ura-surface) !important;
  color: var(--ura-ink) !important;
  border: 1px solid var(--ura-line-strong) !important;
}
html.ura-theme input[type="reset"].button:hover {
  background: var(--ura-bg) !important;
  color: var(--ura-ink) !important;
}

/* ===== Action icon buttons ===== */
html.ura-theme td.actions {
  white-space: nowrap;
}
html.ura-theme td.actions .button,
html.ura-theme td.actions a.button {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  margin: 0 0.25rem 0 0 !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: var(--ura-radius-sm) !important;
  background-color: var(--ura-surface) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  color: transparent !important;
  text-indent: -9999px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  float: none !important;
  display: inline-block !important;
  vertical-align: middle;
  box-shadow: none !important;
  transition: background-color 160ms var(--ura-ease), border-color 160ms var(--ura-ease), transform 160ms var(--ura-ease);
}
html.ura-theme td.actions .button:hover,
html.ura-theme td.actions a.button:hover {
  background-color: var(--ura-bg) !important;
  border-color: var(--ura-line-strong) !important;
  transform: translateY(-1px);
}
html.ura-theme td.actions .button_edit { background-image: var(--ura-icon-edit) !important; }
html.ura-theme td.actions .button_delete { background-image: var(--ura-icon-delete) !important; }
html.ura-theme td.actions .button_stats { background-image: var(--ura-icon-stats) !important; }
html.ura-theme td.actions .button_share { background-image: var(--ura-icon-share) !important; }
html.ura-theme td.actions .button.loading,
html.ura-theme #add-button.loading {
  background: var(--ura-surface) url("/images/loading.gif") center no-repeat !important;
  background-size: 16px 16px !important;
}
html.ura-theme td.actions .button.disabled,
html.ura-theme #add-button.disabled {
  opacity: 0.45 !important;
  background-color: #ececec !important;
}

/* ===== Composer / new URL ===== */
html.ura-theme #new_url,
html.ura-theme #new_url > div,
html.ura-theme #new_url_form,
html.ura-theme #new_url_form > div {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

html.ura-theme #new_url {
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 16px !important;
  padding: 1.15rem 1.2rem 1.2rem !important;
  margin: 0 0 1.25rem !important;
  box-shadow: var(--ura-shadow);
}

.ura-composer {
  display: grid;
  gap: 0.85rem;
}
.ura-composer__title {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ura-muted);
  margin: 0;
}
.ura-composer__fields {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .ura-composer__fields {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 220px) auto;
    align-items: end;
  }
}
.ura-composer__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ura-muted);
  margin-bottom: 0.35rem;
}
.ura-composer__field label strong {
  color: var(--ura-ink);
  font-weight: 650;
}
html.ura-theme #new_url #add-button {
  width: 100%;
  min-height: 44px;
  white-space: nowrap;
}
@media (min-width: 720px) {
  html.ura-theme #new_url #add-button { width: auto; min-width: 140px; }
}
html.ura-theme #new_url #feedback {
  width: auto !important;
  margin: 0.85rem 0 0 !important;
  padding: 0.7rem 0.85rem !important;
  border-radius: var(--ura-radius-sm);
  background: color-mix(in srgb, var(--ura-ok) 12%, white) !important;
  border: 1px solid color-mix(in srgb, var(--ura-ok) 28%, white) !important;
  color: #047857 !important;
}

/* Stats line above table */
html.ura-theme p#links_total,
html.ura-theme #links_total,
html.ura-theme p:has(+ #filter_form),
html.ura-theme .ura-stats-line {
  color: var(--ura-muted);
  font-size: 0.875rem;
  margin: 0 0 0.85rem;
}

/* Search / filters */
html.ura-theme #filter_form,
html.ura-theme form[name="search"],
html.ura-theme #filter_form div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.85rem;
  background: transparent !important;
}
html.ura-theme #filter_form input.text,
html.ura-theme #filter_form select {
  width: auto;
  min-width: 140px;
}

/* ===== Tables desktop ===== */
.ura-table-shell {
  background: var(--ura-surface);
  border: 1px solid var(--ura-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ura-shadow);
}
.ura-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
html.ura-theme table#main_table,
html.ura-theme table.tblSorter {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
  margin: 0 !important;
}
html.ura-theme table#main_table { min-width: 720px; }
html.ura-theme table#main_table th,
html.ura-theme table.tblSorter th,
html.ura-theme table.tblSorter thead td {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ura-muted);
  background-color: #f7f7f7 !important;
  border-bottom: 1px solid var(--ura-line);
  padding: 0.8rem 1rem;
}
html.ura-theme table#main_table td,
html.ura-theme table.tblSorter td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--ura-line);
  vertical-align: middle;
  font-size: 0.9rem;
  background: transparent !important;
}
html.ura-theme table#main_table tr:last-child td,
html.ura-theme table.tblSorter tr:last-child td { border-bottom: 0; }
html.ura-theme table#main_table tr:hover td { background: #fcfcfc !important; }
html.ura-theme table#main_table td.keyword a,
html.ura-theme table#main_table td.url a {
  color: var(--ura-brand) !important;
  font-weight: 650;
}
html.ura-theme table#main_table td.keyword a {
  font-family: var(--ura-mono);
  font-size: 0.82rem;
}
html.ura-theme table#main_table td.url small a {
  color: var(--ura-muted) !important;
  font-weight: 500;
  word-break: break-all;
}
html.ura-theme table#main_table td.clicks {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
html.ura-theme tr.edit-row td {
  background: color-mix(in srgb, var(--ura-brand) 6%, white) !important;
}

/* ===== Mobile cards for main URL table ===== */
@media (max-width: 759px) {
  .ura-table-scroll { overflow: visible; }
  html.ura-theme table#main_table {
    min-width: 0 !important;
    border: 0 !important;
  }
  html.ura-theme table#main_table thead { display: none !important; }
  html.ura-theme table#main_table tbody { display: block; }
  html.ura-theme table#main_table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    background: var(--ura-surface) !important;
    border: 1px solid var(--ura-line) !important;
    border-radius: 14px !important;
    padding: 0.95rem 1rem !important;
    margin: 0 0 0.75rem !important;
    box-shadow: var(--ura-shadow);
  }
  html.ura-theme table#main_table tbody tr:hover td { background: transparent !important; }
  html.ura-theme table#main_table td {
    border: 0 !important;
    padding: 0.15rem 0 !important;
    min-width: 0;
  }
  html.ura-theme table#main_table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ura-faint);
    margin-bottom: 0.15rem;
  }
  html.ura-theme table#main_table td.keyword {
    grid-column: 1 / 2;
    grid-row: 1;
  }
  html.ura-theme table#main_table td.keyword::before { content: none; }
  html.ura-theme table#main_table td.keyword a { font-size: 1rem !important; }
  html.ura-theme table#main_table td.actions {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
  }
  html.ura-theme table#main_table td.actions::before { content: none; }
  html.ura-theme table#main_table td.url {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  html.ura-theme table#main_table td.timestamp {
    grid-column: 1 / 2;
    grid-row: 3;
    color: var(--ura-muted);
    font-size: 0.82rem;
  }
  html.ura-theme table#main_table td.ip {
    grid-column: 1 / 2;
    grid-row: 4;
    color: var(--ura-muted);
    font-size: 0.82rem;
  }
  html.ura-theme table#main_table td.clicks {
    grid-column: 2 / 3;
    grid-row: 3 / 5;
    justify-self: end;
    align-self: center;
    text-align: right;
    font-size: 1.15rem;
  }
  html.ura-theme table#main_table td.clicks::before {
    text-align: right;
  }

  /* Plugins / tools tables: simpler stacked cards */
  html.ura-theme table.tblSorter:not(#main_table) {
    min-width: 0 !important;
  }
  html.ura-theme table.tblSorter:not(#main_table) thead { display: none; }
  html.ura-theme table.tblSorter:not(#main_table),
  html.ura-theme table.tblSorter:not(#main_table) tbody,
  html.ura-theme table.tblSorter:not(#main_table) tr,
  html.ura-theme table.tblSorter:not(#main_table) td,
  html.ura-theme table.tblSorter:not(#main_table) th {
    display: block;
    width: 100%;
  }
  html.ura-theme table.tblSorter:not(#main_table) tr {
    background: var(--ura-surface);
    border: 1px solid var(--ura-line);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
  }
  html.ura-theme table.tblSorter:not(#main_table) td,
  html.ura-theme table.tblSorter:not(#main_table) th {
    border: 0 !important;
    padding: 0.25rem 0 !important;
  }
}

/* ===== Inner pages: tools / plugins ===== */
html.ura-theme main.sub_wrap,
html.ura-theme .sub_wrap {
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.25rem 1.5rem !important;
  box-shadow: var(--ura-shadow);
}
html.ura-theme main.sub_wrap ul { padding-left: 1.15rem; }
html.ura-theme main.sub_wrap li { margin: 0.35rem 0; color: var(--ura-muted); }
html.ura-theme main.sub_wrap li span,
html.ura-theme main.sub_wrap p span {
  color: var(--ura-ink);
  font-weight: 600;
}

html.ura-theme a.bookmarklet {
  border: 1px solid var(--ura-line-strong) !important;
  border-radius: 999px !important;
  background: var(--ura-bg) none !important;
  color: var(--ura-ink) !important;
  padding: 0.55rem 0.95rem !important;
  margin: 0.25rem 0.35rem 0.25rem 0 !important;
  font-weight: 650;
  display: inline-flex !important;
  align-items: center;
}
html.ura-theme a.bookmarklet:hover {
  background: var(--ura-ink) !important;
  color: #fff !important;
  text-decoration: none !important;
}

html.ura-theme #plugin_summary {
  color: var(--ura-muted);
  margin-bottom: 1rem;
}
html.ura-theme tr.plugin td.plugin_desc small {
  visibility: visible !important;
  color: var(--ura-muted);
}
html.ura-theme tr.plugin.active td {
  background: color-mix(in srgb, var(--ura-ok) 6%, white) !important;
}

html.ura-theme .notice,
html.ura-theme .success,
html.ura-theme .warning,
html.ura-theme .error:not(#error-message) {
  width: auto !important;
  max-width: 100%;
  margin: 0 0 1rem !important;
  padding: 0.85rem 1rem !important;
  border-radius: 12px !important;
  border: 1px solid var(--ura-line) !important;
  background: var(--ura-surface) !important;
  box-shadow: var(--ura-shadow);
}
html.ura-theme .notice { border-color: #bfdbfe !important; background: #eff6ff !important; }
html.ura-theme .success { border-color: #a7f3d0 !important; background: #ecfdf5 !important; color: #047857 !important; }
html.ura-theme .warning { border-color: #fde68a !important; background: #fffbeb !important; color: #b45309 !important; }

html.ura-theme #delete-confirm-dialog {
  border: 1px solid var(--ura-line) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  width: min(92vw, 420px) !important;
  height: auto !important;
  max-width: 92vw;
  font-family: var(--ura-font);
}
html.ura-theme #delete-confirm-dialog > div[name="dialog_title"] {
  font-family: var(--ura-font) !important;
  font-weight: 650;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--ura-line);
}
html.ura-theme #delete-confirm-dialog div.confirm-message { padding: 1rem 1.15rem; }
html.ura-theme #delete-confirm-dialog div.button-group {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.85rem 1.15rem 1.15rem;
}
html.ura-theme #delete-confirm-dialog::backdrop {
  background: rgba(10, 10, 10, 0.45);
}

html.ura-theme #footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ura-line);
  color: var(--ura-muted);
  font-size: 0.75rem;
  text-align: center;
}
html.ura-theme #footer p {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
html.ura-theme #footer a {
  background: none !important;
  padding-left: 0 !important;
  color: var(--ura-ink);
  font-weight: 600;
}

html.ura-theme code,
html.ura-theme tt,
html.ura-theme kbd,
html.ura-theme samp {
  font-family: var(--ura-mono);
  background: var(--ura-sidebar);
  border: 1px solid var(--ura-line);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.82em;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  max-width: 100%;
}
html.ura-theme pre,
html.ura-theme pre code {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
  padding: 0.85rem 1rem;
  border-radius: var(--ura-radius-sm);
  background: var(--ura-sidebar);
  border: 1px solid var(--ura-line);
}
html.ura-theme a,
html.ura-theme td,
html.ura-theme th,
html.ura-theme p,
html.ura-theme li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

html.ura-theme .jquery-notify-bar {
  font-family: var(--ura-font) !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== v3.3 polish ===== */

/* Kill stock YOURLS blue composer chrome + fixed widths */
html.ura-theme #new_url div,
html.ura-theme #new_url_form,
html.ura-theme #new_url_form > div,
html.ura-theme #new_url .ura-composer,
html.ura-theme #new_url .ura-composer__fields,
html.ura-theme #new_url .ura-composer__field {
  background: transparent !important;
  background-color: transparent !important;
  max-width: 100% !important;
}
html.ura-theme #new_url {
  background: var(--ura-surface) !important;
  background-color: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  overflow: hidden !important;
  width: 100% !important;
}
html.ura-theme #add-url,
html.ura-theme #add-keyword,
html.ura-theme #new_url input.text {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.ura-composer,
.ura-composer__fields,
.ura-composer__field {
  min-width: 0;
  width: 100%;
}
@media (max-width: 719px) {
  .ura-composer__fields {
    grid-template-columns: 1fr !important;
  }
  html.ura-theme #new_url {
    padding: 1rem !important;
  }
  html.ura-theme #new_url #add-button {
    width: 100% !important;
  }
}

/* Link colors: ink by default, brand on hover (ura.design) */
html.ura-theme table#main_table td.keyword a,
html.ura-theme table#main_table td.url a {
  color: var(--ura-ink) !important;
}
html.ura-theme table#main_table td.keyword a:hover,
html.ura-theme table#main_table td.url a:hover {
  color: var(--ura-brand) !important;
}
html.ura-theme table#main_table td.url small a {
  color: var(--ura-muted) !important;
}

/* Action icons hover: soft brand tint */
html.ura-theme td.actions .button:hover,
html.ura-theme td.actions a.button:hover {
  border-color: color-mix(in srgb, var(--ura-brand) 35%, var(--ura-line)) !important;
  background-color: color-mix(in srgb, var(--ura-brand) 8%, white) !important;
}
html.ura-theme td.actions .button_delete:hover {
  border-color: color-mix(in srgb, var(--ura-danger) 40%, var(--ura-line)) !important;
  background-color: color-mix(in srgb, var(--ura-danger) 8%, white) !important;
}

/* Selects with arrows */
html.ura-theme select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: var(--ura-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 14px !important;
  padding-right: 2.25rem !important;
  cursor: pointer;
}

/* Filters + pagination panel */
html.ura-theme table#main_table tfoot,
html.ura-theme table#main_table tfoot tr,
html.ura-theme table#main_table tfoot th {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
}
html.ura-theme table#main_table tfoot th {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: inherit !important;
  color: inherit !important;
  position: static !important;
}

html.ura-theme #filter_form {
  display: block !important;
  margin: 1rem 0 0 !important;
  padding: 1.1rem 1.15rem !important;
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--ura-shadow);
}
html.ura-theme #filter_form > div,
html.ura-theme #filter_options {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
}
html.ura-theme #filter_options {
  font-size: 0.875rem;
  color: var(--ura-muted);
  line-height: 1.6;
}
html.ura-theme #filter_form:not(.ura-ff--v2) input.text,
html.ura-theme #filter_form:not(.ura-ff--v2) select {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: inline-block;
  vertical-align: middle;
  margin: 0.15rem 0.25rem !important;
}
html.ura-theme #filter_buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
html.ura-theme #filter_buttons .button,
html.ura-theme #filter_buttons input {
  margin: 0 !important;
}

html.ura-theme #pagination {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ura-line);
}
html.ura-theme #pagination .navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
html.ura-theme #pagination .nav_total {
  width: 100%;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ura-muted);
  margin-bottom: 0.25rem;
}
html.ura-theme #pagination .nav_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--ura-line);
  background: var(--ura-surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ura-ink);
}
html.ura-theme #pagination .nav_link a {
  color: inherit !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
html.ura-theme #pagination .nav_link:hover {
  border-color: var(--ura-line-strong);
  background: var(--ura-bg);
}
html.ura-theme #pagination .nav_current {
  background: var(--ura-ink) !important;
  border-color: var(--ura-ink) !important;
  color: #fff !important;
}
html.ura-theme #pagination .nav_first,
html.ura-theme #pagination .nav_last {
  min-width: auto;
  padding: 0 0.8rem;
  font-size: 0.8rem;
}
html.ura-theme #pagination .nav_prev:empty,
html.ura-theme #pagination .nav_next:empty {
  display: none;
}

/* Mobile cards: only tbody rows */
@media (max-width: 759px) {
  html.ura-theme table#main_table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    background: var(--ura-surface) !important;
    border: 1px solid var(--ura-line) !important;
    border-radius: 14px !important;
    padding: 0.95rem 1rem !important;
    margin: 0 0 0.75rem !important;
    box-shadow: var(--ura-shadow);
  }
  html.ura-theme table#main_table tfoot tr {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html.ura-theme #filter_form input.text,
  html.ura-theme #filter_form select {
    width: 100% !important;
    margin: 0.35rem 0 !important;
  }
  html.ura-theme #filter_buttons {
    flex-direction: column;
  }
  html.ura-theme #filter_buttons .button,
  html.ura-theme #filter_buttons input {
    width: 100% !important;
  }

  /* Plugins table as cards */
  html.ura-theme table#main_table.tblSorter tbody tr.plugin,
  html.ura-theme body[class*="plugins"] table#main_table tbody tr {
    display: block !important;
    grid-template-columns: none;
  }
}

/* Tools / content pages wider + readable */
html.ura-theme main.sub_wrap,
html.ura-theme .sub_wrap {
  max-width: none;
}
html.ura-theme .ura-workspace--wide #wrap {
  max-width: 1280px;
}

/* Hide stock footer; theme places credit in shell */
html.ura-theme #footer {
  display: none !important;
}
.ura-shell-credit {
  margin-top: auto;
  padding: 0.85rem 0.65rem 0.15rem;
  border-top: 1px solid var(--ura-line);
  color: var(--ura-faint);
  font-size: 0.7rem;
  line-height: 1.4;
}
.ura-shell-credit a {
  color: var(--ura-muted) !important;
  font-weight: 600;
}
.ura-workspace-credit {
  margin-top: 2rem;
  text-align: center;
  color: var(--ura-faint);
  font-size: 0.7rem;
}
.ura-workspace-credit a {
  color: var(--ura-muted) !important;
  font-weight: 600;
}

/* Share box shouldn't steal page title styling awkwardly */
html.ura-theme #shareboxes h2,
html.ura-theme .share h2 {
  font-size: 1rem !important;
}

/* ===== v3.4 mobile layout rebuild ===== */

.ura-filters-panel {
  margin-top: 1rem;
}

@media (max-width: 759px) {
  /* Neutralize prior broken card rules */
  html.ura-theme table#main_table,
  html.ura-theme table#main_table.tblSorter,
  html.ura-theme .ura-plugins-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
  }
  html.ura-theme .ura-table-shell,
  html.ura-theme .ura-table-scroll {
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  html.ura-theme table#main_table thead {
    display: none !important;
  }
  html.ura-theme table#main_table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  html.ura-theme table#main_table tfoot {
    display: none !important; /* filters detached via JS */
  }

  /* Reset ALL cell/row placement from earlier rules */
  html.ura-theme table#main_table tbody tr,
  html.ura-theme table#main_table tbody td {
    position: static !important;
    float: none !important;
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* ---- Links cards ---- */
  html.ura-theme body.ura-page-links table#main_table tbody tr,
  html.ura-theme.ura-theme body.ura-page-links table#main_table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    background: var(--ura-surface) !important;
    border: 1px solid var(--ura-line) !important;
    border-radius: 14px !important;
    padding: 1rem !important;
    margin: 0 !important;
    box-shadow: var(--ura-shadow);
  }
  html.ura-theme body.ura-page-links table#main_table tbody td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  html.ura-theme body.ura-page-links table#main_table tbody td::before {
    content: attr(data-label) !important;
    display: block !important;
    font-size: 0.68rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--ura-faint) !important;
    margin-bottom: 0.2rem !important;
  }
  html.ura-theme body.ura-page-links table#main_table tbody td.keyword {
    order: 1;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  html.ura-theme body.ura-page-links table#main_table tbody td.keyword::before { display: none !important; }
  html.ura-theme body.ura-page-links table#main_table tbody td.keyword a {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    word-break: break-word;
  }
  html.ura-theme body.ura-page-links table#main_table tbody td.actions {
    order: 1;
    width: auto !important;
    margin-left: auto;
  }
  html.ura-theme body.ura-page-links table#main_table tbody td.actions::before { display: none !important; }
  /* Put keyword + actions on one visual row via nested wrap? simpler: actions order 2 under keyword */
  html.ura-theme body.ura-page-links table#main_table tbody td.actions { order: 2; margin-left: 0; }
  html.ura-theme body.ura-page-links table#main_table tbody td.url { order: 3; }
  html.ura-theme body.ura-page-links table#main_table tbody td.timestamp { order: 4; color: var(--ura-muted); font-size: 0.85rem; }
  html.ura-theme body.ura-page-links table#main_table tbody td.ip { order: 5; color: var(--ura-muted); font-size: 0.85rem; }
  html.ura-theme body.ura-page-links table#main_table tbody td.clicks {
    order: 6;
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.35rem !important;
    border-top: 1px solid var(--ura-line) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
  }
  html.ura-theme body.ura-page-links table#main_table tbody td.clicks::before {
    margin-bottom: 0 !important;
    font-size: 0.68rem !important;
  }

  /* keyword row with actions beside via grid on the tr for first two only - use subgrid alternative:
     flex column is fine: slug, then action buttons, then rest */
  html.ura-theme body.ura-page-links table#main_table tbody td.actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  /* ---- Plugin cards ---- */
  html.ura-theme body.ura-page-plugins table#main_table tbody tr.plugin,
  html.ura-theme body.ura-page-plugins table#main_table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    background: var(--ura-surface) !important;
    border: 1px solid var(--ura-line) !important;
    border-radius: 14px !important;
    padding: 1rem !important;
    margin: 0 !important;
    box-shadow: var(--ura-shadow);
  }
  html.ura-theme body.ura-page-plugins table#main_table tbody td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  html.ura-theme body.ura-page-plugins table#main_table tbody td::before {
    content: attr(data-label) !important;
    display: block !important;
    font-size: 0.68rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--ura-faint) !important;
    margin-bottom: 0.2rem !important;
  }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_name {
    order: 1;
  }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_name a {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--ura-ink) !important;
  }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_version { order: 2; }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_desc { order: 3; color: var(--ura-muted); }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_desc small {
    display: block;
    margin-top: 0.35rem;
    visibility: visible !important;
    word-break: break-all;
  }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_author { order: 4; }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_actions,
  html.ura-theme body.ura-page-plugins table#main_table tbody td.actions {
    order: 5;
    padding-top: 0.35rem !important;
    border-top: 1px solid var(--ura-line) !important;
  }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_actions::before,
  html.ura-theme body.ura-page-plugins table#main_table tbody td.actions::before {
    display: none !important;
  }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_actions a,
  html.ura-theme body.ura-page-plugins table#main_table tbody td.actions a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1rem !important;
    border-radius: 8px !important;
    background: var(--ura-ink) !important;
    color: #fff !important;
    font-weight: 650 !important;
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 0.875rem !important;
    background-image: none !important;
  }
  html.ura-theme body.ura-page-plugins tr.plugin.active {
    border-color: color-mix(in srgb, var(--ura-ok) 35%, var(--ura-line)) !important;
  }
  html.ura-theme body.ura-page-plugins tr.plugin.active td {
    background: transparent !important;
  }

  /* Filters panel under cards */
  html.ura-theme .ura-filters-panel #filter_form {
    margin-top: 0 !important;
  }
  html.ura-theme #toggle_plugins {
    background: transparent url("../img/icons/stats.svg") center / 14px no-repeat !important;
    filter: none !important;
    opacity: 0.7;
    vertical-align: middle;
  }
}

/* Desktop: keep plugins table readable, no min-width trap on plugins */
html.ura-theme body.ura-page-plugins table#main_table {
  min-width: 0 !important;
}
@media (min-width: 760px) {
  html.ura-theme body.ura-page-plugins .ura-table-scroll {
    overflow-x: auto;
  }
}

/* Links cards: proper 2-col header row */
@media (max-width: 759px) {
  html.ura-theme body.ura-page-links table#main_table tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "keyword actions"
      "url url"
      "timestamp timestamp"
      "ip ip"
      "clicks clicks";
    align-items: start !important;
  }
  html.ura-theme body.ura-page-links table#main_table tbody td.keyword { grid-area: keyword !important; }
  html.ura-theme body.ura-page-links table#main_table tbody td.actions { grid-area: actions !important; margin: 0 !important; }
  html.ura-theme body.ura-page-links table#main_table tbody td.url { grid-area: url !important; }
  html.ura-theme body.ura-page-links table#main_table tbody td.timestamp,
  html.ura-theme body.ura-page-links table#main_table tbody td.ip {
    grid-area: meta !important;
  }
  /* stack date + ip inside meta area */
  html.ura-theme body.ura-page-links table#main_table tbody td.timestamp {
    display: inline-block !important;
    width: auto !important;
    margin-right: 1rem;
  }
  html.ura-theme body.ura-page-links table#main_table tbody td.ip {
    display: inline-block !important;
    width: auto !important;
  }
  html.ura-theme body.ura-page-links table#main_table tbody td.clicks {
    grid-area: clicks !important;
  }
}


/* ===== v3.5: Shorten button, filters, pagination, infos, overflow ===== */

/* Shorten button must beat any transparent inheritance */
html.ura-theme #new_url #add-button,
html.ura-theme #new_url_form #add-button,
html.ura-theme #add-button.button,
html.ura-theme input#add-button {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #fff !important;
  background: var(--ura-ink) !important;
  background-color: var(--ura-ink) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: var(--ura-radius-sm) !important;
  min-height: 44px !important;
  min-width: 120px !important;
  padding: 0.75rem 1.25rem !important;
  margin: 0 !important;
  font-family: var(--ura-font) !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-indent: 0 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
  width: auto !important;
  height: auto !important;
  float: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
html.ura-theme #new_url #add-button:hover,
html.ura-theme #add-button.button:hover {
  background: var(--ura-brand) !important;
  background-color: var(--ura-brand) !important;
  color: #fff !important;
}
@media (max-width: 719px) {
  html.ura-theme #new_url #add-button,
  html.ura-theme #add-button.button {
    width: 100% !important;
  }
}

/* Filters panel: rebuild layout */
.ura-filters-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  width: 100%;
}
.ura-filters-panel #filter_form {
  margin: 0 !important;
  width: 100%;
}
html.ura-theme #filter_form {
  display: block !important;
  padding: 1.15rem 1.2rem !important;
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--ura-shadow);
}
html.ura-theme #filter_form form {
  margin: 0;
}
html.ura-theme #filter_options,
html.ura-theme #filter_form > form > #filter_options,
html.ura-theme .ura-filter-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.85rem !important;
  align-items: end;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.875rem;
  color: var(--ura-muted);
  line-height: 1.45;
}
@media (min-width: 720px) {
  html.ura-theme .ura-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1100px) {
  html.ura-theme .ura-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
html.ura-theme .ura-filter-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
html.ura-theme .ura-filter-row__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ura-faint);
}
html.ura-theme .ura-filter-row__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
html.ura-theme .ura-filter-row__controls > * {
  margin: 0 !important;
}
html.ura-theme #filter_form input.text,
html.ura-theme #filter_form select {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 1 1 auto;
  margin: 0 !important;
}
html.ura-theme #filter_form input[name="search"],
html.ura-theme #filter_form input[name="perpage"],
html.ura-theme #filter_form input[name="click_limit"],
html.ura-theme #filter_form input[name="date_first"],
html.ura-theme #filter_form input[name="date_second"] {
  min-width: 5.5rem;
}
html.ura-theme #filter_buttons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  padding-top: 0.35rem;
}
html.ura-theme #filter_buttons .button,
html.ura-theme #filter_buttons input {
  margin: 0 !important;
  min-height: 40px;
}
html.ura-theme #submit-clear-filter {
  background: var(--ura-surface) !important;
  color: var(--ura-ink) !important;
  border: 1px solid var(--ura-line-strong) !important;
}
html.ura-theme #submit-clear-filter:hover {
  background: var(--ura-bg) !important;
}

/* Pagination as its own card */
html.ura-theme #pagination,
.ura-filters-panel #pagination {
  margin: 0 !important;
  padding: 0.85rem 1rem !important;
  background: var(--ura-surface);
  border: 1px solid var(--ura-line);
  border-radius: 14px;
  box-shadow: var(--ura-shadow);
  border-top: 1px solid var(--ura-line) !important;
}
html.ura-theme #pagination .navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
html.ura-theme #pagination .nav_total {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ura-muted);
  margin-bottom: 0.15rem;
}
html.ura-theme #pagination .nav_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--ura-line);
  background: var(--ura-bg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ura-ink);
}
html.ura-theme #pagination .nav_link a {
  color: inherit !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
html.ura-theme #pagination .nav_link:hover {
  border-color: var(--ura-line-strong);
  background: var(--ura-surface);
}
html.ura-theme #pagination .nav_current {
  background: var(--ura-ink) !important;
  border-color: var(--ura-ink) !important;
  color: #fff !important;
}
html.ura-theme #pagination .nav_first,
html.ura-theme #pagination .nav_last {
  min-width: auto;
  padding: 0 0.85rem;
  font-size: 0.8rem;
}
html.ura-theme #pagination .nav_prev:empty,
html.ura-theme #pagination .nav_next:empty {
  display: none !important;
}
@media (max-width: 759px) {
  html.ura-theme #filter_buttons {
    flex-direction: column;
  }
  html.ura-theme #filter_buttons .button,
  html.ura-theme #filter_buttons input {
    width: 100% !important;
  }
  html.ura-theme #filter_form input.text,
  html.ura-theme #filter_form select {
    width: 100% !important;
    flex: 1 1 100%;
  }
  html.ura-theme .ura-filter-row__controls {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Tools page: contain long API URLs / code */
html.ura-theme body.ura-page-tools #wrap,
html.ura-theme body.ura-page-tools .sub_wrap,
html.ura-theme body.ura-page-tools .ura-workspace {
  overflow-x: clip;
}
html.ura-theme body.ura-page-tools #wrap *,
html.ura-theme body.ura-page-tools .sub_wrap * {
  max-width: 100%;
}
html.ura-theme body.ura-page-tools code,
html.ura-theme body.ura-page-tools tt,
html.ura-theme body.ura-page-tools pre {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: bottom;
  box-sizing: border-box;
}
html.ura-theme body.ura-page-tools p,
html.ura-theme body.ura-page-tools li,
html.ura-theme body.ura-page-tools dd {
  overflow-wrap: anywhere;
}

/* ===== Infos / stats pages (keyword+) ===== */
html.ura-theme body.infos,
html.ura-theme body.ura-page-infos {
  background: var(--ura-bg) !important;
  color: var(--ura-ink) !important;
  font-family: var(--ura-font) !important;
}
html.ura-theme body.infos #wrap,
html.ura-theme body.ura-page-infos #wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.25rem 0 2rem;
}
html.ura-theme body.infos #informations,
html.ura-theme body.ura-page-infos #informations {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  margin: 0 0 1rem !important;
  color: var(--ura-ink) !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
html.ura-theme body.infos h3,
html.ura-theme body.ura-page-infos h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--ura-muted) !important;
  margin: 0 0 0.65rem !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
html.ura-theme body.infos h3 .label,
html.ura-theme body.ura-page-infos h3 .label {
  width: auto !important;
  display: inline !important;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ura-faint);
  margin-right: 0.25rem;
}
html.ura-theme body.infos h3 a,
html.ura-theme body.ura-page-infos h3 a,
html.ura-theme body.infos #longurl a,
html.ura-theme body.ura-page-infos #longurl a {
  color: var(--ura-ink) !important;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-all;
}
html.ura-theme body.infos h3 a:hover,
html.ura-theme body.ura-page-infos h3 a:hover {
  color: var(--ura-brand) !important;
}
html.ura-theme body.infos #tabs,
html.ura-theme body.ura-page-infos #tabs {
  margin-top: 1.25rem;
  background: var(--ura-surface);
  border: 1px solid var(--ura-line);
  border-radius: 14px;
  box-shadow: var(--ura-shadow);
  overflow: hidden;
}
html.ura-theme body.infos .wrap_unfloat,
html.ura-theme body.ura-page-infos .wrap_unfloat {
  overflow: visible !important;
}
html.ura-theme body.infos ul.toggle_display,
html.ura-theme body.ura-page-infos ul.toggle_display,
html.ura-theme body.infos #tabs ul#headers,
html.ura-theme body.ura-page-infos #tabs ul#headers {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 0.35rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0.65rem 0.65rem 0 !important;
  border-bottom: 1px solid var(--ura-line) !important;
  float: none !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  background: var(--ura-sidebar) !important;
}
html.ura-theme body.infos #tabs ul#headers li,
html.ura-theme body.ura-page-infos #tabs ul#headers li,
html.ura-theme body.infos #tabs ul#headers li h2,
html.ura-theme body.ura-page-infos #tabs ul#headers li h2 {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  background: none !important;
  border: 0 !important;
  font-size: inherit !important;
}
html.ura-theme body.infos #tabs ul#headers li a,
html.ura-theme body.ura-page-infos #tabs ul#headers li a {
  display: block !important;
  white-space: nowrap;
  color: var(--ura-muted) !important;
  border: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 0.7rem 0.95rem !important;
  background: transparent !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html.ura-theme body.infos #tabs ul#headers li a:hover,
html.ura-theme body.ura-page-infos #tabs ul#headers li a:hover {
  color: var(--ura-ink) !important;
  background: color-mix(in srgb, var(--ura-surface) 70%, transparent) !important;
}
html.ura-theme body.infos #tabs ul#headers li a.selected,
html.ura-theme body.infos #tabs ul#headers li.selected a,
html.ura-theme body.ura-page-infos #tabs ul#headers li a.selected,
html.ura-theme body.ura-page-infos #tabs ul#headers li.selected a {
  color: var(--ura-ink) !important;
  background: var(--ura-surface) !important;
  border-bottom: 2px solid var(--ura-ink) !important;
  border-radius: 8px 8px 0 0 !important;
}
html.ura-theme body.infos #tabs ul#headers li a h2,
html.ura-theme body.ura-page-infos #tabs ul#headers li a h2 {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  color: inherit !important;
}
html.ura-theme body.infos .tab,
html.ura-theme body.ura-page-infos .tab {
  padding: 1.15rem 1.1rem 1.35rem !important;
  background: var(--ura-surface) !important;
}
html.ura-theme body.infos .tab > h2,
html.ura-theme body.ura-page-infos .tab > h2 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  color: var(--ura-ink) !important;
}
html.ura-theme body.infos #stats_lines,
html.ura-theme body.ura-page-infos #stats_lines,
html.ura-theme body.infos ul.stat_line,
html.ura-theme body.ura-page-infos ul.stat_line {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  float: none !important;
  background: transparent !important;
}
html.ura-theme body.infos #stats_lines li a,
html.ura-theme body.ura-page-infos #stats_lines li a,
html.ura-theme body.infos ul.stat_line li a,
html.ura-theme body.ura-page-infos ul.stat_line li a {
  display: inline-flex !important;
  align-items: center;
  border-radius: 999px !important;
  padding: 0.4rem 0.85rem !important;
  background: var(--ura-bg) !important;
  border: 1px solid var(--ura-line) !important;
  color: var(--ura-muted) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html.ura-theme body.infos #stats_lines li a.selected,
html.ura-theme body.infos #stats_lines li a:hover,
html.ura-theme body.ura-page-infos #stats_lines li a.selected,
html.ura-theme body.ura-page-infos #stats_lines li a:hover {
  background: var(--ura-ink) !important;
  border-color: var(--ura-ink) !important;
  color: #fff !important;
}
html.ura-theme body.infos .stats_line,
html.ura-theme body.ura-page-infos .stats_line,
html.ura-theme body.infos .line,
html.ura-theme body.ura-page-infos .line {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
html.ura-theme body.infos table,
html.ura-theme body.ura-page-infos table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
}
html.ura-theme body.infos table td,
html.ura-theme body.ura-page-infos table td {
  vertical-align: top;
  padding: 0.35rem 0.5rem 0.35rem 0;
}
html.ura-theme body.infos #referrer_cell,
html.ura-theme body.ura-page-infos #referrer_cell {
  min-width: 0 !important;
  width: 100%;
}
html.ura-theme body.infos #historical_clicks,
html.ura-theme body.ura-page-infos #historical_clicks {
  float: none !important;
  margin: 0 0 1rem !important;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  width: 100%;
}
html.ura-theme body.infos #historical_clicks li,
html.ura-theme body.ura-page-infos #historical_clicks li {
  padding: 0.65rem 0.75rem !important;
  background: var(--ura-bg);
  border: 1px solid var(--ura-line);
  border-radius: 10px;
}
html.ura-theme body.infos ul.no_bullet,
html.ura-theme body.ura-page-infos ul.no_bullet,
html.ura-theme body.infos #details_clicks,
html.ura-theme body.ura-page-infos #details_clicks,
html.ura-theme body.infos #details_countries,
html.ura-theme body.ura-page-infos #details_countries {
  list-style: none !important;
  margin: 0.75rem 0 0 !important;
  padding: 0 !important;
  max-width: 100%;
  overflow-x: auto;
}
html.ura-theme body.infos ul.no_bullet li,
html.ura-theme body.ura-page-infos ul.no_bullet li,
html.ura-theme body.infos .sites_list,
html.ura-theme body.ura-page-infos .sites_list {
  margin-bottom: 0.55rem !important;
  padding: 0.35rem 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
html.ura-theme body.infos a.details,
html.ura-theme body.ura-page-infos a.details {
  color: var(--ura-brand) !important;
  font-weight: 600;
  text-decoration: none !important;
}
html.ura-theme body.infos a.details:hover,
html.ura-theme body.ura-page-infos a.details:hover {
  text-decoration: underline !important;
}
html.ura-theme body.infos #stat_tab_share,
html.ura-theme body.ura-page-infos #stat_tab_share {
  overflow: hidden;
}
html.ura-theme body.infos #shareboxes,
html.ura-theme body.ura-page-infos #shareboxes,
html.ura-theme body.infos .share,
html.ura-theme body.ura-page-infos .share {
  max-width: 100%;
}
html.ura-theme body.infos input.text,
html.ura-theme body.ura-page-infos input.text,
html.ura-theme body.infos textarea,
html.ura-theme body.ura-page-infos textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
@media (max-width: 759px) {
  html.ura-theme body.infos #wrap,
  html.ura-theme body.ura-page-infos #wrap {
    padding: 0 0 1.5rem;
  }
  html.ura-theme body.infos .tab,
  html.ura-theme body.ura-page-infos .tab {
    padding: 1rem 0.85rem 1.15rem !important;
  }
  html.ura-theme body.infos table,
  html.ura-theme body.ura-page-infos table,
  html.ura-theme body.infos table tbody,
  html.ura-theme body.ura-page-infos table tbody,
  html.ura-theme body.infos table tr,
  html.ura-theme body.ura-page-infos table tr,
  html.ura-theme body.infos table td,
  html.ura-theme body.ura-page-infos table td {
    display: block !important;
    width: 100% !important;
  }
  html.ura-theme body.infos #tabs ul#headers li a,
  html.ura-theme body.ura-page-infos #tabs ul#headers li a {
    padding: 0.65rem 0.8rem !important;
    font-size: 0.8rem !important;
  }
  html.ura-theme body.infos #historical_clicks,
  html.ura-theme body.ura-page-infos #historical_clicks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.ura-theme body.infos img,
  html.ura-theme body.ura-page-infos img,
  html.ura-theme body.infos canvas,
  html.ura-theme body.ura-page-infos canvas,
  html.ura-theme body.infos svg,
  html.ura-theme body.ura-page-infos svg {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Kill leftover YOURLS blue chrome on infos */
html.ura-theme body.infos #tabs ul#headers li a,
html.ura-theme body.ura-page-infos #tabs ul#headers li a {
  -moz-border-radius: 8px 8px 0 0;
  -webkit-border-radius: 8px 8px 0 0;
}


/* ===== v3.5.1: infos mobile overflow + topbar truncate ===== */
html.ura-theme body.infos,
html.ura-theme body.ura-page-infos,
html.ura-theme body.infos .ura-app,
html.ura-theme body.ura-page-infos .ura-app,
html.ura-theme body.infos .ura-workspace,
html.ura-theme body.ura-page-infos .ura-workspace {
  overflow-x: clip !important;
  max-width: 100vw !important;
  min-width: 0 !important;
}
.ura-topbar {
  max-width: 100vw;
  min-width: 0;
  box-sizing: border-box;
}
.ura-topbar__left,
.ura-topbar__title {
  min-width: 0 !important;
  flex: 1 1 auto;
}
.ura-topbar__title {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.ura-topbar__right {
  flex: 0 0 auto;
}
html.ura-theme body.infos #informations,
html.ura-theme body.ura-page-infos #informations {
  font-size: clamp(1rem, 4.2vw, 1.5rem) !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  line-height: 1.25 !important;
}
html.ura-theme body.infos #historical_clicks li,
html.ura-theme body.ura-page-infos #historical_clicks li {
  background: var(--ura-bg) !important;
  border: 1px solid var(--ura-line) !important;
  color: var(--ura-ink) !important;
}
html.ura-theme body.infos .stats_line img,
html.ura-theme body.ura-page-infos .stats_line img,
html.ura-theme body.infos .line img,
html.ura-theme body.ura-page-infos .line img,
html.ura-theme body.infos canvas,
html.ura-theme body.ura-page-infos canvas {
  max-width: 100% !important;
  height: auto !important;
}
@media (max-width: 759px) {
  html.ura-theme body.infos,
  html.ura-theme body.ura-page-infos {
    overflow-x: hidden !important;
  }
  html.ura-theme body.infos .ura-topbar,
  html.ura-theme body.ura-page-infos .ura-topbar,
  html.ura-theme body.infos .ura-workspace,
  html.ura-theme body.ura-page-infos .ura-workspace,
  html.ura-theme body.infos #wrap,
  html.ura-theme body.ura-page-infos #wrap {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  html.ura-theme body.infos #tabs ul#headers,
  html.ura-theme body.ura-page-infos #tabs ul#headers {
    width: 100% !important;
    max-width: 100% !important;
  }
  html.ura-theme body.infos .tab table,
  html.ura-theme body.ura-page-infos .tab table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}


/* ===== v3.6: sort arrows, filters, pagination, infos single-page ===== */

/* Sort arrows (tablesorter) — restore after background-color-only headers */
html.ura-theme table.tblSorter thead tr .tablesorter-header,
html.ura-theme table#main_table thead tr .tablesorter-header {
  background-color: #f7f7f7 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16' fill='none'%3E%3Cpath d='M6 2 L10 7 H2 Z' fill='%23a3a3a3'/%3E%3Cpath d='M6 14 L2 9 H10 Z' fill='%23a3a3a3'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 10px 14px !important;
  cursor: pointer !important;
  padding-right: 1.75rem !important;
}
html.ura-theme table.tblSorter thead tr .tablesorter-headerAsc,
html.ura-theme table#main_table thead tr .tablesorter-headerAsc {
  background-color: #efefef !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16' fill='none'%3E%3Cpath d='M6 2 L10 7 H2 Z' fill='%230a0a0a'/%3E%3Cpath d='M6 14 L2 9 H10 Z' fill='%23d4d4d4'/%3E%3C/svg%3E") !important;
  color: var(--ura-ink) !important;
}
html.ura-theme table.tblSorter thead tr .tablesorter-headerDesc,
html.ura-theme table#main_table thead tr .tablesorter-headerDesc {
  background-color: #efefef !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' viewBox='0 0 12 16' fill='none'%3E%3Cpath d='M6 2 L10 7 H2 Z' fill='%23d4d4d4'/%3E%3Cpath d='M6 14 L2 9 H10 Z' fill='%230a0a0a'/%3E%3C/svg%3E") !important;
  color: var(--ura-ink) !important;
}
html.ura-theme table.tblSorter thead tr .sorter-false,
html.ura-theme table#main_table thead tr .sorter-false,
html.ura-theme table#main_table th#main_table_head_actions {
  background-image: none !important;
  cursor: default !important;
  padding-right: 1rem !important;
}
html.ura-theme table.tblSorter thead tr th span {
  margin-right: 0 !important;
}

/* Kill stock tablesorter float layout for filters/pagination */
html.ura-theme #filter_form,
html.ura-theme #pagination,
html.ura-theme #filter_buttons {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
}

/* ===== Filters toolbar redesign ===== */
.ura-filters-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  width: 100%;
}
html.ura-theme #filter_form,
.ura-filters-panel #filter_form {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html.ura-theme #filter_form form {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--ura-surface);
  border: 1px solid var(--ura-line);
  border-radius: 14px;
  box-shadow: var(--ura-shadow);
}
html.ura-theme .ura-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
html.ura-theme .ura-filter-bar__primary,
html.ura-theme .ura-filter-bar__secondary {
  display: grid;
  gap: 0.65rem;
  align-items: end;
}
@media (min-width: 900px) {
  html.ura-theme .ura-filter-bar__primary {
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.7fr) minmax(110px, 0.6fr) minmax(110px, 0.55fr) 72px auto;
  }
  html.ura-theme .ura-filter-bar__secondary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    padding-top: 0.35rem;
    border-top: 1px solid var(--ura-line);
  }
}
html.ura-theme .ura-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
html.ura-theme .ura-filter-field > span {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ura-faint);
}
html.ura-theme .ura-filter-field__controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
}
html.ura-theme .ura-filter-field__controls > * {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
}
html.ura-theme #filter_form input.text,
html.ura-theme #filter_form select {
  width: 100% !important;
  margin: 0 !important;
  min-height: 42px;
}
html.ura-theme #filter_form input[name="perpage"] {
  text-align: center;
}
html.ura-theme #date_and {
  display: none !important;
  flex: 0 0 auto !important;
  color: var(--ura-muted);
  font-size: 0.8rem;
}
html.ura-theme #date_and.is-visible {
  display: inline !important;
}
html.ura-theme #date_second {
  display: none !important;
}
html.ura-theme #date_second.is-visible {
  display: block !important;
}
html.ura-theme .ura-filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: end;
  flex-wrap: wrap;
}
html.ura-theme .ura-filter-actions .button,
html.ura-theme .ura-filter-actions input {
  margin: 0 !important;
  min-height: 42px;
  white-space: nowrap;
}
html.ura-theme #submit-clear-filter {
  background: var(--ura-surface) !important;
  color: var(--ura-ink) !important;
  border: 1px solid var(--ura-line-strong) !important;
}
html.ura-theme #submit-clear-filter:hover {
  background: var(--ura-bg) !important;
}
html.ura-theme #filter_options,
html.ura-theme .ura-filter-grid {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
html.ura-theme #filter_buttons {
  display: contents !important;
}
@media (max-width: 899px) {
  html.ura-theme .ura-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  html.ura-theme .ura-filter-actions .button,
  html.ura-theme .ura-filter-actions input {
    width: 100% !important;
  }
  html.ura-theme .ura-filter-field__controls {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===== Pagination redesign — kill nested borders ===== */
html.ura-theme #pagination,
.ura-filters-panel #pagination {
  margin: 0 !important;
  padding: 0.75rem 0.9rem !important;
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--ura-shadow) !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  text-align: left !important;
}
html.ura-theme #pagination .navigation {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
html.ura-theme #pagination .nav_total {
  width: 100% !important;
  display: block !important;
  margin: 0 0 0.45rem !important;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ura-muted);
}
html.ura-theme #pagination .nav_link,
html.ura-theme #pagination .nav_current,
html.ura-theme #pagination .navigation .nav_link,
html.ura-theme #pagination .navigation .nav_current {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 10px !important;
  background: var(--ura-bg) !important;
  box-shadow: none !important;
  font-size: 0.875rem !important;
  font-weight: 650 !important;
  color: var(--ura-ink) !important;
  line-height: 1 !important;
  vertical-align: middle;
}
html.ura-theme #pagination .nav_link a,
html.ura-theme #pagination .navigation .nav_link a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0.85rem !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: none !important;
  line-height: 1 !important;
}
html.ura-theme #pagination .nav_link:hover,
html.ura-theme #pagination .navigation .nav_link:hover {
  border-color: var(--ura-line-strong) !important;
  background: var(--ura-surface) !important;
}
html.ura-theme #pagination .nav_current,
html.ura-theme #pagination .navigation .nav_current {
  background: var(--ura-ink) !important;
  border-color: var(--ura-ink) !important;
  color: #fff !important;
}
html.ura-theme #pagination .nav_first,
html.ura-theme #pagination .nav_last {
  min-width: auto !important;
  padding: 0 !important;
}
html.ura-theme #pagination .nav_first a,
html.ura-theme #pagination .nav_last a {
  padding: 0 0.95rem !important;
  font-size: 0.8rem !important;
}
html.ura-theme #pagination .nav_prev,
html.ura-theme #pagination .nav_next {
  border: 0 !important;
  background: transparent !important;
  min-width: auto !important;
  height: auto !important;
  color: var(--ura-faint) !important;
  pointer-events: none;
}
html.ura-theme #pagination .nav_prev:empty,
html.ura-theme #pagination .nav_next:empty {
  display: none !important;
}
html.ura-theme #pagination .nav_prev:before,
html.ura-theme #pagination .nav_next:after {
  content: "…" !important;
  letter-spacing: 0.08em;
}

/* ===== Infos / plus pages: single scroll, full width ===== */
html.ura-theme body.infos .ura-workspace,
html.ura-theme body.ura-page-infos .ura-workspace {
  max-width: none;
}
html.ura-theme body.infos #wrap,
html.ura-theme body.ura-page-infos #wrap {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0.25rem 0 2.5rem !important;
}
html.ura-theme body.infos #informations,
html.ura-theme body.ura-page-infos #informations {
  font-size: clamp(1.05rem, 2.2vw, 1.55rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.3 !important;
  margin: 0 0 1rem !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
html.ura-theme body.infos .ura-infos-meta,
html.ura-theme body.ura-page-infos .ura-infos-meta {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
}
@media (min-width: 720px) {
  html.ura-theme body.infos .ura-infos-meta,
  html.ura-theme body.ura-page-infos .ura-infos-meta {
    grid-template-columns: 1fr 1fr;
  }
}
html.ura-theme body.infos .ura-infos-meta h3,
html.ura-theme body.ura-page-infos .ura-infos-meta h3 {
  margin: 0 !important;
  padding: 0.85rem 1rem !important;
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--ura-shadow);
}
html.ura-theme body.infos #tabs,
html.ura-theme body.ura-page-infos #tabs {
  margin-top: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
/* Hide tab headers — all content shown */
html.ura-theme body.infos #tabs ul#headers,
html.ura-theme body.ura-page-infos #tabs ul#headers,
html.ura-theme body.infos #tabs .wrap_unfloat:has(> #headers),
html.ura-theme body.ura-page-infos #tabs .wrap_unfloat:has(> #headers) {
  display: none !important;
}
/* Force every tab/section visible (beats jQuery inline display:none) */
html.ura-theme body.infos #tabs .tab,
html.ura-theme body.ura-page-infos #tabs .tab,
html.ura-theme body.infos div.tab,
html.ura-theme body.ura-page-infos div.tab {
  display: block !important;
  margin: 0 0 1.15rem !important;
  padding: 1.15rem 1.2rem 1.35rem !important;
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--ura-shadow) !important;
  overflow: hidden;
}
html.ura-theme body.infos .tab > h2,
html.ura-theme body.ura-page-infos .tab > h2,
html.ura-theme body.infos #tabs .tab h2,
html.ura-theme body.ura-page-infos #tabs .tab h2 {
  display: block !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 0 1rem !important;
  padding: 0 0 0.75rem !important;
  border-bottom: 1px solid var(--ura-line) !important;
  background: none !important;
  color: var(--ura-ink) !important;
}
html.ura-theme body.infos #stats_lines,
html.ura-theme body.ura-page-infos #stats_lines {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  list-style: none !important;
  border: 0 !important;
  float: none !important;
  background: transparent !important;
}
html.ura-theme body.infos #stats_lines li a,
html.ura-theme body.ura-page-infos #stats_lines li a {
  display: inline-flex !important;
  border-radius: 999px !important;
  padding: 0.45rem 0.9rem !important;
  background: var(--ura-bg) !important;
  border: 1px solid var(--ura-line) !important;
  color: var(--ura-muted) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html.ura-theme body.infos #stats_lines li a.selected,
html.ura-theme body.ura-page-infos #stats_lines li a.selected {
  background: var(--ura-ink) !important;
  border-color: var(--ura-ink) !important;
  color: #fff !important;
}
html.ura-theme body.infos .tab table,
html.ura-theme body.ura-page-infos .tab table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
}
html.ura-theme body.infos .tab table td,
html.ura-theme body.ura-page-infos .tab table td {
  vertical-align: top;
  padding: 0.25rem 0.5rem 0.25rem 0;
}
html.ura-theme body.infos #referrer_cell,
html.ura-theme body.ura-page-infos #referrer_cell {
  min-width: 0 !important;
  width: 100% !important;
}
html.ura-theme body.infos .stats_line,
html.ura-theme body.ura-page-infos .stats_line,
html.ura-theme body.infos .line,
html.ura-theme body.ura-page-infos .line {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
}
html.ura-theme body.infos .stats_line img,
html.ura-theme body.ura-page-infos .stats_line img,
html.ura-theme body.infos canvas,
html.ura-theme body.ura-page-infos canvas {
  max-width: 100% !important;
  height: auto !important;
}
html.ura-theme body.infos #historical_clicks,
html.ura-theme body.ura-page-infos #historical_clicks {
  float: none !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem;
  width: 100%;
  margin: 0.75rem 0 1rem !important;
  padding: 0 !important;
  list-style: none !important;
}
html.ura-theme body.infos #historical_clicks li,
html.ura-theme body.ura-page-infos #historical_clicks li {
  padding: 0.8rem 0.9rem !important;
  background: var(--ura-bg) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 12px !important;
  color: var(--ura-ink) !important;
}
html.ura-theme body.infos a.details,
html.ura-theme body.ura-page-infos a.details {
  display: inline-flex !important;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ura-brand) 10%, white);
  border: 1px solid color-mix(in srgb, var(--ura-brand) 28%, white);
  color: var(--ura-brand) !important;
  font-weight: 650;
  font-size: 0.8rem;
  text-decoration: none !important;
}
html.ura-theme body.infos a.details:hover,
html.ura-theme body.ura-page-infos a.details:hover {
  background: color-mix(in srgb, var(--ura-brand) 16%, white);
}
html.ura-theme body.infos ul.no_bullet,
html.ura-theme body.ura-page-infos ul.no_bullet,
html.ura-theme body.infos #details_clicks,
html.ura-theme body.ura-page-infos #details_clicks,
html.ura-theme body.infos #details_countries,
html.ura-theme body.ura-page-infos #details_countries {
  list-style: none !important;
  margin: 0.85rem 0 0 !important;
  padding: 0 !important;
}
html.ura-theme body.infos .sites_list,
html.ura-theme body.ura-page-infos .sites_list,
html.ura-theme body.infos ul.no_bullet li,
html.ura-theme body.ura-page-infos ul.no_bullet li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ura-line);
  overflow-wrap: anywhere;
}
html.ura-theme body.infos #stat_tab_share input.text,
html.ura-theme body.ura-page-infos #stat_tab_share input.text,
html.ura-theme body.infos #stat_tab_share textarea,
html.ura-theme body.ura-page-infos #stat_tab_share textarea {
  width: 100% !important;
  max-width: 100% !important;
}
html.ura-theme body.infos #shareboxes,
html.ura-theme body.ura-page-infos #shareboxes {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  html.ura-theme body.infos #shareboxes,
  html.ura-theme body.ura-page-infos #shareboxes {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 759px) {
  html.ura-theme body.infos .tab table,
  html.ura-theme body.ura-page-infos .tab table,
  html.ura-theme body.infos .tab table tbody,
  html.ura-theme body.ura-page-infos .tab table tbody,
  html.ura-theme body.infos .tab table tr,
  html.ura-theme body.ura-page-infos .tab table tr,
  html.ura-theme body.infos .tab table td,
  html.ura-theme body.ura-page-infos .tab table td {
    display: block !important;
    width: 100% !important;
  }
  html.ura-theme body.infos #historical_clicks,
  html.ura-theme body.ura-page-infos #historical_clicks {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===== v3.7: modern filters, centered pagination, edit row, infos polish ===== */

/* Filters — search-first modern bar */
html.ura-theme #filter_form.ura-filter-shell,
html.ura-theme .ura-filter-shell {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html.ura-theme .ura-filter-modern {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--ura-surface);
  border: 1px solid var(--ura-line);
  border-radius: 16px;
  box-shadow: var(--ura-shadow);
}
html.ura-theme .ura-filter-modern__main {
  display: grid;
  gap: 0.65rem;
  align-items: end;
}
@media (min-width: 960px) {
  html.ura-theme .ura-filter-modern__main {
    grid-template-columns: minmax(0, 1.8fr) minmax(120px, 0.7fr) minmax(200px, 1fr) 88px auto;
  }
}
html.ura-theme .ura-filter-modern__search,
html.ura-theme .ura-filter-modern__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  margin: 0;
}
html.ura-theme .ura-filter-modern__search > span,
html.ura-theme .ura-filter-modern__field > span {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ura-faint);
}
html.ura-theme .ura-filter-modern input.text,
html.ura-theme .ura-filter-modern select,
html.ura-theme .ura-filter-modern input[type="search"],
html.ura-theme .ura-filter-modern input[type="number"] {
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
}
html.ura-theme .ura-filter-modern__pair,
html.ura-theme .ura-filter-modern__dates {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
}
html.ura-theme .ura-filter-modern__pair > *,
html.ura-theme .ura-filter-modern__dates > * {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
}
html.ura-theme .ura-filter-modern__and {
  flex: 0 0 auto !important;
  color: var(--ura-muted);
  font-size: 0.8rem;
}
html.ura-theme .ura-filter-modern__actions {
  display: flex;
  gap: 0.45rem;
  align-items: end;
}
html.ura-theme .ura-filter-modern__actions .button {
  min-height: 44px;
  margin: 0 !important;
}
html.ura-theme .ura-filter-modern__actions #submit-clear-filter,
html.ura-theme #submit-clear-filter {
  background: var(--ura-surface) !important;
  color: var(--ura-ink) !important;
  border: 1px solid var(--ura-line-strong) !important;
}
html.ura-theme .ura-filter-modern__more {
  border-top: 1px solid var(--ura-line);
  padding-top: 0.55rem;
}
html.ura-theme .ura-filter-modern__more > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ura-muted);
  user-select: none;
}
html.ura-theme .ura-filter-modern__more > summary::-webkit-details-marker { display: none; }
html.ura-theme .ura-filter-modern__more > summary::after {
  content: "+";
  margin-left: 0.4rem;
  color: var(--ura-faint);
}
html.ura-theme .ura-filter-modern__more[open] > summary::after { content: "–"; }
html.ura-theme .ura-filter-modern__extra {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
@media (min-width: 800px) {
  html.ura-theme .ura-filter-modern__extra {
    grid-template-columns: 1fr 1.3fr;
  }
}
@media (max-width: 959px) {
  html.ura-theme .ura-filter-modern__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  html.ura-theme .ura-filter-modern__actions .button {
    width: 100% !important;
  }
}

/* Pagination centered */
html.ura-theme #pagination.ura-pagination,
html.ura-theme #pagination {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
}
html.ura-theme #pagination .navigation {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}
html.ura-theme #pagination .nav_total {
  text-align: center !important;
  width: 100% !important;
}
html.ura-theme #pagination .ura-pagination__controls,
html.ura-theme #pagination .navigation {
  justify-content: center;
}
html.ura-theme #pagination .ura-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
}

/* Inline edit row */
html.ura-theme tr.edit-row td,
html.ura-theme tr.ura-edit-row td,
html.ura-theme tr.edit-row td.edit-row {
  background: var(--ura-bg) !important;
  border: 0 !important;
  padding: 0.85rem 1rem 1rem !important;
}
html.ura-theme .ura-edit {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--ura-surface);
  border: 1px solid var(--ura-line);
  border-radius: 14px;
  box-shadow: var(--ura-shadow);
}
html.ura-theme .ura-edit__grid {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 900px) {
  html.ura-theme .ura-edit__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr);
  }
  html.ura-theme .ura-edit__field--title {
    grid-column: 1 / -1;
  }
}
html.ura-theme .ura-edit__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  min-width: 0;
}
html.ura-theme .ura-edit__field > span {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ura-faint);
}
html.ura-theme .ura-edit__field input.text {
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
}
html.ura-theme .ura-edit__slug {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--ura-line-strong);
  border-radius: var(--ura-radius-sm);
  overflow: hidden;
  background: var(--ura-surface);
}
html.ura-theme .ura-edit__prefix {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  background: var(--ura-bg);
  color: var(--ura-muted);
  font-size: 0.8rem;
  border-right: 1px solid var(--ura-line);
  white-space: nowrap;
}
html.ura-theme .ura-edit__slug input.text {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html.ura-theme .ura-edit__slug input.text:focus {
  box-shadow: none !important;
}
html.ura-theme .ura-edit__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
html.ura-theme .ura-edit__actions .button {
  min-height: 42px;
  margin: 0 !important;
  min-width: 110px;
}
html.ura-theme .ura-edit__actions input.button.ura-edit__cancel,
html.ura-theme tr.edit-row input.button.ura-edit__cancel,
html.ura-theme .ura-edit input.button.ura-edit__cancel {
  background: var(--ura-surface) !important;
  background-color: var(--ura-surface) !important;
  color: var(--ura-ink) !important;
  border: 1px solid var(--ura-line-strong) !important;
}
html.ura-theme .ura-edit__actions input.button.ura-edit__cancel:hover,
html.ura-theme .ura-edit input.button.ura-edit__cancel:hover {
  background: var(--ura-bg) !important;
  background-color: var(--ura-bg) !important;
  color: var(--ura-ink) !important;
}

/* Infos polish / rearrangement */
html.ura-theme body.infos .ura-infos-summary,
html.ura-theme body.ura-page-infos .ura-infos-summary {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
html.ura-theme body.infos .ura-infos-kpis #historical_clicks,
html.ura-theme body.ura-page-infos .ura-infos-kpis #historical_clicks {
  margin: 0 !important;
}
html.ura-theme body.infos .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-chart {
  width: 100%;
  min-height: 280px;
  padding: 0.75rem;
  background: var(--ura-bg);
  border: 1px solid var(--ura-line);
  border-radius: 12px;
  overflow: hidden;
}
html.ura-theme body.infos .ura-infos-chart .stats_line,
html.ura-theme body.ura-page-infos .ura-infos-chart .stats_line,
html.ura-theme body.infos .ura-infos-chart .line,
html.ura-theme body.ura-page-infos .ura-infos-chart .line,
html.ura-theme body.infos .ura-infos-chart > div,
html.ura-theme body.ura-page-infos .ura-infos-chart > div {
  width: 100% !important;
  max-width: 100% !important;
}
html.ura-theme body.infos .ura-infos-viz-grid,
html.ura-theme body.ura-page-infos .ura-infos-viz-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
@media (min-width: 900px) {
  html.ura-theme body.infos .ura-infos-viz-grid,
  html.ura-theme body.ura-page-infos .ura-infos-viz-grid {
    grid-template-columns: 1fr 1fr;
  }
}
html.ura-theme body.infos .ura-infos-viz-card,
html.ura-theme body.ura-page-infos .ura-infos-viz-card {
  padding: 0.85rem;
  background: var(--ura-bg);
  border: 1px solid var(--ura-line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
html.ura-theme body.infos .ura-infos-viz-card > div,
html.ura-theme body.ura-page-infos .ura-infos-viz-card > div {
  max-width: 100% !important;
}
html.ura-theme body.infos .ura-infos-viz-card > div[id],
html.ura-theme body.ura-page-infos .ura-infos-viz-card > div[id] {
  width: 100% !important;
}
html.ura-theme body.infos #shareboxes .share,
html.ura-theme body.ura-page-infos #shareboxes .share {
  padding: 1rem;
  background: var(--ura-bg);
  border: 1px solid var(--ura-line);
  border-radius: 12px;
}
html.ura-theme body.infos #shareboxes h2,
html.ura-theme body.infos #shareboxes h3,
html.ura-theme body.ura-page-infos #shareboxes h2,
html.ura-theme body.ura-page-infos #shareboxes h3 {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  color: var(--ura-ink) !important;
}
html.ura-theme body.infos #copylink,
html.ura-theme body.ura-page-infos #copylink,
html.ura-theme body.infos #tweet_body,
html.ura-theme body.ura-page-infos #tweet_body {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px;
}
html.ura-theme body.infos #tweet_body,
html.ura-theme body.ura-page-infos #tweet_body {
  min-height: 96px;
}
html.ura-theme body.infos #share_links a,
html.ura-theme body.ura-page-infos #share_links a {
  display: inline-flex;
  align-items: center;
  margin: 0.25rem 0.35rem 0.25rem 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--ura-ink);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none !important;
}
html.ura-theme body.infos #share_links a:hover,
html.ura-theme body.ura-page-infos #share_links a:hover {
  background: var(--ura-brand) !important;
}
html.ura-theme body.infos #charcount,
html.ura-theme body.ura-page-infos #charcount {
  color: var(--ura-muted);
  font-size: 0.75rem;
  font-weight: 650;
}


/* ===== v3.7.2: stats height, KPI-only filters, favicon fix, no share, mobile ===== */

html.ura-theme body.infos #stats_lines,
html.ura-theme body.ura-page-infos #stats_lines {
  display: none !important;
}

html.ura-theme body.infos #stat_tab_share,
html.ura-theme body.ura-page-infos #stat_tab_share {
  display: none !important;
}

/* KPI period cards — replace redundant pills */
html.ura-theme body.infos #historical_clicks,
html.ura-theme body.ura-page-infos #historical_clicks,
html.ura-theme body.infos .ura-infos-kpis #historical_clicks,
html.ura-theme body.ura-page-infos .ura-infos-kpis #historical_clicks {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  list-style: none !important;
  margin: 0.65rem 0 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100%;
}
@media (max-width: 900px) {
  html.ura-theme body.infos #historical_clicks,
  html.ura-theme body.ura-page-infos #historical_clicks {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 480px) {
  html.ura-theme body.infos #historical_clicks,
  html.ura-theme body.ura-page-infos #historical_clicks {
    grid-template-columns: 1fr 1fr !important;
  }
}
html.ura-theme body.infos #historical_clicks li,
html.ura-theme body.ura-page-infos #historical_clicks li,
html.ura-theme body.infos .ura-kpi,
html.ura-theme body.ura-page-infos .ura-kpi {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-width: 0;
}
html.ura-theme body.infos .ura-kpi__btn,
html.ura-theme body.ura-page-infos .ura-kpi__btn {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  min-height: 84px;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--ura-line);
  background: var(--ura-bg);
  color: var(--ura-ink) !important;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: border-color 160ms var(--ura-ease), background 160ms var(--ura-ease);
}
html.ura-theme body.infos .ura-kpi.is-active .ura-kpi__btn,
html.ura-theme body.ura-page-infos .ura-kpi.is-active .ura-kpi__btn,
html.ura-theme body.infos .ura-kpi__btn:hover,
html.ura-theme body.ura-page-infos .ura-kpi__btn:hover {
  border-color: var(--ura-ink);
  background: var(--ura-surface);
}
html.ura-theme body.infos .ura-kpi.is-active .ura-kpi__btn,
html.ura-theme body.ura-page-infos .ura-kpi.is-active .ura-kpi__btn {
  background: var(--ura-ink);
  color: #fff !important;
}
html.ura-theme body.infos .ura-kpi.is-active .ura-kpi__label,
html.ura-theme body.infos .ura-kpi.is-active .ura-kpi__hits,
html.ura-theme body.infos .ura-kpi.is-active .ura-kpi__rate,
html.ura-theme body.ura-page-infos .ura-kpi.is-active .ura-kpi__label,
html.ura-theme body.ura-page-infos .ura-kpi.is-active .ura-kpi__hits,
html.ura-theme body.ura-page-infos .ura-kpi.is-active .ura-kpi__rate {
  color: #fff !important;
}
html.ura-theme body.infos .ura-kpi__label,
html.ura-theme body.ura-page-infos .ura-kpi__label {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ura-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.ura-theme body.infos .ura-kpi__hits,
html.ura-theme body.ura-page-infos .ura-kpi__hits {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ura-ink);
  white-space: nowrap;
}
html.ura-theme body.infos .ura-kpi__rate,
html.ura-theme body.ura-page-infos .ura-kpi__rate {
  font-size: 0.75rem;
  color: var(--ura-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chart: no inner scrollbar, fixed sensible height */
html.ura-theme body.infos .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-chart {
  width: 100%;
  min-height: 0 !important;
  max-height: none;
  height: auto !important;
  padding: 0.75rem 0.75rem 0.5rem;
  background: var(--ura-bg);
  border: 1px solid var(--ura-line);
  border-radius: 12px;
  overflow: hidden !important;
}
html.ura-theme body.infos .ura-infos-chart h3,
html.ura-theme body.ura-page-infos .ura-infos-chart h3 {
  font-size: 0.85rem !important;
  font-weight: 650 !important;
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
html.ura-theme body.infos .ura-infos-chart .stats_line,
html.ura-theme body.ura-page-infos .ura-infos-chart .stats_line,
html.ura-theme body.infos .ura-infos-chart .line,
html.ura-theme body.ura-page-infos .ura-infos-chart .line,
html.ura-theme body.infos .ura-infos-chart [id^="stat_line_"],
html.ura-theme body.ura-page-infos .ura-infos-chart [id^="stat_line_"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html.ura-theme body.infos .ura-infos-chart > div > div,
html.ura-theme body.ura-page-infos .ura-infos-chart > div > div,
html.ura-theme body.infos .ura-infos-chart iframe,
html.ura-theme body.ura-page-infos .ura-infos-chart iframe,
html.ura-theme body.infos .ura-infos-chart svg,
html.ura-theme body.ura-page-infos .ura-infos-chart svg {
  max-width: 100% !important;
  overflow: hidden !important;
}
html.ura-theme body.infos .ura-infos-best,
html.ura-theme body.ura-page-infos .ura-infos-best {
  margin-top: 0.85rem;
  padding-top: 0.35rem;
}

/* Favicons / logos never stretch */
html.ura-theme body.infos img.fix_images,
html.ura-theme body.ura-page-infos img.fix_images,
html.ura-theme body.infos .sites_list img,
html.ura-theme body.ura-page-infos .sites_list img,
html.ura-theme body.infos li.sites_list img,
html.ura-theme body.ura-page-infos li.sites_list img,
html.ura-theme body.infos #longurl img,
html.ura-theme body.ura-page-infos #longurl img,
html.ura-theme body.infos h3 img,
html.ura-theme body.ura-page-infos h3 img {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle;
  margin-right: 0.35rem;
  flex: 0 0 16px;
}

html.ura-theme body.infos .sites_list,
html.ura-theme body.ura-page-infos .sites_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

/* Viz grids mobile */
html.ura-theme body.infos .ura-infos-viz-grid,
html.ura-theme body.ura-page-infos .ura-infos-viz-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  html.ura-theme body.infos .ura-infos-viz-grid,
  html.ura-theme body.ura-page-infos .ura-infos-viz-grid {
    grid-template-columns: 1fr 1fr;
  }
}
html.ura-theme body.infos .ura-infos-viz-card,
html.ura-theme body.ura-page-infos .ura-infos-viz-card {
  min-width: 0;
  overflow: hidden;
}
html.ura-theme body.infos .ura-infos-viz-card > div,
html.ura-theme body.ura-page-infos .ura-infos-viz-card > div {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}
html.ura-theme body.infos .ura-infos-viz-card h3,
html.ura-theme body.ura-page-infos .ura-infos-viz-card h3 {
  font-size: 0.9rem !important;
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}

@media (max-width: 759px) {
  html.ura-theme body.infos .tab,
  html.ura-theme body.ura-page-infos .tab {
    padding: 1rem 0.85rem !important;
  }
  html.ura-theme body.infos .ura-infos-chart,
  html.ura-theme body.ura-page-infos .ura-infos-chart {
    padding: 0.65rem;
  }
}


/* ===== v3.7.3: plugin card actions always visible ===== */
/* ===== v3.7.4: plugin action nowrap / column width ===== */
/* Stock YOURLS hides td.actions a with opacity:0 until hover (body.desktop).
   Plugin Activate/Deactivate are plain text links in td.plugin_actions.actions —
   not icon .button controls — so they vanish on touch / no-hover. */

html.ura-theme tr.plugin td.plugin_actions,
html.ura-theme tr.plugin td.actions,
html.ura-theme .ura-plugins-table td.plugin_actions,
html.ura-theme .ura-plugins-table td.actions,
html.ura-theme body.ura-page-plugins td.plugin_actions,
html.ura-theme body.ura-page-plugins td.actions {
  white-space: normal !important;
}

html.ura-theme tr.plugin td.plugin_actions,
html.ura-theme .ura-plugins-table td.plugin_actions,
html.ura-theme body.ura-page-plugins table#main_table td.plugin_actions,
html.ura-theme body.ura-page-plugins table#main_table td.actions {
  width: 1% !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

html.ura-theme tr.plugin td.plugin_actions a,
html.ura-theme tr.plugin td.actions a,
html.ura-theme .ura-plugins-table td.plugin_actions a,
html.ura-theme .ura-plugins-table td.actions a,
html.ura-theme body.ura-page-plugins td.plugin_actions a,
html.ura-theme body.ura-page-plugins td.actions a,
html.ura-theme body.desktop tr.plugin td.actions a,
html.ura-theme body.desktop .ura-plugins-table td.actions a {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  width: auto !important;
  min-width: max-content !important;
  height: auto !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0.45rem 0.95rem !important;
  border: 1px solid var(--ura-ink) !important;
  border-radius: 8px !important;
  background: var(--ura-ink) !important;
  background-image: none !important;
  color: #fff !important;
  font-size: 0.8125rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  overflow: visible !important;
  box-shadow: none !important;
  transition: background-color 160ms var(--ura-ease), border-color 160ms var(--ura-ease), transform 160ms var(--ura-ease);
}

html.ura-theme tr.plugin td.plugin_actions a:hover,
html.ura-theme tr.plugin td.actions a:hover,
html.ura-theme .ura-plugins-table td.actions a:hover,
html.ura-theme body.ura-page-plugins td.actions a:hover {
  background: var(--ura-brand, #111) !important;
  border-color: var(--ura-brand, #111) !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

html.ura-theme tr.plugin.inactive td.plugin_actions a,
html.ura-theme tr.plugin.inactive td.actions a {
  background: var(--ura-surface) !important;
  color: var(--ura-ink) !important;
  border-color: var(--ura-line-strong) !important;
}

html.ura-theme tr.plugin.inactive td.plugin_actions a:hover,
html.ura-theme tr.plugin.inactive td.actions a:hover {
  background: var(--ura-ink) !important;
  color: #fff !important;
  border-color: var(--ura-ink) !important;
}

@media (max-width: 759px) {
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_actions,
  html.ura-theme body.ura-page-plugins table#main_table tbody td.actions,
  html.ura-theme .ura-plugins-table tbody td.plugin_actions,
  html.ura-theme .ura-plugins-table tbody td.actions {
    order: 5;
    display: block !important;
    width: 100% !important;
    padding-top: 0.5rem !important;
    margin-top: 0.15rem !important;
    border-top: 1px solid var(--ura-line) !important;
  }
  html.ura-theme body.ura-page-plugins table#main_table tbody td.plugin_actions a,
  html.ura-theme body.ura-page-plugins table#main_table tbody td.actions a,
  html.ura-theme .ura-plugins-table tbody td.plugin_actions a,
  html.ura-theme .ura-plugins-table tbody td.actions a {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}


/* ===== v3.8: infos page rebuild ===== */

html.ura-theme body.infos #stat_tab_share,
html.ura-theme body.ura-page-infos #stat_tab_share,
html.ura-theme body.infos #headers,
html.ura-theme body.ura-page-infos #headers,
html.ura-theme body.infos #stats_lines,
html.ura-theme body.ura-page-infos #stats_lines {
  display: none !important;
}

html.ura-theme body.infos #tabs .tab,
html.ura-theme body.ura-page-infos #tabs .tab,
html.ura-theme body.infos div.tab,
html.ura-theme body.ura-page-infos div.tab {
  display: block !important;
  visibility: visible !important;
  float: none !important;
  width: 100% !important;
  margin: 0 0 1.25rem !important;
  padding: 1.15rem 1.2rem !important;
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--ura-shadow);
  box-sizing: border-box;
}
html.ura-theme body.infos .tab > h2,
html.ura-theme body.ura-page-infos .tab > h2 {
  display: block !important;
  margin: 0 0 0.85rem !important;
  padding: 0 0 0.75rem !important;
  border-bottom: 1px solid var(--ura-line) !important;
  background: none !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ura-ink) !important;
}

/* KPI list — never inherit stock ul.stat_line pill styles */
html.ura-theme body.infos .ura-kpi-list,
html.ura-theme body.ura-page-infos .ura-kpi-list,
html.ura-theme body.infos #historical_clicks.ura-kpi-list,
html.ura-theme body.ura-page-infos #historical_clicks.ura-kpi-list,
html.ura-theme body.infos #historical_clicks,
html.ura-theme body.ura-page-infos #historical_clicks {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.6rem !important;
  list-style: none !important;
  margin: 0.5rem 0 0 !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
}
@media (max-width: 900px) {
  html.ura-theme body.infos .ura-kpi-list,
  html.ura-theme body.ura-page-infos .ura-kpi-list,
  html.ura-theme body.infos #historical_clicks,
  html.ura-theme body.ura-page-infos #historical_clicks {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 420px) {
  html.ura-theme body.infos .ura-kpi-list,
  html.ura-theme body.ura-page-infos .ura-kpi-list,
  html.ura-theme body.infos #historical_clicks,
  html.ura-theme body.ura-page-infos #historical_clicks {
    grid-template-columns: 1fr !important;
  }
}

html.ura-theme body.infos .ura-kpi,
html.ura-theme body.ura-page-infos .ura-kpi,
html.ura-theme body.infos #historical_clicks li,
html.ura-theme body.ura-page-infos #historical_clicks li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
}

html.ura-theme body.infos .ura-kpi__btn,
html.ura-theme body.ura-page-infos .ura-kpi__btn,
html.ura-theme body.infos ul.stat_line .ura-kpi__btn,
html.ura-theme body.ura-page-infos ul.stat_line .ura-kpi__btn,
html.ura-theme body.infos #historical_clicks a,
html.ura-theme body.ura-page-infos #historical_clicks a {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 0.2rem !important;
  width: 100% !important;
  min-height: 88px !important;
  margin: 0 !important;
  padding: 0.8rem 0.9rem !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 12px !important;
  background: var(--ura-bg) !important;
  background-image: none !important;
  color: var(--ura-ink) !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  font-size: inherit !important;
  line-height: 1.25 !important;
  float: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: background 160ms var(--ura-ease), border-color 160ms var(--ura-ease), color 160ms var(--ura-ease);
}
html.ura-theme body.infos .ura-kpi__btn:hover,
html.ura-theme body.ura-page-infos .ura-kpi__btn:hover,
html.ura-theme body.infos .ura-kpi.is-active .ura-kpi__btn,
html.ura-theme body.ura-page-infos .ura-kpi.is-active .ura-kpi__btn,
html.ura-theme body.infos #historical_clicks a.selected,
html.ura-theme body.ura-page-infos #historical_clicks a.selected {
  background: var(--ura-ink) !important;
  border-color: var(--ura-ink) !important;
  color: #fff !important;
}
html.ura-theme body.infos .ura-kpi.is-active .ura-kpi__label,
html.ura-theme body.infos .ura-kpi.is-active .ura-kpi__hits,
html.ura-theme body.infos .ura-kpi.is-active .ura-kpi__rate,
html.ura-theme body.ura-page-infos .ura-kpi.is-active .ura-kpi__label,
html.ura-theme body.ura-page-infos .ura-kpi.is-active .ura-kpi__hits,
html.ura-theme body.ura-page-infos .ura-kpi.is-active .ura-kpi__rate,
html.ura-theme body.infos #historical_clicks a.selected span,
html.ura-theme body.ura-page-infos #historical_clicks a.selected span {
  color: #fff !important;
}
html.ura-theme body.infos .ura-kpi__label,
html.ura-theme body.ura-page-infos .ura-kpi__label {
  font-size: 0.68rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ura-faint) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
html.ura-theme body.infos .ura-kpi__hits,
html.ura-theme body.ura-page-infos .ura-kpi__hits {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ura-ink) !important;
  white-space: nowrap;
}
html.ura-theme body.infos .ura-kpi__rate,
html.ura-theme body.ura-page-infos .ura-kpi__rate {
  font-size: 0.75rem !important;
  color: var(--ura-muted) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

html.ura-theme body.infos .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-chart {
  margin-top: 0.85rem;
  padding: 0.85rem !important;
  background: var(--ura-bg) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  max-height: none !important;
  height: auto !important;
}
html.ura-theme body.infos .ura-infos-chart h3,
html.ura-theme body.ura-page-infos .ura-infos-chart h3 {
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: 0.85rem !important;
  font-weight: 650 !important;
}
html.ura-theme body.infos .ura-infos-chart [id^="stat_line_"],
html.ura-theme body.ura-page-infos .ura-infos-chart [id^="stat_line_"],
html.ura-theme body.infos .ura-infos-chart .stats_line,
html.ura-theme body.ura-page-infos .ura-infos-chart .stats_line {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  min-height: 0 !important;
}
html.ura-theme body.infos .ura-infos-best,
html.ura-theme body.ura-page-infos .ura-infos-best {
  margin-top: 0.75rem;
  color: var(--ura-muted);
  font-size: 0.9rem;
}

/* Viz grids */
html.ura-theme body.infos .ura-infos-viz-grid,
html.ura-theme body.ura-page-infos .ura-infos-viz-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 900px) {
  html.ura-theme body.infos .ura-infos-viz-grid,
  html.ura-theme body.ura-page-infos .ura-infos-viz-grid {
    grid-template-columns: 1fr 1fr;
  }
}
html.ura-theme body.infos .ura-infos-viz-card,
html.ura-theme body.ura-page-infos .ura-infos-viz-card {
  min-width: 0;
  padding: 0.85rem !important;
  background: var(--ura-bg) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
html.ura-theme body.infos .ura-infos-viz-card h3,
html.ura-theme body.ura-page-infos .ura-infos-viz-card h3 {
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
}
/* Charts fill card; favicons never do */
html.ura-theme body.infos .ura-infos-viz-card > div,
html.ura-theme body.ura-page-infos .ura-infos-viz-card > div,
html.ura-theme body.infos .ura-infos-viz-card iframe,
html.ura-theme body.ura-page-infos .ura-infos-viz-card iframe {
  max-width: 100% !important;
}
html.ura-theme body.infos .ura-infos-viz-card > div[id],
html.ura-theme body.ura-page-infos .ura-infos-viz-card > div[id] {
  width: 100% !important;
}

html.ura-theme body.infos img.fix_images,
html.ura-theme body.ura-page-infos img.fix_images,
html.ura-theme body.infos .sites_list img,
html.ura-theme body.ura-page-infos .sites_list img,
html.ura-theme body.infos li.sites_list img,
html.ura-theme body.ura-page-infos li.sites_list img,
html.ura-theme body.infos .ura-infos-viz-card img.fix_images,
html.ura-theme body.ura-page-infos .ura-infos-viz-card img.fix_images,
html.ura-theme body.infos .ura-infos-viz-card .sites_list img,
html.ura-theme body.ura-page-infos .ura-infos-viz-card .sites_list img,
html.ura-theme body.infos .ura-infos-meta img,
html.ura-theme body.ura-page-infos .ura-infos-meta img,
html.ura-theme body.infos #longurl img,
html.ura-theme body.ura-page-infos #longurl img,
html.ura-theme body.infos h3 img,
html.ura-theme body.ura-page-infos h3 img {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-right: 0.35rem !important;
  flex: 0 0 16px !important;
  float: none !important;
}

html.ura-theme body.infos .sites_list,
html.ura-theme body.ura-page-infos .sites_list,
html.ura-theme body.infos li.sites_list,
html.ura-theme body.ura-page-infos li.sites_list {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0 !important;
  border-bottom: 1px solid var(--ura-line);
  overflow: visible !important;
}

html.ura-theme body.infos a.details,
html.ura-theme body.ura-page-infos a.details {
  display: inline-flex !important;
  align-items: center;
  padding: 0.2rem 0.55rem !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--ura-brand) 12%, white) !important;
  border: 1px solid color-mix(in srgb, var(--ura-brand) 30%, white) !important;
  color: var(--ura-brand) !important;
  font-size: 0.75rem !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

/* Kill earlier mobile “all imgs width 100% / height auto” for favicons */
@media (max-width: 759px) {
  html.ura-theme body.infos img.fix_images,
  html.ura-theme body.ura-page-infos img.fix_images,
  html.ura-theme body.infos .sites_list img,
  html.ura-theme body.ura-page-infos .sites_list img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
  }
  html.ura-theme body.infos .tab,
  html.ura-theme body.ura-page-infos .tab {
    padding: 1rem 0.85rem !important;
  }
}


html.ura-theme body.infos .ura-fav-badge,
html.ura-theme body.ura-page-infos .ura-fav-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin-right: 0.35rem;
  border-radius: 4px;
  background: var(--ura-ink);
  color: #fff !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  flex: 0 0 16px !important;
  vertical-align: middle;
}


/* ===== v3.8.2: infos mobile KPI grid + no section scrollbar ===== */
html.ura-theme body.infos #stat_tab_stats,
html.ura-theme body.ura-page-infos #stat_tab_stats,
html.ura-theme body.infos #stat_tab_location,
html.ura-theme body.ura-page-infos #stat_tab_location,
html.ura-theme body.infos #stat_tab_sources,
html.ura-theme body.ura-page-infos #stat_tab_sources,
html.ura-theme body.infos .tab,
html.ura-theme body.ura-page-infos .tab {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}
html.ura-theme body.infos .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-chart {
  overflow: hidden !important;
  max-height: none !important;
}
@media (max-width: 759px) {
  html.ura-theme body.infos .ura-kpi-list,
  html.ura-theme body.ura-page-infos .ura-kpi-list,
  html.ura-theme body.infos #historical_clicks,
  html.ura-theme body.ura-page-infos #historical_clicks,
  html.ura-theme body.infos #historical_clicks.ura-kpi-list,
  html.ura-theme body.ura-page-infos #historical_clicks.ura-kpi-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html.ura-theme body.infos .ura-kpi__btn,
  html.ura-theme body.ura-page-infos .ura-kpi__btn,
  html.ura-theme body.infos #historical_clicks a,
  html.ura-theme body.ura-page-infos #historical_clicks a {
    min-height: 76px !important;
    padding: 0.65rem 0.7rem !important;
  }
  html.ura-theme body.infos .ura-infos-viz-grid,
  html.ura-theme body.ura-page-infos .ura-infos-viz-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ===== v3.8.3: modern hit history + full-width charts ===== */
html.ura-theme body.infos .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-chart {
  width: 100% !important;
  min-height: 260px;
  padding-bottom: 0.35rem !important;
}
html.ura-theme body.infos .ura-infos-chart [id^="stat_line_"],
html.ura-theme body.ura-page-infos .ura-infos-chart [id^="stat_line_"],
html.ura-theme body.infos .ura-infos-chart .stats_line,
html.ura-theme body.ura-page-infos .ura-infos-chart .stats_line,
html.ura-theme body.infos .ura-infos-chart .line,
html.ura-theme body.ura-page-infos .ura-infos-chart .line {
  width: 100% !important;
  max-width: 100% !important;
}
html.ura-theme body.infos .ura-infos-chart [id^="stat_line_"] > div,
html.ura-theme body.ura-page-infos .ura-infos-chart [id^="stat_line_"] > div,
html.ura-theme body.infos .ura-infos-chart svg,
html.ura-theme body.ura-page-infos .ura-infos-chart svg {
  width: 100% !important;
  max-width: 100% !important;
}

html.ura-theme body.infos .ura-hits,
html.ura-theme body.ura-page-infos .ura-hits,
html.ura-theme body.infos .ura-infos-best,
html.ura-theme body.ura-page-infos .ura-infos-best {
  margin-top: 1rem;
}
html.ura-theme body.infos .ura-hits-inner,
html.ura-theme body.ura-page-infos .ura-hits-inner {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 900px) {
  html.ura-theme body.infos .ura-hits-inner,
  html.ura-theme body.ura-page-infos .ura-hits-inner {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
  }
}

html.ura-theme body.infos .ura-hits-best,
html.ura-theme body.ura-page-infos .ura-hits-best {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-height: 120px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ura-line);
  border-radius: 14px;
  background: var(--ura-ink);
  color: #fff;
}
html.ura-theme body.infos .ura-hits-best__value,
html.ura-theme body.ura-page-infos .ura-hits-best__value {
  font-size: 2.4rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}
html.ura-theme body.infos .ura-hits-best__label,
html.ura-theme body.ura-page-infos .ura-hits-best__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
}
html.ura-theme body.infos .ura-hits-best__date,
html.ura-theme body.ura-page-infos .ura-hits-best__date {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.95;
}

html.ura-theme body.infos .ura-hits-history,
html.ura-theme body.ura-page-infos .ura-hits-history {
  padding: 0.85rem;
  border: 1px solid var(--ura-line);
  border-radius: 14px;
  background: var(--ura-bg);
  min-width: 0;
}
html.ura-theme body.infos .ura-hits-history__title,
html.ura-theme body.ura-page-infos .ura-hits-history__title {
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--ura-ink) !important;
}
html.ura-theme body.infos .ura-hits-year__head,
html.ura-theme body.ura-page-infos .ura-hits-year__head {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ura-faint);
  margin: 0.35rem 0 0.5rem;
}
html.ura-theme body.infos .ura-hits-month,
html.ura-theme body.ura-page-infos .ura-hits-month {
  border: 1px solid var(--ura-line);
  border-radius: 12px;
  background: var(--ura-surface);
  margin-bottom: 0.45rem;
  overflow: hidden;
}
html.ura-theme body.infos .ura-hits-month.is-open,
html.ura-theme body.ura-page-infos .ura-hits-month.is-open {
  border-color: var(--ura-line-strong);
}
html.ura-theme body.infos .ura-hits-month__toggle,
html.ura-theme body.ura-page-infos .ura-hits-month__toggle {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.7rem 0.85rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: pointer;
  text-align: left !important;
  font: inherit !important;
  color: var(--ura-ink) !important;
  text-indent: 0 !important;
  float: none !important;
}
html.ura-theme body.infos .ura-hits-month__name,
html.ura-theme body.ura-page-infos .ura-hits-month__name {
  font-weight: 700;
  flex: 1;
}
html.ura-theme body.infos .ura-hits-month__total,
html.ura-theme body.ura-page-infos .ura-hits-month__total {
  color: var(--ura-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
html.ura-theme body.infos .ura-hits-month__chev,
html.ura-theme body.ura-page-infos .ura-hits-month__chev {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--ura-faint);
  border-bottom: 2px solid var(--ura-faint);
  transform: rotate(45deg);
  transition: transform 160ms var(--ura-ease);
}
html.ura-theme body.infos .ura-hits-month.is-open .ura-hits-month__chev,
html.ura-theme body.ura-page-infos .ura-hits-month.is-open .ura-hits-month__chev {
  transform: rotate(225deg);
}
html.ura-theme body.infos .ura-hits-days,
html.ura-theme body.ura-page-infos .ura-hits-days {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.4rem;
  padding: 0 0.75rem 0.75rem;
}
html.ura-theme body.infos .ura-hits-month.is-open .ura-hits-days,
html.ura-theme body.ura-page-infos .ura-hits-month.is-open .ura-hits-days {
  display: grid;
}
html.ura-theme body.infos .ura-hits-day,
html.ura-theme body.ura-page-infos .ura-hits-day {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--ura-line);
  background: var(--ura-bg);
}
html.ura-theme body.infos .ura-hits-day.is-best,
html.ura-theme body.ura-page-infos .ura-hits-day.is-best {
  border-color: color-mix(in srgb, var(--ura-brand) 45%, var(--ura-line));
  background: color-mix(in srgb, var(--ura-brand) 10%, white);
}
html.ura-theme body.infos .ura-hits-day__num,
html.ura-theme body.ura-page-infos .ura-hits-day__num {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ura-faint);
}
html.ura-theme body.infos .ura-hits-day__hits,
html.ura-theme body.ura-page-infos .ura-hits-day__hits {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ura-ink);
}

@media (max-width: 759px) {
  html.ura-theme body.infos .ura-hits-best,
  html.ura-theme body.ura-page-infos .ura-hits-best {
    min-height: 96px;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  html.ura-theme body.infos .ura-hits-days,
  html.ura-theme body.ura-page-infos .ura-hits-days {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }
}

/* v3.8.4 polish */


/* ===== v3.8.5: full-width charts + spacing ===== */
html.ura-theme body.infos #stat_tab_stats,
html.ura-theme body.ura-page-infos #stat_tab_stats {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}
html.ura-theme body.infos .ura-infos-summary,
html.ura-theme body.ura-page-infos .ura-infos-summary,
html.ura-theme body.infos .ura-infos-kpis,
html.ura-theme body.ura-page-infos .ura-infos-kpis,
html.ura-theme body.infos .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-chart,
html.ura-theme body.infos .ura-hits,
html.ura-theme body.ura-page-infos .ura-hits {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html.ura-theme body.infos .ura-infos-summary,
html.ura-theme body.ura-page-infos .ura-infos-summary {
  margin: 0 !important;
}
html.ura-theme body.infos .ura-infos-kpis > p,
html.ura-theme body.ura-page-infos .ura-infos-kpis > p {
  margin: 0 0 0.65rem !important;
  color: var(--ura-muted);
  font-size: 0.9rem;
}
html.ura-theme body.infos .ura-kpi-list,
html.ura-theme body.ura-page-infos .ura-kpi-list,
html.ura-theme body.infos #historical_clicks,
html.ura-theme body.ura-page-infos #historical_clicks {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.6rem !important;
}
html.ura-theme body.infos .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-chart {
  margin: 0 !important;
  padding: 1rem !important;
  min-height: 340px;
  overflow: hidden !important;
}
html.ura-theme body.infos .ura-infos-chart [id^="stat_line_"],
html.ura-theme body.ura-page-infos .ura-infos-chart [id^="stat_line_"] {
  width: 100% !important;
}
html.ura-theme body.infos .ura-infos-chart [id^="visualization_"],
html.ura-theme body.ura-page-infos .ura-infos-chart [id^="visualization_"] {
  width: 100% !important;
  max-width: 100% !important;
  height: 300px !important;
}
html.ura-theme body.infos .ura-infos-chart svg,
html.ura-theme body.ura-page-infos .ura-infos-chart svg {
  max-width: 100% !important;
}
html.ura-theme body.infos .ura-hits,
html.ura-theme body.ura-page-infos .ura-hits {
  margin: 0 !important;
}
html.ura-theme body.infos .ura-hits-inner,
html.ura-theme body.ura-page-infos .ura-hits-inner {
  gap: 0.85rem !important;
}
html.ura-theme body.infos .ura-hits-month__toggle,
html.ura-theme body.ura-page-infos .ura-hits-month__toggle {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--ura-ink) !important;
}
@media (max-width: 900px) {
  html.ura-theme body.infos .ura-kpi-list,
  html.ura-theme body.ura-page-infos .ura-kpi-list,
  html.ura-theme body.infos #historical_clicks,
  html.ura-theme body.ura-page-infos #historical_clicks {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* ===== v3.8.6: chart denser + month toggle fix ===== */
html.ura-theme body.infos button.ura-hits-month__toggle,
html.ura-theme body.ura-page-infos button.ura-hits-month__toggle {
  appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.65rem !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.7rem 0.85rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--ura-ink) !important;
  font-family: var(--ura-font) !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  text-align: left !important;
  text-indent: 0 !important;
  float: none !important;
  cursor: pointer !important;
}
html.ura-theme body.infos button.ura-hits-month__toggle:hover,
html.ura-theme body.ura-page-infos button.ura-hits-month__toggle:hover {
  background: var(--ura-bg) !important;
  color: var(--ura-ink) !important;
}
html.ura-theme body.infos .ura-hits-month__name,
html.ura-theme body.ura-page-infos .ura-hits-month__name {
  color: var(--ura-ink) !important;
}
html.ura-theme body.infos .ura-hits-month__total,
html.ura-theme body.ura-page-infos .ura-hits-month__total {
  color: var(--ura-muted) !important;
  margin-left: auto;
}
html.ura-theme body.infos .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-chart {
  padding: 0.85rem 0.75rem 0.5rem !important;
}
html.ura-theme body.infos .ura-infos-chart [id^="visualization_"],
html.ura-theme body.ura-page-infos .ura-infos-chart [id^="visualization_"] {
  width: 100% !important;
  margin: 0 !important;
}
html.ura-theme body.infos .ura-infos-summary,
html.ura-theme body.ura-page-infos .ura-infos-summary,
html.ura-theme body.infos .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-chart,
html.ura-theme body.infos .ura-hits,
html.ura-theme body.ura-page-infos .ura-hits {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* ===== v3.8.8: mobile pie/map chart redraw ===== */
html.ura-theme body.infos .ura-infos-viz-grid,
html.ura-theme body.ura-page-infos .ura-infos-viz-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.85rem !important;
  width: 100% !important;
}
@media (min-width: 900px) {
  html.ura-theme body.infos .ura-infos-viz-grid,
  html.ura-theme body.ura-page-infos .ura-infos-viz-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
html.ura-theme body.infos .ura-infos-viz-card,
html.ura-theme body.ura-page-infos .ura-infos-viz-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
html.ura-theme body.infos .ura-infos-viz-card [id^="visualization_"],
html.ura-theme body.ura-page-infos .ura-infos-viz-card [id^="visualization_"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}
html.ura-theme body.infos .ura-infos-viz-card svg,
html.ura-theme body.ura-page-infos .ura-infos-viz-card svg,
html.ura-theme body.infos .ura-infos-viz-card iframe,
html.ura-theme body.ura-page-infos .ura-infos-viz-card iframe {
  max-width: 100% !important;
}
@media (max-width: 759px) {
  html.ura-theme body.infos .ura-infos-viz-card,
  html.ura-theme body.ura-page-infos .ura-infos-viz-card {
    padding: 0.75rem !important;
  }
  html.ura-theme body.infos #stat_tab_location,
  html.ura-theme body.ura-page-infos #stat_tab_location,
  html.ura-theme body.infos #stat_tab_sources,
  html.ura-theme body.ura-page-infos #stat_tab_sources {
    overflow: visible !important;
  }
}

/* ===== v3.8.11: gap between KPI pills and chart ===== */
html.ura-theme body.infos #stat_tab_stats,
html.ura-theme body.ura-page-infos #stat_tab_stats {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  row-gap: 1.25rem !important;
}
html.ura-theme body.infos #stat_tab_stats > .ura-infos-summary,
html.ura-theme body.ura-page-infos #stat_tab_stats > .ura-infos-summary,
html.ura-theme body.infos .ura-infos-summary,
html.ura-theme body.ura-page-infos .ura-infos-summary {
  margin: 0 !important;
}
html.ura-theme body.infos .ura-infos-kpis,
html.ura-theme body.ura-page-infos .ura-infos-kpis {
  display: block !important;
  margin: 0 !important;
  padding-bottom: 1.25rem !important;
  box-sizing: border-box !important;
}
html.ura-theme body.infos #stat_tab_stats #historical_clicks,
html.ura-theme body.ura-page-infos #stat_tab_stats #historical_clicks {
  margin: 0.5rem 0 0 !important;
}
html.ura-theme body.infos #stat_tab_stats > .ura-infos-chart,
html.ura-theme body.ura-page-infos #stat_tab_stats > .ura-infos-chart {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
html.ura-theme body.infos #stat_tab_stats > .ura-hits,
html.ura-theme body.ura-page-infos #stat_tab_stats > .ura-hits,
html.ura-theme body.infos .ura-hits,
html.ura-theme body.ura-page-infos .ura-hits {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
html.ura-theme body.infos .ura-hits-inner,
html.ura-theme body.ura-page-infos .ura-hits-inner {
  gap: 1rem !important;
}
html.ura-theme body.infos .ura-hits-history,
html.ura-theme body.ura-page-infos .ura-hits-history {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
html.ura-theme body.infos .ura-hits-year,
html.ura-theme body.ura-page-infos .ura-hits-year {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
html.ura-theme body.infos .ura-hits-month,
html.ura-theme body.ura-page-infos .ura-hits-month {
  margin-bottom: 0 !important;
}

/* ===== v3.8.11b: stack gap via marked parent ===== */
html.ura-theme body.infos .ura-infos-stack,
html.ura-theme body.ura-page-infos .ura-infos-stack,
html.ura-theme body.infos #stat_tab_stats.ura-infos-stack,
html.ura-theme body.ura-page-infos #stat_tab_stats.ura-infos-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1.25rem !important;
  row-gap: 1.25rem !important;
}
html.ura-theme body.infos .ura-infos-stack > .ura-infos-summary,
html.ura-theme body.ura-page-infos .ura-infos-stack > .ura-infos-summary {
  margin: 0 !important;
  padding-bottom: 0 !important;
}
html.ura-theme body.infos .ura-infos-stack .ura-infos-kpis,
html.ura-theme body.ura-page-infos .ura-infos-stack .ura-infos-kpis {
  margin: 0 !important;
  padding-bottom: 0 !important;
}
html.ura-theme body.infos .ura-infos-stack > .ura-infos-chart,
html.ura-theme body.ura-page-infos .ura-infos-stack > .ura-infos-chart {
  margin: 0 !important;
}
html.ura-theme body.infos .ura-infos-stack > .ura-hits,
html.ura-theme body.ura-page-infos .ura-infos-stack > .ura-hits {
  margin: 0 !important;
}

/* ===== v3.8.12: explicit spacer between pills and chart ===== */
html.ura-theme body.infos .ura-infos-gap,
html.ura-theme body.ura-page-infos .ura-infos-gap {
  display: block !important;
  width: 100% !important;
  height: 1.25rem !important;
  min-height: 1.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  flex: 0 0 1.25rem !important;
  pointer-events: none !important;
}
html.ura-theme body.infos .ura-infos-stack,
html.ura-theme body.ura-page-infos .ura-infos-stack {
  gap: 0 !important;
  row-gap: 0 !important;
}

/* ===== v3.8.13: Inter everywhere + favicon logomark ===== */
html.ura-theme,
html.ura-theme body,
html.ura-theme body * {
  font-family: var(--ura-font) !important;
}
html.ura-theme body code,
html.ura-theme body kbd,
html.ura-theme body pre,
html.ura-theme body samp,
html.ura-theme body .ura-mono,
html.ura-theme table#main_table td.keyword a {
  font-family: var(--ura-mono) !important;
}
html.ura-theme table#main_table th,
html.ura-theme table.tblSorter th,
html.ura-theme table.tblSorter thead td,
html.ura-theme .tablesorter-header,
html.ura-theme .tablesorter-header-inner {
  font-family: var(--ura-font) !important;
  font-weight: 650 !important;
}

/* ===== v3.8.14: complete filter rebuild (ura-ff) ===== */
html.ura-theme #filter_options,
html.ura-theme .ura-filter-grid,
html.ura-theme #filter_buttons {
  display: revert !important;
}
html.ura-theme .ura-filters-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  margin-top: 1.15rem !important;
  width: 100% !important;
}
html.ura-theme #filter_form.ura-ff,
html.ura-theme .ura-ff {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  float: none !important;
  width: 100% !important;
}
html.ura-theme #filter_form.ura-ff form,
html.ura-theme .ura-ff__form {
  margin: 0 !important;
  padding: 1rem 1.1rem !important;
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--ura-shadow) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
}
html.ura-theme .ura-ff__primary {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.75rem !important;
  align-items: end !important;
}
@media (min-width: 1100px) {
  html.ura-theme .ura-ff__primary {
    grid-template-columns: minmax(220px, 2fr) minmax(120px, 0.85fr) minmax(120px, 0.85fr) minmax(120px, 0.85fr) 88px auto !important;
  }
}
@media (min-width: 760px) and (max-width: 1099px) {
  html.ura-theme .ura-ff__primary {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) !important;
  }
  html.ura-theme .ura-ff__actions {
    grid-column: 1 / -1 !important;
  }
}
html.ura-theme .ura-ff__field {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.3rem !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html.ura-theme .ura-ff__label {
  display: block !important;
  margin: 0 !important;
  font-size: 0.68rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--ura-faint) !important;
  font-family: var(--ura-font) !important;
}
html.ura-theme .ura-ff__control-wrap {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}
html.ura-theme .ura-ff__control,
html.ura-theme .ura-ff select,
html.ura-theme .ura-ff input.text,
html.ura-theme .ura-ff input[type="search"],
html.ura-theme .ura-ff input[type="number"],
html.ura-theme .ura-ff input[type="text"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 0.85rem !important;
  border: 1px solid var(--ura-line-strong) !important;
  border-radius: 10px !important;
  background: var(--ura-bg) !important;
  color: var(--ura-ink) !important;
  font-family: var(--ura-font) !important;
  font-size: 0.92rem !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
}
html.ura-theme .ura-ff select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  padding-right: 2rem !important;
  cursor: pointer !important;
}
html.ura-theme .ura-ff__field--rows .ura-ff__control {
  text-align: center !important;
}
html.ura-theme .ura-ff__actions,
html.ura-theme #filter_buttons.ura-ff__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  align-items: end !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  float: none !important;
  width: auto !important;
}
html.ura-theme .ura-ff__btn,
html.ura-theme .ura-ff__actions .button,
html.ura-theme .ura-ff__actions button,
html.ura-theme .ura-ff__actions input {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 1.1rem !important;
  border-radius: 10px !important;
  font-family: var(--ura-font) !important;
  font-size: 0.9rem !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  float: none !important;
  width: auto !important;
  text-indent: 0 !important;
}
html.ura-theme .ura-ff__btn.primary,
html.ura-theme #submit-sort {
  background: var(--ura-ink) !important;
  color: #fff !important;
  border: 1px solid var(--ura-ink) !important;
}
html.ura-theme .ura-ff__btn--ghost,
html.ura-theme #submit-clear-filter {
  background: var(--ura-surface) !important;
  color: var(--ura-ink) !important;
  border: 1px solid var(--ura-line-strong) !important;
}
html.ura-theme .ura-ff__more {
  border-top: 1px solid var(--ura-line) !important;
  padding-top: 0.65rem !important;
  margin: 0 !important;
}
html.ura-theme .ura-ff__more-summary {
  cursor: pointer !important;
  list-style: none !important;
  font-size: 0.8rem !important;
  font-weight: 650 !important;
  color: var(--ura-muted) !important;
  font-family: var(--ura-font) !important;
  user-select: none !important;
}
html.ura-theme .ura-ff__more-summary::-webkit-details-marker { display: none !important; }
html.ura-theme .ura-ff__more-summary::after {
  content: "+" !important;
  margin-left: 0.35rem !important;
  color: var(--ura-faint) !important;
}
html.ura-theme .ura-ff__more[open] > .ura-ff__more-summary::after { content: "–" !important; }
html.ura-theme .ura-ff__advanced {
  display: grid !important;
  gap: 0.85rem !important;
  margin-top: 0.85rem !important;
}
@media (min-width: 800px) {
  html.ura-theme .ura-ff__advanced {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) !important;
  }
}
html.ura-theme .ura-ff__inline {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) !important;
  gap: 0.45rem !important;
  align-items: center !important;
}
html.ura-theme .ura-ff__dates {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) auto minmax(0, 0.9fr) !important;
}
html.ura-theme .ura-ff__and {
  display: none !important;
  color: var(--ura-muted) !important;
  font-size: 0.8rem !important;
  text-align: center !important;
}
html.ura-theme .ura-ff__and.is-visible,
html.ura-theme .ura-ff__and:not([hidden]) {
  display: inline !important;
}
html.ura-theme #date_second[hidden],
html.ura-theme #date_and[hidden] {
  display: none !important;
}
html.ura-theme #date_second.is-visible {
  display: block !important;
}
@media (max-width: 759px) {
  html.ura-theme .ura-ff__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
  }
  html.ura-theme .ura-ff__actions .button,
  html.ura-theme .ura-ff__actions button {
    width: 100% !important;
  }
  html.ura-theme .ura-ff__inline,
  html.ura-theme .ura-ff__dates {
    grid-template-columns: 1fr !important;
  }
  html.ura-theme .ura-ff__and.is-visible {
    display: none !important;
  }
}

/* Neutralize older filter layout systems so they cannot fight ura-ff */
html.ura-theme .ura-filter-modern,
html.ura-theme .ura-filter-bar,
html.ura-theme .ura-filter-grid {
  display: contents !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ===== v3.8.15: sticky workspace footer + external links ===== */
html.ura-theme,
html.ura-theme body {
  min-height: 100% !important;
}
html.ura-theme body.ura-booted {
  min-height: 100vh !important;
}
html.ura-theme .ura-app {
  min-height: 100vh !important;
  min-height: 100dvh !important;
}
html.ura-theme .ura-workspace {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
}
html.ura-theme .ura-workspace > #wrap {
  flex: 1 0 auto !important;
  width: 100% !important;
}
html.ura-theme .ura-workspace-credit {
  margin-top: auto !important;
  padding-top: 1.5rem !important;
  padding-bottom: 0.25rem !important;
  flex: 0 0 auto !important;
  width: 100% !important;
}
html.ura-theme body.login #wrap {
  min-height: 100vh !important;
  min-height: 100dvh !important;
}

/* ===== v3.8.16: filter toolbar polish + content link underlines ===== */
html.ura-theme .ura-ff__form {
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html.ura-theme .ura-ff__toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 0.75rem 0.65rem !important;
  padding: 1rem 1.1rem !important;
  margin: 0 !important;
}
html.ura-theme .ura-ff__field--search {
  flex: 1 1 240px !important;
  min-width: min(100%, 220px) !important;
}
html.ura-theme .ura-ff__controls {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 0.65rem !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
html.ura-theme .ura-ff__field--in,
html.ura-theme .ura-ff__field--sort,
html.ura-theme .ura-ff__field--order {
  flex: 1 1 128px !important;
  min-width: 118px !important;
  max-width: 180px !important;
}
html.ura-theme .ura-ff__field--rows {
  flex: 0 0 76px !important;
  width: 76px !important;
  max-width: 76px !important;
}
html.ura-theme .ura-ff__actions,
html.ura-theme #filter_buttons.ura-ff__actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  gap: 0.45rem !important;
  align-items: center !important;
  margin: 0 !important;
  margin-left: auto !important;
  width: auto !important;
}
html.ura-theme .ura-ff__label {
  margin-bottom: 0.15rem !important;
}
html.ura-theme .ura-ff__more {
  border-top: 1px solid var(--ura-line) !important;
  padding: 0.7rem 1.1rem 1rem !important;
  margin: 0 !important;
  background: color-mix(in srgb, var(--ura-bg) 65%, white) !important;
}
html.ura-theme .ura-ff__advanced {
  margin-top: 0.75rem !important;
}
html.ura-theme .ura-ff__advanced-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.85rem !important;
  width: 100% !important;
  max-width: none !important;
}
@media (min-width: 720px) {
  html.ura-theme .ura-ff__advanced-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) !important;
  }
}
html.ura-theme .ura-ff__inline {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.45rem !important;
  align-items: center !important;
}
html.ura-theme .ura-ff__inline > .ura-ff__control-wrap {
  flex: 1 1 45% !important;
  min-width: 0 !important;
}
html.ura-theme .ura-ff__inline > .ura-ff__control {
  flex: 1 1 35% !important;
  min-width: 0 !important;
  width: auto !important;
}
html.ura-theme .ura-ff__dates > .ura-ff__control-wrap {
  flex: 1 1 28% !important;
}
html.ura-theme .ura-ff__dates > .ura-ff__control {
  flex: 1 1 24% !important;
}
html.ura-theme .ura-ff__and {
  flex: 0 0 auto !important;
}
html.ura-theme .ura-ff__btn,
html.ura-theme .ura-ff__actions .button,
html.ura-theme .ura-ff__actions button {
  min-width: 88px !important;
}
@media (max-width: 759px) {
  html.ura-theme .ura-ff__toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html.ura-theme .ura-ff__controls {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
  }
  html.ura-theme .ura-ff__field--in,
  html.ura-theme .ura-ff__field--sort,
  html.ura-theme .ura-ff__field--order,
  html.ura-theme .ura-ff__field--rows {
    max-width: none !important;
    width: auto !important;
    flex: none !important;
  }
  html.ura-theme .ura-ff__field--rows {
    grid-column: 1 / -1 !important;
    max-width: 120px !important;
  }
  html.ura-theme .ura-ff__actions {
    margin-left: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  html.ura-theme .ura-ff__actions .button,
  html.ura-theme .ura-ff__actions button {
    width: 100% !important;
  }
  html.ura-theme .ura-ff__inline,
  html.ura-theme .ura-ff__dates {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html.ura-theme .ura-ff__and.is-visible {
    display: none !important;
  }
}
@media (min-width: 1100px) {
  html.ura-theme .ura-ff__field--search {
    flex: 1 1 280px !important;
    max-width: 420px !important;
  }
  html.ura-theme .ura-ff__controls {
    flex: 0 1 auto !important;
  }
}

/* Kill leftover primary grid from 3.8.14 */
html.ura-theme .ura-ff__primary {
  display: contents !important;
}

/* ===== v3.8.17: revert content link underlines ===== */
html.ura-theme .ura-workspace #wrap a,
html.ura-theme .ura-workspace #wrap td a,
html.ura-theme .ura-workspace #wrap .url a,
html.ura-theme .ura-workspace #wrap .keyword a,
html.ura-theme body.infos #wrap a,
html.ura-theme body.ura-page-infos #wrap a,
html.ura-theme body.ura-page-tools #wrap a,
html.ura-theme body.ura-page-plugins #wrap a,
html.ura-theme #pagination a,
html.ura-theme .ura-ff a,
html.ura-theme .ura-ff button,
html.ura-theme .ura-ff .button {
  text-decoration: none !important;
}
html.ura-theme .ura-workspace #wrap a:hover,
html.ura-theme .ura-workspace #wrap td a:hover,
html.ura-theme .ura-workspace #wrap .url a:hover,
html.ura-theme .ura-workspace #wrap .keyword a:hover {
  text-decoration: none !important;
  color: var(--ura-brand) !important;
}

/* ===== v3.8.18: filter bar as explicit CSS grid (no wrap chaos) ===== */
html.ura-theme .ura-ff--v2,
html.ura-theme #filter_form.ura-ff--v2 {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  float: none !important;
  width: 100% !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__form {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--ura-surface) !important;
  border: 1px solid var(--ura-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--ura-shadow) !important;
  overflow: hidden !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__bar {
  display: grid !important;
  grid-template-columns: minmax(200px, 1.5fr) minmax(120px, 0.85fr) minmax(110px, 0.75fr) minmax(120px, 0.85fr) 80px max-content !important;
  gap: 0.7rem 0.65rem !important;
  align-items: end !important;
  padding: 1rem 1.1rem !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__cell {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.28rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__cell--actions {
  justify-content: flex-end !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__label {
  display: block !important;
  height: 0.95rem !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.68rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--ura-faint) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__label--spacer {
  visibility: hidden !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__control-wrap {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__control,
html.ura-theme .ura-ff--v2 select,
html.ura-theme .ura-ff--v2 input.text,
html.ura-theme .ura-ff--v2 input[type="search"],
html.ura-theme .ura-ff--v2 input[type="number"],
html.ura-theme .ura-ff--v2 input[type="text"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 0.8rem !important;
  border: 1px solid var(--ura-line-strong) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--ura-ink) !important;
  font-family: var(--ura-font) !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
}
html.ura-theme .ura-ff--v2 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-color: #fff !important;
  padding-right: 1.9rem !important;
  cursor: pointer !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__cell--rows .ura-ff__control {
  text-align: center !important;
  padding-left: 0.4rem !important;
  padding-right: 0.4rem !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.45rem !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
  background: transparent !important;
  border: 0 !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__btn,
html.ura-theme .ura-ff--v2 .ura-ff__actions .button,
html.ura-theme .ura-ff--v2 .ura-ff__actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 1rem !important;
  border-radius: 10px !important;
  font-family: var(--ura-font) !important;
  font-size: 0.88rem !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
  float: none !important;
  width: auto !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
html.ura-theme .ura-ff--v2 #submit-sort {
  background: var(--ura-ink) !important;
  color: #fff !important;
  border: 1px solid var(--ura-ink) !important;
}
html.ura-theme .ura-ff--v2 #submit-clear-filter {
  background: #fff !important;
  color: var(--ura-ink) !important;
  border: 1px solid var(--ura-line-strong) !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__more {
  border-top: 1px solid var(--ura-line) !important;
  margin: 0 !important;
  padding: 0.75rem 1.1rem 1rem !important;
  background: #fafafa !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__more-summary {
  cursor: pointer !important;
  list-style: none !important;
  font-size: 0.8rem !important;
  font-weight: 650 !important;
  color: var(--ura-muted) !important;
  font-family: var(--ura-font) !important;
  user-select: none !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__more-summary::-webkit-details-marker { display: none !important; }
html.ura-theme .ura-ff--v2 .ura-ff__more-summary::after {
  content: "+" !important;
  margin-left: 0.35rem !important;
  color: var(--ura-faint) !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__more[open] > .ura-ff__more-summary::after { content: "–" !important; }
html.ura-theme .ura-ff--v2 .ura-ff__advanced {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important;
  gap: 0.85rem 1rem !important;
  margin-top: 0.85rem !important;
  width: 100% !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__pair {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: 0.45rem !important;
  align-items: center !important;
  width: 100% !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__pair--dates {
  grid-template-columns: 1fr 1fr auto 1fr !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__and {
  display: none !important;
  text-align: center !important;
  color: var(--ura-muted) !important;
  font-size: 0.8rem !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__and.is-visible,
html.ura-theme .ura-ff--v2 .ura-ff__and:not([hidden]) {
  display: inline !important;
}
html.ura-theme .ura-ff--v2 #date_second[hidden],
html.ura-theme .ura-ff--v2 #date_and[hidden] {
  display: none !important;
}
html.ura-theme .ura-ff--v2 #date_second.is-visible {
  display: block !important;
}

/* Breakpoints */
@media (max-width: 1100px) {
  html.ura-theme .ura-ff--v2 .ura-ff__bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__cell--search {
    grid-column: 1 / -1 !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__cell--actions {
    grid-column: 1 / -1 !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__actions {
    width: 100% !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__actions .button,
  html.ura-theme .ura-ff--v2 .ura-ff__actions button {
    flex: 1 1 0 !important;
  }
}
@media (max-width: 640px) {
  html.ura-theme .ura-ff--v2 .ura-ff__bar {
    grid-template-columns: 1fr 1fr !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__cell--search,
  html.ura-theme .ura-ff--v2 .ura-ff__cell--actions {
    grid-column: 1 / -1 !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__advanced {
    grid-template-columns: 1fr !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__pair,
  html.ura-theme .ura-ff--v2 .ura-ff__pair--dates {
    grid-template-columns: 1fr !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__and.is-visible {
    display: none !important;
  }
}

/* Disable old nested toolbar systems when v2 is present */
html.ura-theme .ura-ff--v2 .ura-ff__toolbar,
html.ura-theme .ura-ff--v2 .ura-ff__controls,
html.ura-theme .ura-ff--v2 .ura-ff__primary,
html.ura-theme .ura-ff--v2 .ura-ff__advanced-grid {
  display: contents !important;
}

/* ===== v3.8.19: kill legacy filter_buttons layout + equal control heights ===== */
html.ura-theme .ura-ff--v2 .ura-ff__bar {
  display: grid !important;
  grid-template-columns: minmax(180px, 1.6fr) 150px 140px 150px 84px auto !important;
  grid-auto-flow: row !important;
  gap: 0.65rem !important;
  align-items: end !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__cell,
html.ura-theme .ura-ff--v2 .ura-ff__cell--actions {
  display: flex !important;
  flex-direction: column !important;
  grid-column: auto !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__cell--search {
  grid-column: auto !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.45rem !important;
  height: 40px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  float: none !important;
}

/* Identical control chrome — beat YOURLS + earlier theme rules */
html.ura-theme .ura-ff--v2 .ura-ff__bar input,
html.ura-theme .ura-ff--v2 .ura-ff__bar select,
html.ura-theme .ura-ff--v2 .ura-ff__bar input.text,
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="search"],
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="number"],
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="text"],
html.ura-theme .ura-ff--v2 .ura-ff__bar .ura-ff__control,
html.ura-theme .ura-ff--v2 .ura-ff__control-wrap > select,
html.ura-theme #filter_form.ura-ff--v2 input.text,
html.ura-theme #filter_form.ura-ff--v2 select,
html.ura-theme #filter_form.ura-ff--v2 input[type="search"],
html.ura-theme #filter_form.ura-ff--v2 input[type="number"],
html.ura-theme #filter_form.ura-ff--v2 input[name="search"],
html.ura-theme #filter_form.ura-ff--v2 input[name="perpage"] {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 0.75rem !important;
  border: 1px solid var(--ura-line-strong) !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: var(--ura-ink) !important;
  font-family: var(--ura-font) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 38px !important;
  vertical-align: middle !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__bar select,
html.ura-theme #filter_form.ura-ff--v2 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.7rem center !important;
  background-size: 12px 8px !important;
  padding-right: 1.85rem !important;
  cursor: pointer !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="search"]::-webkit-search-decoration,
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="search"]::-webkit-search-cancel-button,
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="search"]::-webkit-search-results-button,
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="search"]::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="number"] {
  -moz-appearance: textfield !important;
  text-align: center !important;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="number"]::-webkit-outer-spin-button,
html.ura-theme .ura-ff--v2 .ura-ff__bar input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__btn,
html.ura-theme .ura-ff--v2 .ura-ff__actions .button,
html.ura-theme .ura-ff--v2 .ura-ff__actions button,
html.ura-theme #filter_form.ura-ff--v2 #submit-sort,
html.ura-theme #filter_form.ura-ff--v2 #submit-clear-filter {
  box-sizing: border-box !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 1 !important;
  padding: 0 1rem !important;
  margin: 0 !important;
  text-decoration: none !important;
}
html.ura-theme .ura-ff--v2 .ura-ff__label,
html.ura-theme .ura-ff--v2 .ura-ff__label--spacer {
  height: 14px !important;
  line-height: 14px !important;
  margin: 0 0 0.3rem !important;
}

@media (max-width: 1100px) {
  html.ura-theme .ura-ff--v2 .ura-ff__bar {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) 84px auto !important;
  }
}
@media (max-width: 900px) {
  html.ura-theme .ura-ff--v2 .ura-ff__bar {
    grid-template-columns: 1fr 1fr !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__cell--search {
    grid-column: 1 / -1 !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__cell--actions {
    grid-column: 1 / -1 !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__actions {
    width: 100% !important;
    height: auto !important;
  }
  html.ura-theme .ura-ff--v2 .ura-ff__actions .button,
  html.ura-theme .ura-ff--v2 .ura-ff__actions button {
    flex: 1 1 0 !important;
  }
}

/* ===== v3.8.20: native date inputs ===== */
html.ura-theme .ura-ff--v2 input[type="date"],
html.ura-theme #filter_form.ura-ff--v2 input[type="date"],
html.ura-theme .ura-ff--v2 .ura-ff__date {
  box-sizing: border-box !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 0.65rem !important;
  line-height: 38px !important;
  color-scheme: light;
}
html.ura-theme .ura-ff--v2 input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
}
html.ura-theme table.datepicker,
html.ura-theme .datepicker {
  display: none !important;
}

/* ===== v3.8.21: filter bar spacing + height lock (final) ===== */
html.ura-theme #filter_form.ura-ff--v2 {
  --ura-ff-h: 40px;
  --ura-ff-gap: 12px;
  --ura-ff-label-h: 16px;
}
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 8.75rem 8.75rem 8.75rem 4.75rem max-content !important;
  column-gap: var(--ura-ff-gap) !important;
  row-gap: var(--ura-ff-gap) !important;
  align-items: end !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__cell {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__label,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__label--spacer {
  display: block !important;
  height: var(--ura-ff-label-h) !important;
  min-height: var(--ura-ff-label-h) !important;
  max-height: var(--ura-ff-label-h) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: var(--ura-ff-label-h) !important;
  font-size: 0.6875rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--ura-faint) !important;
  overflow: hidden !important;
}
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__control-wrap {
  display: block !important;
  width: 100% !important;
  height: var(--ura-ff-h) !important;
}
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar input,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar select,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar .ura-ff__control,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__control-wrap > select,
html.ura-theme #filter_form.ura-ff--v2 input[type="search"],
html.ura-theme #filter_form.ura-ff--v2 input[type="number"],
html.ura-theme #filter_form.ura-ff--v2 input[type="date"],
html.ura-theme #filter_form.ura-ff--v2 input[type="text"],
html.ura-theme #filter_form.ura-ff--v2 input.text,
html.ura-theme #filter_form.ura-ff--v2 select {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: var(--ura-ff-h) !important;
  min-height: var(--ura-ff-h) !important;
  max-height: var(--ura-ff-h) !important;
  margin: 0 !important;
  padding: 0 0.75rem !important;
  border: 1px solid var(--ura-line-strong) !important;
  border-radius: 10px !important;
  background: #fff !important;
  background-color: #fff !important;
  color: var(--ura-ink) !important;
  font-family: var(--ura-font) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: calc(var(--ura-ff-h) - 2px) !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}
html.ura-theme #filter_form.ura-ff--v2 select,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__control-wrap > select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.7rem center !important;
  background-size: 12px 8px !important;
  background-color: #fff !important;
  padding-right: 1.85rem !important;
}
html.ura-theme #filter_form.ura-ff--v2 input[type="number"] {
  -moz-appearance: textfield !important;
  text-align: center !important;
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}
html.ura-theme #filter_form.ura-ff--v2 input[type="number"]::-webkit-outer-spin-button,
html.ura-theme #filter_form.ura-ff--v2 input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}
html.ura-theme #filter_form.ura-ff--v2 input[type="search"]::-webkit-search-decoration,
html.ura-theme #filter_form.ura-ff--v2 input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none !important;
  display: none !important;
}
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: var(--ura-ff-gap) !important;
  height: var(--ura-ff-h) !important;
  min-height: var(--ura-ff-h) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__actions .button,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__actions button,
html.ura-theme #filter_form.ura-ff--v2 button.ura-ff__btn,
html.ura-theme #filter_form.ura-ff--v2 #submit-sort,
html.ura-theme #filter_form.ura-ff--v2 #submit-clear-filter {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--ura-ff-h) !important;
  min-height: var(--ura-ff-h) !important;
  max-height: var(--ura-ff-h) !important;
  margin: 0 !important;
  padding: 0 1rem !important;
  border-radius: 10px !important;
  font-family: var(--ura-font) !important;
  font-size: 0.875rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
html.ura-theme #filter_form.ura-ff--v2 #submit-sort {
  background: var(--ura-ink) !important;
  color: #fff !important;
  border: 1px solid var(--ura-ink) !important;
}
html.ura-theme #filter_form.ura-ff--v2 #submit-clear-filter {
  background: #fff !important;
  color: var(--ura-ink) !important;
  border: 1px solid var(--ura-line-strong) !important;
}

@media (max-width: 960px) {
  html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  html.ura-theme #filter_form.ura-ff--v2 .ura-ff__cell--search {
    grid-column: 1 / -1 !important;
  }
  html.ura-theme #filter_form.ura-ff--v2 .ura-ff__cell--actions {
    grid-column: 1 / -1 !important;
  }
  html.ura-theme #filter_form.ura-ff--v2 .ura-ff__actions {
    width: 100% !important;
  }
  html.ura-theme #filter_form.ura-ff--v2 .ura-ff__actions .button,
  html.ura-theme #filter_form.ura-ff--v2 .ura-ff__actions button {
    flex: 1 1 0 !important;
  }
}
@media (max-width: 640px) {
  html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar {
    grid-template-columns: 1fr 1fr !important;
  }
}



/* ===== ura-ff FINAL OVERRIDE v3.8.23 ===== */
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px 140px 140px 72px max-content !important;
  gap: 12px !important;
  align-items: end !important;
}
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar input,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar select,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__control-wrap > select {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__actions,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__actions button,
html.ura-theme #filter_form.ura-ff--v2 #submit-sort,
html.ura-theme #filter_form.ura-ff--v2 #submit-clear-filter {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
}


/* ===== ura-ff chevron v3.8.24 ===== */
html.ura-theme #filter_form.ura-ff--v2 select,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__control-wrap > select,
html.ura-theme #filter_form.ura-ff--v2 .ura-ff__bar select {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23525252' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px 8px !important;
  padding-right: 30px !important;
}


/* ===== login label gap v3.8.25 ===== */
html.ura-theme body.login #login p {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  margin: 0 0 0.9rem !important;
}
html.ura-theme body.login #login p > br {
  display: none !important;
}
html.ura-theme body.login #login label {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}
html.ura-theme body.login #login input.text,
html.ura-theme body.login #login input[type="text"],
html.ura-theme body.login #login input[type="password"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
