.employee-tutorial-open {
  display:flex; align-items:center; gap:12px; width:100%; padding:18px 20px;
  border:1px solid #143f88; border-radius:14px; cursor:pointer;
  background:linear-gradient(115deg,#075cb7,#273ea4); color:#fff;
  font:800 18px/1.4 'Inter',sans-serif; text-align:left;
}
.employee-tutorial-open:focus-visible { outline:3px solid #ffbe3f; outline-offset:3px; }
.employee-tutorial-dialog {
  width:min(760px,calc(100% - 24px)); max-height:90dvh; margin:auto; padding:0;
  overflow:auto; border:0; border-radius:16px; color:#17445a; background:#f7fbfd;
  box-shadow:0 18px 70px rgba(0,25,45,.4);
}
.employee-tutorial-dialog::backdrop { background:rgba(8,31,50,.75); }
.employee-tutorial-header { display:flex; align-items:flex-start; gap:14px; padding:20px; color:#fff; background:#164ba4; }
.employee-tutorial-header h2 { font-size:21px; line-height:1.3; margin:0 0 8px; }
.employee-tutorial-header p { font-size:14px; line-height:1.5; margin:0; color:#edf5ff; }
.employee-tutorial-header button { flex:none; width:42px; height:42px; border:1px solid #92b8ef; border-radius:9px; background:#fff; color:#164ba4; font-size:25px; cursor:pointer; }
.employee-tutorial-footer { padding:0 20px 20px; }
.employee-tutorial-footer button { width:100%; min-height:46px; padding:12px; border:0; border-radius:9px; color:#fff; background:#087f72; font:700 16px 'Inter',sans-serif; cursor:pointer; }
.tutorial-help {
  --tutorial-ink: #17445a;
  --tutorial-muted: #4c6875;
  --tutorial-line: #c7dce3;
  --tutorial-wash: #f1f8fa;
  color: var(--tutorial-ink);
  margin: 0 0 18px;
}

.tutorial-help details {
  overflow: hidden;
  border: 1px solid var(--tutorial-line);
  border-radius: 12px;
  background: var(--tutorial-wash);
}

.tutorial-help summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

.tutorial-help summary::-webkit-details-marker { display: none; }
.tutorial-help summary::before {
  content: "+";
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  background: #dceef2;
  color: #17617a;
  font-size: 19px;
  font-weight: 500;
}
.tutorial-help details[open] summary::before { content: "−"; }
.tutorial-help summary:focus-visible,
.tutorial-help a:focus-visible {
  outline: 3px solid #e2a23b;
  outline-offset: 3px;
}

.tutorial-help-content {
  padding: 0 15px 15px;
}
.tutorial-help-content p {
  margin: 0 0 10px;
  color: var(--tutorial-muted);
  font-size: 14px;
  line-height: 1.55;
}
.tutorial-help-video {
  display: block;
  width: 100%;
  max-width: 360px;
  max-height: min(65vh, 620px);
  margin: 0 auto 10px;
  border-radius: 9px;
  background: #173b4a;
  object-fit: contain;
}
.tutorial-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  line-height: 1.5;
}
.tutorial-help-links a {
  color: #145c75;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 480px) {
  .tutorial-help { margin-bottom: 14px; }
  .tutorial-help summary { padding: 10px 12px; }
  .tutorial-help-content { padding: 0 12px 12px; }
}

/* Acesso rápido ao tutorial no painel do cooperado. */
body.employee-page .tutorial-help {
  margin: 0 0 20px;
}

body.employee-page .tutorial-help details {
  overflow: hidden;
  border: 1px solid #075c92;
  border-radius: 12px;
  background: #e6f4fb;
  box-shadow:
    0 4px 0 #064b78,
    0 7px 15px rgba(15, 54, 75, .16),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

body.employee-page .tutorial-help summary {
  min-height: 64px;
  gap: 13px;
  padding: 15px 19px;
  background: linear-gradient(110deg, #0877b7 0%, #078dc2 58%, #1475ad 100%);
  color: #fff;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(7, 45, 70, .28);
  transition: filter .16s ease, box-shadow .16s ease;
}

body.employee-page .tutorial-help summary::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  flex: 0 0 0;
  margin: 0 2px 0 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #fff;
  border-radius: 2px;
  background: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(6, 42, 65, .35));
  transition: transform .16s ease;
}

body.employee-page .tutorial-help details[open] summary::before {
  content: "";
  transform: rotate(90deg);
}

body.employee-page .tutorial-help summary:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

body.employee-page .tutorial-help summary:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #ffd36e;
  outline-offset: -5px;
}

body.employee-page .tutorial-help-content {
  padding: 16px 19px 18px;
}

body.employee-page .tutorial-help-content p {
  color: #254f64;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  body.employee-page .tutorial-help {
    margin-bottom: 16px;
  }

  body.employee-page .tutorial-help details {
    border-radius: 10px;
  }

  body.employee-page .tutorial-help summary {
    min-height: 64px;
    align-items: flex-start;
    padding: 14px 13px;
    gap: 11px;
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body.employee-page .tutorial-help summary::before {
    flex: 0 0 0;
    margin-top: 4px;
  }

  body.employee-page .tutorial-help-content {
    padding: 13px 13px 15px;
  }

  body.employee-page .tutorial-help-content p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.employee-page .tutorial-help summary,
  body.employee-page .tutorial-help summary::before {
    transition: none;
  }
}
