/* ─────────────────────────────────────────────────────────────────────────
   Integra PYC — Design System v2.0
   Tema profesional claro — para contadores y empresas colombianas
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Fondos */
  --bg-page:             #EEF1F6;
  --bg-surface:          #FFFFFF;
  --bg-surface-elevated: #F8F9FC;
  --bg-surface-hover:    #F0F3F8;

  /* Bordes */
  --border-subtle:       #E2E7F0;
  --border-strong:       #C8D0DC;

  /* Acento principal — azul corporativo */
  --blue:                #0B5ED7;
  --blue-dim:            #0950BB;
  --blue-light:          #EAF1FF;
  --blue-glow:           rgba(11, 94, 215, 0.14);

  /* Sidebar */
  --sidebar-bg:          #18294A;
  --sidebar-hover:       rgba(255,255,255,0.07);
  --sidebar-active:      rgba(255,255,255,0.14);
  --sidebar-border:      rgba(255,255,255,0.08);
  --sidebar-text:        #A8BDD8;
  --sidebar-text-active: #FFFFFF;

  /* Colores semánticos */
  --teal:                #0097A7;
  --gold:                #D4880A;
  --gold-dim:            rgba(212, 136, 10, 0.12);

  --danger:              #C5313E;
  --danger-dim:          rgba(197, 49, 62, 0.09);
  --success:             #1A9150;
  --success-dim:         rgba(26, 145, 80, 0.09);
  --warning:             #D4880A;
  --warning-dim:         rgba(212, 136, 10, 0.10);

  /* Texto */
  --text-primary:        #1A2233;
  --text-secondary:      #4A5A72;
  --text-tertiary:       #8492A8;

  /* Tipografía */
  --font-ui:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', 'SFMono-Regular', monospace;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
}

/* ═══════════════════════════════════════════════════════ RESET */

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

input, textarea, select { font-family: inherit; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--blue); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ═══════════════════════════════════════════════════════ LAYOUT */

.app-shell {
  display: grid;
  grid-template-columns: 224px 1fr;
  height: 100vh;
}

/* ─── Sidebar ─── */

.sidebar {
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 22px 8px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 16px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-size: 15px; font-weight: 700; color: #FFFFFF; letter-spacing: 0.1px; }
.brand-sub   { font-size: 10.5px; color: var(--sidebar-text); letter-spacing: 0.2px; margin-top: 1px; }

.nav { display: flex; flex-direction: column; gap: 1px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
  cursor: pointer;
  user-select: none;
}

.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); }

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
  font-weight: 600;
}

.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }

.nav-divider {
  height: 1px;
  background: var(--sidebar-border);
  margin: 10px 4px;
}

.nav-section-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--sidebar-text);
  opacity: 0.55;
  padding: 4px 12px 4px 12px;
  margin-top: 8px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 8px 4px 8px;
  border-top: 1px solid var(--sidebar-border);
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 20px;
  padding-right: 20px;
}

.session-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--sidebar-text);
  margin-bottom: 6px;
  overflow: hidden;
}

.session-pill span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.on  { background: var(--success); box-shadow: 0 0 0 3px var(--success-dim); }
.dot.off { background: var(--sidebar-text); }

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { font-size: 10.5px; color: var(--sidebar-text); opacity: 0.5; }

.btn-logout-link {
  font-size: 11.5px;
  color: var(--sidebar-text);
  opacity: 0.65;
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  transition: opacity 0.12s;
}
.btn-logout-link:hover { opacity: 1; color: #fff; }

/* ─── Main ─── */

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  z-index: 10;
}

.topbar-left { display: flex; flex-direction: column; }
.topbar-title    { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.topbar-subtitle { font-size: 12px; color: var(--text-tertiary); margin-top: 1px; }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px 28px;
}

.screen { display: none; animation: fadein 0.15s ease; }
.screen.active { display: block; }

@keyframes fadein { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════ COMPONENTS */

/* ─── Cards ─── */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.card + .card { margin-top: 16px; }

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 3px 0;
}

.card-desc {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin: 0 0 16px 0;
  line-height: 1.55;
}

/* ─── Stats ─── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.stat-value.blue    { color: var(--blue); }
.stat-value.gold    { color: var(--gold); }
.stat-value.teal    { color: var(--teal); }
.stat-value.danger  { color: var(--danger); }
.stat-value.success { color: var(--success); }

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active  { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
}
.btn-primary:hover:not(:disabled) { background: var(--blue-dim); border-color: var(--blue-dim); }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn-ghost:hover:not(:disabled) { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) { background: var(--danger-dim); }

.btn-sm { padding: 6px 11px; font-size: 12px; }

/* ─── Forms ─── */

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  letter-spacing: 0.1px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.field input::placeholder { color: var(--text-tertiary); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.path-picker { display: flex; gap: 8px; }
.path-picker input { flex: 1; font-family: var(--font-mono); font-size: 12px; }

/* ─── Toggle switch ─── */

.toggle-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px 0; }

.switch {
  width: 36px; height: 20px;
  border-radius: 10px;
  background: var(--border-strong);
  position: relative;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.switch.on { background: var(--blue); }

.switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch.on::after { transform: translateX(16px); }

/* ─── Table ─── */

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-primary);
}

tbody tr:hover { background: var(--bg-surface-hover); }
tbody tr:last-child td { border-bottom: none; }

.mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-secondary); }

/* ─── Badges ─── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.badge.success { background: var(--success-dim); color: var(--success); }
.badge.danger  { background: var(--danger-dim); color: var(--danger); }
.badge.warning { background: var(--warning-dim); color: var(--warning); }
.badge.neutral { background: var(--bg-surface-elevated); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.badge.blue    { background: var(--blue-light); color: var(--blue); }

/* ─── Progress ─── */

.progress-track {
  height: 6px;
  background: var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-dim), var(--blue));
  transition: width 0.25s ease;
  border-radius: 999px;
}

/* ─── Log console ─── */

.console {
  background: #1A2233;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #A8BDD8;
  max-height: 340px;
  overflow-y: auto;
  line-height: 1.7;
}

.console .line { white-space: pre-wrap; word-break: break-word; }
.console .line.ok   { color: #4CC98A; }
.console .line.err  { color: #FF6B76; }
.console .line.warn { color: #F5C842; }

/* ─── Empty state ─── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 20px;
  color: var(--text-tertiary);
  text-align: center;
}

.empty-state svg { width: 42px; height: 42px; margin-bottom: 14px; opacity: 0.4; }
.empty-state-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.empty-state-desc  { font-size: 12.5px; max-width: 340px; line-height: 1.55; }

/* ═══════════════════════════════════════════════════════ DASHBOARD HERO */

.flow-hero {
  background: linear-gradient(135deg, #EAF1FF 0%, #F0F4FF 100%);
  border: 1px solid #C6D8FF;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.flow-hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(11,94,215,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.flow-hero-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0 0 2px 0; }
.flow-hero-sub   { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 24px 0; }

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 140px;
}

.flow-node-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  font-size: 19px;
  box-shadow: var(--shadow-sm);
}

.flow-node.center .flow-node-icon {
  background: var(--blue);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(11,94,215,0.35);
  font-size: 15px;
  letter-spacing: -0.5px;
}

.flow-node-label { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.flow-node-sub   { font-size: 10.5px; color: var(--text-tertiary); }

.flow-line {
  flex: 1;
  height: 2px;
  background: var(--border-strong);
  position: relative;
  margin: 0 -4px;
  top: -18px;
  min-width: 60px;
}

.flow-line::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px 2px var(--blue-glow);
  animation: travel 3s linear infinite;
}

.flow-line.a::after { animation-delay: 0s; }
.flow-line.b::after { animation-delay: 1.5s; }

@keyframes travel {
  0%   { left: -4px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(100% - 4px); opacity: 0; }
}

/* ─── Quick actions ─── */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.08s;
  box-shadow: var(--shadow-sm);
}

.quick-action:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 10px var(--blue-glow);
  transform: translateY(-1px);
}

.quick-action-icon { font-size: 20px; margin-bottom: 8px; }
.quick-action-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; color: var(--text-primary); }
.quick-action-desc  { font-size: 12px; color: var(--text-tertiary); line-height: 1.45; }

/* ─── Toast ─── */

.toast-stack {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  animation: toastin 0.18s ease;
  max-width: 340px;
  color: var(--text-primary);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }

@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Helpers ─── */

.hint { font-size: 11.5px; color: var(--text-tertiary); margin-top: 6px; line-height: 1.5; }
.section-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 20px 0 12px 0; }
.section-title:first-child { margin-top: 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ═══════════════════════════════════════════════════════ AUTH / LOGIN */

.auth-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #EAF1FF 0%, #F4F7FE 50%, #EEF1F6 100%);
  overflow: auto;
}

.auth-card {
  width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 36px 32px 36px;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-brand .brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  font-size: 20px;
}

.auth-brand-title { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.auth-brand-sub   { font-size: 12px; color: var(--text-tertiary); }

.auth-error {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(197, 49, 62, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 14px;
  display: none;
}
.auth-error.show { display: block; }

.auth-success {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(26, 145, 80, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  margin-bottom: 14px;
  display: none;
}
.auth-success.show { display: block; }

.auth-divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
  color: var(--text-tertiary);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-subtle);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.auth-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ─── Company picker ─── */

.company-picker-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  padding: 20px;
  overflow-y: auto;
}

.company-picker-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.company-picker-sub   { font-size: 13px; color: var(--text-tertiary); margin-bottom: 28px; }

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 760px;
}

.company-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.08s;
  box-shadow: var(--shadow-sm);
}

.company-card:hover {
  border-color: var(--blue);
  box-shadow: 0 3px 12px var(--blue-glow);
  transform: translateY(-1px);
}

.company-card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  font-size: 15px;
}

.company-card-name { font-weight: 700; font-size: 13.5px; margin-bottom: 3px; color: var(--text-primary); }
.company-card-nit  { font-size: 11.5px; color: var(--text-tertiary); font-family: var(--font-mono); }

.company-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--sidebar-hover);
  border: 1px solid var(--sidebar-border);
  cursor: pointer;
  font-size: 12.5px;
  color: var(--sidebar-text-active);
  margin-bottom: 14px;
  transition: background 0.12s;
}

.company-switcher:hover { background: rgba(255,255,255,0.12); }

/* ─── Dropzone ─── */

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  background: var(--bg-surface-elevated);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.dropzone-icon  { font-size: 26px; margin-bottom: 8px; opacity: 0.7; }
.dropzone-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.dropzone-desc  { font-size: 11.5px; color: var(--text-tertiary); }
.dropzone input[type="file"] { display: none; }
.dropzone-filename { margin-top: 10px; font-size: 12px; font-family: var(--font-mono); color: var(--blue); font-weight: 600; }

/* ─── Spinner ─── */

.spinner {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  display: inline-block;
  animation: spin 0.75s linear infinite;
}

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

/* ─── Integration badge ─── */

.integration-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.integration-tag.active { background: var(--success-dim); color: var(--success); border-color: rgba(26,145,80,0.2); }

/* ─── Subscription banner ─── */

.subscription-banner {
  background: linear-gradient(135deg, #FFF8E6 0%, #FFF3D0 100%);
  border: 1px solid #F5D470;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--text-primary);
}

.subscription-banner strong { color: var(--gold); }
.subscription-banner.expired {
  background: var(--danger-dim);
  border-color: rgba(197,49,62,0.25);
}
