/* ============================================================
   Base: CSS variables, body, navigation, layout, components
   Shared across ALL pages (admin + landing).
   ============================================================ */
:root {
  --ink: #141319;
  --muted: #5b5f6a;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --accent: #f97316;
  --accent-soft: #fdba74;
  --mint: #0ea5a4;
  --surface: #f7f4ff;
  --panel: #ffffff;
  --line: #e3e5f0;
  --shadow: 0 18px 40px rgba(28, 25, 36, 0.12);
  --shadow-soft: 0 10px 22px rgba(28, 25, 36, 0.08);
  --glow: 0 0 0 1px rgba(99, 102, 241, 0.06), 0 18px 30px rgba(99, 102, 241, 0.14);
  --font-display: "Optima", "Palatino Linotype", serif;
  --font-body: "Candara", "Segoe UI", "Trebuchet MS", sans-serif;
  --scrollbar-width: 0px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll
}

body.modal-open {
  overflow: auto
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff 0%, #f8f6ff 50%, #f3f0ff 100%);
  min-height: 100vh
}

body.embed-template {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  min-height: 100%
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.08), transparent 50%), radial-gradient(ellipse at bottom left, rgba(14, 165, 164, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0
}

body.embed-template::before {
  display: none
}

body::after {
  display: none
}

a {
  color: inherit;
  text-decoration: none
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  margin: 0 auto;
  padding: 24px 24px 80px
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  font-weight: 600;
  color: var(--muted)
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 10px;
  border: none;
  transition: all 0.2s ease;
  color: var(--muted)
}

.nav-links a:hover {
  border: none;
  background: rgba(59, 130, 246, 0.08);
  color: var(--brand)
}

main {
  margin-top: 0;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  animation: fadeIn 0.6s ease both;
  backdrop-filter: blur(8px)
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.3vw, 3.4rem);
  margin: 0 0 8px;
  letter-spacing: 0.01em
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  margin: 0 0 12px
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6
}

.hero {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink)
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem
}

.card {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease
}

.card h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink)
}

.card:target {
  border: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12)
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.06), rgba(14, 165, 164, 0.03), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none
}

.card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px)
}

.card:hover::before {
  opacity: 1
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 0
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px
}

.hero-actions--inline {
  margin-top: 0
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px
}

.section-header h2 {
  margin: 0
}

.section-header .note {
  margin: 0
}

.links form {
  margin: 0
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08)
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12)
}

.form {
  display: grid;
  gap: 14px
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px
}

legend {
  padding: 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 4px
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink)
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(248, 247, 255, 0.8);
  width: fit-content;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease
}

.toggle:hover {
  background: rgba(248, 247, 255, 0.95);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06)
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px
}

.toggle-ui {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0
}

.toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease
}

.toggle-input:checked+.toggle-ui {
  background: rgba(16, 185, 129, 0.7)
}

.toggle-input:checked+.toggle-ui::after {
  transform: translateX(16px)
}

.toggle-text {
  font-weight: 600;
  color: var(--ink)
}

input {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease
}

input:focus {
  outline: none;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(59, 130, 246, 0.1)
}

textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.9);
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease
}

textarea:focus {
  outline: none;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(59, 130, 246, 0.1)
}

input[type="file"] {
  padding: 10px;
  background: #f8f7ff
}

input[type="checkbox"] {
  padding: 0
}

select {
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease
}

select:focus {
  outline: none;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(59, 130, 246, 0.1)
}

select[multiple] {
  min-height: 84px
}

.form-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center
}


pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.85rem
}


.modal-compact {
  padding: 16px;
  max-height: 90vh
}

.modal-compact .modal-header {
  margin: -16px -16px 12px -16px;
  padding: 12px 16px
}

.form-compact {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.checkbox-group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0
}

.checkbox-group-compact {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.checkbox-group-compact .checkbox-item {
  padding: 6px 10px;
  font-size: 0.85rem
}

.modal-card>.modal-header {
  margin: -20px -20px 20px -20px;
  padding: 20px;
  border-bottom: none
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.modal-wide {
  width: min(920px, 100%)
}


.detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))
}

.detail-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  border: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04)
}

.detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700
}

.detail-value {
  font-weight: 600;
  color: var(--ink)
}

.detail-content {
  display: grid;
  gap: 8px
}

.translation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
}

.translation-card {
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.3s ease
}

.translation-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08)
}

.translation-header {
  margin-bottom: 8px
}

.detail-key {
  font-weight: 700;
  color: var(--muted);
  width: 220px
}

.import-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.tile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 12px 0 16px
}

.tile-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease
}

.tile-card--file {
  cursor: pointer;
  position: relative
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer
}

.tile-card:hover {
  transform: translateY(-1px);
  border: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1)
}
}

.tile-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  border: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04)
}

.tile-body {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem
}

.tile-body strong {
  color: var(--ink);
  font-size: 1rem
}

.import-card {
  border: none;
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.3s ease
}

.import-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08)
}

.import-card__header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px
}

.import-card__header h4 {
  margin: 0 0 4px;
  font-size: 1.05rem
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px
}

.table-collapsed {
  max-height: 260px;
  overflow: hidden;
  position: relative
}

.table-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none
}

code {
  font-family: "Consolas", "Courier New", monospace
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25)
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.35);
  background: var(--brand-dark)
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease
}

.btn-secondary:hover {
  border: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 1)
}

.btn-danger {
  background: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25)
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35)
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  gap: 4px
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease
}

.btn-ghost:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.95)
}

.note {
  font-size: 0.95rem;
  color: var(--muted)
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem
}

.hint-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: none;
  color: #1e3a8a;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(59, 130, 246, 0.2)
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px
}

.export-link {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: none;
  display: grid;
  gap: 6px;
  box-shadow: inset 0 1px 2px rgba(59, 130, 246, 0.1)
}

.export-link code {
  display: block;
  word-break: break-all;
  font-size: 0.85rem
}


table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.5)
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06)
}

tbody tr:hover {
  background: rgba(59, 130, 246, 0.04)
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  background: rgba(248, 250, 252, 0.5);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06)
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06)
}

.table-wide {
  min-width: 980px;
  table-layout: fixed
}

.reviews-table {
  width: 100%;
  min-width: 0;
  table-layout: auto
}

.reviews-table th,
.reviews-table td {
  white-space: normal
}

.table-zebra th,
.table-zebra td {
  white-space: nowrap;
  padding: 12px 8px
}

.table-zebra th {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-transform: none;
  background: rgba(247, 244, 255, 0.5);
  border-bottom: 1px solid var(--line)
}

.table-zebra a.table-sort {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: 4px;
  align-items: center
}

.table-zebra td.content-cell,
.table-zebra th.content-cell {
  white-space: normal
}

.content-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px
}

.actions-cell {
  text-align: right
}

.actions-cell .action-stack {
  align-items: flex-end;
  width: 100%
}

.action-row--right {
  justify-content: flex-end
}

.table-zebra tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02)
}

.reviews-card .note {
  margin: 6px 0 0
}

.bulk-actions-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--line);
  animation: slideDown 0.3s ease-out
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.bulk-actions-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap
}


.bulk-count strong {
  font-size: 1.2rem;
  font-weight: 700
}

.bulk-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.bulk-buttons .btn {
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  border: none
}

.bulk-buttons .btn:hover {
  background: white;
  transform: translateY(-1px)
}

.bulk-buttons .btn-danger {
  background: #ef4444;
  color: white
}

.bulk-buttons .btn-danger:hover {
  background: #dc2626
}

.bulk-buttons .btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5)
}

.bulk-buttons .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.reviews-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px
}

.reviews-sort-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
  padding-right: 12px
}

.quick-filters .details-toggle.advanced-filters {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  margin: 0
}

.quick-filters .details-toggle.advanced-filters[open] {
  flex: 1 1 100%
}

.quick-filters .details-toggle.advanced-filters>summary {
  list-style: none
}

.advanced-filters__panel {
  margin-top: 12px
}


.quick-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  min-height: 40px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.7);
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04)
}

.quick-filter--icon {
  padding: 6px 10px
}

.quick-group {
  font-weight: 700;
  color: var(--muted);
  padding: 0 6px 0 4px
}

.quick-filter:hover {
  border: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.9)
}

.quick-filter.is-active {
  background: rgba(29, 78, 216, 0.12);
  border: none;
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.15)
}

.filter-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 999px;
  display: inline-flex;
  flex-shrink: 0
}

.advanced-filters {
  margin-bottom: 16px
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px
}

.bulk-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--muted)
}

.bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.bulk-actions select {
  min-width: 160px
}

.bulk-actions .btn {
  padding: 8px 12px
}

.bulk-count {
  color: var(--muted);
  font-weight: 600
}

.rating-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.rating-stars {
  color: #f59e0b;
  font-size: 0.9rem
}

.review-content {
  display: block;
  max-width: 360px;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px
}

.pagination-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04)
}

.pagination-btn:hover {
  background: var(--brand);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2)
}

.pagination-info {
  color: var(--muted);
  font-size: 0.95rem;
  min-width: 150px;
  text-align: center
}

.pagination-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap
}

.page-link {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease
}

.page-link:hover {
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9)
}

.page-ellipsis {
  padding: 0 6px;
  color: var(--muted)
}

.per-page-form label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--muted)
}

.filter-form {
  display: grid;
  gap: 20px
}

.filter-section {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  background: rgba(251, 251, 255, 0.7);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04)
}

.filter-section-title {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em
}

.filter-primary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))
}

.filter-secondary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06)
}

.filter-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(248, 250, 252, 0.7);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04)
}

.toggle-pill input {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #cbd5f5;
  display: inline-grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease
}

.toggle-pill input:checked {
  background: #10b981;
  border-color: #10b981;
  box-shadow: inset 0 0 0 2px #ffffff
}

.toggle-pill:hover {
  border: none;
  background: rgba(248, 250, 252, 0.9);
  color: var(--brand);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06)
}

.toggle-pill input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06)
}

.filters-panel .toggle {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 6px 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04)
}

.filters-panel .toggle-text {
  font-size: 0.95rem
}

.details-toggle {
  list-style: none;
  cursor: pointer;
  border-radius: 14px;
  border: none;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 12px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04)
}

.details-toggle:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08)
}

.details-toggle::-webkit-details-marker {
  display: none
}

.divider {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin: 4px 0 10px
}

.review-reaction summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  width: fit-content
}

.stepper .step {
  display: none
}

.stepper .step.is-active {
  display: grid
}

.step-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end
}

.action-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%
}

.action-row form {
  display: flex
}

.details-card[open] .details-toggle {
  border: none;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.9)
}

.table-sort {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px
}

.table-sort:hover {
  color: var(--brand-dark)
}

.table-sort::after {
  content: "\2195";
  font-size: 0.7em;
  opacity: 0.5
}

table td:nth-child(6) {
  max-width: 200px;
  word-wrap: break-word;
  font-size: 0.9rem;
  color: var(--muted)
}

.details-label {
  font-weight: 700;
  color: var(--ink)
}

.details-hint {
  color: var(--muted);
  font-size: 0.9rem
}

.cell-clip {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.review-block {
  display: grid;
  gap: 6px;
  min-width: 220px
}

.review-summary {
  margin: 0;
  color: var(--ink);
  font-weight: 600
}

.review-details summary.review-summary {
  cursor: pointer;
  display: block;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.review-details summary.review-summary::after {
  content: ">";
  color: var(--muted);
  margin-left: 8px
}

.review-details summary.review-summary:hover::after {
  content: "rozbalit";
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em
}

.review-details[open] summary.review-summary::after {
  content: "sbalit"
}

.review-details summary.review-summary::-webkit-details-marker {
  display: none
}

.col-review {
  width: 360px
}

.review-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem
}

.lang-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap
}

.source-pill-compact {
  min-width: 42px;
  justify-content: center
}

.source-pill-count {
  min-width: 14px;
  text-align: center
}

.source-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px;
  flex-shrink: 0
}

.source-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0
}

.source-seznam {
  background: #fee2e2;
  color: #b91c1c
}

.source-seznam .source-icon {
  background: #ef4444
}

.source-heureka {
  background: #dbeafe;
  color: #1e40af
}

.source-heureka .source-icon {
  background: #2563eb
}

.source-google {
  background: #d1fae5;
  color: #047857
}

.source-google .source-icon {
  background: #10b981
}

.source-facebook {
  background: #e0f2fe;
  color: #075985
}

.source-facebook .source-icon {
  background: #0284c7
}

.source-trustpilot {
  background: #f3e8ff;
  color: #7c3aed
}

.source-trustpilot .source-icon {
  background: #8b5cf6
}

.source-upgates {
  background: #fef3c7;
  color: #92400e
}

.source-upgates .source-icon {
  background: #f59e0b
}

.source-woocommerce {
  background: #fef3c7;
  color: #92400e
}

.source-woocommerce .source-icon {
  background: #d97706
}

.lang-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease
}

.lang-pill:hover {
  background: #bfdbfe;
  border-color: #60a5fa
}

.lang-pill.is-active {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #047857
}


.lang-pill:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px
}

.lang-flag {
  font-size: 0.85rem
}

.lang-code {
  letter-spacing: 0.08em
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: min(480px, 90vw);
  animation: toastIn 0.3s ease, toastOut 0.4s ease 3.2s forwards;
  backdrop-filter: blur(8px)
}

.toast-success {
  border: none;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2)
}

.toast-error {
  border: none;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2)
}

.toast-hide {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-8px)
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.16), rgba(14, 165, 164, 0.18));
  color: #312e81;
  font-weight: 600;
  font-size: 0.85rem
}

.mt-sm {
  margin-top: 12px
}

.project-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display)
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1
}

.badge-sm {
  padding: 4px 8px;
  font-size: 0.7rem
}

.badge-tone {
  background: rgba(37, 99, 235, 0.12);
  color: #1e40af
}

/* Source-specific badge colors */
.badge-source-heureka {
  background: rgba(0, 166, 81, 0.12);
  color: #15803d;
}

.badge-source-seznam {
  background: rgba(204, 0, 0, 0.12);
  color: #b91c1c;
}

.badge-source-google {
  background: rgba(66, 133, 244, 0.12);
  color: #1d4ed8;
}

.badge-source-facebook {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
}

.badge-source-trustpilot {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.badge-source-woocommerce {
  background: rgba(217, 119, 6, 0.12);
  color: #9a3412;
}

.badge-source-upgates {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}

.badge-source-shopify {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.badge-source-syndication {
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
}

.badge-source-csv {
  background: rgba(107, 114, 128, 0.12);
  color: #374151;
}

.badge-rating {
  --rating: 0;
  --rating-norm: calc(var(--rating) / 5);
  --rating-hue: calc(120 * var(--rating-norm));
  padding: 7px 13px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: hsl(var(--rating-hue), 58%, 40%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12)
}

.badge-active {
  background: #10b981;
  color: #ffffff
}

.badge-muted {
  background: #d1d5db;
  color: #374151
}

/* Review status flags (compact icon badges in Stav column) */
.review-status-flags {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.status-flag-form {
  display: inline-flex;
  margin: 0;
}
.status-flag-btn {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  line-height: 0;
}
.status-flag-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.status-flag-btn .status-flag {
  cursor: pointer;
}
.status-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: default;
  transition: transform 0.1s ease;
  flex-shrink: 0;
}
.status-flag:hover {
  transform: scale(1.12);
}
.status-flag--approved {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}
.status-flag--hidden {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}
.status-flag--gf {
  background: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
  font-size: 9px;
  letter-spacing: -0.3px;
}
.status-flag--upgates-push {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}
.status-flag--upgates-mirror {
  background: rgba(139, 92, 246, 0.15);
  color: #6d28d9;
}

/* Dim unapproved review rows */
tr.tr-dimmed {
  opacity: 0.5;
}
tr.tr-dimmed:hover {
  opacity: 0.75;
}

/* Widget category badges */
.badge-category {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: none;
}
.badge-product  { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.badge-shop     { background: rgba(16, 185, 129, 0.12); color: #059669; }
.badge-fullpage { background: rgba(139, 92, 246, 0.12); color: #6d28d9; }
.badge-custom   { background: rgba(107, 114, 128, 0.12); color: #374151; }

/* Widget cache status indicator */
.cache-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}
.cache-fresh   { background: rgba(16, 185, 129, 0.15); color: #059669; }
.cache-stale   { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.cache-missing { background: rgba(239, 68, 68, 0.15); color: #dc2626; }

.project-title {
  font-size: 1.5rem;
  margin: 4px 0 8px;
  color: var(--brand-dark)
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 10px
}

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr))
}

.stat-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.95), rgba(243, 240, 255, 0.9));
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.08)
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink)
}

.source-stats {
  margin-top: 18px;
  display: grid;
  gap: 12px
}

.review-sources-summary-card {
  margin-top: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.08));
}

.review-sources-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.review-sources-summary-head h2 {
  margin: 0 0 4px;
}

.review-sources-summary-head .note {
  margin: 0;
}

.review-sources-summary-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px
}

.source-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.3s ease, background 0.3s ease
}

.source-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9)
}

.source-card--active {
  border: none;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12)
}

.source-card--empty {
  border: none;
  background: rgba(229, 231, 235, 0.6);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04)
}

.source-card--disabled {
  border: none;
  background: rgba(248, 250, 252, 0.7);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  opacity: 0.8
}

.source-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.source-card-title {
  display: flex;
  align-items: center;
  gap: 10px
}

.source-card-title .source-logo {
  width: 26px;
  height: 26px
}

.source-name {
  display: block;
  font-weight: 700
}

.admin-source-grid .source-name {
  font-size: 1.15rem
}

.source-count {
  display: block;
  font-size: 0.85rem;
  color: var(--muted)
}

.source-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap
}

.source-card--active .source-status {
  color: #059669;
  background: rgba(16, 185, 129, 0.15)
}

.source-card--empty .source-status {
  color: #6b7280;
  background: #e5e7eb
}

.source-card--disabled .source-status {
  color: #9ca3af;
  background: #f3f4f6
}

.source-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.source-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 0;
  border-top: none
}

.admin-source-grid .source-card-actions .btn {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08)
}

.admin-source-grid .source-card-actions .btn.btn-ghost {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12)
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9rem
}


.source-bar {
  height: 8px;
  background: rgba(29, 78, 216, 0.12);
  border-radius: 999px;
  overflow: hidden
}

.source-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(29, 78, 216, 0.7), rgba(14, 165, 164, 0.7))
}

.source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between
}

.source-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.source-lang {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-dark)
}

.source-reactions {
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
  align-items: baseline
}

.project-card .note {
  margin-bottom: 12px
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.dashboard-limit-notifications {
  margin-top: 0;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
  position: sticky;
  top: 12px;
  z-index: 30
}

.dashboard-limit-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(249, 115, 22, 0.3);
  background: rgba(255, 247, 237, 0.96);
  box-shadow: 0 8px 16px rgba(194, 65, 12, 0.12)
}

.dashboard-limit-alert--critical {
  border-color: rgba(220, 38, 38, 0.38);
  background: rgba(254, 242, 242, 0.98);
  box-shadow: 0 8px 16px rgba(185, 28, 28, 0.14)
}

.dashboard-limit-alert__copy {
  display: grid;
  gap: 3px;
  min-width: 0
}

.dashboard-limit-alert__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap
}

.dashboard-limit-alert__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #9a3412;
  background: rgba(251, 191, 36, 0.22)
}

.dashboard-limit-alert--critical .dashboard-limit-alert__badge {
  color: #991b1b;
  background: rgba(248, 113, 113, 0.24)
}

.dashboard-limit-alert__percentage {
  font-size: 0.76rem;
  font-weight: 700;
  color: #7c2d12
}

.dashboard-limit-alert--critical .dashboard-limit-alert__percentage {
  color: #991b1b
}

.dashboard-limit-alert h2 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.25
}

.dashboard-limit-alert .note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.3
}

.dashboard-limit-alert .btn-sm {
  padding: 4px 9px;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  align-self: flex-start
}

.dashboard-hero {
  margin-top: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  border: 1px solid rgba(29, 78, 216, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(235, 248, 255, 0.92));
  box-shadow: 0 16px 36px rgba(29, 78, 216, 0.12);
  position: relative;
  overflow: hidden
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(14, 165, 164, 0.16), rgba(14, 165, 164, 0));
  pointer-events: none
}

.dashboard-hero__main {
  display: grid;
  gap: 8px;
  align-content: start
}

.dashboard-hero h1 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  margin-bottom: 4px
}

.dashboard-hero .hero-actions {
  margin-top: 2px;
  gap: 9px
}

.dashboard-hero .btn-lg {
  padding: 10px 16px;
  font-size: 0.9rem
}

.dashboard-hero .pill {
  padding: 6px 11px;
  font-size: 0.82rem
}

.dashboard-hero__usage {
  margin-top: 2px;
  display: grid;
  gap: 8px
}

.dashboard-hero__usage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}

.dashboard-kpi-grid {
  display: grid;
  gap: 7px;
  align-content: start;
  position: relative;
  z-index: 1
}

.dashboard-kpi {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(29, 78, 216, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08)
}

.dashboard-kpi__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px
}

.dashboard-kpi__value {
  display: block;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: #0f172a;
  margin-bottom: 1px
}

.dashboard-kpi .note {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.2
}

.dashboard-usage-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))
}

.dashboard-usage-grid--compact {
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr))
}

.dashboard-usage-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06)
}

.dashboard-usage-grid--compact .dashboard-usage-card {
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06)
}

.dashboard-usage-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px
}

.dashboard-usage-card__ratio {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a
}

.dashboard-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden
}

.dashboard-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5a4, #1d4ed8)
}

.dashboard-meter__fill--warning {
  background: linear-gradient(90deg, #f59e0b, #f97316)
}

.dashboard-meter__fill--critical {
  background: linear-gradient(90deg, #ef4444, #b91c1c)
}

.dashboard-usage-card__meta {
  margin: 7px 0 0;
  font-size: 0.82rem
}

.dashboard-action-center {
  margin-top: 18px;
  display: grid;
  gap: 14px
}

.dashboard-action-center__layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr)
}

.dashboard-action-center__progress {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  background: rgba(239, 246, 255, 0.72);
  display: grid;
  gap: 9px
}

.dashboard-action-center__progress p {
  margin: 0
}

.dashboard-action-center__progress-meta {
  font-size: 0.86rem
}

.dashboard-action-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 8px
}

.dashboard-action-card h3 {
  margin: 0;
  font-size: 1.02rem
}

.dashboard-action-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.dashboard-action-card--warning {
  border-color: rgba(249, 115, 22, 0.26);
  background: rgba(255, 247, 237, 0.9)
}

.dashboard-action-card--ok {
  border-color: rgba(20, 184, 166, 0.24);
  background: rgba(236, 253, 245, 0.92)
}

.dashboard-action-card--info {
  border-color: rgba(59, 130, 246, 0.22);
  background: rgba(239, 246, 255, 0.82)
}

.dashboard-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1e3a8a;
  background: rgba(191, 219, 254, 0.62)
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700
}

.dashboard-status--ok {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.18)
}

.dashboard-status--pending {
  color: #9a3412;
  background: rgba(251, 146, 60, 0.2)
}

.dashboard-action-center__compact-list {
  display: grid;
  gap: 8px
}

.dashboard-action-feed {
  margin: 0;
  padding: 12px;
  list-style: none;
  display: grid;
  gap: 10px
}

.dashboard-action-feed--compact {
  padding: 0;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))
}

.dashboard-action-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 6px
}

.dashboard-action-item--compact {
  padding: 0
}

.dashboard-action-item--warning {
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(255, 247, 237, 0.92)
}

.dashboard-action-item--ok {
  border-color: rgba(20, 184, 166, 0.24);
  background: rgba(236, 253, 245, 0.92)
}

.dashboard-action-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px
}

.dashboard-action-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap
}

.dashboard-action-item__link {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  padding: 10px 12px
}

.dashboard-action-item__source {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e3a8a;
  font-weight: 700
}

.dashboard-projects {
  margin-top: 18px
}

.dashboard-project-grid {
  margin-top: 4px
}

.dashboard-project-grid .project-card {
  margin-top: 0;
  padding: 13px 14px;
  border-radius: 12px;
  gap: 7px
}

.dashboard-project-grid .badge-row {
  gap: 6px;
  margin-bottom: 4px
}

.dashboard-project-grid .badge {
  padding: 3px 8px;
  font-size: 0.68rem
}

.dashboard-project-grid .project-title {
  font-size: 1.12rem;
  margin: 1px 0 3px
}

.dashboard-project-grid .project-metrics {
  gap: 7px;
  margin-bottom: 5px
}

.dashboard-project-grid .stat-label {
  font-size: 0.66rem;
  margin-bottom: 3px
}

.dashboard-project-grid .stat-value {
  font-size: 1.08rem
}

.dashboard-project-grid .project-card__actions {
  gap: 5px
}

.dashboard-project-grid .project-card__actions .pill-sm {
  padding: 3px 6px;
  font-size: 0.72rem
}

.project-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.project-card__delete-form {
  margin: 0
}

.project-card__delete-form .pill {
  cursor: pointer
}

.dashboard-empty {
  border: 1px dashed rgba(29, 78, 216, 0.32);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.72);
  padding: 22px;
  display: grid;
  gap: 12px;
  justify-items: start
}

.dashboard-empty h3 {
  margin: 0;
  font-size: 1.2rem
}

.project-quick-help {
  margin-top: 14px;
  border: 1px solid rgba(14, 116, 144, 0.25);
  background: linear-gradient(120deg, rgba(240, 249, 255, 0.95) 0%, rgba(236, 254, 255, 0.88) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px
}

.project-quick-help__content {
  display: grid;
  gap: 6px
}

.project-quick-help__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #0c4a6e
}

.project-quick-help h2 {
  margin: 0;
  font-size: 1.05rem
}

.project-quick-help__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end
}

body.help-page .help-hero__meta {
  display: grid;
  gap: 8px;
  max-width: 72ch
}

body.help-page .help-hero__description {
  margin: 0;
  font-size: 1.02rem;
  color: #334155
}

body.help-page .help-outline {
  display: grid;
  gap: 10px
}

body.help-page .help-outline__description {
  margin: 0;
  color: #475569;
  max-width: 76ch
}

body.help-page .help-guide {
  display: grid;
  gap: 12px
}

body.help-page .help-guide__header {
  margin-bottom: 0
}

body.help-page .help-guide__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #1e3a8a
}

body.help-page .help-guide__lead {
  margin: 0;
  font-weight: 600;
  color: #0f172a
}

body.help-page .help-guide__paragraphs {
  display: grid;
  gap: 8px
}

body.help-page .help-guide__paragraphs p {
  margin: 0;
  color: #334155
}

body.help-page .help-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #334155
}

body.help-page .help-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

body.help-page .help-docs__intro {
  margin: 0 0 8px
}

body.help-page .help-doc-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

body.help-page .help-doc-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 10px
}

body.help-page .help-doc-card h3 {
  margin: 0;
  font-size: 1.02rem
}

body.help-page .help-doc-card .note {
  margin: 0
}

body.help-page .help-doc-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px
}

body.help-page .help-doc-item {
  display: grid;
  gap: 4px
}

body.help-page .help-doc-item__link {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none
}

body.help-page .help-doc-item__link:hover {
  text-decoration: underline
}

body.help-page .help-support {
  display: grid;
  gap: 12px
}

@media (max-width:980px) {
  .dashboard-limit-alert {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding: 8px 10px
  }

  .dashboard-limit-alert h2 {
    font-size: 0.9rem
  }

  .dashboard-limit-alert .note {
    font-size: 0.82rem
  }

  .dashboard-hero {
    grid-template-columns: 1fr
  }

  .dashboard-action-center__layout {
    grid-template-columns: 1fr
  }

  .project-quick-help {
    flex-direction: column
  }

  body.help-page .help-doc-grid {
    grid-template-columns: minmax(0, 1fr)
  }
}

@media (max-width:720px) {
  .dashboard-hero__usage-header {
    flex-direction: column;
    align-items: flex-start
  }

  .dashboard-usage-card__header {
    flex-direction: column;
    align-items: flex-start
  }

  .dashboard-action-feed--compact {
    grid-template-columns: 1fr
  }

  .dashboard-action-item__head {
    flex-direction: column;
    align-items: flex-start
  }

  body.help-page .help-link-list {
    flex-direction: column;
    align-items: flex-start
  }
}

.pill-sm {
  padding: 4px 8px;
  font-size: 0.8rem
}

.pill-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.4)
}

.pill-danger:hover {
  box-shadow: 0 12px 22px rgba(185, 28, 28, 0.18)
}

.icon-trash {
  width: 14px;
  height: 14px;
  display: inline-block
}

.review-reaction summary.pill-sm {
  padding: 4px 8px;
  font-size: 0.8rem
}

.card-link {
  display: block;
  color: inherit
}

.card-link:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.4);
  outline-offset: 4px;
  border-radius: 12px
}

table details summary {
  cursor: pointer;
  font-weight: 600
}

table details p {
  margin: 8px 0
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media (max-width:720px) {
  .nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start
  }

  .wrap {
    padding: 20px 16px 48px
  }

  .nav-links {
    flex-wrap: wrap
  }
}

/* ============================================================
   Admin modal UI refresh
   ============================================================ */
html {
  scrollbar-gutter: stable
}

@supports not (scrollbar-gutter:stable) {
  html {
    overflow-y: scroll
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  background: transparent;
  backdrop-filter: none;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50
}

.modal:target {
  opacity: 1;
  pointer-events: auto
}

.modal-card {
  width: min(780px, 100%);
  margin-top: 16px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 96px);
  overflow: hidden
}

.modal-card>.form,
.modal-card>.import-hub {
  flex: 1 1 auto;
  min-height: 0
}

.modal-card.modal-wide {
  width: min(1040px, 100%)
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 164, 0.12))
}

.modal-header h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.01em
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  transition: all 0.2s ease
}

.modal-close:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827
}

.modal-close:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px
}

.modal .form {
  padding: 22px 26px 26px;
  display: grid;
  gap: 18px;
  overflow: auto;
  background: #f3f6fb
}

.modal .form .note {
  margin: 0;
  color: #4b5563;
  font-weight: 500
}

.modal-card>.note {
  margin: 0;
  padding: 0 26px 16px;
  color: #4b5563;
  font-weight: 500;
  background: #f3f6fb
}

.modal-card>.note+.form,
.modal-card>.note+.import-hub {
  padding-top: 0
}

.modal .form-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start
}

.import-hub {
  padding: 24px;
  display: grid;
  gap: 16px;
  background: #f3f6fb;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
}

.import-option {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 241, 251, 0.92));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease
}

.import-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.35)
}

.import-option:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px
}

.import-option__title {
  font-weight: 800;
  color: #0f172a;
  font-size: 1.05rem
}

.import-option__desc {
  font-size: 0.9rem;
  color: #475569
}

.import-option__cta {
  justify-self: flex-start;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0ea5a4);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25)
}

.import-option__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer
}


.modal .import-card__header h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a
}

.modal .import-card__header p {
  margin: 0;
  color: #475569
}

.modal label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem
}

/* Reset component-labels inside modals so .modal label doesn't force grid */
.modal .widget-template-card {
  display: block;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  gap: 0
}

.modal .toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: inherit;
  color: inherit
}


.modal .quick-filter-toggle {
  display: inline-block;
  font-weight: inherit;
  font-size: inherit;
  gap: 0
}

.modal input[type="text"],
.modal input[type="url"],
.modal input[type="password"],
.modal input[type="email"],
.modal input[type="number"],
.modal select,
.modal textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18)
}

.modal .field-hint {
  font-size: 0.88rem;
  color: #4b5563
}

.modal .hint-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 6px
}

.modal .toggle {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06)
}

.modal .toggle-text {
  font-weight: 600
}

.modal .toggle-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  position: relative;
  transition: background 0.2s ease
}

.modal .toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease
}

.modal .toggle-input:checked+.toggle-ui {
  background: rgba(37, 99, 235, 0.8)
}

.modal .toggle-input:checked+.toggle-ui::after {
  transform: translateX(20px)
}

.modal .toggle-input:focus-visible+.toggle-ui {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px
}

@media (max-width:720px) {
  .modal {
    padding: 16px
  }

  .modal-card {
    margin-top: 24px;
    max-height: calc(100vh - 48px)
  }

  .modal-header {
    padding: 16px 18px
  }

  .modal .form {
    padding: 16px 18px 20px
  }

  .modal-card>.note {
    padding: 0 18px 14px
  }
}

.io-manager-modal {
  --modal-width: 1180px;
}

.admin-project-hero {
  margin-bottom: 18px;
}

.admin-project-hero__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-project-hero__title {
  margin: 0;
}

.admin-project-hero__subtitle {
  margin: 4px 0 0;
  color: #64748b;
}

.project-tabs {
  border: 1px solid #d8e2f0;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  padding: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.project-tabs__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: max-content;
}

.project-tabs__group {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 4px;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.project-tabs__group--secondary {
  margin-left: 8px;
}

.project-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  padding: 9px 14px;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.project-tab:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.project-tab.is-active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.project-tab--secondary {
  background: #f8fafc;
  border-color: #d2dbea;
  color: #334155;
  font-weight: 550;
  padding: 8px 12px;
}

.project-tab--secondary.is-active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

@media (max-width: 980px) {
  .project-tabs {
    padding: 10px;
  }
}

.io-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 24px 24px;
}

.io-manager-grid--stacked {
  grid-template-columns: minmax(0, 1fr);
}

.io-task-panel {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 20px;
  display: grid;
  gap: 16px;
}

.io-task-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.io-task-panel__header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.io-task-panel__header .note {
  margin: 4px 0 0;
}

/* Prominent add button */
.io-task-add-btn {
  white-space: nowrap;
  font-size: 0.95rem;
}

.io-task-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.io-task-filter-field {
  display: grid;
  gap: 6px;
}

.io-task-filter-field--search {
  grid-column: span 2;
}

.io-task-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.io-task-empty-state {
  margin: 0;
}

/* Empty state card */
.io-task-empty-card {
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.6);
}

.io-task-empty-card p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.95rem;
}

/* Header actions: CSV + add button side by side */
.io-task-panel__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Card grid */
.io-task-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

/* Individual task card */
.io-task-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.io-task-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
  border-color: rgba(15, 23, 42, 0.18);
}

.io-task-card--inactive {
  opacity: 0.72;
  background: #f8fafc;
}

.io-task-card--inactive:hover {
  opacity: 1;
}

/* Card head */
.io-task-card__head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.io-task-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.io-task-card__title strong {
  font-size: 1.02rem;
  color: #0f172a;
  line-height: 1.3;
}

.io-task-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.io-task-card__message {
  margin-top: 6px;
  font-size: 0.85rem;
}

/* Card body - stats */
.io-task-card__body {
  padding: 12px 18px;
  flex: 1;
}

.io-task-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.io-task-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.io-task-stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.io-task-stat__value {
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.4;
}

.io-task-stat__value .note {
  font-weight: 400;
  font-size: 0.82rem;
}

/* Card footer - actions */
.io-task-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.io-task-card__foot-primary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.io-task-btn-danger {
  color: #ef4444;
}

.io-task-btn-danger:hover {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}

/* Kept for backward compat */
.io-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.io-inline-form {
  margin: 0;
  display: inline-flex;
}

.io-task-editor-modal {
  --modal-width: 760px;
}

.io-task-form {
  display: grid;
  gap: 14px;
}

.io-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.io-task-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.io-task-field {
  display: grid;
  gap: 8px;
}

.io-task-field__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2937;
}

.io-task-field--toggle {
  display: block;
}

.io-task-type-group {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.8);
}

.io-task-type-group .note {
  margin: 0 0 10px;
}

.io-task-multiselect {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.io-task-multiselect__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

@media (max-width: 1080px) {
  .io-manager-grid {
    grid-template-columns: 1fr;
  }

  .io-task-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .io-task-filter-field--search {
    grid-column: span 2;
  }

  .io-task-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 760px) {
  .io-manager-grid {
    padding: 14px 16px 18px;
  }

  .io-task-fields-grid {
    grid-template-columns: 1fr;
  }

  .io-task-filters {
    grid-template-columns: 1fr;
  }

  .io-task-filter-field--search {
    grid-column: span 1;
  }

  .io-task-card-grid {
    grid-template-columns: 1fr;
  }

  .io-task-card__stats {
    grid-template-columns: 1fr;
  }

  .io-task-panel__header {
    flex-direction: column;
    align-items: stretch;
  }

  .io-task-add-btn {
    text-align: center;
  }

  .io-task-card__foot {
    flex-wrap: wrap;
  }

  .io-task-card__foot-primary {
    flex-wrap: wrap;
    flex: 1 1 100%;
  }

  .io-task-card__foot-primary .btn,
  .io-task-card__foot-primary .io-inline-form {
    flex: 1;
  }

  .io-task-card__foot-primary .btn,
  .io-task-card__foot-primary .io-inline-form .btn {
    width: 100%;
    justify-content: center;
  }
}


/* Modal stepper fieldsets */
.modal .stepper fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0
}


@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Newsreader:ital,wght@0,600;0,700;1,600&display=swap');

body.auth-page {
  --auth-ink: #0f1f39;
  --auth-muted: #4b5f7d;
  --auth-line: rgba(15, 35, 70, 0.14);
  --auth-line-strong: rgba(31, 92, 236, 0.3);
  --auth-brand: #1f6fff;
  --auth-brand-strong: #1246bf;
  --auth-accent: #0ca6a6;
  --auth-panel-top: #081c46;
  --auth-panel-bottom: #0f3778;
  --auth-card-bg: rgba(255, 255, 255, 0.94);
  --auth-card-soft: #f4f8ff;
  --auth-shadow: 0 28px 52px rgba(7, 20, 52, 0.18);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(circle at 7% 8%, rgba(12, 166, 166, 0.22), transparent 34%),
    radial-gradient(circle at 89% 7%, rgba(31, 111, 255, 0.24), transparent 40%),
    radial-gradient(circle at 84% 78%, rgba(17, 166, 221, 0.16), transparent 36%),
    linear-gradient(180deg, #edf4ff 0%, #f4f8ff 44%, #f7f6ff 100%);
  color: var(--auth-ink);
}

body.auth-page.landing-template .navbar {
  margin-bottom: 0;
  border-bottom-color: rgba(15, 35, 70, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(7, 20, 52, 0.08);
}

body.auth-page .wrap {
  padding: 32px 28px 68px;
}

body.auth-page .auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(430px, 1.05fr);
  gap: clamp(20px, 3.2vw, 34px);
  align-items: start;
  max-width: 1220px;
  margin: 24px auto 56px;
  padding: 0 18px;
}

body.auth-page .auth-panel {
  position: sticky;
  top: 94px;
  border-radius: 28px;
  padding: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 78% -16%, rgba(74, 222, 255, 0.34), transparent 44%),
    radial-gradient(circle at 8% 110%, rgba(31, 111, 255, 0.28), transparent 54%),
    linear-gradient(165deg, var(--auth-panel-top) 0%, var(--auth-panel-bottom) 86%);
  color: #e2e8f0;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(147, 197, 253, 0.26);
  box-shadow: 0 30px 58px rgba(3, 16, 44, 0.32);
}

body.auth-page .auth-panel::before,
body.auth-page .auth-panel::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  opacity: 0.34;
  filter: blur(0px);
  animation: authFloat 10s ease-in-out infinite;
}

body.auth-page .auth-panel::before {
  width: 280px;
  height: 280px;
  top: -70px;
  right: -80px;
  background: radial-gradient(circle, rgba(74, 222, 255, 0.95), transparent 70%);
}

body.auth-page .auth-panel::after {
  width: 300px;
  height: 300px;
  bottom: -110px;
  left: -90px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.8), transparent 72%);
  animation-delay: 2s;
}

body.auth-page .auth-panel-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

body.auth-page .auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(191, 219, 254, 0.94);
}

body.auth-page .auth-panel h1 {
  margin: 0;
  font-family: 'Newsreader', 'Times New Roman', serif;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.auth-page .auth-panel p {
  margin: 0;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.62;
}

body.auth-page .auth-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

body.auth-page .auth-trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: #dbeafe;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.auth-page .auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

body.auth-page .auth-benefits li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-weight: 500;
  color: #dbeafe;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

body.auth-page .auth-benefits li::before {
  content: 'âœ“';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(74, 222, 255, 0.24);
  color: #bae6fd;
  font-weight: 700;
  flex: 0 0 22px;
}

body.auth-page .auth-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(114px, 1fr));
  gap: 10px;
}

body.auth-page .auth-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(191, 219, 254, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.36);
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.86rem;
}

body.auth-page .auth-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(12, 166, 166, 0.45);
  font-weight: 800;
  color: #f0f9ff;
  flex: 0 0 24px;
}

body.auth-page .auth-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.auth-page .auth-link-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.44);
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
  font-size: 0.79rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
}

body.auth-page .auth-link-chip:hover {
  border-color: rgba(191, 219, 254, 0.82);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

body.auth-page .auth-integrations {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: rgba(5, 17, 42, 0.26);
}

body.auth-page .auth-integrations-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.95);
}

body.auth-page .auth-integration-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.auth-page .auth-integration-list li {
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 600;
}

body.auth-page .auth-note {
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(7, 23, 53, 0.54);
  border: 1px solid rgba(147, 197, 253, 0.3);
  font-size: 0.88rem;
  color: rgba(219, 234, 254, 0.95);
}

body.auth-page .auth-card {
  position: relative;
  --auth-card-radius: 28px;
  border-radius: var(--auth-card-radius);
  border: 1px solid var(--auth-line);
  background: var(--auth-card-bg);
  box-shadow: var(--auth-shadow);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 18px;
  overflow: hidden;
}

body.auth-page .auth-card::before {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 5px;
  border-radius: calc(var(--auth-card-radius) - 1px) calc(var(--auth-card-radius) - 1px) 0 0;
  background: linear-gradient(90deg, var(--auth-accent), var(--auth-brand));
}

body.auth-page .auth-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

body.auth-page .auth-card-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--auth-brand-strong);
  border: 1px solid rgba(31, 111, 255, 0.24);
  background: rgba(31, 111, 255, 0.08);
}

body.auth-page .auth-inline-link {
  color: var(--auth-brand-strong);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

body.auth-page .auth-inline-link:hover {
  color: var(--auth-brand);
  text-decoration: underline;
}

body.auth-page .auth-card-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.4vw, 1.72rem);
  font-weight: 800;
  color: var(--auth-ink);
  line-height: 1.15;
}

body.auth-page .auth-card-header p {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.6;
}

body.auth-page .auth-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

body.auth-page .auth-card-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 35, 70, 0.16);
  color: #1f3f95;
  font-size: 0.79rem;
  font-weight: 700;
  background: rgba(244, 248, 255, 0.92);
  text-decoration: none;
  transition: all 0.2s ease;
}

body.auth-page .auth-card-meta a:hover {
  border-color: rgba(31, 111, 255, 0.5);
  color: var(--auth-brand-strong);
  background: #ffffff;
  transform: translateY(-1px);
}

body.auth-page .auth-form {
  display: grid;
  gap: 18px;
}

body.auth-page .auth-form--register {
  gap: 20px;
}

body.auth-page .auth-form-section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 35, 70, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.88));
}

body.auth-page .auth-form-section--billing {
  border-style: dashed;
}

body.auth-page .auth-section-title {
  margin: 0;
  font-size: 1.01rem;
  font-weight: 800;
  color: var(--auth-ink);
}

body.auth-page .field {
  display: grid;
  gap: 7px;
  font-weight: 600;
  color: var(--auth-ink);
}

body.auth-page .field-label {
  font-size: 0.89rem;
  letter-spacing: 0.01em;
}

body.auth-page .field-hint {
  margin-top: 0;
  color: var(--auth-muted);
  font-size: 0.79rem;
}

body.auth-page .input {
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid rgba(15, 35, 70, 0.16);
  background: #ffffff;
  color: var(--auth-ink);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 35, 70, 0.06);
}

body.auth-page .input:focus {
  outline: none;
  border-color: rgba(31, 111, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.15);
}

body.auth-page .auth-form-actions {
  display: grid;
}

body.auth-page .btn.btn-primary {
  min-height: 48px;
  background: linear-gradient(135deg, #0ca6a6, #1f6fff);
  border: none;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 13px 24px rgba(31, 111, 255, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.auth-page .btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(12, 166, 166, 0.28);
}

body.auth-page .auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.auth-page .auth-links--dual .link-pill {
  flex: 1 1 190px;
  justify-content: center;
}

body.auth-page .auth-form-footnote {
  margin: -2px 0 2px;
  color: var(--auth-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

body.auth-page .auth-form--forgot {
  gap: 14px;
}

body.auth-page .auth-recovery-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

body.auth-page .auth-recovery-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(15, 35, 70, 0.12);
  border-radius: 12px;
  background: rgba(244, 248, 255, 0.82);
  color: var(--auth-muted);
  font-size: 0.84rem;
  line-height: 1.55;
  padding: 10px 12px;
}

body.auth-page .auth-recovery-list li::before {
  content: '+';
  display: inline-flex;
  width: 12px;
  justify-content: center;
  color: var(--auth-brand);
  font-weight: 800;
  flex: 0 0 12px;
}

body.auth-page .link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 35, 70, 0.16);
  background: #ffffff;
  color: #1e355a;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

body.auth-page .link-pill:hover {
  border-color: rgba(31, 111, 255, 0.48);
  color: var(--auth-brand-strong);
  box-shadow: 0 12px 20px rgba(15, 35, 70, 0.1);
}

body.auth-page .status-error {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  background: rgba(254, 226, 226, 0.76);
  color: #991b1b;
  font-weight: 600;
}

body.auth-page .plan-fieldset {
  border: 1px solid rgba(15, 35, 70, 0.12);
  border-radius: 18px;
  padding: 14px;
  margin: 0;
  display: grid;
  gap: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.86));
}

body.auth-page .plan-legend {
  margin: 0;
  padding: 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--auth-ink);
}

body.auth-page .plan-help-text {
  margin: -3px 0 0;
  color: var(--auth-muted);
  font-size: 0.85rem;
}

body.auth-page .plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

body.auth-page .plan-option {
  display: block;
}

body.auth-page .plan-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.auth-page .plan-card {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 35, 70, 0.16);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(15, 35, 70, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.auth-page .plan-input:focus + .plan-card {
  border-color: rgba(31, 111, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.14);
}

body.auth-page .plan-input:checked + .plan-card {
  border-color: rgba(12, 166, 166, 0.6);
  box-shadow: 0 14px 26px rgba(12, 166, 166, 0.18);
  transform: translateY(-1px);
}

body.auth-page .plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.auth-page .plan-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--auth-ink);
}

body.auth-page .plan-desc {
  font-size: 0.9rem;
  color: var(--auth-muted);
}

body.auth-page .trial-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--auth-ink);
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(12, 166, 166, 0.35);
  background: rgba(12, 166, 166, 0.08);
}

body.auth-page .checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--auth-accent);
}

body.auth-page .plan-summary {
  border-radius: 16px;
  border: 1px solid rgba(15, 35, 70, 0.2);
  background: rgba(244, 248, 255, 0.9);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

body.auth-page .plan-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}

body.auth-page .plan-summary-discount {
  color: #0f766e;
}

body.auth-page .plan-summary-note {
  font-size: 0.85rem;
  color: var(--auth-muted);
}

body.auth-page .input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

body.auth-page .input:focus:invalid {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

body.auth-page .input:valid:not(:placeholder-shown) {
  border-color: rgba(16, 185, 129, 0.62);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

body.auth-page--login #main-content {
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
}

body.auth-page--login .auth-shell--login {
  width: min(640px, 100%);
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px;
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}

body.auth-page--login .auth-panel {
  position: relative;
  top: 0;
  min-height: 0;
  height: clamp(500px, calc(100dvh - 138px), 600px);
  padding: clamp(22px, 2.6vw, 30px);
  background:
    radial-gradient(circle at 74% -18%, rgba(191, 219, 254, 0.56), transparent 48%),
    radial-gradient(circle at 10% 108%, rgba(147, 197, 253, 0.42), transparent 60%),
    linear-gradient(165deg, #f5f9ff 0%, #e8f1ff 56%, #dce9ff 100%);
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow: 0 22px 42px rgba(30, 64, 175, 0.16);
}

body.auth-page--login .auth-panel::before {
  opacity: 0.32;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.82), transparent 72%);
}

body.auth-page--login .auth-panel::after {
  opacity: 0.26;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.6), transparent 74%);
}

body.auth-page--login .auth-panel-inner {
  gap: 14px;
}

body.auth-page--login .auth-panel .auth-kicker {
  color: rgba(51, 85, 129, 0.92);
}

body.auth-page--login .auth-panel h1 {
  color: #0f2944;
}

body.auth-page--login .auth-panel p {
  color: rgba(27, 58, 93, 0.9);
}

body.auth-page--login .auth-panel .auth-trust-pill {
  border-color: rgba(125, 211, 252, 0.62);
  background: rgba(255, 255, 255, 0.72);
  color: #1e3a5f;
}

body.auth-page--login .auth-panel .auth-benefits li {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.66);
  color: #173457;
}

body.auth-page--login .auth-panel .auth-benefits li::before {
  background: rgba(125, 211, 252, 0.38);
  color: #1d4f91;
}

body.auth-page--login .auth-panel .auth-note {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(148, 163, 184, 0.34);
  color: #1e3a5f;
}

body.auth-page--login .auth-panel .auth-quick-links,
body.auth-page--login .auth-panel .auth-integrations {
  display: none;
}

body.auth-page--login .auth-card--login {
  height: clamp(500px, calc(100dvh - 138px), 600px);
  padding: clamp(20px, 2.4vw, 30px);
  gap: 14px;
  align-content: start;
}

body.auth-page--login .auth-card--login .auth-card-header p {
  max-width: 46ch;
}

body.auth-page--login .auth-form--login {
  gap: 12px;
}

body.auth-page--login .auth-form-footnote {
  margin: 0;
}

body.auth-page--register #main-content {
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
}

body.auth-page--register .auth-shell--register {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0 14px;
  grid-template-columns: minmax(0, 740px);
  justify-content: center;
  gap: 0;
}

body.auth-page--register .auth-card--register {
  max-width: 740px;
  padding: clamp(14px, 1.8vw, 20px);
  gap: 10px;
}

body.auth-page--register .auth-card-topline {
  margin-bottom: 4px;
}

body.auth-page--register .auth-card-header h2 {
  margin-bottom: 2px;
}

body.auth-page--register .auth-form--register {
  gap: 12px;
}

body.auth-page--register .auth-form-section,
body.auth-page--register .plan-fieldset {
  padding: 10px 12px;
  gap: 8px;
  border-radius: 14px;
}

body.auth-page--register .auth-section-title,
body.auth-page--register .plan-legend {
  font-size: 0.9rem;
}

body.auth-page--register .field {
  gap: 5px;
}

body.auth-page--register .input {
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.9rem;
}

body.auth-page--register .plan-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.auth-page--register .plan-inline-option {
  display: block;
}

body.auth-page--register .plan-inline-pill {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid rgba(15, 35, 70, 0.15);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.auth-page--register .plan-inline-pill__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

body.auth-page--register .plan-inline-pill__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--auth-ink);
}

body.auth-page--register .plan-inline-pill__badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 255, 0.28);
  color: #1f4f91;
  background: rgba(244, 248, 255, 0.92);
}

body.auth-page--register .plan-inline-pill__price {
  font-size: 0.82rem;
  color: var(--auth-muted);
  font-weight: 700;
}

body.auth-page--register .plan-input:checked + .plan-inline-pill {
  border-color: rgba(12, 166, 166, 0.6);
  box-shadow: 0 8px 16px rgba(12, 166, 166, 0.14);
}

body.auth-page--register .plan-summary {
  padding: 10px 12px;
  gap: 6px;
  border-radius: 12px;
}

body.auth-page--register .plan-summary-row {
  font-size: 0.86rem;
}

body.auth-page--register .plan-summary-note {
  font-size: 0.78rem;
}

body.auth-page--register .trial-option {
  padding: 8px 10px;
  font-size: 0.86rem;
}

body.auth-page--register .btn.btn-primary {
  min-height: 42px;
  font-size: 0.94rem;
  padding: 10px 14px;
}

body.auth-page--forgot #main-content {
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
}

body.auth-page--forgot .auth-shell--forgot {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 0 18px;
  align-items: stretch;
}

body.auth-page--forgot .auth-card--forgot {
  max-width: 720px;
}

@keyframes authFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1120px) {
  body.auth-page .auth-shell {
    grid-template-columns: 1fr;
    margin: 20px auto 42px;
  }

  body.auth-page .auth-panel {
    position: relative;
    top: 0;
    min-height: auto;
  }

  body.auth-page .auth-shell .auth-card {
    order: 1;
  }

  body.auth-page .auth-shell .auth-panel {
    order: 2;
  }
}

@media (max-width: 720px) {
  body.auth-page .wrap {
    padding: 20px 16px 48px;
  }

  body.auth-page .auth-shell {
    padding: 0 12px;
    gap: 18px;
  }

  body.auth-page .auth-card,
  body.auth-page .auth-panel {
    --auth-card-radius: 22px;
    border-radius: 22px;
    padding: 20px;
  }

  body.auth-page .auth-panel h1 {
    font-size: 1.9rem;
  }

  body.auth-page .auth-card-topline {
    align-items: flex-start;
  }

  body.auth-page .auth-card-eyebrow,
  body.auth-page .auth-inline-link {
    width: 100%;
  }

  body.auth-page .auth-inline-link {
    font-size: 0.83rem;
  }

  body.auth-page .plan-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.auth-page .auth-link-chip,
  body.auth-page .auth-card-meta a,
  body.auth-page .auth-links .link-pill {
    width: 100%;
    justify-content: center;
  }

  body.auth-page .auth-form-section,
  body.auth-page .plan-fieldset {
    padding: 12px;
  }

  body.auth-page .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  body.auth-page--login #main-content {
    align-items: flex-start;
    min-height: calc(100dvh - 94px);
  }

  body.auth-page--login .auth-shell--login {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
    max-width: 640px;
    margin: 14px auto 16px;
    padding: 0 14px;
    gap: 12px;
  }

  body.auth-page--login .auth-shell--login .auth-panel {
    display: none;
  }

  body.auth-page--login .auth-card--login {
    min-height: 0;
    height: auto;
  }

  body.auth-page--register #main-content {
    align-items: flex-start;
    min-height: calc(100dvh - 94px);
  }

  body.auth-page--register .auth-shell--register {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
    margin: 14px auto 16px;
    padding: 0 14px;
    gap: 12px;
  }

  body.auth-page--register .auth-card--register {
    max-width: 100%;
  }

  body.auth-page--forgot #main-content {
    align-items: flex-start;
    min-height: calc(100dvh - 94px);
  }

  body.auth-page--forgot .auth-shell--forgot {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
    margin: 14px auto 16px;
    padding: 0 14px;
    gap: 12px;
  }

  body.auth-page--forgot .auth-shell--forgot .auth-panel {
    display: none;
  }

  body.auth-page--forgot .auth-card--forgot {
    max-width: 100%;
  }
}

@media (max-height: 760px) {
  body.auth-page--login #main-content {
    align-items: flex-start;
    min-height: calc(100dvh - 94px);
  }

  body.auth-page--login .auth-shell--login {
    margin: 4px auto 6px;
  }

  body.auth-page--login .auth-panel {
    height: clamp(420px, calc(100dvh - 104px), 520px);
  }

  body.auth-page--login .auth-panel .auth-note,
  body.auth-page--login .auth-panel .auth-trust-strip {
    display: none;
  }

  body.auth-page--login .auth-card--login {
    height: clamp(420px, calc(100dvh - 104px), 520px);
    padding: 16px 18px;
    gap: 10px;
  }

  body.auth-page--login .auth-card-header h2 {
    font-size: 1.45rem;
  }

  body.auth-page--login .auth-card-header p,
  body.auth-page--login .auth-form-footnote {
    display: none;
  }

  body.auth-page--login .auth-form--login {
    gap: 10px;
  }

  body.auth-page--login .input {
    padding: 10px 12px;
  }

  body.auth-page--login .auth-links {
    gap: 8px;
  }

  body.auth-page--login .auth-links .link-pill {
    padding: 7px 10px;
    font-size: 0.83rem;
  }

  body.auth-page--login .btn.btn-primary {
    min-height: 44px;
  }
}

/* Modal import cards: remove inner frame */
.modal .import-card {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  border-radius: 0
}

.status-success {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 600;
}

/* Widget grid layout fix */
#widgets-section .widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
  justify-items: stretch
}

#widgets-section .widget-card {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  justify-self: stretch
}

#widgets-section .section-header {
  align-items: center;
  flex-wrap: wrap
}

/* Translation page */
body.admin-template .translation-page {
  display: grid;
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
}

body.admin-template .translation-page .card {
  margin-top: 0;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 22px 38px -32px rgba(15, 23, 42, 0.6), 0 12px 20px -18px rgba(15, 23, 42, 0.28);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

body.admin-template .translation-page .card:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 42px -30px rgba(15, 23, 42, 0.58), 0 14px 26px -16px rgba(15, 23, 42, 0.3);
}

body.admin-template .translation-page .translation-page-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.96) 52%, rgba(244, 246, 254, 0.95) 100%);
  box-shadow: 0 30px 54px -38px rgba(15, 23, 42, 0.62), 0 18px 28px -22px rgba(15, 23, 42, 0.28);
}

body.admin-template .translation-page .translation-page-hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -130px;
  top: -165px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(236, 72, 153, 0) 72%);
  pointer-events: none;
}

body.admin-template .translation-page .translation-page-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -96px;
  bottom: -142px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 74%);
  pointer-events: none;
}

body.admin-template .translation-page .translation-page-hero > * {
  position: relative;
  z-index: 1;
}

body.admin-template .translation-page .translation-page-hero .io-like-hero__content {
  gap: 10px;
}

body.admin-template .translation-page .translation-page-hero .io-like-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
}

body.admin-template .translation-page .translation-page-hero .io-like-hero__title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.15;
}

body.admin-template .translation-page .translation-page-hero .io-like-hero__subtitle {
  margin: 0;
  max-width: 720px;
  color: #64748b;
  font-size: 0.93rem;
  line-height: 1.55;
}

body.admin-template .translation-page .translation-page-hero .io-like-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

body.admin-template .translation-page .translation-panel-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 42px -34px rgba(15, 23, 42, 0.62), 0 12px 18px -16px rgba(15, 23, 42, 0.22);
}

body.admin-template .translation-page .translation-panel-card__header {
  display: grid;
  gap: 6px;
}

body.admin-template .translation-page .translation-panel-card__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: #475569;
  font-weight: 800;
}

body.admin-template .translation-page .translation-panel-card__header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.2;
}

body.admin-template .translation-page .translation-panel-card__header .note {
  margin: 0;
  color: #64748b;
  max-width: 760px;
}

body.admin-template .translation-page .translation-form {
  gap: 14px;
  background: transparent;
}

body.admin-template .translation-page .io-like-stat__value--compact {
  font-size: 1.08rem;
  line-height: 1.22;
}

body.admin-template .translation-page .translation-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.admin-template .translation-page .form-section {
  margin: 0;
  padding: 16px 17px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 16px 30px -32px rgba(15, 23, 42, 0.9), 0 10px 16px -14px rgba(15, 23, 42, 0.22);
}

body.admin-template .translation-page .translation-language-field .note {
  margin-bottom: 10px;
}

body.admin-template .translation-page .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

body.admin-template .translation-page .checkbox-pill {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
  box-shadow: 0 14px 26px -30px rgba(15, 23, 42, 0.92), 0 8px 12px -10px rgba(15, 23, 42, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.admin-template .translation-page .checkbox-pill:hover {
  border-color: rgba(124, 58, 237, 0.34);
  background: #ffffff;
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.86), 0 10px 16px -12px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

body.admin-template .translation-page .checkbox-pill input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #7c3aed;
}

body.admin-template .translation-page .checkbox-pill span {
  font-weight: 650;
  color: #0f172a;
}

body.admin-template .translation-page .checkbox-pill:focus-within {
  outline: 3px solid rgba(124, 58, 237, 0.28);
  outline-offset: 2px;
}

body.admin-template .translation-page .translation-source-grid,
.modal-translation .translation-source-grid {
  grid-template-columns: repeat(auto-fit, minmax(84px, 112px));
  gap: 8px;
}

body.admin-template .translation-page .translation-type-grid,
.modal-translation .translation-type-grid {
  grid-template-columns: repeat(2, minmax(170px, 220px));
  justify-content: start;
  gap: 10px;
}

body.admin-template .translation-page .checkbox-pill--source,
.modal-translation .checkbox-pill--source {
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-height: 56px;
}

body.admin-template .translation-page .translation-source-option,
.modal-translation .translation-source-option {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
}

body.admin-template .translation-page .translation-source-option__logo-box,
.modal-translation .translation-source-option__logo-box {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.admin-template .translation-page .translation-source-option__logo-box img,
.modal-translation .translation-source-option__logo-box img {
  width: 100%;
  max-height: 20px;
  object-fit: contain;
}

body.admin-template .translation-page .translation-source-option__label,
.modal-translation .translation-source-option__label {
  display: none;
}

body.admin-template .translation-page .translation-source-option__fallback,
.modal-translation .translation-source-option__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 800;
  color: #334155;
}

body.admin-template .translation-page .translation-source-option__logo-box--facebook .translation-source-option__fallback,
.modal-translation .translation-source-option__logo-box--facebook .translation-source-option__fallback {
  color: #1d4ed8;
}

body.admin-template .translation-page .translation-source-option__logo-box--woocommerce .translation-source-option__fallback,
.modal-translation .translation-source-option__logo-box--woocommerce .translation-source-option__fallback {
  color: #7c2d12;
}

body.admin-template .translation-page .checkbox-pill--type,
.modal-translation .checkbox-pill--type {
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.admin-template .translation-page .translation-type-option,
.modal-translation .translation-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: #ffffff;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.admin-template .translation-page .translation-type-option__icon,
.modal-translation .translation-type-option__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: #f8fafc;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.admin-template .translation-page .translation-type-option__icon svg,
.modal-translation .translation-type-option__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.admin-template .translation-page .translation-type-option__label,
.modal-translation .translation-type-option__label {
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}

body.admin-template .translation-page .checkbox-pill--source input[type="checkbox"]:checked + .translation-source-option .translation-source-option__logo-box {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

body.admin-template .translation-page .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option .translation-type-option__icon {
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
}

body.admin-template .translation-page .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option {
  border-color: rgba(79, 70, 229, 0.45);
  background: #f7f5ff;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.modal-translation .checkbox-pill--source input[type="checkbox"]:checked + .translation-source-option .translation-source-option__logo-box {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.modal-translation .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option .translation-type-option__icon {
  border-color: transparent;
  background: linear-gradient(135deg, #0f9ab8, #2563eb);
  color: #ffffff;
}

.modal-translation .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option {
  border-color: rgba(37, 99, 235, 0.45);
  background: #f4f9ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

body.admin-template .translation-page .translation-manual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

body.admin-template .translation-page .translation-manual-fields {
  display: grid;
  gap: 14px;
}

body.admin-template .translation-page .translation-manual-aside {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 20px;
}

body.admin-template .translation-page .translation-manual-sticky {
  display: grid;
  gap: 11px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  box-shadow: 0 20px 32px -30px rgba(15, 23, 42, 0.94), 0 12px 20px -16px rgba(15, 23, 42, 0.25);
}

body.admin-template .translation-page .translation-manual-sticky__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
}

body.admin-template .translation-page .translation-manual-sticky__note {
  margin: 0;
  font-size: 0.87rem;
  color: #64748b;
  line-height: 1.45;
}

body.admin-template .translation-page .translation-compact-summary {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

body.admin-template .translation-page .translation-summary-item {
  margin: 0;
  white-space: nowrap;
  color: #334155;
  font-size: 0.91rem;
}

body.admin-template .translation-page .translation-summary-limit {
  margin: 0;
  width: 100%;
}

body.admin-template .translation-page .translation-breakdown {
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.admin-template .translation-page .translation-breakdown-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  color: #1e293b;
  font-size: 0.82rem;
  line-height: 1.2;
}

body.admin-template .translation-page .translation-breakdown-item strong {
  color: #0f172a;
}

body.admin-template .translation-page .translation-breakdown-item em {
  font-style: normal;
  color: #047857;
  font-weight: 700;
}

body.admin-template .translation-page .translation-auto-toggle-row {
  display: grid;
  gap: 10px;
}

body.admin-template .translation-page .translation-toggle {
  width: 100%;
  justify-content: flex-start;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
  padding: 12px 13px;
  box-shadow: 0 16px 28px -30px rgba(15, 23, 42, 0.9), 0 9px 14px -12px rgba(15, 23, 42, 0.22);
}

body.admin-template .translation-page .translation-toggle .toggle-text {
  line-height: 1.4;
  color: #0f172a;
  font-weight: 650;
}

body.admin-template .translation-page .translation-auto-status {
  margin: 0;
  color: #64748b;
}

body.admin-template .translation-page .translation-auto-section {
  display: grid;
  gap: 14px;
}

body.admin-template .translation-page .translation-auto-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

body.admin-template .translation-page .translation-auto-mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: 0 16px 28px -30px rgba(15, 23, 42, 0.9), 0 9px 14px -12px rgba(15, 23, 42, 0.2);
}

body.admin-template .translation-page .translation-auto-mini-stat strong {
  font-size: 0.95rem;
  color: #0f172a;
}

body.admin-template .translation-page .translation-auto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 14px;
  align-items: start;
}

body.admin-template .translation-page .translation-auto-scope {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 16px 28px -32px rgba(15, 23, 42, 0.9), 0 9px 14px -12px rgba(15, 23, 42, 0.2);
}

body.admin-template .translation-page .translation-auto-options-grid {
  grid-template-columns: 1fr;
}

body.admin-template .translation-page .translation-auto-heading {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.2;
}

body.admin-template .translation-page .translation-auto-heading-note {
  margin: 0;
  color: #64748b;
}

body.admin-template .translation-page .translation-auto-languages-wrap {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 16px 28px -32px rgba(15, 23, 42, 0.9), 0 9px 14px -12px rgba(15, 23, 42, 0.2);
}

body.admin-template .translation-page .translation-auto-languages .translation-language-grid {
  max-height: 280px;
  overflow: auto;
  align-content: start;
  padding-right: 4px;
}

body.admin-template .translation-page .note-callout {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
  color: #5b21b6;
  margin: 0;
}

body.admin-template .translation-page .translation-staged-note {
  margin-top: 2px;
}

body.admin-template .translation-page .form-actions {
  margin-top: 6px;
}

body.admin-template .translation-page .btn.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  border-radius: 12px;
  min-height: 44px;
  box-shadow: 0 16px 28px -18px rgba(124, 58, 237, 0.72);
}

body.admin-template .translation-page .btn.btn-primary:hover {
  box-shadow: 0 22px 34px -20px rgba(124, 58, 237, 0.72);
}

body.admin-template .translation-page .translation-page-hero .io-like-stat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label icon"
    "value icon"
    "meta icon";
  align-items: start;
  gap: 2px 10px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.86), 0 10px 16px -12px rgba(15, 23, 42, 0.2);
}

body.admin-template .translation-page .translation-page-hero .io-like-stat::after {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  box-shadow: 0 15px 22px -18px rgba(124, 58, 237, 0.72);
  grid-area: icon;
  align-self: center;
}

body.admin-template .translation-page .translation-page-hero .io-like-stat:nth-child(2)::after {
  background: linear-gradient(135deg, #16a34a 0%, #14b8a6 100%);
  box-shadow: 0 15px 22px -18px rgba(22, 163, 74, 0.72);
}

body.admin-template .translation-page .translation-page-hero .io-like-stat:nth-child(3)::after {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 15px 22px -18px rgba(245, 158, 11, 0.72);
}

body.admin-template .translation-page .translation-page-hero .io-like-stat > * {
  position: relative;
  z-index: 1;
}

body.admin-template .translation-page .translation-page-hero .io-like-stat__label {
  grid-area: label;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

body.admin-template .translation-page .translation-page-hero .io-like-stat__value {
  grid-area: value;
  margin: 0;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.05;
}

body.admin-template .translation-page .translation-page-hero .io-like-stat__meta {
  grid-area: meta;
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.3;
}

@media (max-width:1120px) {
  body.admin-template .translation-page .translation-page-hero .io-like-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-template .translation-page .translation-manual-layout {
    grid-template-columns: 1fr;
  }

  body.admin-template .translation-page .translation-manual-aside {
    position: static;
  }

  body.admin-template .translation-page .translation-auto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:720px) {
  body.admin-template .translation-page {
    gap: 14px;
  }

  body.admin-template .translation-page .card,
  body.admin-template .translation-page .translation-page-hero {
    border-radius: 16px;
  }

  body.admin-template .translation-page .translation-page-hero {
    padding: 16px;
  }

  body.admin-template .translation-page .translation-page-hero .io-like-hero__stats {
    grid-template-columns: 1fr;
  }

  body.admin-template .translation-page .translation-options-grid {
    grid-template-columns: 1fr;
  }

  body.admin-template .translation-page .translation-summary-item {
    white-space: normal;
  }

  body.admin-template .translation-page .checkbox-grid {
    grid-template-columns: 1fr;
  }

  body.admin-template .translation-page .translation-auto-mini-stats {
    grid-template-columns: 1fr;
  }

  body.admin-template .translation-page .translation-auto-languages .translation-language-grid {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* Translation page (reference-style manual layout) */
body.admin-template .translation-page.translation-page--reference-layout {
  max-width: min(100%, 1420px);
  gap: 14px;
  padding: 12px;
  border: 1px solid #d7dfe9;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8f9fc 0%, #f2f5fa 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.admin-template .translation-page.translation-page--reference-layout .card:hover {
  transform: none;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-page-hero {
  display: none;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-panel-card--manual {
  border: 1px solid #cfd9e8;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6f8fc 0%, #f2f5fa 100%);
  box-shadow: 0 20px 34px -30px rgba(15, 23, 42, 0.62), 0 12px 18px -14px rgba(15, 23, 42, 0.22);
  padding: 16px;
  gap: 14px;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-panel-card--manual .translation-panel-card__kicker {
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  color: #445066;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-panel-card--manual .translation-panel-card__header h3 {
  font-size: clamp(1.28rem, 2vw, 2rem);
  line-height: 1.16;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-panel-card--manual .translation-panel-card__header .note {
  font-size: 1.02rem;
  line-height: 1.5;
  color: #5d6c84;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-manual-layout {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-manual-aside {
  position: static;
  top: auto;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-options-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.admin-template .translation-page.translation-page--reference-layout .form-section {
  display: grid;
  gap: 0;
  color: #2f3e53;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  border-color: #d2dbe7;
  border-radius: 16px;
  background: #f7f9fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 14px -14px rgba(15, 23, 42, 0.38);
}

body.admin-template .translation-page.translation-page--reference-layout .form-section > .note {
  margin-top: 4px;
  margin-bottom: 12px;
  color: #7085a4;
  font-size: 0.96rem;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-source-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-source-option {
  min-height: 106px;
  padding: 10px 10px 11px;
  border-radius: 14px;
  border-color: #c8d2e2;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
  box-shadow: 0 8px 14px -14px rgba(15, 23, 42, 0.44);
}

body.admin-template .translation-page.translation-page--reference-layout .translation-source-option__logo-box {
  min-height: 46px;
  border-color: #c6d3e5;
  border-radius: 10px;
  background: #ffffff;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-source-option__label {
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 700;
}

body.admin-template .translation-page.translation-page--reference-layout .checkbox-pill--source input[type="checkbox"]:checked + .translation-source-option {
  border-color: #7a9fef;
  background: linear-gradient(180deg, #eaf2ff 0%, #dfeafd 100%);
  box-shadow: 0 0 0 1px rgba(122, 159, 239, 0.4), 0 10px 16px -12px rgba(59, 130, 246, 0.54);
}

body.admin-template .translation-page.translation-page--reference-layout .translation-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-type-option {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 14px;
  border-color: #c8d2e2;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fd 100%);
  box-shadow: 0 8px 14px -14px rgba(15, 23, 42, 0.44);
}

body.admin-template .translation-page.translation-page--reference-layout .translation-type-option__label {
  font-size: 1.02rem;
  font-weight: 700;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-type-option__icon {
  width: 30px;
  height: 30px;
  border-width: 0;
  border-radius: 9px;
}

body.admin-template .translation-page.translation-page--reference-layout .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option--shop {
  border-color: #4fb9a4;
  background: linear-gradient(135deg, #bce8df 0%, #abdcd2 100%);
  box-shadow: 0 0 0 1px rgba(79, 185, 164, 0.3), 0 8px 14px -12px rgba(15, 118, 110, 0.55);
}

body.admin-template .translation-page.translation-page--reference-layout .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option--product {
  border-color: #79a3ea;
  background: linear-gradient(135deg, #d7e3f5 0%, #c9d8ef 100%);
  box-shadow: 0 0 0 1px rgba(121, 163, 234, 0.3), 0 8px 14px -12px rgba(29, 78, 216, 0.45);
}

body.admin-template .translation-page.translation-page--reference-layout .note-callout {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ece6fb;
  border-color: #c5b6f0;
  color: #5438a7;
  font-size: 1rem;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-manual-sticky {
  gap: 12px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-manual-sticky__kicker {
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  color: #445066;
  margin: 0;
  padding: 4px 0 8px;
  border-bottom: 1px solid #d2dbe7;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-language-field {
  display: grid;
  gap: 0;
  padding: 14px;
  border: 1px solid #d2dbe7;
  border-radius: 14px;
  background: #f7f9fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.admin-template .translation-page.translation-page--reference-layout .translation-language-field > .note {
  margin-top: 4px;
  margin-bottom: 10px;
  color: #7085a4;
  font-size: 0.96rem;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-language-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c8d2e2;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.94rem;
  padding: 8px 10px;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-compact-summary {
  border-color: #d2dbe7;
  border-radius: 14px;
  background: #f3f6fb;
  padding: 11px 12px;
  display: grid;
  gap: 10px;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-summary-item {
  font-size: 1.02rem;
  white-space: normal;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-breakdown {
  gap: 8px;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-breakdown-item {
  border-color: #ced9e8;
  background: #ffffff;
}

body.admin-template .translation-page.translation-page--reference-layout .translation-manual-sticky__note {
  color: #5f708b;
  margin: 0;
  font-size: 0.94rem;
}

body.admin-template .translation-page.translation-page--reference-layout .btn.btn-primary {
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #e8459b 100%);
  box-shadow: 0 16px 26px -18px rgba(124, 58, 237, 0.72);
}

body.admin-template .translation-page.translation-page--reference-layout .btn.btn-primary:hover {
  box-shadow: 0 20px 30px -20px rgba(124, 58, 237, 0.72);
}

body.admin-template .translation-page.translation-page--reference-layout .translation-manual-sticky .form-actions {
  margin-top: 2px;
}

@media (max-width: 1320px) {
  body.admin-template .translation-page.translation-page--reference-layout .translation-source-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  body.admin-template .translation-page.translation-page--reference-layout .translation-source-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.admin-template .translation-page.translation-page--reference-layout .translation-type-grid {
    grid-template-columns: 1fr;
  }

  body.admin-template .translation-page.translation-page--reference-layout .translation-source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.admin-template .translation-page.translation-page--reference-layout {
    padding: 8px;
    border-radius: 16px;
  }

  body.admin-template .translation-page.translation-page--reference-layout .translation-panel-card--manual {
    border-radius: 16px;
  }

  body.admin-template .translation-page.translation-page--reference-layout .translation-panel-card--manual .translation-panel-card__header .note {
    font-size: 0.92rem;
  }

  body.admin-template .translation-page.translation-page--reference-layout .translation-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.admin-template .translation-page.translation-page--reference-layout .form-section {
    padding: 12px;
  }

  body.admin-template .translation-page.translation-page--reference-layout .translation-type-option {
    min-height: 66px;
    padding: 10px 12px;
  }
}

/* Translation modal */
.modal-translation .modal-card--translation {
  background: #f5f8fc
}

.modal-translation .modal-header {
  background: linear-gradient(125deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 164, 0.08));
  border-bottom: 1px solid rgba(15, 23, 42, 0.08)
}

.modal-translation .translation-form {
  background: transparent;
  gap: 16px
}

.modal-translation .modal-translation-stack {
  display: grid;
  gap: 14px;
  padding: 16px 18px 20px;
  overflow: auto;
  background: #f5f8fc
}

.modal-translation .modal-translation-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  padding: 14px;
  display: grid;
  gap: 12px
}

.modal-translation .modal-translation-card__header {
  display: grid;
  gap: 4px
}

.modal-translation .modal-translation-card__header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a
}

.modal-translation .modal-translation-card__header .note {
  margin: 0
}

.modal-translation .modal-translation-card .translation-form {
  padding: 0;
  background: transparent;
  gap: 12px;
  overflow: visible
}

.modal-translation .translation-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.card.modal-translation {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafd 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06)
}

.card.modal-translation:hover {
  transform: none;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08)
}

.card.modal-translation::before {
  display: none
}

.modal-translation .section-header {
  display: grid;
  justify-content: start;
  gap: 6px;
  margin-bottom: 6px
}

.modal-translation .section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0
}

.modal-translation .section-header .note {
  font-size: 1.04rem
}

.modal-translation .form-section {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88)
}

.modal-translation .translation-compact-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: start
}

.modal-translation .translation-language-field {
  margin: 0
}

.modal-translation .translation-language-field .note {
  margin-bottom: 8px
}

.modal-translation .translation-compact-summary {
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fe 100%);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px
}

.modal-translation .translation-summary-item {
  margin: 0;
  white-space: nowrap;
  color: #1e293b;
  font-size: 0.95rem
}

.modal-translation .translation-summary-limit {
  margin: 0;
  width: 100%
}

.modal-translation .translation-breakdown {
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.modal-translation .translation-breakdown-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #1e293b;
  font-size: 0.82rem;
  line-height: 1.2
}

.modal-translation .translation-breakdown-item strong {
  color: #0f172a
}

.modal-translation .translation-breakdown-item em {
  font-style: normal;
  color: #0f766e;
  font-weight: 700
}

.modal-translation .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
  margin-top: 10px
}

.modal-translation .checkbox-pill {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease
}

.modal-translation .checkbox-pill:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: #f8fbff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.09)
}

.modal-translation .checkbox-pill input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb
}

.modal-translation .checkbox-pill span {
  font-weight: 600;
  color: #0f172a
}

.modal-translation .checkbox-pill .translation-source-option__label,
.modal-translation .checkbox-pill .translation-type-option__label {
  font-weight: 700;
}

.modal-translation .checkbox-pill .translation-source-option__fallback {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
}

.modal-translation .checkbox-pill .translation-source-option__logo-box--facebook .translation-source-option__fallback {
  color: #1d4ed8;
}

.modal-translation .checkbox-pill .translation-source-option__logo-box--woocommerce .translation-source-option__fallback {
  color: #7c2d12;
}

.modal-translation .checkbox-pill .translation-type-option__icon {
  color: #334155;
}

.modal-translation .checkbox-pill:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px
}

/* Translation source/type cards: no visible checkboxes + stronger selected card state. */
body.admin-template .translation-page .checkbox-pill--source,
body.admin-template .translation-page .checkbox-pill--type,
.modal-translation .checkbox-pill--source,
.modal-translation .checkbox-pill--type {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

body.admin-template .translation-page .checkbox-pill--source input[type="checkbox"],
body.admin-template .translation-page .checkbox-pill--type input[type="checkbox"],
.modal-translation .checkbox-pill--source input[type="checkbox"],
.modal-translation .checkbox-pill--type input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

body.admin-template .translation-page .translation-source-grid,
.modal-translation .translation-source-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

body.admin-template .translation-page .translation-source-option,
.modal-translation .translation-source-option {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  min-height: 102px;
  padding: 10px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.admin-template .translation-page .checkbox-pill--source:hover .translation-source-option,
.modal-translation .checkbox-pill--source:hover .translation-source-option {
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: 0 8px 14px -10px rgba(30, 64, 175, 0.35);
  transform: translateY(-1px);
}

body.admin-template .translation-page .translation-source-option__logo-box,
.modal-translation .translation-source-option__logo-box {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #ffffff;
}

body.admin-template .translation-page .translation-source-option__logo-box img,
.modal-translation .translation-source-option__logo-box img {
  max-height: 26px;
}

body.admin-template .translation-page .translation-source-option__label,
.modal-translation .translation-source-option__label {
  display: block;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.3;
  color: #334155;
  font-weight: 700;
}

body.admin-template .translation-page .checkbox-pill--source input[type="checkbox"]:checked + .translation-source-option,
.modal-translation .checkbox-pill--source input[type="checkbox"]:checked + .translation-source-option {
  border-color: rgba(37, 99, 235, 0.58);
  background: linear-gradient(180deg, #eef5ff 0%, #e0edff 100%);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

body.admin-template .translation-page .checkbox-pill--source input[type="checkbox"]:checked + .translation-source-option .translation-source-option__logo-box,
.modal-translation .checkbox-pill--source input[type="checkbox"]:checked + .translation-source-option .translation-source-option__logo-box {
  border-color: rgba(59, 130, 246, 0.52);
  background: #ffffff;
}

body.admin-template .translation-page .translation-type-grid,
.modal-translation .translation-type-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

body.admin-template .translation-page .translation-type-option,
.modal-translation .translation-type-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.admin-template .translation-page .translation-type-option__label,
.modal-translation .translation-type-option__label {
  white-space: normal;
  font-size: 0.86rem;
}

body.admin-template .translation-page .translation-type-option--shop .translation-type-option__icon,
.modal-translation .translation-type-option--shop .translation-type-option__icon {
  border-color: rgba(45, 212, 191, 0.42);
  background: #ebfffb;
  color: #0f766e;
}

body.admin-template .translation-page .translation-type-option--product .translation-type-option__icon,
.modal-translation .translation-type-option--product .translation-type-option__icon {
  border-color: rgba(96, 165, 250, 0.5);
  background: #edf5ff;
  color: #1d4ed8;
}

body.admin-template .translation-page .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option--shop,
.modal-translation .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option--shop {
  border-color: rgba(13, 148, 136, 0.6);
  background: linear-gradient(135deg, #d9fff6 0%, #ccfbf1 100%);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.14);
}

body.admin-template .translation-page .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option--product,
.modal-translation .checkbox-pill--type input[type="checkbox"]:checked + .translation-type-option--product {
  border-color: rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #e6f0ff 0%, #dbeafe 100%);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.modal-translation .note-callout {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #1e3a8a;
  margin: 0
}

.modal-translation .translation-divider {
  margin: 8px 0 10px;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.32)
}

.modal-translation .translation-staged-note {
  margin-top: 8px
}

.modal-translation .btn-wide {
  width: 100%;
  font-weight: 700
}

.modal-translation .form-actions {
  margin-top: 8px
}

.modal-translation .modal-translation-card .form-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.modal-translation .btn.btn-primary {
  background: linear-gradient(135deg, #0f9ab8, #2563eb);
  border-radius: 12px;
  min-height: 46px;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2)
}

.modal-translation .btn.btn-primary:hover {
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24)
}

@media (max-width:720px) {
  .modal-translation .modal-translation-stack {
    padding: 12px
  }

  .modal-translation .translation-options-grid {
    grid-template-columns: 1fr
  }

  .modal-translation .translation-compact-row {
    grid-template-columns: 1fr
  }

  .modal-translation .translation-summary-item {
    white-space: normal
  }

  .modal-translation .checkbox-grid {
    grid-template-columns: 1fr
  }
}



body.auth-page .plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 35, 70, 0.09);
  color: #1e355a;
}

body.auth-page .plan-card.is-featured {
  border-color: rgba(31, 111, 255, 0.55);
  box-shadow: 0 17px 30px rgba(31, 111, 255, 0.18);
}

body.auth-page .plan-card.is-featured .plan-badge {
  background: rgba(31, 111, 255, 0.16);
  color: #1d4ed8;
}

body.auth-page .plan-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f1f39;
}


body.auth-page .plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.auth-page .plan-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 35, 70, 0.07);
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f3558;
}

body.auth-page .plan-chip-strong {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

@media (max-width: 720px) {
  body.auth-page .plan-chips {
    gap: 6px;
  }
}

/* Export CSV modal */
.modal-export-csv .modal-card--export-csv {
  background: #f8fafc
}

.modal-export-csv .modal-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 164, 0.14))
}

.modal-export-csv .export-csv-form {
  background: #ffffff
}

.modal-export-csv .checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px
}

.modal-export-csv .checkbox-pill {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease
}

.modal-export-csv .checkbox-pill:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08)
}

.modal-export-csv .checkbox-pill input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb
}

.modal-export-csv .checkbox-pill span {
  font-weight: 600;
  color: #0f172a
}

.modal-export-csv .checkbox-pill:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px
}

.modal-export-csv .form-actions--split {
  justify-content: space-between;
  flex-wrap: wrap
}

.modal-export-csv .toggle {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc
}

@media (max-width:720px) {
  .modal-export-csv .checkbox-grid {
    grid-template-columns: 1fr
  }

  .modal-export-csv .form-actions--split {
    gap: 10px
  }
}



body.account-page {
  --account-ink: #0f2647;
  --account-muted: #4f6482;
  --account-line: rgba(17, 36, 71, 0.14);
  --account-brand: #2366e3;
  --account-accent: #14b8a6;
  --account-panel: #ffffff;
  --account-soft: #f4f8ff;
  --account-shadow: 0 18px 36px rgba(11, 31, 62, 0.11);
  color: var(--account-ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(20, 184, 166, 0.14), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(35, 102, 227, 0.2), transparent 38%),
    linear-gradient(180deg, #edf4ff 0%, #f7faff 100%);
}

body.account-page .wrap {
  padding: 28px 24px 56px;
}

body.account-page .account-shell {
  max-width: 1120px;
  margin: 10px auto 0;
  padding: 0 18px;
  display: grid;
  gap: 16px;
}

body.account-page .account-card {
  margin-top: 0;
  border-radius: 22px;
  border: 1px solid var(--account-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--account-shadow);
}

body.account-page .account-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 62%, #eef6ff 100%);
}

body.account-page .account-hero::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 102, 227, 0.24), transparent 72%);
  pointer-events: none;
}

body.account-page .account-hero::after {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2), transparent 74%);
  pointer-events: none;
}

body.account-page .account-hero > * {
  position: relative;
  z-index: 1;
}

body.account-page .account-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.account-page .account-hero-copy {
  display: grid;
  gap: 8px;
}

body.account-page .account-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(35, 102, 227, 0.26);
  background: rgba(35, 102, 227, 0.1);
  color: #1646a2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 800;
}

body.account-page .account-hero h1 {
  margin: 0;
  font-size: clamp(1.72rem, 3.3vw, 2.28rem);
  color: var(--account-ink);
  line-height: 1.18;
}

body.account-page .account-hero p {
  margin: 0;
  color: var(--account-muted);
  max-width: 62ch;
}

body.account-page .account-hero-side {
  display: grid;
  gap: 10px;
  justify-items: start;
}

body.account-page .account-hero-plan {
  width: 100%;
  max-width: 320px;
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(15, 35, 70, 0.13);
  background: rgba(255, 255, 255, 0.9);
}

body.account-page .account-hero-plan strong {
  font-size: 1.02rem;
  color: #123260;
}

body.account-page .account-hero-plan-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1f3f95;
  font-weight: 700;
}

body.account-page .account-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 700;
}

body.account-page .account-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.account-page .account-hero-actions .pill {
  border: 1px solid rgba(15, 35, 70, 0.16);
  background: #ffffff;
  color: #1f3558;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 35, 70, 0.08);
  transition: all 0.2s ease;
}

body.account-page .account-hero-actions .pill:hover {
  border-color: rgba(35, 102, 227, 0.46);
  color: #1646a2;
  box-shadow: 0 8px 16px rgba(35, 102, 227, 0.14);
}

body.account-page .account-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.account-page .account-hero-metric {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(15, 35, 70, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

body.account-page .account-hero-metric-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4d6384;
  font-weight: 700;
}

body.account-page .account-hero-metric-value {
  font-size: 1.08rem;
  color: #132f58;
  font-weight: 800;
}

body.account-page .account-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body.account-page .account-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 35, 70, 0.15);
  background: rgba(255, 255, 255, 0.92);
  color: #1f3558;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

body.account-page .account-tab:hover {
  border-color: rgba(35, 102, 227, 0.44);
  color: #1646a2;
  box-shadow: 0 8px 16px rgba(15, 35, 70, 0.1);
}

body.account-page .account-tab.is-active {
  border-color: rgba(35, 102, 227, 0.58);
  background: linear-gradient(130deg, rgba(35, 102, 227, 0.15), rgba(20, 184, 166, 0.14));
  color: #143979;
}

body.account-page .account-section {
  display: grid;
  gap: 14px;
  padding: 22px;
}

body.account-page .account-section--danger {
  border-color: rgba(185, 28, 28, 0.22);
  background: linear-gradient(150deg, rgba(254, 242, 242, 0.94), rgba(255, 255, 255, 0.98));
}

body.account-page .account-danger-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #7f1d1d;
  font-weight: 600;
}

body.account-page .account-section-head {
  display: grid;
  gap: 6px;
}

body.account-page .account-section-head h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--account-ink);
}

body.account-page .account-section-head .note {
  margin: 0;
  color: var(--account-muted);
}

body.account-page .account-form {
  display: grid;
  gap: 14px;
}

body.account-page .account-field {
  display: grid;
  gap: 6px;
  margin: 0;
  font-weight: 700;
  color: var(--account-ink);
}

body.account-page .account-form input[type="text"],
body.account-page .account-form input[type="email"],
body.account-page .account-form input[type="password"] {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 35, 70, 0.2);
  background: #ffffff;
  padding: 10px 12px;
  color: var(--account-ink);
  box-shadow: 0 2px 7px rgba(15, 35, 70, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.account-page .account-form input[type="text"]:focus,
body.account-page .account-form input[type="email"]:focus,
body.account-page .account-form input[type="password"]:focus {
  outline: none;
  border-color: rgba(35, 102, 227, 0.7);
  box-shadow: 0 0 0 4px rgba(35, 102, 227, 0.14);
}

body.account-page .account-fieldset {
  border: 1px solid rgba(15, 35, 70, 0.14);
  border-radius: 16px;
  padding: 14px;
  margin: 0;
  display: grid;
  gap: 10px;
  background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
}

body.account-page .account-fieldset legend {
  padding: 0 6px;
  font-weight: 800;
  color: var(--account-ink);
}

body.account-page .account-option {
  display: block;
  margin: 0;
  cursor: pointer;
}

body.account-page .account-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.account-page .account-option span {
  position: relative;
  display: block;
  padding: 11px 12px 11px 42px;
  border-radius: 12px;
  border: 1px solid rgba(15, 35, 70, 0.13);
  background: #ffffff;
  color: #122643;
  font-weight: 600;
  line-height: 1.45;
  transition: all 0.2s ease;
}

body.account-page .account-option span::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(35, 102, 227, 0.42);
  transform: translateY(-50%);
  box-sizing: border-box;
}

body.account-page .account-option input[type="radio"]:checked + span {
  border-color: rgba(20, 184, 166, 0.54);
  background: linear-gradient(125deg, rgba(20, 184, 166, 0.14), rgba(35, 102, 227, 0.12));
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

body.account-page .account-option input[type="radio"]:checked + span::before {
  border-color: rgba(20, 184, 166, 0.8);
  box-shadow: inset 0 0 0 4px rgba(20, 184, 166, 0.9);
}

body.account-page .account-option input[type="radio"]:focus + span {
  border-color: rgba(35, 102, 227, 0.56);
  box-shadow: 0 0 0 4px rgba(35, 102, 227, 0.12);
}

body.account-page .form-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.account-page .form-actions .btn {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #14b8a6, #2366e3);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(35, 102, 227, 0.24);
}

body.account-page .form-actions .btn:hover {
  box-shadow: 0 14px 24px rgba(20, 184, 166, 0.25);
}

body.account-page .form-actions .btn.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
}

body.account-page .form-actions .btn.btn-danger:hover {
  box-shadow: 0 14px 24px rgba(185, 28, 28, 0.3);
}

body.account-page .form-actions .pill {
  border-color: rgba(15, 35, 70, 0.16);
  background: #ffffff;
  color: #1f3558;
  text-decoration: none;
}

body.account-page .form-actions .pill:hover {
  border-color: rgba(35, 102, 227, 0.44);
  color: #1646a2;
}

body.account-page .account-plan-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.account-page .account-plan-chip {
  margin: 0;
}

body.account-page .account-stat-grid {
  margin-top: 4px;
}

body.account-page .account-addon-actions {
  margin-top: 4px;
  gap: 10px;
  flex-wrap: wrap;
}

body.account-page .account-addon-actions form {
  margin: 0;
}

body.account-page .account-plan-switcher {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

body.account-page .account-plan-switcher h3 {
  margin: 0;
  color: var(--account-ink);
}

body.account-page .account-plan-list {
  display: grid;
  gap: 10px;
}

body.account-page .account-plan-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
}

body.account-page .account-plan-radio {
  margin-top: 5px;
}

body.account-page .account-plan-option-body {
  flex: 1;
  display: grid;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(15, 35, 70, 0.14);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.account-page .account-plan-option-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.account-page .account-plan-option-meta {
  font-size: 0.85rem;
  color: var(--account-muted);
  line-height: 1.45;
}

body.account-page .account-plan-option-price {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--account-ink);
}

body.account-page .account-plan-radio:checked + .account-plan-option-body {
  border-color: rgba(20, 184, 166, 0.54);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

body.account-page .account-plan-radio:focus + .account-plan-option-body {
  border-color: rgba(35, 102, 227, 0.56);
  box-shadow: 0 0 0 4px rgba(35, 102, 227, 0.14);
}

@media (max-width: 980px) {
  body.account-page .account-hero-grid {
    grid-template-columns: 1fr;
  }

  body.account-page .account-hero-side,
  body.account-page .account-hero-plan {
    max-width: none;
    width: 100%;
  }

  body.account-page .account-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.account-page .wrap {
    padding: 22px 18px 48px;
  }

  body.account-page .account-shell {
    padding: 0 12px;
  }

  body.account-page .account-section {
    padding: 18px;
  }

  body.account-page .account-hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.account-page .account-hero {
    padding: 18px;
  }

  body.account-page .account-tab {
    width: 100%;
  }

  body.account-page .account-option span {
    font-size: 0.93rem;
  }

  body.account-page .account-plan-option {
    gap: 8px;
  }
}

/* ============================================================
   Widget library page (curated picker flow)
   ============================================================ */
.widget-library-page {
  --widget-lib-ink: #0f172a;
  --widget-lib-muted: #334155;
  --widget-lib-border: rgba(15, 23, 42, 0.12);
  --widget-lib-accent: #0e7490;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  background:
    radial-gradient(130% 100% at 10% 0%, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0) 60%),
    radial-gradient(130% 100% at 100% 10%, rgba(45, 212, 191, 0.14) 0%, rgba(45, 212, 191, 0) 58%),
    linear-gradient(165deg, #f8fcff 0%, #f3f7fb 100%);
}

.widget-library-hero {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(14, 116, 144, 0.2);
  background: linear-gradient(130deg, rgba(224, 247, 250, 0.9) 0%, rgba(239, 246, 255, 0.95) 100%);
}

.widget-library-hero__eyebrow {
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  color: #0c4a6e;
}

.widget-library-hero h2 {
  margin: 0;
}

.widget-library-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widget-library-hero__meta span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0c4a6e;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(14, 116, 144, 0.22);
}

.widget-library-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.widget-library-filters {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 84px;
  padding: 14px;
  border: 1px solid var(--widget-lib-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.widget-library-filters__group {
  display: grid;
  gap: 8px;
}

.widget-library-filters__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--widget-lib-muted);
  font-weight: 800;
}

.widget-library-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.widget-library-chip {
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: var(--widget-lib-ink);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.widget-library-chip:hover {
  border-color: rgba(14, 116, 144, 0.58);
  color: #0c4a6e;
}

.widget-library-chip.is-active {
  border-color: var(--widget-lib-accent);
  background: rgba(14, 116, 144, 0.13);
  color: #0c4a6e;
}

.widget-library-filters__actions {
  display: flex;
  justify-content: flex-start;
}

.widget-library-results {
  display: grid;
  gap: 14px;
}

.widget-library-results__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--widget-lib-border);
  background: rgba(255, 255, 255, 0.86);
}

.widget-library-results__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.widget-library-results__subline {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: #475569;
}

.widget-library-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.widget-library-active-filter {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0c4a6e;
  background: rgba(14, 116, 144, 0.14);
  border: 1px solid rgba(14, 116, 144, 0.22);
}

.widget-library-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--widget-lib-border);
  background: rgba(255, 255, 255, 0.9);
}

.widget-library-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.widget-library-section__header h4 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.widget-library-section__header p {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: #475569;
}

.widget-library-section__count {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
}

.widget-library-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.widget-library-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.widget-library-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.widget-library-card__surface {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(140deg, #0f172a 0%, #1f2937 62%, #334155 100%);
}

.widget-library-card__chrome {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.widget-library-card__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.widget-library-card__mock {
  display: grid;
  gap: 7px;
  height: 118px;
}

.widget-library-card__mock span {
  display: block;
  border-radius: 10px;
  background: rgba(226, 232, 240, 0.84);
}

.widget-library-card__mock--page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.widget-library-card__mock--page span:nth-child(1) {
  grid-column: 1 / -1;
  height: 24px;
}

.widget-library-card__mock--page span:nth-child(2),
.widget-library-card__mock--page span:nth-child(3) {
  height: 82px;
}

.widget-library-card__mock--page span:nth-child(4) {
  display: none;
}

.widget-library-card__mock--carousel {
  display: flex;
  align-items: end;
  gap: 7px;
}

.widget-library-card__mock--carousel span {
  flex: 1 1 0;
  border-radius: 999px 999px 9px 9px;
}

.widget-library-card__mock--carousel span:nth-child(1) {
  height: 60px;
}

.widget-library-card__mock--carousel span:nth-child(2) {
  height: 86px;
}

.widget-library-card__mock--carousel span:nth-child(3) {
  height: 72px;
}

.widget-library-card__mock--carousel span:nth-child(4) {
  height: 94px;
}

.widget-library-card__mock--floating {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.widget-library-card__mock--floating span:nth-child(1) {
  grid-column: 1 / -1;
  height: 100%;
  opacity: 0.32;
}

.widget-library-card__mock--floating span:nth-child(2) {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 58%;
  height: 34px;
  border-radius: 12px;
  background: rgba(240, 249, 255, 0.9);
}

.widget-library-card__mock--floating span:nth-child(3),
.widget-library-card__mock--floating span:nth-child(4) {
  display: none;
}

.widget-library-card__content {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.widget-library-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget-library-tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
  background: rgba(15, 23, 42, 0.08);
}

.widget-library-tag--layout {
  color: #0c4a6e;
  background: rgba(14, 116, 144, 0.14);
}

.widget-library-card__content h4 {
  margin: 0;
  font-size: 0.98rem;
  color: #0f172a;
}

.widget-library-card__content p {
  margin: 0;
  font-size: 0.86rem;
  color: #334155;
}

.widget-library-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(226, 232, 240, 0.5);
}

.widget-library-card__actions {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.widget-library-card__actions .btn {
  width: 100%;
  justify-content: center;
}

.widget-library-empty {
  text-align: center;
  padding: 30px 18px;
  border: 1px dashed rgba(15, 23, 42, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.widget-library-create-page {
  display: grid;
  gap: 12px;
}

.widget-library-create-form {
  display: grid;
  gap: 12px;
}

@media (max-width: 1080px) {
  .widget-library-shell {
    grid-template-columns: 1fr;
  }

  .widget-library-filters {
    position: static;
  }
}

@media (max-width: 860px) {
  .widget-library-results__head {
    padding: 12px;
  }

  .widget-library-section {
    padding: 12px;
  }

  .widget-library-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .widget-library-section__grid {
    grid-template-columns: 1fr;
  }
}

/* IO-like shared UI kit (widgets, review form, translations, entity details) */
.io-like-hero {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(165deg, #ffffff 0%, #f4f8fd 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.io-like-hero__content {
  display: grid;
  gap: 8px;
}

.io-like-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0369a1;
}

.io-like-hero__title {
  margin: 0;
  color: #0f172a;
}

.io-like-hero__subtitle {
  margin: 0;
  color: #475569;
}

.io-like-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.io-like-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.io-like-stat {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.io-like-stat__label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
}

.io-like-stat__value {
  font-size: 1.3rem;
  color: #0f172a;
  line-height: 1.1;
}

.io-like-stat__meta {
  color: #64748b;
  font-size: 0.84rem;
}

.io-like-panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.95);
}

.io-like-empty {
  border: 1px dashed rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fd 100%);
  padding: 22px 16px;
}

.io-like-table {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
}

/* Widgets tab */
.widgets-page-panel__header {
  margin-bottom: 12px;
}

.widgets-page-hero__stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.widgets-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.79rem;
  font-weight: 700;
}

.widgets-status-pill strong {
  color: inherit;
  font-size: 0.8rem;
}

.widgets-status-pill--fresh {
  color: #065f46;
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(16, 185, 129, 0.14);
}

.widgets-status-pill--stale {
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(245, 158, 11, 0.16);
}

.widgets-status-pill--missing {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(248, 113, 113, 0.14);
}

.widgets-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.widgets-page-panel .io-source-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.94) 100%);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.widgets-page-panel .io-source-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.widgets-page-panel .widget-source-card-fresh {
  border-left: 3px solid #059669;
}

.widgets-page-panel .widget-source-card-stale {
  border-left: 3px solid #d97706;
}

.widgets-page-panel .widget-source-card-missing {
  border-left: 3px solid #7c3aed;
}

.widgets-page-panel .io-source-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.widgets-page-panel .io-source-card__title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.widgets-page-panel .io-source-card__title strong {
  color: #0f172a;
}

.widgets-page-panel .widget-source-card__subtitle {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widgets-page-panel .widget-source-card__header-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.widgets-page-panel .io-source-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}

.widgets-page-panel .io-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.widgets-page-panel .io-stat span {
  color: #64748b;
  font-size: 0.83rem;
}

.widgets-page-panel .io-stat strong {
  color: #0f172a;
  font-size: 0.86rem;
}

.widgets-page-panel .io-source-card__meta {
  display: grid;
  gap: 4px;
}

.widgets-page-panel .io-source-card__meta div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.widgets-page-panel .io-source-card__meta span {
  color: #64748b;
  font-size: 0.8rem;
}

.widgets-page-panel .io-source-card__meta strong {
  color: #0f172a;
  font-size: 0.84rem;
  text-align: right;
}

.widgets-page-panel .widget-source-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.widgets-page-panel .widget-source-card__actions .btn {
  flex: 1 1 calc(50% - 8px);
  justify-content: center;
}

.widgets-page-panel .widget-source-card__inline-form {
  display: flex;
  flex: 1 1 calc(50% - 8px);
  margin: 0;
}

.widgets-page-panel .widget-source-card__inline-form .btn {
  width: 100%;
}

@media (max-width: 720px) {
  .widgets-page-hero__stats {
    grid-template-columns: 1fr;
  }

  .widgets-source-grid {
    grid-template-columns: 1fr;
  }

  .widgets-page-panel .io-source-card__stats {
    grid-template-columns: 1fr;
  }

  .widgets-page-panel .io-source-card__meta div {
    flex-direction: column;
    align-items: flex-start;
  }

  .widgets-page-panel .widget-source-card__actions .btn,
  .widgets-page-panel .widget-source-card__inline-form {
    flex-basis: 100%;
  }
}

/* Review form tab */
body.admin-template .review-form-hero.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.96) 56%, rgba(244, 247, 254, 0.94) 100%);
  box-shadow: 0 30px 50px -36px rgba(15, 23, 42, 0.66), 0 16px 28px -20px rgba(15, 23, 42, 0.26);
}

body.admin-template .review-form-hero.card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -140px;
  top: -178px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(236, 72, 153, 0) 72%);
  pointer-events: none;
}

body.admin-template .review-form-hero.card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -104px;
  bottom: -148px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0) 74%);
  pointer-events: none;
}

body.admin-template .review-form-hero .io-like-hero__content,
body.admin-template .review-form-hero .io-like-hero__stats {
  position: relative;
  z-index: 1;
}

body.admin-template .review-form-hero .io-like-hero__content {
  gap: 10px;
}

body.admin-template .review-form-hero .io-like-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
}

body.admin-template .review-form-hero .io-like-hero__title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.15;
}

body.admin-template .review-form-hero .io-like-hero__subtitle {
  margin: 0;
  max-width: 760px;
  color: #64748b;
  font-size: 0.93rem;
  line-height: 1.56;
}

body.admin-template .review-form-hero .io-like-hero__actions {
  margin-top: 2px;
  gap: 9px;
}

body.admin-template .review-form-hero .io-like-hero__stats {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

body.admin-template .review-form-hero .io-like-stat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label icon"
    "value icon"
    "meta icon";
  align-items: start;
  gap: 2px 10px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.84), 0 10px 16px -12px rgba(15, 23, 42, 0.2);
}

body.admin-template .review-form-hero .io-like-stat::after {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  box-shadow: 0 15px 22px -18px rgba(124, 58, 237, 0.72);
  grid-area: icon;
  align-self: center;
}

body.admin-template .review-form-hero .io-like-stat:nth-child(2)::after {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 15px 22px -18px rgba(37, 99, 235, 0.72);
}

body.admin-template .review-form-hero .io-like-stat:nth-child(3)::after {
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  box-shadow: 0 15px 22px -18px rgba(16, 185, 129, 0.72);
}

body.admin-template .review-form-hero .io-like-stat:nth-child(4)::after {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 15px 22px -18px rgba(245, 158, 11, 0.72);
}

body.admin-template .review-form-hero .io-like-stat__label {
  grid-area: label;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

body.admin-template .review-form-hero .io-like-stat__value {
  grid-area: value;
  margin: 0;
  color: #0f172a;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.05;
}

body.admin-template .review-form-hero .io-like-stat__meta {
  grid-area: meta;
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.3;
}

body.admin-template .review-form-panel.card,
body.admin-template .review-form-links.card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 42px -34px rgba(15, 23, 42, 0.62), 0 12px 18px -16px rgba(15, 23, 42, 0.22);
}

body.admin-template .review-form-panel .section-header,
body.admin-template .review-form-links .section-header {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

body.admin-template .review-form-panel .section-header h2,
body.admin-template .review-form-links .section-header h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

body.admin-template .review-form-panel .section-header .note,
body.admin-template .review-form-links .section-header .note {
  margin: 0;
  color: #64748b;
}

body.admin-template .review-form-layout {
  display: grid;
  gap: 14px;
}

body.admin-template .review-form-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

body.admin-template .review-form-context-card {
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: 0 18px 30px -34px rgba(15, 23, 42, 0.94), 0 10px 16px -14px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 6px;
}

body.admin-template .review-form-context-card h3 {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.22;
}

body.admin-template .review-form-context-card .note {
  margin: 0;
  color: #64748b;
}

body.admin-template .review-form-context-card--plan {
  border-color: rgba(14, 165, 233, 0.32);
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
}

body.admin-template .review-form-master-toggle {
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 16px 28px -30px rgba(15, 23, 42, 0.88), 0 9px 14px -12px rgba(15, 23, 42, 0.2);
}

body.admin-template .review-form-master-toggle .toggle-text {
  color: #0f172a;
  font-weight: 650;
}

body.admin-template .review-form-block {
  padding: 15px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 30px -32px rgba(15, 23, 42, 0.86), 0 10px 16px -14px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: 9px;
}

body.admin-template .review-form-block h3 {
  margin: 0;
  font-size: 1.02rem;
}

body.admin-template .review-form-block .note {
  margin: 0;
  color: #64748b;
}

body.admin-template .review-form-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

body.admin-template .review-form-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 14px 26px -30px rgba(15, 23, 42, 0.9), 0 8px 12px -10px rgba(15, 23, 42, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.admin-template .review-form-option:hover {
  border-color: rgba(124, 58, 237, 0.34);
  background: #ffffff;
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.86), 0 10px 16px -12px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

body.admin-template .review-form-option input[type="checkbox"],
body.admin-template .review-form-option input[type="radio"] {
  accent-color: #7c3aed;
}

body.admin-template .review-form-option.is-disabled {
  opacity: 0.62;
  background: #f1f5f9;
}

body.admin-template .review-form-inline-field {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 14px 26px -30px rgba(15, 23, 42, 0.9), 0 8px 12px -10px rgba(15, 23, 42, 0.2);
}

body.admin-template .review-form-inline-field input {
  width: 92px;
}

body.admin-template .review-form-plan-note {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.11);
  color: #92400e;
}

body.admin-template .review-form-url-grid {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 11px 13px;
  align-items: center;
}

body.admin-template .review-form-url-grid label strong {
  color: #0f172a;
  font-size: 0.9rem;
}

body.admin-template .form-input-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body.admin-template .review-form-url-note {
  grid-column: 1 / -1;
  margin-top: 2px;
}

body.admin-template .review-form-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

body.admin-template .review-form-template-card {
  --rf-preview-primary: #1f2937;
  --rf-preview-secondary: #6b7280;
  --rf-preview-surface: #f3f4f6;
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 13px;
  background: #f8fafc;
  box-shadow: 0 14px 26px -30px rgba(15, 23, 42, 0.9), 0 8px 12px -10px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.admin-template .review-form-template-card:hover {
  border-color: rgba(14, 116, 144, 0.35);
  background: #ffffff;
  transform: translateY(-1px);
}

body.admin-template .review-form-template-card.is-selected {
  border-color: rgba(8, 145, 178, 0.48);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.15), 0 18px 30px -30px rgba(15, 23, 42, 0.84), 0 10px 16px -12px rgba(15, 23, 42, 0.2);
}

body.admin-template .review-form-template-card input {
  margin: 0;
}

body.admin-template .review-form-template-card__preview {
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  background: linear-gradient(130deg, var(--rf-preview-surface) 0%, #ffffff 100%);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

body.admin-template .review-form-template-card__preview-surface {
  position: absolute;
  inset: 7px 10px;
  border-radius: 7px;
  background: var(--rf-preview-surface);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

body.admin-template .review-form-template-card__preview-primary,
body.admin-template .review-form-template-card__preview-secondary {
  position: absolute;
  height: 6px;
  border-radius: 999px;
}

body.admin-template .review-form-template-card__preview-primary {
  top: 13px;
  left: 16px;
  width: 42%;
  background: var(--rf-preview-primary);
}

body.admin-template .review-form-template-card__preview-secondary {
  top: 24px;
  left: 16px;
  width: 66%;
  background: var(--rf-preview-secondary);
}

body.admin-template .review-form-template-card__title {
  font-weight: 700;
  color: #0f172a;
}

body.admin-template .review-form-template-card__desc {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.42;
}

body.admin-template .review-form-template-card__source {
  color: #0f766e;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

body.admin-template .review-form-branding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  align-items: end;
}

body.admin-template .review-form-field {
  display: grid;
  gap: 6px;
}

body.admin-template .review-form-field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1f2937;
}

body.admin-template .review-form-field input[type="text"],
body.admin-template .review-form-field input[type="color"],
body.admin-template .review-form-field input[type="file"] {
  width: 100%;
}

body.admin-template .review-form-field--full {
  grid-column: 1 / -1;
}

body.admin-template .review-form-logo-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

body.admin-template .review-form-logo-preview img {
  max-height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

@media (max-width: 1120px) {
  body.admin-template .review-form-hero .io-like-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.admin-template .review-form-hero .io-like-hero__stats {
    grid-template-columns: 1fr;
  }

  body.admin-template .review-form-context-grid,
  body.admin-template .review-form-options-grid,
  body.admin-template .review-form-template-grid,
  body.admin-template .review-form-branding-grid {
    grid-template-columns: 1fr;
  }

  body.admin-template .review-form-inline-field {
    flex-direction: column;
    align-items: flex-start;
  }

  body.admin-template .review-form-inline-field input {
    width: 100%;
  }
}

/* Translations tab */
body.admin-template .translation-page-hero .io-like-hero__stats {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* Entity detail modal shell (themeexample-inspired surfaces) */
.modal-entity-detail .modal-card--entity-detail {
  background: linear-gradient(180deg, #f9fbff 0%, #f1f5fb 100%);
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 22px;
  box-shadow: 0 26px 44px -30px rgba(15, 23, 42, 0.88), 0 16px 24px -20px rgba(15, 23, 42, 0.2);
}

.modal-entity-detail .modal-header--entity-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 18px;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.modal-entity-detail .modal-header-text--entity-detail {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.modal-entity-detail .modal-header-text--entity-detail h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
  line-height: 1.2;
}

.modal-entity-detail .modal-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  color: #64748b;
  font-weight: 800;
}

.modal-entity-detail .entity-detail-modal-note {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
}

.modal-entity-detail .modal-close--entity-detail {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #dbe4f2;
  background: #f8fbff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.modal-entity-detail .modal-close--entity-detail:hover,
.modal-entity-detail .modal-close--entity-detail:focus-visible {
  border-color: #c5d4ec;
  background: #eef4ff;
  color: #334155;
}

.entity-detail-frame-wrap {
  padding: 14px;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.entity-detail-frame-wrap--panel {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.62), rgba(241, 246, 253, 0.9));
}

.entity-detail-frame {
  width: 100%;
  height: 100%;
  min-height: clamp(460px, 74vh, 860px);
  border: 1px solid rgba(203, 213, 225, 0.84);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 24px -24px rgba(15, 23, 42, 0.72), inset 0 0 0 1px rgba(226, 232, 240, 0.65);
}

/* Entity detail content pages (product/review) */
.entity-detail-page {
  display: grid;
  gap: 14px;
}

.entity-detail-page--modal {
  padding: 14px;
  min-height: 100%;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
}

.entity-detail-page .entity-detail-hero,
.entity-detail-page .entity-detail-panel {
  margin-top: 0;
}

.entity-detail-page .entity-detail-hero {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.96) 56%, rgba(244, 247, 254, 0.94) 100%);
  box-shadow: 0 28px 46px -34px rgba(15, 23, 42, 0.72), 0 14px 22px -18px rgba(15, 23, 42, 0.22);
}

.entity-detail-page .entity-detail-hero .io-like-hero__title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.14;
}

.entity-detail-page .entity-detail-hero .io-like-hero__subtitle {
  max-width: 760px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.52;
}

.entity-detail-page .entity-detail-hero__link {
  margin: 0;
  font-size: 0.84rem;
}

.entity-detail-page .entity-detail-hero__link a {
  font-weight: 700;
  color: #334155;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entity-detail-page .entity-detail-panel {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
  box-shadow: 0 18px 30px -34px rgba(15, 23, 42, 0.8), 0 10px 14px -10px rgba(15, 23, 42, 0.12);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.entity-detail-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.entity-detail-panel__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  font-weight: 800;
  color: #64748b;
}

.entity-detail-panel__header h2 {
  margin: 2px 0 0;
  font-size: 1.02rem;
  color: #0f172a;
}

.entity-detail-panel__header .note {
  margin: 6px 0 0;
  color: #64748b;
  max-width: 760px;
  font-size: 0.84rem;
}

.entity-detail-page .detail-grid {
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.entity-detail-page .detail-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 11px 12px;
  box-shadow: none;
}

.entity-detail-page .detail-label {
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  color: #64748b;
}

.entity-detail-page .detail-value {
  color: #1f2937;
  line-height: 1.35;
}

.entity-detail-page .detail-content {
  gap: 8px;
}

.entity-detail-page .review-meta {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
}

.entity-detail-page .entity-detail-media-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.entity-detail-page .entity-detail-media-card {
  margin: 0;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fbff;
  display: grid;
  gap: 8px;
}

.entity-detail-page .entity-detail-media-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #e7eef7;
  display: block;
}

.entity-detail-page .entity-detail-video-cover {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.entity-detail-page .entity-detail-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(7, 20, 45, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  pointer-events: none;
}

.entity-detail-page .entity-detail-media-meta {
  margin: 0;
}

.entity-detail-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
}

.entity-detail-inline-form--unshare {
  margin-top: 12px;
}

.entity-detail-inline-field {
  display: grid;
  gap: 6px;
  min-width: min(100%, 280px);
}

.entity-detail-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.entity-detail-form-card {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #f8fbff;
  box-shadow: none;
  gap: 10px;
}

.entity-detail-search__rating {
  max-width: 130px;
}

.entity-detail-search__sort {
  max-width: 190px;
}

.entity-detail-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.88);
}

.entity-detail-table {
  border-collapse: separate;
  border-spacing: 0;
}

.entity-detail-table thead th {
  padding: 11px 14px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  opacity: 0.9;
  border-bottom: 1px solid #dbe3f0;
  vertical-align: middle;
}

.entity-detail-table td {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #475569;
  border-bottom: 1px solid #e7edf7;
  vertical-align: middle;
}

.entity-detail-table tbody tr:last-child td {
  border-bottom: 0;
}

.entity-detail-table.table-zebra tbody tr:nth-child(even) td {
  background: transparent;
}

.entity-detail-table tbody tr:hover td {
  background: rgba(248, 251, 255, 0.92);
}

.entity-detail-table--share {
  min-width: 640px;
}

.entity-detail-table--reviews {
  min-width: 980px;
}

.entity-detail-table--reviews .review-details summary.review-summary {
  max-width: 420px;
  color: #344767;
  font-size: 0.8rem;
  font-weight: 700;
}

.entity-detail-table--reviews .review-content {
  max-width: 420px;
  font-size: 0.78rem;
  color: #64748b;
}

.entity-detail-table--reviews .source-pill {
  border-radius: 10px;
  border: 1px solid #dbe5f3;
  background: #ffffff;
  padding: 4px 8px;
  box-shadow: 0 0.3125rem 0.625rem 0 rgba(0, 0, 0, 0.08);
}

.entity-detail-table--reviews .source-icon,
.entity-detail-table--reviews .source-logo {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  font-size: 0.62rem;
}

.entity-detail-table--reviews .lang-badges {
  gap: 4px;
}

.entity-detail-table--reviews .lang-pill {
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.66rem;
  border: 1px solid #d8e0f0;
  background: #fff;
  color: #475569;
}

.entity-detail-table--reviews .lang-pill.is-active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #1d4ed8;
}

.entity-detail-table--kv {
  min-width: 0;
}

.entity-detail-table--kv td {
  white-space: normal;
  word-break: break-word;
}

.entity-detail-table--kv .detail-key {
  width: 220px;
  color: #64748b;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entity-detail-table--kv .detail-value {
  color: #334155;
  font-weight: 500;
}

.entity-detail-page .translation-grid {
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.entity-detail-page .translation-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: none;
  padding: 12px 14px;
}

.entity-detail-page .translation-card:hover {
  border-color: #d4deee;
  box-shadow: 0 12px 22px -24px rgba(15, 23, 42, 0.72);
}

@media (max-width: 820px) {
  body.admin-template .review-form-url-grid {
    grid-template-columns: 1fr;
  }

  body.admin-template .review-form-branding-grid {
    grid-template-columns: 1fr;
  }

  body.admin-template .review-form-template-grid {
    grid-template-columns: 1fr;
  }

  .modal-entity-detail .modal-header--entity-detail {
    padding: 16px 16px 14px;
  }

  .entity-detail-frame-wrap {
    padding: 10px;
  }

  .entity-detail-frame {
    min-height: clamp(360px, 66vh, 700px);
    border-radius: 14px;
  }

  .entity-detail-page--modal {
    padding: 10px;
  }

  .entity-detail-page .entity-detail-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .entity-detail-page .entity-detail-hero {
    border-radius: 16px;
  }

  .entity-detail-page .entity-detail-hero .io-like-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .entity-detail-form-grid {
    grid-template-columns: 1fr;
  }

  .entity-detail-inline-form {
    align-items: stretch;
  }

  .entity-detail-inline-field {
    min-width: 100%;
  }

  .entity-detail-table--share {
    min-width: 560px;
  }

  .entity-detail-table--reviews {
    min-width: 860px;
  }
}

@media (max-width: 560px) {
  .entity-detail-page {
    gap: 10px;
  }

  .entity-detail-page--modal {
    padding: 8px;
  }

  .entity-detail-page .entity-detail-hero {
    border-radius: 14px;
  }

  .entity-detail-page .entity-detail-hero .io-like-hero__title {
    font-size: clamp(1.08rem, 5.4vw, 1.3rem);
  }

  .entity-detail-page .entity-detail-hero .io-like-hero__subtitle {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .entity-detail-page .entity-detail-hero .io-like-hero__stats {
    grid-template-columns: 1fr;
  }

  .entity-detail-page .entity-detail-hero .io-like-stat {
    gap: 2px;
    padding: 9px 10px;
  }

  .entity-detail-page .entity-detail-hero .io-like-stat__label {
    font-size: 0.64rem;
  }

  .entity-detail-page .entity-detail-hero .io-like-stat__value {
    font-size: 1.06rem;
    line-height: 1.15;
  }

  .entity-detail-page .entity-detail-hero .io-like-stat__meta {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .entity-detail-page .entity-detail-panel {
    padding: 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .entity-detail-panel__header {
    padding-bottom: 8px;
    gap: 8px 10px;
  }

  .entity-detail-panel__header h2 {
    font-size: 0.96rem;
  }

  .entity-detail-panel__header .note {
    font-size: 0.8rem;
  }

  .entity-detail-page .detail-item {
    padding: 9px 10px;
  }
}

body.admin-template .project-settings-hero.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.96) 56%, rgba(244, 247, 254, 0.94) 100%);
  box-shadow: 0 30px 50px -36px rgba(15, 23, 42, 0.66), 0 16px 28px -20px rgba(15, 23, 42, 0.26);
}

body.admin-template .project-settings-hero.card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -140px;
  top: -178px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(236, 72, 153, 0) 72%);
  pointer-events: none;
}

body.admin-template .project-settings-hero.card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -104px;
  bottom: -148px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0) 74%);
  pointer-events: none;
}

body.admin-template .project-settings-hero .io-like-hero__content,
body.admin-template .project-settings-hero .io-like-hero__stats {
  position: relative;
  z-index: 1;
}

body.admin-template .project-settings-hero .io-like-hero__content {
  gap: 10px;
}

body.admin-template .project-settings-hero .io-like-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
}

body.admin-template .project-settings-hero .io-like-hero__title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  line-height: 1.15;
}

body.admin-template .project-settings-hero .io-like-hero__subtitle {
  margin: 0;
  max-width: 760px;
  color: #64748b;
  font-size: 0.93rem;
  line-height: 1.56;
}

body.admin-template .project-settings-hero .io-like-hero__actions {
  margin-top: 2px;
  gap: 9px;
}

body.admin-template .project-settings-hero .io-like-hero__stats {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

body.admin-template .project-settings-hero .io-like-stat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label icon"
    "value icon"
    "meta icon";
  align-items: start;
  gap: 2px 10px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.84), 0 10px 16px -12px rgba(15, 23, 42, 0.2);
}

body.admin-template .project-settings-hero .io-like-stat::after {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  box-shadow: 0 15px 22px -18px rgba(124, 58, 237, 0.72);
  grid-area: icon;
  align-self: center;
}

body.admin-template .project-settings-hero .io-like-stat:nth-child(2)::after {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 15px 22px -18px rgba(37, 99, 235, 0.72);
}

body.admin-template .project-settings-hero .io-like-stat:nth-child(3)::after {
  background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
  box-shadow: 0 15px 22px -18px rgba(16, 185, 129, 0.72);
}

body.admin-template .project-settings-hero .io-like-stat:nth-child(4)::after {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 15px 22px -18px rgba(245, 158, 11, 0.72);
}

body.admin-template .project-settings-hero .io-like-stat__label {
  grid-area: label;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

body.admin-template .project-settings-hero .io-like-stat__value {
  grid-area: value;
  margin: 0;
  color: #0f172a;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.05;
}

body.admin-template .project-settings-hero .io-like-stat__meta {
  grid-area: meta;
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.3;
}

body.admin-template .project-settings-panel.card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 42px -34px rgba(15, 23, 42, 0.62), 0 12px 18px -16px rgba(15, 23, 42, 0.22);
}

body.admin-template .project-settings-panel .section-header {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

body.admin-template .project-settings-panel .section-header h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

body.admin-template .project-settings-panel .section-header .note {
  margin: 0;
  color: #64748b;
}

body.admin-template .project-settings-form {
  display: grid;
  gap: 14px;
}

body.admin-template .project-settings-name-field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 30px -34px rgba(15, 23, 42, 0.94), 0 10px 16px -14px rgba(15, 23, 42, 0.2);
  color: #0f172a;
  font-weight: 700;
}

body.admin-template .project-settings-name-field input[type="text"] {
  width: 100%;
}

body.admin-template .project-settings-fieldset {
  margin: 0;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #ffffff;
  box-shadow: 0 18px 30px -34px rgba(15, 23, 42, 0.94), 0 10px 16px -14px rgba(15, 23, 42, 0.2);
}

body.admin-template .project-settings-fieldset legend {
  font-weight: 700;
  color: #0f172a;
  padding: 0 6px;
}

body.admin-template .project-settings-fieldset .note {
  margin: 0;
  color: #64748b;
}

body.admin-template .project-settings-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  box-shadow: 0 14px 26px -30px rgba(15, 23, 42, 0.9), 0 8px 12px -10px rgba(15, 23, 42, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.admin-template .project-settings-choice:hover {
  border-color: rgba(124, 58, 237, 0.34);
  background: #ffffff;
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.86), 0 10px 16px -12px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

body.admin-template .project-settings-choice:focus-within {
  outline: 3px solid rgba(124, 58, 237, 0.22);
  outline-offset: 2px;
}

body.admin-template .project-settings-choice input[type="radio"] {
  accent-color: #7c3aed;
}

body.admin-template .project-settings-choice span {
  color: #334155;
  font-weight: 650;
}

body.admin-template .project-settings-choice input[type="radio"]:checked + span {
  color: #0f172a;
}

@media (max-width: 1120px) {
  body.admin-template .project-settings-hero .io-like-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.admin-template .project-settings-hero .io-like-hero__stats {
    grid-template-columns: 1fr;
  }

  body.admin-template .project-settings-choice {
    align-items: flex-start;
  }
}

/* Cookie consent banner */
body.has-cookie-consent-banner {
  padding-bottom: max(178px, var(--cookie-consent-offset, 0px));
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: transparent;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.cookie-consent__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px 18px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.96) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.12);
  pointer-events: auto;
}

.cookie-consent__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cookie-consent__title {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cookie-consent__text {
  margin: 0;
  color: #334155;
  font-size: 0.87rem;
  line-height: 1.4;
}

.cookie-consent__text a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-consent__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.cookie-consent__list-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.cookie-consent__pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #ffffff;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cookie-consent__pill-required {
  border-color: rgba(29, 78, 216, 0.35);
  color: #1e3a8a;
  background: rgba(219, 234, 254, 0.55);
}

.cookie-consent__list-text {
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.35;
}

.cookie-consent__actions {
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: end;
  min-width: 264px;
}

.cookie-consent__actions-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
}

.cookie-consent__actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.cookie-consent__btn {
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.cookie-consent__btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.cookie-consent__btn-secondary:hover {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.55);
}

.cookie-consent__btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border: 1px solid rgba(30, 64, 175, 0.35);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}

.cookie-consent__btn-primary:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

@media (max-width: 860px) {
  body.has-cookie-consent-banner {
    padding-bottom: max(232px, var(--cookie-consent-offset, 0px));
  }

  .cookie-consent {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent__inner {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .cookie-consent__actions {
    width: 100%;
    justify-items: start;
    min-width: 0;
  }

  .cookie-consent__actions-row {
    justify-content: flex-start;
  }

  .cookie-consent__btn {
    flex: 1 1 180px;
  }
}



/* Widget v2 editor + playground */
body.admin-template .widget-editor-page,
body.admin-template .widget-playground-page {
  padding: 20px;
  border: 1px solid rgba(191, 211, 238, 0.72);
  background:
    radial-gradient(circle at 90% 6%, rgba(191, 219, 254, 0.32) 0%, rgba(191, 219, 254, 0) 38%),
    linear-gradient(160deg, #ffffff 0%, #f8fbff 48%, #f3f8ff 100%);
}

body.admin-template .widget-editor-grid,
body.admin-template .widget-playground-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

body.admin-template .widget-editor-form,
body.admin-template .widget-playground-controls {
  display: grid;
  gap: 14px;
  align-content: start;
}

body.admin-template .widget-settings-form {
  display: grid;
  gap: 14px;
}

body.admin-template .widget-settings-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(193, 210, 233, 0.72);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

body.admin-template .widget-settings-section--compact {
  padding: 13px;
}

body.admin-template .widget-settings-section__head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

body.admin-template .widget-settings-section__head h4,
body.admin-template .widget-settings-section__head h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.01em;
}

body.admin-template .widget-settings-section__head .note {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.45;
  color: #64748b;
}

body.admin-template .widget-settings-section__hint {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.77rem;
  color: #475569;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.6);
}

body.admin-template .widget-fixture-context {
  display: grid;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88) 0%, rgba(241, 245, 249, 0.7) 100%);
}

body.admin-template .widget-fixture-context__title {
  font-size: 0.83rem;
  color: #0f172a;
  letter-spacing: 0.01em;
}

body.admin-template .widget-fixture-context__description {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
}

body.admin-template .widget-fixture-context__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.admin-template .widget-fixture-context__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0c4a6e;
  border: 1px solid rgba(14, 116, 144, 0.22);
  background: rgba(224, 242, 254, 0.82);
}

body.admin-template .widget-form-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-template .widget-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.admin-template .widget-form-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.admin-template .widget-form-grid--dense {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.admin-template .widget-field {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

body.admin-template .widget-field > input[type="text"],
body.admin-template .widget-field > input[type="url"],
body.admin-template .widget-field > input[type="number"],
body.admin-template .widget-field > select,
body.admin-template .widget-field > textarea,
body.admin-template .widget-settings-form input[type="text"],
body.admin-template .widget-settings-form input[type="url"],
body.admin-template .widget-settings-form input[type="number"],
body.admin-template .widget-settings-form select,
body.admin-template .widget-settings-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(191, 211, 238, 0.95);
  background: #fff;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.admin-template .widget-field > input:focus,
body.admin-template .widget-field > select:focus,
body.admin-template .widget-field > textarea:focus,
body.admin-template .widget-settings-form input:focus,
body.admin-template .widget-settings-form select:focus,
body.admin-template .widget-settings-form textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

body.admin-template .widget-settings-form input:disabled,
body.admin-template .widget-settings-form select:disabled,
body.admin-template .widget-settings-form textarea:disabled {
  color: #94a3b8;
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 0.9);
  cursor: not-allowed;
}

body.admin-template .widget-field--color {
  grid-template-columns: 1fr;
}

body.admin-template .widget-field--color > input[type="color"],
body.admin-template .widget-settings-form input[type="color"] {
  width: 100%;
  min-height: 42px;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid rgba(191, 211, 238, 0.95);
  background: #fff;
  cursor: pointer;
}

body.admin-template .widget-toggle-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

body.admin-template .widget-settings-form .toggle {
  width: 100%;
  min-height: 44px;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(191, 211, 238, 0.9);
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: none;
}

body.admin-template .widget-settings-form .toggle:hover {
  border-color: rgba(148, 163, 184, 0.8);
  background: #f1f7ff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

body.admin-template .widget-settings-form .toggle-text {
  font-size: 0.82rem;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.35;
}

body.admin-template .widget-editor-source-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.admin-template .widget-editor-source-toggles .toggle-pill {
  border-radius: 999px;
  border: 1px solid rgba(191, 211, 238, 0.95);
  background: #f8fbff;
  padding: 2px;
}

body.admin-template .widget-editor-source-toggles .toggle-pill input[type="checkbox"] {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

body.admin-template .widget-settings-actions {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

body.admin-template .widget-editor-preview,
body.admin-template .widget-playground-preview {
  position: sticky;
  top: 16px;
  align-self: start;
  border: 1px solid rgba(191, 211, 238, 0.78);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.32), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  padding: 14px;
  display: grid;
  gap: 10px;
}

body.admin-template .widget-preview-head {
  display: grid;
  gap: 4px;
}

body.admin-template .widget-preview-head h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
}

body.admin-template .widget-preview-head .note {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

body.admin-template .widget-editor-preview__canvas,
body.admin-template .widget-playground-preview__canvas {
  border: 1px solid rgba(177, 198, 227, 0.84);
  border-radius: 14px;
  background: #f8fbff;
  min-height: 440px;
  padding: 10px;
}

body.admin-template .widget-playground-controls {
  display: grid;
  gap: 12px;
}

body.admin-template .widget-settings-footnote {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
}

@media (max-width: 1360px) {
  body.admin-template .widget-form-grid--four,
  body.admin-template .widget-form-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  body.admin-template .widget-editor-grid,
  body.admin-template .widget-playground-grid {
    grid-template-columns: 1fr;
  }

  body.admin-template .widget-editor-preview,
  body.admin-template .widget-playground-preview {
    position: static;
  }

  body.admin-template .widget-editor-preview__canvas,
  body.admin-template .widget-playground-preview__canvas {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  body.admin-template .widget-form-grid,
  body.admin-template .widget-form-grid--three,
  body.admin-template .widget-form-grid--four,
  body.admin-template .widget-form-grid--dense {
    grid-template-columns: 1fr;
  }

  body.admin-template .widget-toggle-grid {
    grid-template-columns: 1fr;
  }
}
