@import url("/_next/static/css/9e6d33cbae7965fc.css");

@media screen {
  body { -webkit-font-smoothing: antialiased; }
  .app-content { width: min(1200px, calc(100% - clamp(28px, 5vw, 80px))); padding-top: 40px; }
  .app-header-inner { width: min(1280px, calc(100% - clamp(28px, 5vw, 80px))); }
  .app-content > *, .panel-heading > div, .settings-card, .exam-basics { min-width: 0; }
  .app-header { background: rgba(250,251,251,.95); border-bottom-color: #e5e9e8; }
  .brand > i {
    color: transparent !important;
    font-size: 0 !important;
    background: url("/_next/static/media/pautafacil-logo.svg?v=3") center/cover no-repeat !important;
    box-shadow: 0 5px 14px rgba(5,100,107,.18) !important;
  }
  .public-footer a {
    color: #08777d;
    font-weight: 650;
    text-decoration: none;
  }
  .public-footer a:hover { text-decoration: underline; }
  .creator-proof {
    display: grid;
    grid-template-columns: minmax(220px,.8fr) minmax(0,1.45fr);
    gap: clamp(28px,6vw,88px);
    align-items: start;
    padding: clamp(28px,5vw,56px);
    margin-top: clamp(32px,7vw,96px);
    border: 1px solid #dce5e3;
    border-radius: 22px;
    background: #fff;
  }
  .creator-proof .eyebrow { margin: 0 0 14px; color: #08777d; }
  .creator-proof h2 { margin: 0; font-size: clamp(26px,3.2vw,43px); line-height: 1.08; letter-spacing: -.035em; }
  .creator-proof p { margin: 0; color: #56656b; font-size: clamp(15px,1.4vw,18px); line-height: 1.7; }
  .creator-proof strong { color: #18262c; }
  .creator-proof a { color: #08777d; font-weight: 650; text-decoration: none; }
  .creator-proof a:hover { text-decoration: underline; }
  .search-cluster {
    margin-top: clamp(32px,7vw,96px);
    padding: clamp(28px,5vw,56px);
    border: 1px solid #dce5e3;
    border-radius: 22px;
    background: #fff;
  }
  .search-cluster-head {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 28px;
    align-items: end;
    margin-bottom: 28px;
  }
  .search-cluster-head .eyebrow { margin: 0; }
  .search-cluster-head h2 { margin: 0; font-size: clamp(28px,3.5vw,44px); line-height: 1.08; letter-spacing: -.04em; }
  .search-cluster-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .search-cluster-card {
    display: block;
    min-width: 0;
    padding: 22px;
    border: 1px solid #e2e8e7;
    border-radius: 15px;
    color: #18262c;
    text-decoration: none;
    background: #f8faf9;
  }
  .search-cluster-card strong { display: block; margin-bottom: 7px; font-size: 16px; }
  .search-cluster-card span { color: #607075; font-size: 13px; line-height: 1.5; }
  .search-cluster-card:hover { border-color: #a9ccca; background: #f0f7f6; }
  .app-account-name { font-size: 13px; font-weight: 550; }
  .app-avatar { background: #edf4f3; border-color: #dce8e6; box-shadow: none; }
  .app-logout { width: 44px; height: 44px; }
  .app-nav { box-shadow: 0 2px 8px rgba(24,35,43,.04); }
  .app-nav-link { min-height: 44px; font-weight: 600; }
  .app-nav-link.active { color: #086b70; background: #edf5f4; box-shadow: none; }
  .section-title { font-size: clamp(28px,3.4vw,40px); line-height: 1.15; font-weight: 650; }
  .btn { min-height: 44px; font-weight: 600; }
  .card, .exam-card, .question-card, .exam-basics { border-color: #e0e6e5; box-shadow: 0 2px 4px rgba(23,47,54,.03), 0 12px 32px rgba(23,47,54,.03); }
  .exam-card { border-radius: 16px; background: #fff; }
  .exam-card:last-child { border: 1px solid #e0e6e5; }
  .exam-card:hover { transform: none; box-shadow: 0 6px 20px rgba(23,47,54,.08); }
  .exam-card-main { padding: 22px 20px; }
  .exam-card-main strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; font-weight: 600; }
  .exam-meta { margin-top: 6px; }
  .panel-primary-action { flex-shrink: 0; }
  .input { min-height: 48px; }
  .file-input { width: 100%; max-width: 100%; min-width: 0; }
  .auth-card { max-width: 100%; padding: 34px; border-radius: 22px; }
  .question-type-actions {
    position: sticky !important;
    top: 72px;
    z-index: 60;
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    width: 100%;
    border-color: #dee5e3;
    box-shadow: 0 4px 18px rgba(23,47,54,.08);
  }
  .question-type-button { border-color: #dee5e3; box-shadow: none; }
  .question-type-button:hover { transform: none; background: #f3f8f7; }
}

@media screen and (min-width: 700px) and (max-width: 1100px) {
  .exam-library { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .exam-card { min-width: 0; grid-template-columns: minmax(0,1fr); grid-template-rows: 1fr auto; }
  .exam-card-main { padding: 20px 16px; grid-template-columns: 38px minmax(0,1fr) 16px; gap: 10px; }
  .exam-card-icon { width: 38px; height: 42px; }
  .exam-card-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) 34px; border-left: 0; border-top: 1px solid #edf0ef; padding: 7px; gap: 2px; overflow: visible; }
  .exam-card-actions .btn { min-width: 0; padding: 7px 2px; flex-direction: column; gap: 5px; font-size: 10px; min-height: 56px; justify-content: center; }
  .exam-card-actions .btn-danger { width: 34px; font-size: 0; }
  .exam-library > .empty { grid-column: 1 / -1; }
}

@media screen and (min-width: 601px) and (max-width: 900px) {
  .app-nav { left: 50%; right: auto; width: min(520px,calc(100% - 40px)); transform: translateX(-50%); }
  .app-content { padding-top: 32px; }
  .question-type-actions { top: 72px; }
}

@media screen and (max-width: 699px) {
  .exam-card { grid-template-columns: minmax(0,1fr); }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .panel-primary-action { justify-content: center; }
  .creator-proof { grid-template-columns: 1fr; gap: 22px; }
  .search-cluster-head { grid-template-columns: 1fr; }
}

@media screen and (max-width: 600px) {
  .app-content { padding-top: 26px; }
  .input, .auth-card input { font-size: 16px; }
  .auth-card { padding: 26px 22px; margin-block: 36px; }
  .exam-card-main { padding: 18px 15px; }
  .exam-card-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) 34px; padding: 7px; gap: 2px; overflow: visible; }
  .exam-card-actions .btn { min-width: 0; flex-direction: column; gap: 5px; min-height: 56px; font-size: 10px; padding: 7px 2px; }
  .exam-card-actions .btn-danger { width: 34px; font-size: 0; }
  .public-shell { padding-inline: 18px; }
  .search-cluster-grid { grid-template-columns: 1fr; }
  .question-type-actions { top: 66px; gap: 5px; padding: 6px; }
  .question-type-button { min-width: 0; padding-inline: 4px; }
}

/* Registro personal o institucional. */
.account-type-card { max-width: 660px; }
.account-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.account-type-option {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid #d8e2e1;
  border-radius: 20px;
  background: #fff;
  color: #17373b;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.account-type-option:hover,
.account-type-option:focus-visible {
  transform: translateY(-2px);
  border-color: #15808a;
  box-shadow: 0 14px 30px rgba(19, 61, 67, .1);
  outline: none;
}
.account-type-option.institution { background: linear-gradient(145deg, #f0f8f7, #fff); }
.account-type-option strong { font-size: 18px; letter-spacing: -.02em; }
.account-type-option span { color: #607276; line-height: 1.5; }
.auth-back-button {
  border: 0;
  padding: 0 0 18px;
  background: transparent;
  color: #176f77;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.institution-code-input { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.field-help { display: block; margin-top: 7px; color: #6a7b7e; line-height: 1.45; }

/* Administración institucional. */
.institution-admin-section { scroll-margin-top: 24px; }
.institution-create-form {
  display: grid;
  grid-template-columns: 1.35fr 1fr .75fr .9fr auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e0e9e7;
  border-radius: 18px;
  background: #f8fbfa;
}
.institution-create-form label { display: grid; gap: 7px; min-width: 0; }
.institution-create-form label > span { color: #4f676b; font-size: 12px; font-weight: 800; }
.institution-create-form .input { min-width: 0; }
.institution-create-form .btn { min-height: 46px; white-space: nowrap; }
.institution-list { display: grid; gap: 10px; margin-top: 16px; }
.institution-card {
  overflow: hidden;
  border: 1px solid #dde7e5;
  border-radius: 16px;
  background: #fff;
}
.institution-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.institution-card > summary::-webkit-details-marker { display: none; }
.institution-card > summary > div:first-child { display: grid; gap: 4px; min-width: 0; }
.institution-card > summary strong { color: #173f44; }
.institution-card > summary span:not(.review-quality) { color: #697b7e; font-size: 12px; }
.institution-summary-meta { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; }
.institution-summary-meta small { color: #748487; }
.institution-detail { padding: 0 18px 18px; border-top: 1px solid #edf2f1; }
.institution-edit-form {
  display: grid;
  grid-template-columns: 1.2fr .55fr 1fr auto;
  gap: 9px;
  align-items: end;
  padding: 14px 0 4px;
}
.institution-edit-form label { display: grid; gap: 6px; min-width: 0; }
.institution-edit-form label > span { color: #607478; font-size: 11px; font-weight: 800; }
.institution-edit-form .input { min-width: 0; }
.institution-edit-form .btn { min-height: 46px; white-space: nowrap; }
.institution-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.institution-members { display: grid; gap: 7px; }
.institution-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f6f9f8;
}
.institution-member > div { display: grid; gap: 2px; min-width: 0; }
.institution-member span { overflow: hidden; color: #63777a; font-size: 12px; text-overflow: ellipsis; }
.institution-member small { color: #526a6e; white-space: nowrap; }

@media screen and (max-width: 1050px) {
  .institution-create-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .institution-create-form .btn { grid-column: 1 / -1; }
  .institution-edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 600px) {
  .account-type-grid,
  .institution-create-form { grid-template-columns: 1fr; }
  .account-type-option { min-height: 122px; padding: 18px; }
  .institution-card > summary { align-items: flex-start; padding: 14px; }
  .institution-summary-meta { justify-items: end; }
  .institution-detail { padding: 0 14px 14px; }
  .institution-edit-form { grid-template-columns: 1fr; }
  .institution-member { align-items: flex-start; flex-direction: column; }
}

/* Control detallado de profesores, pruebas y resultados. */
.account-row { flex-wrap: wrap; }
.user-data-details {
  flex: 1 0 100%;
  width: 100%;
  margin-top: 9px;
  border-top: 1px solid #edf2f1;
}
.user-data-details > summary {
  padding: 11px 0 2px;
  color: #176f77;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  list-style-position: inside;
}
.user-data-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 0 4px;
}
.user-data-column {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2eae9;
  border-radius: 14px;
  background: #f8faf9;
}
.user-data-column h4 { margin: 0 0 9px; color: #294e53; font-size: 12px; }
.user-exam-list,
.user-result-list { display: grid; gap: 7px; }
.user-exam-list > div,
.user-result-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff;
}
.user-exam-list span,
.user-result-list span { display: grid; gap: 2px; min-width: 0; }
.user-exam-list strong,
.user-result-list strong { overflow: hidden; color: #173f44; font-size: 12px; text-overflow: ellipsis; }
.user-exam-list small,
.user-result-list small { color: #6a7d80; font-size: 10px; }
.user-result-list .result-grade { justify-items: end; flex: 0 0 auto; }
.user-result-list .result-grade strong { color: #0b737c; font-size: 16px; }
.admin-results-list { display: grid; gap: 8px; }
.admin-result-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(170px, .8fr) minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid #e2eae8;
  border-radius: 14px;
  background: #fff;
}
.admin-result-row > div { display: grid; gap: 3px; min-width: 0; }
.admin-result-row > div:nth-child(2) { justify-items: end; }
.admin-result-row strong { overflow: hidden; color: #173f44; text-overflow: ellipsis; }
.admin-result-row span,
.admin-result-row small { color: #687b7e; font-size: 11px; }
.admin-result-row > small { text-align: right; }

@media screen and (max-width: 760px) {
  .user-data-panel { grid-template-columns: 1fr; }
  .admin-result-row { grid-template-columns: 1fr auto; }
  .admin-result-row > small { grid-column: 1 / -1; text-align: left; }
}
@media screen and (max-width: 520px) {
  .account-controls { width: 100%; flex-wrap: wrap; }
  .account-controls > * { flex: 1 1 auto; }
  .admin-result-row { grid-template-columns: 1fr; }
  .admin-result-row > div:nth-child(2) { justify-items: start; }
}

/* Escala chilena editable: mínima, máxima y exigencia sin desbordes. */
.scanner-screen .grade-range-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media screen and (max-width: 520px) {
  .scanner-screen .grade-range-grid {
    grid-template-columns: 1fr;
  }
}

/* Resumen inmediato después de leer la hoja. */
.scanner-screen .scan-quick-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0;
}
.scanner-screen .scan-quick-summary span {
  min-width: 0;
  padding: 10px 7px;
  border: 1px solid #dde7e5;
  border-radius: 11px;
  background: #f6f9f8;
  color: #5b6c70;
  text-align: center;
  font-size: 10px;
  font-weight: 750;
}
.scanner-screen .scan-quick-summary strong {
  display: block;
  margin-bottom: 2px;
  color: #263a3f;
  font-size: 18px;
}
.scanner-screen .scan-quick-summary .correct strong { color: #13795b; }
.scanner-screen .scan-quick-summary .wrong strong { color: #bd3f47; }

/* Visor inmersivo y adaptable: la cámara ocupa el viewport completo en cada móvil. */
.scanner-screen {
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100%;
  padding: 0;
  overscroll-behavior: none;
  touch-action: manipulation;
}
.scanner-screen .scan-workspace,
.scanner-screen .camera {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.scanner-screen .camera { background: #071116; }
.scanner-screen .camera video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.scanner-screen .camera-capture-preview {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: #071116;
}
.scanner-screen .scanner-toolbar {
  padding-top: max(14px, env(safe-area-inset-top));
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}
.scanner-screen .scan-secondary-actions {
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}

@media screen and (max-width: 420px) {
  .scanner-screen .scanner-toolbar { gap: 10px; }
  .scanner-screen .scanner-toolbar h1 { font-size: 15px; }
  .scanner-screen .scanner-toolbar p { font-size: 11px; }
  .scanner-screen .scanner-back { width: 40px; height: 40px; }
  .scanner-screen .camera-status {
    bottom: calc(94px + env(safe-area-inset-bottom));
    max-width: calc(100% - 28px);
    font-size: 12px;
  }
  .scanner-screen .scan-secondary-actions .btn {
    min-width: 0;
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
  .scanner-screen .scanner-toolbar {
    width: min(52%, 430px);
    padding-bottom: 42px;
    background: linear-gradient(90deg, rgba(7,17,22,.94), transparent);
  }
  .scanner-screen .camera-status {
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .scanner-screen .scan-secondary-actions {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    bottom: auto;
    left: auto;
    width: auto;
    padding: 0;
    background: none;
  }
}

/* Generación de nota: una barra superior y dos mitades claras por desarrollo. */
.scanner-screen .grade-dialog-heading { display: none; }
.scanner-screen .grade-dialog { padding-top: 12px; }
.scanner-screen .grade-range-grid {
  position: sticky;
  z-index: 4;
  top: -12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 -10px 14px;
  padding: 10px;
  border: 1px solid #d5e2e0;
  border-radius: 14px;
  background: rgba(247, 251, 250, .96);
  box-shadow: 0 6px 18px rgba(22, 54, 60, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.scanner-screen .grade-range-grid label { gap: 4px; }
.scanner-screen .grade-range-grid span {
  overflow: hidden;
  color: #52676b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  text-align: center;
}
.scanner-screen .grade-range-grid .input {
  min-width: 0;
  min-height: 40px;
  padding: 7px 5px;
  border-color: #cbdad7;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}
.scanner-screen .grade-development-list {
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
}
.scanner-screen .grade-development-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  padding-top: 10px;
  border-top: 1px solid rgba(118, 99, 57, .16);
}
.scanner-screen .grade-development-row > span:first-child {
  grid-column: 1 / -1;
  padding: 0;
}
.scanner-screen .grade-development-row label {
  width: auto;
  grid-column: auto;
}
.scanner-screen .grade-development-row label:first-of-type {
  grid-row: 2;
  grid-column: 2;
}
.scanner-screen .grade-development-row label:last-of-type {
  grid-row: 2;
  grid-column: 1;
}
.scanner-screen .grade-development-row label:first-of-type small::after { content: " puntaje"; }
.scanner-screen .grade-development-row label:last-of-type small::after { content: " máximo"; }
.scanner-screen .development-score-divider { display: none; }
.scanner-screen .grade-development-row .input {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  opacity: 1;
  pointer-events: auto;
  touch-action: manipulation;
}
.scanner-screen .development-earned-input {
  border-color: #82bdb6;
  box-shadow: inset 0 0 0 1px rgba(14, 124, 134, .08);
}

@media screen and (max-width: 380px) {
  .scanner-screen .grade-range-grid { margin-inline: -6px; padding-inline: 6px; }
  .scanner-screen .grade-range-grid span { font-size: 8px; }
  .scanner-screen .grade-development-list { padding-inline: 10px; }
}

@media screen and (max-width: 380px) {
  .public-shell, .auth-page { padding-inline: 12px; }
  .public-header { gap: 8px; }
  .public-header .brand { font-size: 17px; }
  .public-header .btn { padding-inline: 8px; font-size: 11px; }
  .auth-card { padding: 24px 18px; }
  .card { padding: 18px; }
  .exam-card { padding: 0; }
  .question-type-button strong { font-size: 10px; }
}

@media screen and (pointer: coarse) {
  .input, .compact-select { font-size: 16px; }
  .verification-options button, .compact-select { min-height: 44px; }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .app-header { position: relative; }
  .app-nav { top: 8px; right: 8px; bottom: auto; left: auto; width: auto; transform: none; padding: 3px; border-radius: 13px; }
  .app-nav-link { min-height: 38px; padding: 6px 9px; flex-direction: row; gap: 5px; font-size: 10px; }
  .question-type-actions { top: 50px; }
  .app-content { padding-top: 20px; padding-bottom: 32px; }
  .auth-card { margin-block: 18px; }
  .editor-save-bar { bottom: 8px; }
}

/* Contraste AA para la portada y sus demostraciones en pantallas pequeñas. */
.public-shell .login-button { color: #4f6064 !important; }
.public-shell .correction-stage .stage-heading span { color: #505b5f !important; }
.public-shell .teacher-statement .section-label { color: #0a6c72 !important; }
.public-shell .workflow-step .step-top span { color: #536166 !important; }
.public-shell .workflow-step > p { color: #536166 !important; }
.public-shell .public-footer > span { color: #58666a !important; }

/* Controles accesibles para cerrar y reordenar preguntas. */
.question-menu-popover .menu-back {
  color: #4b5d61;
  font-weight: 800;
  border-bottom: 1px solid #e8eeec;
  margin-bottom: 3px;
}
.question-menu-popover .menu-back:hover { background: #f2f7f6; color: #075f67; }
.question-card:has(.question-menu[open]) {
  position: relative;
  z-index: 120;
}
.question-menu[open],
.question-menu[open] .question-menu-popover {
  z-index: 140;
}
.question-card {
  touch-action: pan-y;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.question-card.reorder-active {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border-color: #15808a;
  box-shadow: 0 0 0 3px rgba(21,128,138,.14), 0 16px 34px rgba(19,61,67,.12);
}
.question-reorder-toolbar {
  display: grid;
  grid-template-columns: minmax(150px,1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  margin: 0 18px 14px;
  padding: 10px;
  border: 1px solid #c9dedb;
  border-radius: 14px;
  background: #f1f8f7;
}
.question-reorder-toolbar .reorder-copy { display: grid; gap: 1px; min-width: 0; }
.question-reorder-toolbar .reorder-copy strong { color: #123f45; font-size: 13px; }
.question-reorder-toolbar .reorder-copy small { color: #597074; font-size: 11px; }
.question-reorder-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #bfd5d2;
  border-radius: 10px;
  background: #fff;
  color: #174c52;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.question-reorder-toolbar button:disabled { opacity: .38; cursor: default; }
.question-reorder-toolbar .reorder-done { border-color: #0d747d; background: #0d747d; color: #fff; }

@media screen and (max-width: 600px) {
  .question-reorder-toolbar {
    grid-template-columns: 1fr 1fr 1fr;
    margin-inline: 12px;
  }
  .question-reorder-toolbar .reorder-copy { grid-column: 1 / -1; }
  .question-reorder-toolbar button { min-height: 44px; padding-inline: 7px; }
}

/* Respuesta táctil uniforme: elimina la demora histórica de doble toque en móvil
   y hace visible inmediatamente que el control recibió la pulsación. */
:where(button, .btn, [role="button"], input[type="button"], input[type="submit"], input[type="reset"], select, summary) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(9, 118, 127, .16);
}
:where(button, .btn, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]):not(:disabled) {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
:where(button, .btn, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]):not(:disabled):active {
  opacity: .78;
  transition-duration: 0s !important;
}
:where(button, .btn, [role="button"])[aria-busy="true"] {
  cursor: wait;
}
:where(button, input[type="button"], input[type="submit"], input[type="reset"]):disabled {
  cursor: not-allowed;
}
[hidden] { display: none !important; }

@media screen and (pointer: coarse) {
  :where(button, .btn, [role="button"], input[type="button"], input[type="submit"], input[type="reset"], select, summary) {
    min-height: 44px;
  }
}

/* La vista de cámara muestra el sensor completo. `cover` recortaba los bordes
   en teléfonos altos y producía la sensación de un zoom excesivo. */
.scanner-screen .camera video {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  background: #101b20;
}

/* En teléfonos la navegación vive abajo. La acción principal del editor debe
   quedar completamente por encima para recibir el toque en toda su superficie. */
@media screen and (max-width: 760px) and (min-height: 501px) {
  .editor-save-bar {
    z-index: 54;
    bottom: calc(82px + env(safe-area-inset-bottom));
    margin-bottom: 0;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .app-nav {
    top: 8px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}
