:root {
  --bg: #f3ede4;
  --bg-alt: #ebe4d8;
  --bg-elevated: #faf7f2;
  --card: #faf7f2;
  --card-hover: #fffdf9;
  --btn: #f0ebe3;
  --btn-hover: #e6dfd4;
  --text: #3d3832;
  --text-strong: #2a2622;
  --muted: #7a7268;
  --border: #ddd4c8;
  --border-soft: #e8e1d6;
  --accent: #5b6b4f;
  --accent-hover: #4a5842;
  --accent-soft: #e4ebe0;
  --accent-warm: #a67c52;
  --accent-warm-soft: #f0e6dc;
  --danger: #b54a4a;
  --danger-soft: #f8e8e8;
  --ok: #4a7c59;
  --ok-soft: #e6f0ea;
  --warn: #b8860b;
  --shadow: 0 2px 8px rgba(61, 56, 50, 0.06), 0 8px 24px rgba(61, 56, 50, 0.05);
  --shadow-lg: 0 12px 40px rgba(61, 56, 50, 0.1);
  --radius: 14px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

button {
  font-family: inherit;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
}

code {
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.hidden { display: none !important; }

.screen { min-height: 100vh; }

/* --- Landing header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-logo {
  height: 5rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo--auth {
  height: 8.5rem;
  max-width: 20rem;
  margin: 0 auto 1.25rem;
}

.brand-logo--topbar {
  height: 4.25rem;
  max-width: 14rem;
}

.brand strong { color: var(--accent); font-weight: 700; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
  padding: 3rem 2rem 4rem;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--accent-warm-soft);
  color: var(--accent-warm);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: var(--text-strong);
  font-weight: 700;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-trust li::before {
  content: "●";
  color: var(--accent);
  margin-right: 0.4rem;
  font-size: 0.5rem;
  vertical-align: middle;
}

/* --- Sections --- */
.section {
  padding: 4rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  color: var(--text-strong);
  text-align: center;
  font-weight: 700;
}

.section-lead {
  margin: 0 auto 2.5rem;
  max-width: 520px;
  text-align: center;
  color: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

#servico .section-inner {
  max-width: 1320px;
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--card-hover);
}

.feature-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text-strong);
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  background: var(--card-hover);
}

.price-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-card h3 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--text-strong);
}

.price-amount {
  margin: 0 0 0.5rem;
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-strong);
}

.price-period {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.plan-pricing {
  margin: 0 0 1rem;
}

.plan-price-line {
  margin: 0;
}

.plan-price-line-annual {
  margin-bottom: 0.65rem;
}

.plan-price-line-annual .plan-savings {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ok);
}

.plan-price-divider {
  margin: 0.35rem 0;
  text-align: left;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1;
}

.plan-billing-toggle {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
  justify-content: center;
}

.price-vat-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-vat-breakdown {
  margin: 0.5rem 0 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.82rem;
}

.plan-vat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0;
  color: var(--muted);
}

.plan-vat-total {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  color: var(--text);
}

.plan-vat-breakdown.hidden {
  display: none;
}

.plan-billing-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.plan-billing-option input {
  margin: 0;
  accent-color: var(--accent);
}

.plan-billing-option:has(input:checked) {
  color: var(--accent);
  font-weight: 600;
}

.price-desc {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.price-card ul {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.15rem;
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
}

.btn-block { width: 100%; text-align: center; }

.price-card-current {
  border-color: var(--ok);
  box-shadow: 0 0 0 1px var(--ok-soft);
}

.plan-current-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.plan-btn-current {
  opacity: 0.85;
  cursor: default;
}

.subscriptions-current {
  margin: -0.25rem 0 1.25rem;
  font-size: 0.9rem;
}

/* --- CTA band --- */
.cta-band {
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, #6d8260 100%);
  color: #fff;
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #fff;
}

.cta-inner p {
  margin: 0 0 1.5rem;
  opacity: 0.9;
}

.cta-band .btn.primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.cta-band .btn.primary:hover {
  background: var(--bg-elevated);
  border-color: var(--bg-elevated);
}

.site-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border-soft);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.65rem;
}

.site-footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}

.legal-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.legal-consent a,
.auth-form-legal-line a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-consent a:hover,
.auth-form-legal-line a:hover {
  text-decoration: underline;
}

.privacy-notice {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--accent-warm-soft);
  border: 1px solid #e8d4c0;
  border-radius: 10px;
}

.privacy-notice a {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.legal-public-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.legal-panel {
  max-height: none;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.legal-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.legal-tab:hover {
  background: var(--btn);
  color: var(--text);
}

.legal-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.legal-prose {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-prose h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.legal-prose h3:first-child {
  margin-top: 0;
}

.legal-prose p,
.legal-prose li {
  margin: 0 0 0.65rem;
}

.legal-prose ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.legal-prose a {
  color: var(--accent);
  font-weight: 500;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.82rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border-soft);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
}

.legal-version {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

/* --- Auth --- */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.btn-back {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.auth-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

h1 { margin: 0 0 0.5rem; font-size: 1.5rem; color: var(--text-strong); }
h2 { margin: 0 0 1rem; font-size: 1.1rem; color: var(--text-strong); }
h3 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--text); }
.subtitle { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.25rem; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.tab {
  flex: 1;
  padding: 0.55rem;
  background: var(--btn);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tab:hover { background: var(--btn-hover); color: var(--text); }
.tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.auth-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.auth-form input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:hover:not(:disabled) {
  background: var(--btn-hover);
  border-color: #cfc6b8;
}
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
.btn.ghost:hover:not(:disabled) {
  background: var(--btn);
  color: var(--text);
}
.btn.danger {
  border-color: #e8c4c4;
  color: var(--danger);
  background: var(--danger-soft);
}
.btn.danger:hover:not(:disabled) {
  background: #f5dede;
  border-color: #ddb8b8;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.jobs-header h2 { margin: 0; }

.error { color: var(--danger); font-size: 0.85rem; margin-top: 0.75rem; }
.success { color: #0d7a4a; font-size: 0.85rem; margin-top: 0.75rem; }
.auth-verify-pending { margin-top: 1rem; }
.auth-verify-pending label { display: block; margin-top: 0.75rem; font-size: 0.9rem; }
.auth-verify-pending input { width: 100%; margin-top: 0.35rem; padding: 0.55rem 0.65rem; border-radius: 8px; border: 1px solid var(--border); }
.auth-verify-pending .btn { margin-top: 0.65rem; margin-right: 0.5rem; }
.auth-notice { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.auth-form-legal-line {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
  color: var(--text);
}

.auth-form-back {
  margin-top: 0.5rem;
}

.password-change-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 28rem;
}
.auth-dev-link { font-size: 0.8rem; word-break: break-all; margin: 0.75rem 0; padding: 0.65rem; background: var(--surface-2); border-radius: 8px; }
.auth-dev-link a { color: var(--accent); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.topbar-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* --- Dashboard layout --- */
.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.dash-nav {
  padding: 1rem 0.75rem;
  position: sticky;
  top: 1rem;
}

.dash-nav-title {
  margin: 0 0 0.75rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.25rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dash-nav-item:hover {
  background: var(--btn);
  color: var(--text);
}

.dash-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.dash-nav-icon {
  font-size: 0.95rem;
  opacity: 0.85;
  width: 1.25rem;
  text-align: center;
}

.dash-readiness {
  margin-top: 1.25rem;
  padding: 0.85rem 0.75rem 0;
  border-top: 1px solid var(--border-soft);
}

.dash-readiness-title {
  margin: 0 0 0.6rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dash-readiness-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-readiness-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.dash-readiness-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--muted);
}

.dash-readiness-item.is-ok {
  color: var(--ok);
}

.dash-readiness-item.is-ok .dash-readiness-dot {
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--ok-soft);
}

.dash-readiness-item.is-missing {
  color: var(--warn);
}

.dash-readiness-item.is-missing .dash-readiness-dot {
  background: var(--warn);
  box-shadow: 0 0 0 2px #f5ecd4;
}

.dash-setup-hint {
  margin: 0.65rem 0.5rem 0;
  padding: 0.65rem 0.75rem;
  background: var(--accent-warm-soft);
  border: 1px solid #e8d4c0;
  border-radius: 10px;
  font-size: 0.8rem;
}

.dash-setup-hint-text {
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.4;
}

.dash-setup-link {
  display: inline-block;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.dash-setup-link:hover {
  color: var(--accent-hover);
}

.setup-alert {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--accent-warm-soft);
  border: 1px solid #e8d4c0;
  border-radius: var(--radius);
}

.setup-alert-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-strong);
}

.setup-alert-text {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.setup-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-main { min-width: 0; }

.dash-view { animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-intro { margin: -0.5rem 0 1.25rem; max-width: 640px; }

.excel-upload-box {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 1.5rem;
}

.btn-row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.excel-get-status-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.excel-get-layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.45rem 0.85rem;
  align-items: center;
  max-width: 100%;
}

#excel-get-btn {
  grid-column: 1;
  grid-row: 1;
}

.excel-get-loading {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(100%, 28rem);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.excel-get-progress-wrap {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  min-width: 0;
}

.excel-get-progress {
  width: 100%;
}

.excel-get-progress-track {
  height: 8px;
  width: 100%;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.excel-get-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #6d8260 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.excel-get-progress-pct {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.excel-get-spinner {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: excel-get-spin 0.75s linear infinite;
}

@keyframes excel-get-spin {
  to { transform: rotate(360deg); }
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guide-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
}

.guide-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.guide-card p { margin: 0 0 0.5rem; font-size: 0.88rem; color: var(--muted); }

.guide-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text);
}

.guide-cols {
  font-size: 0.8rem !important;
  line-height: 1.5;
  background: var(--card);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.guide-note {
  font-size: 0.8rem !important;
  font-style: italic;
  margin-top: 0.65rem !important;
}

.guide-tips ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.65;
}

.panel-inset {
  background: var(--accent-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.panel-inset h3 { margin: 0 0 0.65rem; font-size: 0.95rem; color: var(--accent); }

.profile-grid {
  display: grid;
  gap: 1rem;
}

.profile-grid-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid-bottom {
  margin-top: 1rem;
  grid-template-columns: 1fr;
}

.profile-form {
  margin-bottom: 0;
}

.profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.profile-save-msg {
  margin: 0;
  font-size: 0.88rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}

.profile-field > span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.82rem;
}

.profile-field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.profile-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.profile-field input:read-only {
  background: var(--bg);
  color: var(--muted);
  cursor: default;
}

.profile-meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}

.profile-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.profile-meta a:hover { text-decoration: underline; }

.profile-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
}

.profile-card-wide { grid-column: 1 / -1; }

@media (max-width: 960px) {
  .profile-grid-top {
    grid-template-columns: 1fr;
  }
}

.profile-card h3 {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.profile-recent-certs {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.profile-recent-certs-title {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.profile-recent-certs-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-recent-cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}

.profile-recent-cert-info {
  min-width: 0;
}

.profile-recent-cert-info strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-strong);
}

.profile-recent-cert-meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.profile-recent-cert-empty {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-dl .profile-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.profile-dl dt {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.profile-dl dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-strong);
  word-break: break-word;
}

.profile-dl a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.profile-dl a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.75rem;
  }
  .dash-nav-title { width: 100%; margin-bottom: 0.25rem; }
  .dash-nav-item {
    width: auto;
    flex: 1 1 auto;
    min-width: 140px;
    margin-bottom: 0;
    justify-content: center;
  }
  .dash-readiness {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
  }
  .site-header { padding: 1rem; }
  .brand { gap: 0.6rem; }
  .brand-logo { height: 4rem; max-width: 13rem; }
  .brand-logo--auth { height: 7rem; max-width: 17rem; }
  .topbar { flex-wrap: wrap; gap: 0.75rem; }
  .topbar-brand { gap: 0.65rem; }
  .brand-logo--topbar { height: 3.5rem; max-width: 12rem; }
  .topbar-title { font-size: 1.05rem; }
  .hero { padding: 2rem 1rem 3rem; }
  .section { padding: 3rem 1rem; }
}

.panel {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.block { margin-bottom: 1.25rem; }
.muted { color: var(--muted); font-size: 0.85rem; }
.mt { margin-top: 1.5rem; }

.sub-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}

.sub-empty { margin: 0; color: var(--muted); }

.sub-details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sub-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  align-items: center;
}

.sub-row dt { margin: 0; color: var(--muted); font-weight: 500; }
.sub-row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.sub-expiry {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.15rem !important;
}

.sub-hint { font-size: 0.75rem; color: var(--muted); }
.sub-hint-warn { color: var(--warn); }
.sub-hint-danger { color: var(--danger); }

.badge.sub-plan {
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: capitalize;
}

.badge.sub-status.active {
  background: var(--ok-soft);
  color: var(--ok);
}

.badge.sub-status.inactive {
  background: var(--danger-soft);
  color: var(--danger);
}

.sub-modules {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
}

.sub-modules-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.sub-upgrade {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.sub-upgrade-lead {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-strong);
}

.sub-upgrade-note {
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.sub-upgrade-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sub-upgrade .btn-block {
  width: 100%;
  text-align: center;
}

.sub-cancel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.sub-cancel-lead {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.sub-cancel-notice {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.sub-modules ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text);
  line-height: 1.5;
}

.sub-modules li { margin-bottom: 0.2rem; }
.team-invite-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-top: 0.75rem;
}

.team-invite-form .profile-field {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.team-slots {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.team-members-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.team-member-info {
  min-width: 0;
  font-size: 0.88rem;
}

.team-member-banner {
  padding: 0.75rem;
  background: var(--accent-soft);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.cert-choice-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.sub-modules .sub-none {
  list-style: none;
  margin-left: -1.1rem;
  color: var(--muted);
}

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .modules {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

.operation-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-height: 8.5rem;
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.15s, background 0.15s;
}

.operation-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--card-hover);
  border-color: var(--border);
}

.operation-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.operation-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.operation-card-locked:disabled {
  opacity: 0.45;
}

.operation-card-title {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.3;
}

.operation-card-desc {
  display: block;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
  white-space: normal;
}

.jobs { display: flex; flex-direction: column; gap: 0.5rem; }

.job-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.job-row:hover {
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(61, 56, 50, 0.06);
}

.job-row-title {
  flex: 0 1 auto;
  min-width: 0;
}

.job-progress {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
}

.job-progress-caption,
.job-progress-pct {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
}

.job-progress-track {
  width: clamp(72px, 18vw, 140px);
  height: 6px;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.job-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.job-messages {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  max-height: min(50vh, 320px);
  overflow-y: auto;
}

.job-message {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--text);
}

.job-message.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.job-message-result {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-soft);
  font-weight: 600;
  color: var(--text-strong);
  font-size: 0.92rem;
}

.job-message-missing {
  margin: 0.15rem 0 0 0.75rem;
  padding: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.4;
}

.job-message-missing::before {
  content: "· ";
  color: var(--muted);
}

.job-message + .job-message:not(.job-message-result) {
  margin-top: 0.35rem;
}

.job-logs-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  user-select: none;
  margin: 0.75rem 0 0.35rem;
}

.job-logs-details .log-view {
  margin-top: 0.35rem;
  max-height: 28vh;
}

.job-row .badge {
  flex-shrink: 0;
}

.job-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.job-cancel-btn {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.job-row.completed .job-progress-fill { background: var(--ok); }
.job-row.failed .job-progress-fill { background: var(--danger); }
.job-row.cancelled .job-progress-fill { background: var(--muted); }

.badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge.queued { background: var(--btn); color: var(--muted); }
.badge.running { background: var(--accent-soft); color: var(--accent); }
.badge.completed { background: var(--ok-soft); color: var(--ok); }
.badge.failed { background: var(--danger-soft); color: var(--danger); }
.badge.cancelled { background: var(--btn); color: var(--muted); }

.log-view {
  background: var(--bg);
  color: var(--text);
  padding: 1rem;
  max-height: 50vh;
  overflow: auto;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  white-space: pre-wrap;
}

dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  padding: 1.25rem;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

dialog:not([open]) {
  display: none;
}

dialog[open] {
  position: fixed;
  inset: 0;
  width: fit-content;
  height: fit-content;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  margin: auto;
}
dialog::backdrop { background: rgba(61, 56, 50, 0.35); }
dialog label {
  display: block;
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
dialog input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
}
dialog input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
dialog select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
}
dialog select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.app-notice-dialog {
  max-width: 420px;
  padding: 0;
  border: none;
  overflow: hidden;
}

.app-notice-body {
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
}

.app-notice-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.app-notice-dialog.app-notice--success .app-notice-icon-wrap {
  background: var(--ok-soft);
  color: var(--ok);
}

.app-notice-dialog.app-notice--error .app-notice-icon-wrap {
  background: var(--danger-soft);
  color: var(--danger);
}

.app-notice-dialog.app-notice--warn .app-notice-icon-wrap {
  background: var(--accent-warm-soft);
  color: var(--accent-warm);
}

.app-notice-icon {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.app-notice-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.app-notice-message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  white-space: pre-line;
}

.app-notice-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.admin-table-wrap {
  margin-top: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: visible;
}

.admin-table .col-email {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table .col-org {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table .col-plan {
  min-width: 6.75rem;
}

.admin-table .col-date {
  min-width: 8.75rem;
}

.admin-table .col-cert {
  min-width: 5.25rem;
  text-align: center;
}

.admin-table .col-cert .admin-cert-dash {
  display: block;
  text-align: center;
}

.admin-table .col-status {
  min-width: 5.75rem;
}

.admin-table .col-type {
  min-width: 4.25rem;
  white-space: nowrap;
}

.admin-table .col-actions {
  min-width: 12.5rem;
  width: 12.5rem;
  overflow: visible;
}

.admin-table tbody tr:hover {
  background: var(--bg);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  text-align: right;
  white-space: nowrap;
}

.admin-table .admin-field {
  width: 100%;
  min-width: 5.5rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
}

.admin-table .admin-field-date {
  min-width: 8.25rem;
}

.admin-table .admin-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.admin-actions .btn-sm {
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* --- Guia / tutorial sugestivo --- */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
}

.tutorial-spotlight {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(42, 38, 34, 0.42);
  border: 2px solid var(--accent);
  background: transparent;
  pointer-events: none;
  transition: none;
  z-index: 10059;
}

.tutorial-spotlight::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 2px dashed rgba(91, 107, 79, 0.55);
  animation: tutorialPulse 2s ease-in-out infinite;
}

@keyframes tutorialPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-spotlight::after {
    animation: none;
    opacity: 0.75;
  }

  .tutorial-spotlight {
    transition: none;
  }
}

.tutorial-popover {
  position: fixed;
  z-index: 10070;
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: fadeIn 0.2s ease;
}

.tutorial-popover.hidden {
  display: none !important;
}

.tutorial-step-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.tutorial-popover h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--text-strong);
}

.tutorial-text {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.tutorial-action-btn {
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
}

.tutorial-target-active {
  position: relative;
  z-index: 10053 !important;
}

#creds-dialog.tutorial-target-active,
#creds-dialog:has(.tutorial-target-active) {
  position: fixed;
  z-index: 10054 !important;
}

#creds-dialog::backdrop {
  background: rgba(61, 56, 50, 0.35);
}

#creds-dialog.tutorial-target-active::backdrop,
#creds-dialog:has(.tutorial-target-active)::backdrop {
  background: transparent;
}

.job-technical-log {
  margin: 0 0 1rem;
}

.job-technical-log-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.job-technical-log__pre,
.admin-job-log-body {
  margin: 0;
  padding: 0.75rem;
  max-height: min(55vh, 420px);
  overflow: auto;
  background: #1e1e1e;
  color: #e8e8e8;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.panel-admin-logs h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.admin-logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-jobs-table .admin-job-preview {
  max-width: 280px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-job-log-dialog {
  max-width: min(92vw, 720px);
  width: 100%;
}

.admin-job-log-meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}
