/* ==========================================================================
   Herramienta: Detector y limpiador de marcas de agua invisibles de IA
   Fijate Tools - Estilos corporativos y componentes específicos
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta Dark First (Midnight Slate) */
  --bg-page: #0b0f17;
  --bg-card: #111827;
  --bg-card-subtle: #1e293b;
  --bg-card-hover: #1f2937;
  --bg-input: #0f172a;

  --border-color: #334155;
  --border-color-subtle: #1e293b;
  --border-focus: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --accent-primary: #3b82f6;
  --accent-primary-hover: #2563eb;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;

  --badge-zwsp-bg: rgba(139, 92, 246, 0.2);
  --badge-zwsp-text: #c084fc;
  --badge-zwsp-border: #8b5cf6;

  --badge-bidi-bg: rgba(239, 68, 68, 0.2);
  --badge-bidi-text: #fca5a5;
  --badge-bidi-border: #ef4444;

  --badge-tag-bg: rgba(245, 158, 11, 0.2);
  --badge-tag-text: #fcd34d;
  --badge-tag-border: #f59e0b;

  --badge-vs-bg: rgba(16, 185, 129, 0.2);
  --badge-vs-text: #6ee7b7;
  --badge-vs-border: #10b981;

  --badge-ctrl-bg: rgba(236, 72, 153, 0.2);
  --badge-ctrl-text: #f472b6;
  --badge-ctrl-border: #ec4899;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.15s ease;
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #e2e8f0;
  --bg-input: #ffffff;

  --border-color: #cbd5e1;
  --border-color-subtle: #e2e8f0;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-success: #059669;
  --accent-warning: #d97706;
  --accent-danger: #dc2626;
  --accent-purple: #7c3aed;
  --accent-cyan: #0891b2;

  --badge-zwsp-bg: #f3e8ff;
  --badge-zwsp-text: #6b21a8;
  --badge-zwsp-border: #d8b4fe;

  --badge-bidi-bg: #fee2e2;
  --badge-bidi-text: #991b1b;
  --badge-bidi-border: #fca5a5;

  --badge-tag-bg: #fef3c7;
  --badge-tag-text: #92400e;
  --badge-tag-border: #fde68a;

  --badge-vs-bg: #d1fae5;
  --badge-vs-text: #065f46;
  --badge-vs-border: #a7f3d0;

  --badge-ctrl-bg: #fce7f3;
  --badge-ctrl-text: #9d174d;
  --badge-ctrl-border: #fbcfe8;

  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.06);
}

/* Base y tipografía */
body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.card-header-title {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-top: 0;
}

.mono,
code,
.code-font {
  font-family: var(--font-mono);
}

/* Layout canónico */
.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
  width: 100%;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Tarjeta principal */
.card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

/* Cabecera introductoria */
.tool-hero-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.tool-hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-hero-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Barra de presets y acciones rápidas */
.presets-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.presets-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.btn-preset {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn-preset:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-preset-danger {
  margin-left: auto;
  color: var(--accent-danger);
}

.btn-preset-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--accent-danger);
  color: var(--accent-danger);
}

/* Área de entrada */
.editor-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.editor-box {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.editor-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.editor-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8125rem;
}

.editor-title {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.editor-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.editor-meta span {
  font-family: var(--font-mono);
}

.text-input-area {
  width: 100%;
  box-sizing: border-box;
  min-height: 180px;
  max-height: 480px;
  padding: 1rem;
  background: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.6;
  border: none;
  resize: vertical;
  outline: none;
}

.text-input-area::placeholder {
  color: var(--text-subtle);
  font-family: var(--font-main);
}

.dropzone-hint {
  padding: 0.4rem 1rem;
  background: var(--bg-card-subtle);
  border-top: 1px dashed var(--border-color);
  font-size: 0.75rem;
  color: var(--text-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-upload-link {
  color: var(--accent-primary);
  cursor: pointer;
  text-decoration: underline;
}

/* Tarjeta de diagnóstico y semáforo */
.telemetry-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.telemetry-card.status-clean {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.03) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.telemetry-card.status-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.03) 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.telemetry-card.status-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.03) 100%);
  border-color: rgba(239, 68, 68, 0.4);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.telemetry-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
}

.status-clean .telemetry-status-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.status-warning .telemetry-status-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-danger .telemetry-status-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.telemetry-status-badge svg {
  flex-shrink: 0;
}

.telemetry-summary-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Rejilla de métricas KPIs por tipo */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.kpi-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}

.kpi-count {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
}

.kpi-item.has-findings .kpi-count {
  color: var(--accent-warning);
}

.kpi-item.has-critical .kpi-count {
  color: var(--accent-danger);
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Tarjeta de mensaje oculto esteganográfico */
.stego-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.stego-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.stego-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #c084fc;
  margin: 0;
}

.stego-content-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text-main);
  word-break: break-all;
  white-space: pre-wrap;
  margin-top: 0.5rem;
  user-select: all;
}

.stego-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Visor interactivo y tabs */
.viewer-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.viewer-tabs {
  display: flex;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 0 0.5rem;
  gap: 0.25rem;
}

.viewer-tab-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.viewer-tab-btn:hover {
  color: var(--text-main);
}

.viewer-tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.viewer-body {
  padding: 1.25rem;
  min-height: 180px;
  max-height: 480px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.8;
  background: var(--bg-input);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Insignias visuales de caracteres invisibles en el texto */
.char-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.35rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 4px;
  margin: 0 1px;
  cursor: pointer;
  user-select: none;
  vertical-align: baseline;
  transition: transform var(--transition-fast);
}

.char-tag:hover {
  transform: translateY(-1px) scale(1.05);
}

.char-tag.tag-zwsp {
  background: var(--badge-zwsp-bg);
  color: var(--badge-zwsp-text);
  border: 1px solid var(--badge-zwsp-border);
}

.char-tag.tag-bidi {
  background: var(--badge-bidi-bg);
  color: var(--badge-bidi-text);
  border: 1px solid var(--badge-bidi-border);
}

.char-tag.tag-tag {
  background: var(--badge-tag-bg);
  color: var(--badge-tag-text);
  border: 1px solid var(--badge-tag-border);
}

.char-tag.tag-vs {
  background: var(--badge-vs-bg);
  color: var(--badge-vs-text);
  border: 1px solid var(--badge-vs-border);
}

.char-tag.tag-ctrl {
  background: var(--badge-ctrl-bg);
  color: var(--badge-ctrl-text);
  border: 1px solid var(--badge-ctrl-border);
}

/* Lista desglosada de ocurrencias */
.occurrences-table-wrap {
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.occurrences-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}

.occurrences-table th {
  background: var(--bg-card-subtle);
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.occurrences-table td {
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--border-color-subtle);
  color: var(--text-main);
}

.occurrences-table tr:last-child td {
  border-bottom: none;
}

/* Opciones de limpieza granular */
.options-panel {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.options-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.option-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
}

.option-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.option-help {
  display: block;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Botonera de acción principal */
.actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-primary-action {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary-action:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary-action {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-secondary-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
}

/* Salida de texto limpio */
.output-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}

.output-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
}

.output-title {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--accent-success);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.output-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-mini {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}

.btn-mini:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.output-text-area {
  width: 100%;
  box-sizing: border-box;
  min-height: 160px;
  max-height: 480px;
  padding: 1rem;
  background: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.6;
  border: none;
  resize: vertical;
  outline: none;
}

/* Guía técnica y acordeones FAQ */
.seo-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.seo-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.faq-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-primary);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border-color-subtle);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}

.faq-answer p {
  margin: 0.5rem 0;
}

/* Modal corporativo accesible */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.app-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.app-modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.app-modal-overlay.active .app-modal-container {
  transform: scale(1);
}

.app-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
}

.app-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.app-modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.app-modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.app-modal-content {
  padding: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.app-modal-footer {
  padding: 0.75rem 1.25rem;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Tabla de referencia técnica */
.reference-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.reference-table th,
.reference-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-color-subtle);
}

.reference-table th {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-weight: 600;
}

.reference-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-primary);
}

/* Responsividad en móvil */
@media (max-width: 768px) {
  .tool-layout {
    padding: 0 0.75rem;
    margin: 1rem auto 2rem;
  }

  .card-main,
  .seo-section {
    padding: 1.25rem 1rem;
  }

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

  .btn-preset-danger {
    margin-left: 0;
  }

  .actions-bar {
    flex-direction: column;
  }

  .btn-primary-action,
  .btn-secondary-action {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editor-meta {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-end;
  }
}