#acf-app {
  max-width: 100%;
  margin: 18px 0 40px;
  padding: 0 24px 24px;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  background: rgba(var(--pt-theme-tone-0d0d0d-rgb, 13, 13, 13), .88);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .26);
}
#acf-app .module-intro { padding-top: 28px; }
#acf-app h1.module-title { margin-bottom: 14px; }
#acf-app .module-title { overflow-wrap: anywhere; }
#acf-app .theory.open .theory-body { max-height: none; }
#acf-app button, #acf-app [role="button"], #acf-app summary { cursor: pointer; touch-action:manipulation; }
#acf-app button:disabled { cursor: default; opacity: .6; }
#acf-app .mcard-del::before, #acf-app .link-remove::before,
#acf-app .momento-del::before, #acf-app .legend-del::before,
#acf-app .zone-item > i::before {
  content: "×";
  font-family: Arial, sans-serif;
}
#acf-app [role="button"]:focus-visible, #acf-app button:focus-visible,
#acf-app input:focus-visible, #acf-app textarea:focus-visible, #acf-app summary:focus-visible {
  outline: 2px solid var(--pt-accent);
  outline-offset: 4px;
}
#acf-app .acf-save-status { flex-basis: 100%; color: var(--pt-theme-accent, #7df9a0); font-size: .9rem; }
#acf-app .acf-save-status.acf-error { color: var(--rose); }
#acf-app .acf-sharing { color: var(--text-mut); font-size: .85rem; margin: 20px 0; }
#acf-app .acf-history { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-2); }
#acf-app .acf-history h2 { font-family: 'Barlow Condensed', Arial, sans-serif; color: var(--pt-theme-tone-ffffff, #ffffff); font-size: 25px; margin: 0 0 10px; }
#acf-app .acf-history > p, #acf-app .acf-empty { color: var(--text-mut); font-size: .9rem; margin: 0 0 14px; }
#acf-app .acf-history a { color: var(--pt-theme-accent, #7df9a0); }
#acf-app .acf-history-item { margin: 12px 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; overflow-wrap: anywhere; }
#acf-app .acf-history-item summary { color: var(--text); font-weight: 600; line-height: 1.5; }
#acf-app .acf-history-item[open] summary { margin-bottom: 16px; }
#acf-app .acf-history-item .reg-campo { margin: 12px 0; }
#acf-app .acf-history-item .reg-campo-l, #acf-app .acf-history-item .reg-label, #acf-app .acf-history-item .reg-k { display: block; color: var(--pt-theme-accent, #7df9a0); font-weight: 700; font-size: .85rem; margin: 10px 0 5px; }
#acf-app .acf-history-item .reg-campo-v, #acf-app .acf-history-item .reg-valor, #acf-app .acf-history-item .reg-v { display: block; color: var(--text); font-size: .94rem; line-height: 1.65; white-space: pre-wrap; }
#acf-app .acf-history-item .reg-titulo { margin: 20px 0 10px; border-bottom: 1px solid var(--line-2); padding-bottom: 7px; font-family: 'Barlow Condensed', Arial, sans-serif; font-size: 20px; color: var(--text); }
#acf-app .acf-history-item .reg-badge { display: inline-block; color: var(--pt-theme-accent, #7df9a0); margin-bottom: 10px; font-size: .9rem; }
#acf-app .acf-history-item p { color: var(--text-mut); margin: 6px 0; font-size: .94rem; line-height: 1.65; }
#acf-app .acf-history-item ul, #acf-app .acf-history-item ol { padding-left: 22px; margin: 8px 0 15px; }
#acf-app .acf-history-item li { margin: 7px 0; color: var(--text-mut); font-size: .94rem; line-height: 1.65; }
#acf-app .acf-history-item strong, #acf-app .acf-history-item b { color: var(--text); }
#acf-app .acf-history-item .reg-tag { display: inline-block; font-size: .8rem; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--pt-theme-accent, #7df9a0); margin: 3px 5px 3px 0; }
@media (max-width: 560px) {
  #acf-app { padding: 0 14px 18px; }
  #acf-app h1.module-title { font-size: clamp(1.5rem, 7vw, 2rem); letter-spacing: .5px; }
  #acf-app .row { flex-wrap: wrap; }
  #acf-app .top-tag { letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) {
  #acf-app *, #acf-app *::before, #acf-app *::after { animation: none !important; transition: none !important; }
}
@media print {
  #acf-app { max-width: none; padding: 0; border: 0; background: var(--pt-theme-tone-ffffff, #ffffff); box-shadow: none; }
  #acf-app .acf-history, #acf-app .acf-sharing, #acf-app .toast { display: none !important; }
  #acf-app .step.locked { display: none; }
}
#acf-app .acf-link-evidence, #acf-app .acf-classify-action { min-height:44px; margin:10px 0; padding:9px 12px; text-align:left; white-space:normal; }
.acf-session-back { display:inline-block; margin:0 0 14px 16px; color:var(--pt-accent,#7df9a0); text-decoration:none; }
@media(max-width:480px) { .acf-session-back { display:block; margin-left:0; } }

