.automation-hint {
  margin: -7px 0 8px;
  color: #4d777d;
  font-size: 12px;
  font-weight: 750;
}

.automation-hint::before {
  content: "↳ ";
  color: var(--teal);
}

summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.actions .button-link {
  min-height: 46px;
}

.editor-jump {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 16px;
  padding: 2px 0 6px;
}
.editor-jump a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}
.editor-section, .pdf-review { scroll-margin-top: 110px; }
details.row-card > summary, .pdf-review > summary { gap: 10px; cursor: pointer; }
details.row-card > summary::after, .pdf-review > summary::after { content: "+"; margin-left: auto; color: var(--teal); font-size: 20px; }
details.row-card[open] > summary::after, .pdf-review[open] > summary::after { content: "−"; }
details.row-card > summary > span, .pdf-review > summary > span { min-width: 0; }
.row-title, .row-description, #review-summary { display: block; overflow-wrap: anywhere; }
.row-description, #review-summary { margin-top: 5px; font-size: 12px; font-weight: 500; color: #506b76; line-height: 1.5; }
details.row-card[open] > summary { margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-actions > button { min-height: 44px; padding: 8px 12px; font-size: 12px; }
.row-actions .remove { margin-left: auto; }
.pdf-review { border-color: #b9d8d4; }
#review-warnings { list-style: none; padding: 0; margin: 10px 0; }
#review-warnings li + li { margin-top: 8px; }
.review-warning { width: 100%; text-align: left; background: #fff8e9; border-color: #e7d8b5; color: #735115; font-size: 13px; }
.field-usuario_id { grid-column: 1 / -1; }
.account-sharing-status { display: block; color: #4d777d; font-size: 12px; font-weight: 500; margin-top: 6px; line-height: 1.5; }
.image-attachments > summary { gap: 10px; cursor: pointer; color: #315e66; font-size: 14px; }
.image-attachments > summary::after { content: "+"; margin-left: auto; color: var(--teal); font-size: 20px; }
.image-attachments[open] > summary::after { content: "−"; }
.image-attachments > p { margin: 8px 0 14px; }
.image-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.image-slot { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7fafb; }
.image-slot h3 { margin: 0 0 10px; }
.image-slot img { display: block; width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: #e8eff1; }
.image-slot img[hidden] { display: none; }
.image-slot label { margin: 12px 0; }
.image-slot input[type="file"] { max-width: 100%; padding: 8px; font-size: 14px; }
.image-slot button[hidden] { display: none; }
@media (max-width: 620px) { .image-grid { grid-template-columns: 1fr; } }
.reuse-form .validation-check { margin: 10px 0; font-size: 13px; }
.reuse-form .check-ui { flex: 0 0 20px; }
.validation-check { position: relative; }
.validation-check input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; left: 10px; top: 50%; margin: 0; padding: 0; transform: translateY(-50%); }
.action-more { position: relative; }
.action-more > summary { min-height: 46px; justify-content: center; border: 1px solid #c5d6db; border-radius: 12px; padding: 10px 14px; cursor: pointer; font-weight: 750; background: #fff; }
.action-menu { position: absolute; bottom: calc(100% + 8px); right: 0; min-width: 210px; padding: 8px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
button:focus-visible, a:focus-visible, summary:focus-visible, .validation-check:focus-within { outline: 3px solid #409ba0; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 430px) {
  body { min-width: 0; }

  .topbar {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: calc(7px + env(safe-area-inset-top)) 10px 7px;
  }

  .brand { gap: 9px; width: max-content; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 17px; letter-spacing: 3px; }

  .nav-pills {
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .nav-pills::-webkit-scrollbar { display: none; }
  .nav-pills a, .nav-button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
    background: rgba(255,255,255,.055);
  }

  main { margin: 14px auto; padding: 0 10px calc(88px + env(safe-area-inset-bottom)); }
  footer { padding: 0 10px calc(18px + env(safe-area-inset-bottom)); }
  h1 { font-size: 30px; letter-spacing: -1px; }
  .page-hero, .editor-heading { gap: 14px; margin-bottom: 18px; }
  .editor-heading-actions { gap: 7px; }
  .card, .editor-section { padding: 14px; border-radius: 16px; margin-bottom: 12px; }
  .section-title { gap: 9px; margin-bottom: 12px; }
  .section-title > span { flex-basis: 30px; height: 30px; border-radius: 9px; }
  .section-title h2 { font-size: 18px; }
  .section-title p { font-size: 12px; line-height: 1.45; }
  .row-card { padding: 12px; margin: 10px 0; border-radius: 14px; }
  .row-title { font-size: 14px; }
  .row-actions > button { flex: 1 1 auto; }
  .row-actions .remove { margin-left: 0; }
  .row-card .fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
  .row-funcionarios .field-funcionario,
  .row-funcionarios .field-equipo,
  .row-funcionarios .field-turno_total,
  .row-servicios .field-servicio_descripcion,
  .row-servicios .field-servicio_lugares,
  .row-desplazamientos .field-desplazamiento_funcionario,
  .row-desplazamientos .field-desplazamiento_localidades { grid-column: 1 / -1; }
  label { font-size: 12px; }
  input, select, textarea { min-height: 46px; margin-top: 5px; padding: 10px 11px; font-size: 16px; }
  select { background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; }
  .combo { margin-top: 5px; }
  .combo-toggle { width: 42px; height: 42px; min-height: 42px; top: 2px; right: 2px; }
  .combo-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-height: 45vh;
  }
  .add-row { width: 100%; }
  .actions {
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
    margin: 14px -2px 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
  }
  .actions button, .actions .button-link {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 5px;
    font-size: 12px;
    line-height: 1.1;
  }
  .action-more > summary { min-height: 44px; padding: 7px 5px; font-size: 12px; }
  .action-menu { right: -2px; min-width: 210px; }
  .login-shell { margin: 18px auto; gap: 14px; }
  .login-brand { gap: 13px; }
  .login-brand img { width: 68px; height: 68px; }
  .login-brand h1 { font-size: 29px; margin-bottom: 7px; }
  .login-brand p { font-size: 14px; margin: 0; }
  .login-card { padding: 16px; border-radius: 18px; }
  .filters { gap: 9px; }
  .part-card { padding: 15px; }
  .part-main-link { padding-top: 8px; }
  .part-main-link h2 { font-size: 25px; }
}

@media (max-width: 350px) {
  .badge { padding: 5px 8px; font-size: 10px; }
  .validation-check, .button-link { padding-left: 8px; padding-right: 8px; }
  .actions button, .actions .button-link { font-size: 11px; }
}
