.evaluation-modal {
  width: min(900px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  height: min(820px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 28px;
  background: #f8fafb;
  color: var(--color-primary);
  box-shadow: 0 30px 100px rgba(16,27,59,.35);
  overflow: hidden;
}
.evaluation-modal[open] { display: flex; flex-direction: column; animation: evaluationEnter .25s ease-out; }
.evaluation-modal::backdrop { background: rgba(16,27,59,.6); animation: evaluationBackdrop .2s ease-out; }
.evaluation-modal.is-closing { animation: evaluationExit .16s ease-in forwards; }
.evaluation-modal.is-closing::backdrop { animation: evaluationBackdrop .16s ease-in reverse forwards; }
.evaluation-modal__header { display: flex; align-items: flex-start; gap: 14px; flex-shrink: 0; padding: 24px 28px 20px; background: white; border-bottom: 1px solid var(--color-border); }
.evaluation-modal__icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: #1a7a4c; }
.evaluation-modal__icon svg { width: 26px; height: 26px; fill: white; }
.evaluation-modal__heading { flex: 1; min-width: 0; }
.evaluation-modal__heading h2 { font-family: var(--font-heading); font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
.evaluation-modal__heading p { font-size: 14px; line-height: 1.45; color: var(--color-text-secondary); margin: 0; }
.evaluation-modal__sede { display: block; margin-top: 7px; font: 600 12px var(--font-mono); color: #1a7a4c; }
.evaluation-modal__close { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--color-border); border-radius: 50%; background: #f0f3fa; color: var(--color-primary); font-size: 28px; cursor: pointer; line-height: 1; }
.evaluation-modal__close:hover { background: #e8f7ef; }
.evaluation-modal__close:focus-visible { outline: 3px solid #1a7a4c; outline-offset: 3px; }
.evaluation-modal__frame { flex: 1; min-height: 0; width: 100%; border: 0; background: #f8fafb; }
.evaluation-modal__loading { padding: 40px 24px; text-align: center; font-size: 16px; }
.evaluation-modal__fallback { display: inline-block; margin-top: 20px; text-decoration: underline; color: var(--color-primary); }
.evaluation-modal [hidden] { display: none !important; }
@keyframes evaluationEnter { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes evaluationExit { to { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes evaluationBackdrop { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .evaluation-modal { width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); border-radius: 20px; }
  .evaluation-modal__header { padding: 16px 14px 14px; gap: 10px; }
  .evaluation-modal__icon { width: 32px; height: 32px; border-radius: 10px; }
  .evaluation-modal__icon svg { width: 22px; height: 22px; }
  .evaluation-modal__heading h2 { font-size: 18px; }
  .evaluation-modal__heading p { font-size: 13px; }
  .evaluation-modal__close { width: 32px; height: 32px; font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .evaluation-modal[open], .evaluation-modal::backdrop, .evaluation-modal.is-closing, .evaluation-modal.is-closing::backdrop { animation: none; }
}
