/* CacauSys — tema cacau profissional (marrom com profundidade)
   Backup do verde: assets/css/backup/estilo.verde-antes-marrom.css */
:root {
  --primary: #6F4E37;
  --primary-dark: #3E2723;
  --primary-mid: #8B5E3C;
  --primary-soft: #F3EBE3;
  --cacao: #A67C52;
  --accent: #9A6B45;
  --accent-warm: #C4956A;
  --amber: #D4A574;
  --bg: #F4EFE9;
  --bg-deep: #EBE3D9;
  --white: #FFFCFA;
  --ink: #2A1810;
  --text: #3D2B22;
  --text-light: #7A6558;
  --border: #E0D4C8;
  --border-strong: #C9B8A8;
  --ok: #4A6741;
  --warn: #B45309;
  --danger: #B91C1C;
  --info: #1D4ED8;
  --radius: 14px;
  --shadow:
    0 1px 2px rgba(42, 24, 16, 0.04),
    0 8px 24px rgba(62, 39, 35, 0.10);
  --shadow-sm:
    0 1px 2px rgba(42, 24, 16, 0.05),
    0 3px 10px rgba(62, 39, 35, 0.06);
  --shadow-lg:
    0 4px 8px rgba(42, 24, 16, 0.06),
    0 16px 40px rgba(62, 39, 35, 0.16);
  --grad-header: linear-gradient(145deg, #2C1812 0%, #3E2723 28%, #5D4037 68%, #6F4E37 100%);
  --grad-hero: linear-gradient(145deg, #3E2723 0%, #5D4037 42%, #7A5235 100%);
  --grad-btn: linear-gradient(145deg, #8B5E3C 0%, #6F4E37 55%, #4E342E 100%);
  --grad-accent: linear-gradient(145deg, #D4A574 0%, #C4956A 50%, #A67C52 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 0% -5%, rgba(139, 94, 60, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 100%, rgba(62, 39, 35, 0.08), transparent 50%),
    linear-gradient(180deg, #F7F2EC 0%, var(--bg) 40%, #EFE8E0 100%);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.app-shell {
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

a { color: inherit; text-decoration: none; }

/* —— Header —— */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: var(--grad-header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow:
    0 2px 0 rgba(212, 165, 116, 0.35),
    0 8px 28px rgba(42, 24, 16, 0.28);
}
.app-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.app-header img {
  height: 36px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.app-header .user-meta { font-size: 12px; opacity: .92; text-align: right; }
.app-header .btn-sair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.app-header .btn-sair:active { background: rgba(255, 255, 255, 0.2); }

.container { max-width: 980px; margin: 0 auto; padding: 16px; }

/* —— Cards —— */
.card {
  background: linear-gradient(180deg, var(--white) 0%, #FBF7F2 100%);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.hero-card {
  background: var(--grad-hero) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: var(--shadow-lg) !important;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.28), transparent 68%);
  pointer-events: none;
}
.hero-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card a { color: #fff; }

.heading, h2, h3 { color: var(--ink); }
.card > h3 { color: var(--ink); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.action-card {
  background: linear-gradient(180deg, #FFFCFA 0%, #F8F2EB 100%);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .15s, border-color .15s, box-shadow .15s;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.action-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.action-card:active { transform: scale(.98); }
.action-card .ico {
  font-size: 0;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #FFF9F4, var(--primary-soft));
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(62, 39, 35, 0.06);
  flex-shrink: 0;
}
.action-card .ico i,
.action-card .ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
  color: var(--primary);
}
.action-card:hover .ico svg { stroke: var(--primary-dark); color: var(--primary-dark); }
.action-card strong { font-size: 14px; color: var(--ink); }
.menu-sec .action-card .ico { width: 42px; height: 42px; border-radius: 12px; }
.menu-sec .action-card .ico i,
.menu-sec .action-card .ico svg { width: 22px; height: 22px; }
.home-pri .action-card .ico {
  background: linear-gradient(160deg, #fff, var(--primary-soft));
  border-color: rgba(111, 78, 55, 0.2);
}

/* Ícones Lucide inline (botões, flash, labels) */
.ico-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.2em;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}
.ico-inline i,
.ico-inline svg {
  width: 1.15em;
  height: 1.15em;
  stroke: currentColor;
}
.ico-sm { width: 18px; height: 18px; }
.ico-sm i, .ico-sm svg { width: 18px; height: 18px; }
.ico-on-dark i, .ico-on-dark svg { stroke: #fff; color: #fff; }
.btn-primary .ico-inline svg,
.btn-accent .ico-inline svg { stroke: #fff; color: #fff; }
.btn .ico-inline { margin-right: 2px; }
.btn-sair,
.btn-voltar-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flash-box .ico-inline {
  margin-top: 2px;
  color: inherit;
  flex-shrink: 0;
}
.btn-ico-danger {
  border: none;
  background: #FEE2E2;
  color: #991B1B;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ico-danger .ico-inline svg { stroke: #991B1B; width: 16px; height: 16px; }
.btn-ico-danger:active { transform: scale(.96); }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  background: linear-gradient(180deg, #FFFCFA 0%, #F7F1EA 100%);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}
.kpi .label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .4px;
}
.kpi .value {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 4px;
}

.home-pri {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
@media (min-width: 560px) {
  .home-pri { grid-template-columns: repeat(4, 1fr); }
}
.home-pri .action-card {
  min-height: 96px;
  border-color: var(--border-strong);
  background: linear-gradient(185deg, #FFFCFA 0%, var(--primary-soft) 160%);
  box-shadow: var(--shadow);
}
.home-pri .action-card strong { font-size: 15px; }

.menu-sec { margin-top: 10px; }
.menu-sec summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #FFFCFA, #F6F0E9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  color: var(--ink);
  user-select: none;
}
.menu-sec summary::-webkit-details-marker { display: none; }
.menu-sec summary::after {
  content: '▾';
  color: var(--text-light);
  font-size: 14px;
  transition: transform .15s;
}
.menu-sec[open] summary {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--primary-soft), #EDE2D6);
}
.menu-sec[open] summary::after { transform: rotate(180deg); }
.menu-sec .sec-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px 2px 4px;
}
.menu-sec .action-card { min-height: 88px; }
.menu-sec .action-card strong { font-size: 13px; }

.attn-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.attn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: linear-gradient(90deg, #FFF6EC, #FFFCFA);
  border: 1px solid #E8D2B8;
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  color: #6B4423;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.attn-item a { color: var(--primary); font-weight: 800; text-decoration: underline; }

.chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: var(--primary-soft);
  color: var(--ink);
  border: 1px solid transparent;
}
.chip-on {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 12px rgba(111, 78, 55, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s, transform .12s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 8px 20px rgba(62, 39, 35, 0.32);
  width: 100%;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-accent {
  background: var(--grad-accent);
  color: #2A1810;
  width: 100%;
  box-shadow: 0 6px 16px rgba(166, 124, 82, 0.35);
}
.btn-ghost {
  background: var(--primary-soft);
  color: var(--ink);
  width: 100%;
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 14px; text-align: left; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-mid);
  background: #FFFCFA;
  box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.15);
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.pill-ok { background: #E4EDE0; color: #2F4A28; }
.pill-warn { background: #FEF3C7; color: #92400E; }
.pill-danger { background: #FEE2E2; color: #991B1B; }
.pill-info { background: #DBEAFE; color: #1E40AF; }

.aviso-box {
  background: linear-gradient(90deg, #FFF8F0, #FFFCFA);
  border: 1px solid #E8D5C0;
  border-left: 4px solid var(--accent-warm);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.rec-alta { border-left-color: #DC2626; background: #FEF2F2; border-color: #FECACA; }
.rec-media { border-left-color: #D97706; }
.rec-baixa { border-left-color: #4A6741; background: #F0F5EE; border-color: #C5D6C0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
th { font-size: 11px; text-transform: uppercase; color: var(--text-light); }
tr:hover td { background: rgba(243, 235, 227, 0.5); }

.empty { text-align: center; color: var(--text-light); padding: 24px 10px; font-size: 14px; }
.footer-mini { text-align: center; color: #9A8778; font-size: 11px; margin: 24px 0 10px; }

.nav-voltar { margin-bottom: 12px; }
.btn-voltar-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.btn-voltar-nav:active {
  transform: scale(.98);
  background: var(--primary-soft);
}

.flash-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  line-height: 1.4;
}
.flash-ok { background: #F0F5EE; color: #2F4A28; border-color: #C5D6C0; }
.flash-erro { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.flash-warn { background: #FFF8F0; color: #7C4A1A; border-color: #E8D2B8; }
.flash-info { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }

.hint-box {
  background: var(--primary-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.link-brand { color: var(--primary); font-weight: 800; }

/* —— Diálogos CacauSys (sem confirm/alert nativo) —— */
.cacau-dialog {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  animation: cacauDialogIn .2s ease;
}
.cacau-dialog[hidden] { display: none !important; }
@keyframes cacauDialogIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cacau-dialog-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(139, 94, 60, 0.32), transparent 55%),
    rgba(28, 16, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cacau-dialog-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  background:
    linear-gradient(165deg, #FFFEFC 0%, #F6F0E8 48%, #F3EBE2 100%);
  border-radius: 22px;
  padding: 20px 20px 18px;
  box-shadow:
    0 0 0 1px rgba(201, 184, 168, 0.65),
    0 24px 56px rgba(42, 24, 16, 0.32);
  animation: cacauCardUp .3s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
}
.cacau-dialog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-btn);
}
.cacau-dialog.is-danger .cacau-dialog-card::before {
  background: linear-gradient(90deg, #DC2626, #991B1B);
}
.cacau-dialog.is-warn:not(.is-danger) .cacau-dialog-card::before {
  background: linear-gradient(90deg, #D97706, #92400E);
}
@keyframes cacauCardUp {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.cacau-dialog-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.cacau-dialog-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad-btn);
  box-shadow: 0 4px 10px rgba(111, 78, 55, 0.35);
  position: relative;
}
.cacau-dialog-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 252, 250, 0.4);
}
.cacau-dialog-app {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-mid);
}
.cacau-dialog-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(111, 78, 55, 0.1);
  display: grid;
  place-items: center;
  color: var(--primary-mid);
}
.cacau-dialog-icon i,
.cacau-dialog-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}
.cacau-dialog.is-alert .cacau-dialog-icon {
  background: rgba(217, 119, 6, 0.12);
  color: #B45309;
}
.cacau-dialog.is-danger .cacau-dialog-icon {
  background: rgba(220, 38, 38, 0.12);
  color: #B91C1C;
}
.cacau-dialog-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.cacau-dialog-msg {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}
.cacau-dialog-msg[hidden] { display: none !important; }
.cacau-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cacau-dialog.is-alert .cacau-dialog-actions {
  grid-template-columns: 1fr;
}
.cacau-dialog-btn {
  min-height: 50px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}
.cacau-dialog-btn:active { transform: scale(.97); }
.cacau-dialog-btn.cancel {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.cacau-dialog-btn.ok {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 6px 16px rgba(111, 78, 55, 0.28);
}
.cacau-dialog.is-danger .cacau-dialog-btn.ok {
  background: linear-gradient(145deg, #DC2626 0%, #991B1B 100%);
  box-shadow: 0 6px 16px rgba(153, 27, 27, 0.28);
}
.cacau-dialog.is-danger .cacau-dialog-title { color: #7F1D1D; }
.cacau-dialog.is-warn .cacau-dialog-mark {
  background: linear-gradient(145deg, #D97706, #92400E);
}
.cacau-dialog.is-danger .cacau-dialog-mark {
  background: linear-gradient(145deg, #DC2626, #991B1B);
}
body.cacau-dialog-open { overflow: hidden; }

@media (min-width: 600px) {
  .cacau-dialog { align-items: center; padding-bottom: 16px; }
}

/* legado (caso alguma página ainda referencie a classe antiga) */
.cacau-confirm { display: none !important; }

@media (min-width: 768px) {
  .container { padding: 24px; }
}

/* Tutoriais — só o perfil do usuário */
.tut-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px 20px 20px;
  margin-bottom: 16px;
  color: #fff;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255,255,255,.14), transparent 48%),
    linear-gradient(145deg, #5D4037 0%, #3E2723 72%);
  box-shadow: 0 12px 28px rgba(62, 39, 35, 0.22);
}
.tut-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  opacity: .95;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px;
}
.tut-hero-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.tut-hero-intro {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  opacity: .9;
  max-width: 36em;
}
.tut-hero-meta {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  opacity: .75;
}
.tut-toc {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin: 0 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tut-toc-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.tut-toc-item:active { transform: scale(.98); }
.tut-toc-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
}
.tut-toc-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.tut-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.tut-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.tut-card-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 6px 14px rgba(111, 78, 55, 0.25);
}
.tut-card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.tut-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
  font-weight: 600;
}
.tut-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #F3EDE6;
}
.tut-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.tut-tips-card {
  background: var(--primary-soft);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 6px 0 8px;
}
.tut-tips-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tut-tips {
  margin: 0;
  padding-left: 18px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.tut-tips li { margin-bottom: 8px; }
.tut-tips li:last-child { margin-bottom: 0; }
.tut-ajuda-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px dashed var(--border-strong);
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.tut-ajuda-link .ico { flex-shrink: 0; }
.tut-ajuda-link span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 2px;
}
