:root {
    --white: #ffffff;
    --black: #0f0f0f;
    --gray: #f1f1f1;
    --purple: #593068;
    --purple-soft: #8f68a1;
    --radius: 18px;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

html {
    overflow-y: auto;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI Variable", "Candara", "Gill Sans", sans-serif;
    color: var(--black);
    background: linear-gradient(120deg, #ffffff 0%, #f3ebf8 36%, #efe5f6 58%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background:
        radial-gradient(circle at 14% 14%, rgba(89, 48, 104, 0.5), transparent 26%),
        radial-gradient(circle at 78% 68%, rgba(15, 15, 15, 0.44), transparent 28%),
        radial-gradient(circle at 50% 44%, rgba(89, 48, 104, 0.34), transparent 24%),
        radial-gradient(circle at 34% 80%, rgba(15, 15, 15, 0.22), transparent 24%),
        radial-gradient(circle at 86% 20%, rgba(89, 48, 104, 0.26), transparent 22%),
        radial-gradient(circle at 60% 52%, rgba(255, 255, 255, 0.85), transparent 30%);
    filter: saturate(1.14) contrast(1.04);
    animation: drift 6.6s ease-in-out infinite alternate;
}

body::after {
    background:
        linear-gradient(45deg, rgba(89, 48, 104, 0.24) 0%, rgba(15, 15, 15, 0.2) 100%),
        repeating-linear-gradient(120deg, transparent 0 10px, rgba(89, 48, 104, 0.16) 10px 11px, transparent 11px 23px),
        repeating-linear-gradient(40deg, transparent 0 12px, rgba(15, 15, 15, 0.12) 12px 13px, transparent 13px 26px),
        radial-gradient(circle at 48% 38%, rgba(255, 255, 255, 0.66), transparent 36%);
    mix-blend-mode: multiply;
    animation: pulseGrid 2.9s ease-in-out infinite;
}

.page {
    width: min(1200px, 92vw);
    margin: 2rem auto;
    display: grid;
    gap: 1.2rem;
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.eyebrow {
    display: inline-block;
    color: var(--purple);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

h1 {
    margin: 0.3rem 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 0.95;
}

.subtitle {
    margin: 0;
    max-width: 62ch;
    color: #2a2a2a;
}

.panel {
    background: var(--white);
    border: 1px solid #d9d9d9;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.block {
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 1rem;
}

.capture-upload-stack {
    display: grid;
    gap: 0.95rem;
}

.capture-divider {
    position: relative;
    text-align: center;
}

.capture-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #d2d2d2;
}

.capture-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.6rem;
    background: #fafafa;
    color: #505050;
    font-weight: 600;
    text-transform: uppercase;
}

/* Sección de código QR */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 1.5rem 1rem;
    text-align: center;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: #666;
    font-size: 0.9rem;
}
.qr-loading[hidden],
.qr-display[hidden],
.qr-error[hidden] {
    display: none;
}

.qr-loading .spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.qr-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.qr-image {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.qr-instruction {
    margin: 0;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.4;
}

.qr-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: #a33;
    font-size: 0.9rem;
}

.qr-error p {
    margin: 0;
}

/* Botón pequeño para refrescar QR */
.btn-mini {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
}

.mini-title {
    margin: 0 0 0.55rem;
    font-size: 1.02rem;
}

.guide-card {
    border: 1px solid #d7c9de;
    border-radius: 14px;
    padding: 1rem;
    background:
        radial-gradient(circle at 92% 10%, rgba(89, 48, 104, 0.18), transparent 38%),
        linear-gradient(155deg, #ffffff 0%, #f7f1fa 100%);
    box-shadow: 0 10px 24px rgba(89, 48, 104, 0.12);
}

.guide-kicker {
    margin: 0;
    color: #593068;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.guide-title {
    margin: 0.25rem 0 0;
    font-size: 1.2rem;
    line-height: 1.15;
}

.guide-intro {
    margin: 0.55rem 0 0.9rem;
    color: #333;
    line-height: 1.4;
}

.guide-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.guide-steps li {
    position: relative;
    margin-left: 2.3rem;
    padding: 0.75rem 0.75rem 0.75rem 0.85rem;
    border: 1px solid #e0d4e6;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
}

.guide-steps li::before {
    content: counter(guide-step);
    counter-increment: guide-step;
    position: absolute;
    left: -2.35rem;
    top: 50%;
    width: 1.85rem;
    height: 1.85rem;
    margin-top: -0.925rem;
    border-radius: 50%;
    border: 1px solid rgba(89, 48, 104, 0.38);
    background: linear-gradient(160deg, #ffffff 0%, #efe4f4 100%);
    color: #40224d;
    font-weight: 800;
    font-size: 0.86rem;
    display: grid;
    place-items: center;
    box-shadow:
        0 0 0 4px rgba(89, 48, 104, 0.11),
        0 6px 12px rgba(89, 48, 104, 0.2);
}

.guide-steps {
    counter-reset: guide-step;
}

.guide-step-title {
    margin: 0;
    font-weight: 700;
    color: #191919;
}

.guide-step-copy {
    margin: 0.3rem 0 0;
    color: #3a3a3a;
    line-height: 1.35;
}

h2 {
    margin: 0 0 0.7rem;
}

.file-picker {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.file-input-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.file-name {
    display: inline-block;
    min-height: 1.5rem;
    font-size: 0.9rem;
    color: #3a3a3a;
    max-width: min(100%, 420px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn {
    border: 1px solid var(--purple);
    background: var(--purple);
    color: var(--white);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: #492759;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

/* Soporte modo kiosko - administrador */
body.admin-visible #exit-fullscreen-btn {
    display: inline-flex !important;
}

body.admin-visible .admin-delete-btn {
    display: inline-flex !important;
}

body.actions-hidden .actions {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

.btn-danger {
    border: 1px solid #b33a3a;
    background: #b33a3a;
    color: #ffffff;
}

.btn-danger:hover {
    background: #8f2e2e;
    transform: translateY(-2px);
}

.btn-outline:disabled,
.btn-outline[aria-disabled="true"] {
    background: #f4f0f6;
    color: #7e6f86;
    border-color: #c8bdd0;
}

.btn-outline {
    background: var(--white);
    color: var(--purple);
}

.btn-outline:hover {
    color: var(--white);
}

.btn-mini {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.field-select {
    min-width: 220px;
    border: 1px solid #c8b8ce;
    background: linear-gradient(180deg, #ffffff 0%, #f5f1f8 100%);
    color: #2a2a2a;
    border-radius: 999px;
    padding: 0.52rem 2.2rem 0.52rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(89, 48, 104, 0.12);
    background-image:
        linear-gradient(45deg, transparent 50%, #593068 50%),
        linear-gradient(135deg, #593068 50%, transparent 50%);
    background-position:
        calc(100% - 15px) calc(1em + 1px),
        calc(100% - 10px) calc(1em + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.field-select:focus {
    border-color: #593068;
    box-shadow: 0 0 0 3px rgba(89, 48, 104, 0.18);
}

.table-wrap {
    overflow: auto;
    border: 1px solid #ddd;
    border-radius: 12px;
}

.pagination-bar {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
}

.pagination-info {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    min-width: 28px;
    text-align: center;
}

.page-arrow {
    min-width: 40px;
    padding: 0.42rem 0.7rem;
    font-size: 1rem;
    line-height: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

th,
td {
    border-bottom: 1px solid #eee;
    text-align: left;
    padding: 0.75rem;
    vertical-align: top;
}

thead {
    background: #f5eef8;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.action-col,
.action-cell {
    text-align: right;
}

pre {
    background: #161616;
    color: #f0f0f0;
    border-radius: 10px;
    padding: 1rem;
    overflow: auto;
}

.panel,
.block {
    animation: rise 420ms ease both;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 30;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    margin: 4vh auto;
    width: min(1160px, 96vw);
    height: 92vh;
    background: #ffffff;
    border: 2px solid #2a2a2a;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #d7d7d7;
    background: linear-gradient(90deg, #ffffff 0%, #f2edf6 100%);
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Overlay de carga del visor (PDF y otros) */
.viewer-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
}

.viewer-loading[hidden] {
    display: none;
}

.toast-region {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 80;
    display: grid;
    gap: 0.6rem;
    width: min(420px, calc(100vw - 2rem));
}

.toast {
    border: 1px solid #1f7a46;
    background: linear-gradient(135deg, #f2fff7 0%, #e4f8ee 100%);
    color: #11492c;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    padding: 0.85rem 0.95rem;
    animation: toastIn 260ms ease both;
}

.toast-title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.toast-copy {
    margin: 0;
    font-size: 0.88rem;
    color: #20563a;
}

/* Overlay de procesamiento */
.processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(3px);
}

.processing-overlay[hidden] {
    display: none;
}

.processing-dialog {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 18px;
    padding: 2rem 2.5rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2d6e8;
    border-top-color: #593068;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-text {
    margin: 0;
    color: #333;
    font-weight: 600;
}

/* Modal de confirmación compacto */
.confirm-modal-content {
    width: min(480px, 92vw) !important;
    height: auto !important;
    display: block !important;
    padding: 0;
}

.confirm-body {
    padding: 1.2rem 1.2rem 0.4rem;
}

.confirm-body p {
    margin: 0 0 0.5rem;
}

.confirm-note {
    color: #555;
    font-size: 0.88rem;
}

.confirm-actions {
    padding: 0.8rem 1.2rem 1.2rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

/* Modal selector de archivos kiosko - apariencia Windows */
.win-modal {
    z-index: 34;
}

.win-modal-backdrop {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.win-dialog {
    grid-template-rows: auto auto 1fr auto auto;
    width: min(720px, 94vw);
    height: auto;
    max-height: 92vh;
    border-radius: 8px;
    border: 1px solid #b3b3b3;
    background: #f0f0f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.win-titlebar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem 0.4rem 0.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #ececec 100%);
    border-bottom: 1px solid #d0d0d0;
}

.win-title-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2c94c 0%, #f2994a 55%, #eb5757 100%);
    flex: 0 0 auto;
}

.win-title-text {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f1f1f;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win-window-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.win-caption-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 26px;
    border: none;
    background: transparent;
    color: #1f1f1f;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
}

.win-caption-btn:hover {
    background: #e5e5e5;
}

.win-caption-close:hover {
    background: #e81123;
    color: #ffffff;
}

.win-sim-banner {
    background: #fff9d7;
    color: #5f4b00;
    border-bottom: 1px solid #e2d48f;
    padding: 7px 14px;
    font-size: 0.78rem;
}

.win-listwrap {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.kiosk-file-list.win-list {
    display: block;
    overflow: auto;
    padding: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #d0d0d0;
}

.kiosk-file-list.win-icon-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-content: start;
    gap: 0.5rem;
    padding: 12px;
}

.kiosk-file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 160px;
    justify-self: center;
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    text-align: center;
    color: #1a1a1a;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.kiosk-file-item:hover {
    background: rgba(222, 235, 247, 0.55);
}

.kiosk-file-item.selected,
.kiosk-file-item:focus {
    background: #cce4f7;
    outline: 1px solid #7fb3e0;
}

.kiosk-file-icon {
    position: relative;
    width: 60px;
    height: 74px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    border: 1px solid #c9c9c9;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    display: block;
    overflow: hidden;
    flex: 0 0 auto;
}

.kiosk-file-icon::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 0;
    border-color: transparent #e6e6e6 transparent transparent;
}

.kiosk-file-ext {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #707070;
}

.ft-pdf .kiosk-file-ext {
    background: #d93025;
}

.ft-word .kiosk-file-ext {
    background: #2b579a;
}

.ft-excel .kiosk-file-ext {
    background: #217346;
}

.ft-image .kiosk-file-ext {
    background: #8f5fd7;
}

.ft-generic .kiosk-file-ext {
    background: #707070;
}

.kiosk-file-name {
    font-size: 0.78rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
    text-align: center;
}

.kiosk-empty {
    margin: 0;
    color: #777;
    text-align: center;
    padding: 1.5rem 0;
}

.win-statusbar {
    padding: 0.25rem 0.7rem;
    border-top: 1px solid #d0d0d0;
    background: #f0f0f0;
    font-size: 0.72rem;
    color: #333;
}

.kiosk-picker-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    padding: 0.6rem 0.7rem;
    background: #f0f0f0;
}

.win-filename-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    color: #1a1a1a;
    white-space: nowrap;
}

.win-filename-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #8a8a8a;
    border-radius: 2px;
    background: #ffffff;
    color: #1a1a1a;
    padding: 0.32rem 0.5rem;
    font-size: 0.82rem;
    font-family: inherit;
}

.win-filename-input::placeholder {
    color: #999;
}

.win-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.win-abrir-btn,
.win-cancel-btn {
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    box-shadow: none;
}

.win-abrir-btn:hover,
.win-cancel-btn:hover {
    transform: none;
}

#viewer-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

#viewer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    min-width: 0;
    min-height: 0;
    display: block;
    margin: 0 auto;
    background:
        linear-gradient(45deg, #f2f2f2 25%, transparent 25%),
        linear-gradient(-45deg, #f2f2f2 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f2f2f2 75%),
        linear-gradient(-45deg, transparent 75%, #f2f2f2 75%);
    background-size: 22px 22px;
        background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

/* Cuando el visor NO debe mostrar la imagen (PDF, DOCX, Excel, CSV, JSON),
   el atributo hidden debe ocultarla aunque display:block tenga más peso. */
#viewer-image[hidden] {
    display: none;
}

#viewer-text {
    margin: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: #ffffff;
    color: #1a1a1a;
    padding: 1rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Visor de PDF renderizado con PDF.js (sin la barra nativa del navegador) */
.viewer-pdf {
    position: relative;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #f5f0e8;
}

.viewer-pdf[hidden] {
    display: none;
}

.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: #e3dacb;
    border-bottom: 1px solid #d6ccbb;
}

.pdf-toolbar .btn {
    color: #4a3f32;
    border-color: #c4b9a6;
    background: rgba(0, 0, 0, 0.04);
}

.pdf-toolbar .btn:hover {
    background: rgba(0, 0, 0, 0.10);
}

.pdf-page-info {
    color: #5c5243;
    font-size: 0.82rem;
    min-width: 4.5rem;
    text-align: center;
}

.pdf-canvas-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
}

.pdf-canvas-wrap canvas {
    max-width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.pdf-msg {
    color: #6b6051;
    font-size: 0.9rem;
    padding: 2rem;
    text-align: center;
}

@keyframes drift {
    from {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(2%, 1.5%, 0) scale(1.04);
    }
}

@keyframes pulseGrid {
    0%,
    100% {
        opacity: 0.54;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 940px) {
    .hero,
    .panel-grid {
        grid-template-columns: 1fr;
    }

    .table-header {
        align-items: stretch;
        flex-direction: column;
    }

    .field-select {
        width: 100%;
    }

    .guide-steps li {
        margin-left: 0;
        padding-left: 2.6rem;
    }

    .guide-steps li::before {
        left: 0.6rem;
        top: 0.66rem;
        margin-top: 0;
    }

    .page {
        width: min(960px, 95vw);
        margin-top: 1.2rem;
    }
}
