.simple-state-page {
    margin: 0;
    font-family: Segoe UI, Tahoma, sans-serif;
    background: #f7f8fb;
    color: #1f2a37;
}

.simple-state-page .box {
    width: min(700px, 92vw);
    margin: 10vh auto;
    background: #fff;
    border: 1px solid #d8deea;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.simple-state-page a {
    display: inline-block;
    margin-top: 1rem;
    color: #0b7285;
    text-decoration: none;
    font-weight: 700;
}

:root {
    --bg: #eef2f7;
    --paper: #ffffff;
    --ink: #102033;
    --ink-soft: #5f6e80;
    --accent: #0d5c8f;
    --accent-2: #0a7f6f;
    --line: #d7e1ec;
    --warn: #8d3d1a;
    --chip: #e8f1fb;
    --shadow: 0 18px 40px rgba(8, 34, 71, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Manrope', 'Trebuchet MS', 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, #dce9fa 0%, transparent 30%),
        radial-gradient(circle at 85% 18%, #d7f1ea 0%, transparent 30%),
        var(--bg);
    min-height: 100vh;
}

.wrap {
    width: min(1060px, 94vw);
    margin: 0 auto;
    padding: 1.3rem 0 2.4rem;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: 0.2rem 0.1rem;
}

.topbar a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.card {
    background: var(--paper);
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1.35rem;
}

h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    letter-spacing: -0.02em;
}

p.sub {
    margin-top: 0;
    color: var(--ink-soft);
    max-width: 74ch;
}

.meta {
    background: linear-gradient(120deg, #eef7ff, #f2fbf9);
    border: 1px solid #cde1f5;
    border-radius: 14px;
    padding: 0.78rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: #28557d;
}

.meta-compact {
    margin-bottom: 0.9rem;
}

.form-alert {
    border-radius: 14px;
    padding: 0.78rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.4;
}

.form-alert-error {
    background: linear-gradient(120deg, #fff1ef, #fff7f2);
    border: 1px solid #f4c7c2;
    color: #8a2f1f;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.9rem;
}

label {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
    color: #263648;
    font-weight: 700;
}

input, select, textarea {
    width: 100%;
    border: 1px solid #b7c8da;
    border-radius: 12px;
    padding: 0.68rem 0.74rem;
    font: inherit;
    background: #fbfdff;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: 0;
    border-color: #4e90c7;
    box-shadow: 0 0 0 3px rgba(78, 144, 199, 0.18);
    background: #fff;
}

textarea { min-height: 92px; resize: vertical; }

h2 {
    margin: 1.45rem 0 0.85rem;
    font-size: 1.06rem;
    border: 1px solid #d8e4f0;
    background: var(--chip);
    border-radius: 12px;
    padding: 0.5rem 0.72rem;
    color: #123b61;
}

.tutor-section {
    margin-top: 0.9rem;
    border: 1px solid #d7e2ee;
    border-radius: 14px;
    background: #f8fbff;
    padding: 0.85rem;
}

.tutor-section h3 {
    margin: 0 0 0.7rem;
    font-size: 0.98rem;
    color: #123b61;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0;
}

.inline-check input[type='checkbox'] {
    width: auto;
    margin: 0;
    accent-color: var(--accent-2);
}

.tutor-alt-address.alt-row-start {
    grid-column: 1 / 2;
}

.upload-full-width {
    grid-column: 1 / -1;
}

.upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.6rem;
}

.checks label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    padding: 0.56rem 0.68rem;
    background: #f9fbff;
}

.checks input[type='checkbox'] {
    width: auto;
    margin: 0;
    accent-color: var(--accent-2);
}

.nuevo-aviso {
    margin: 0.65rem 0 0;
    padding: 0.65rem 0.78rem;
    border: 1px solid #cfe2f5;
    border-radius: 10px;
    background: #f2f8ff;
    color: #23496f;
    font-size: 0.9rem;
    line-height: 1.35;
}

.consent-imagen {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-weight: 600;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    padding: 0.56rem 0.68rem;
    background: #f9fbff;
}

.consent-imagen .consent-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.consent-imagen label {
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    font-weight: 600;
}

.consent-imagen a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

.declaracion-responsable-box {
    width: 100%;
}

.declaracion-responsable-main {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.declaracion-responsable-main span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: left;
}

.declaracion-responsable-main input[type='checkbox'] {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0;
    margin-top: 0.15rem;
}

.declaracion-responsable-box a {
    display: inline-block;
    margin-top: 0.1rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 32, 51, 0.52);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 1000;
}

.modal-overlay.open {
    display: flex;
}

.modal-window {
    width: min(920px, 96vw);
    height: min(84vh, 780px);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 52px rgba(10, 36, 62, 0.3);
    border: 1px solid #d7e1ec;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #d7e1ec;
    background: #f7fbff;
}

.modal-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #123b61;
}

.modal-head-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.modal-clear {
    border: 0;
    border-radius: 999px;
    padding: 0.44rem 0.82rem;
    font: inherit;
    font-weight: 700;
    color: #123b61;
    background: #e7f0fb;
    cursor: pointer;
    margin: 0;
    box-shadow: none;
}

.modal-close {
    border: 0;
    border-radius: 999px;
    padding: 0.44rem 0.82rem;
    font: inherit;
    font-weight: 700;
    color: #123b61;
    background: #e7f0fb;
    cursor: pointer;
    margin: 0;
    box-shadow: none;
}

.modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    flex: 1;
    background: #fff;
}

.modal-window-optativas {
    width: auto;
    height: auto;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
}

.modal-window-optativas .modal-frame {
    width: auto;
    height: auto;
    flex: 0 0 auto;
}

.modal-window-declaracion {
    width: min(980px, 96vw);
    height: min(88vh, 820px);
}

.modal-window-error {
    width: min(560px, 95vw);
    height: auto;
    border: 1px solid #f2c5c0;
    box-shadow: 0 24px 58px rgba(120, 28, 15, 0.24);
}

.modal-head-error {
    background: linear-gradient(120deg, #fff2ef, #ffeae7);
    border-bottom-color: #f2c5c0;
}

.modal-head-error h3 {
    color: #8a2415;
    font-size: 1.06rem;
}

.modal-close-error {
    background: #fde3df;
    color: #8a2415;
}

.modal-error-body {
    padding: 1rem;
    background: linear-gradient(180deg, #fffefe, #fff8f7);
}

.modal-error-body p {
    margin: 0;
}

#modal-form-error-message {
    color: #61190f;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.45;
    padding-left: 2rem;
    position: relative;
}

#modal-form-error-message::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(120deg, #c53524, #a22a1b);
}

.modal-error-help {
    margin-top: 0.72rem !important;
    color: #8d3d1a;
    font-size: 0.92rem;
}

.modal-error-actions {
    margin-top: 0.95rem;
    display: flex;
    justify-content: flex-end;
}

.modal-error-confirm {
    margin-top: 0;
    border: 0;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    font: inherit;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(120deg, #c53524, #a22a1b);
    box-shadow: 0 10px 22px rgba(120, 28, 15, 0.26);
    cursor: pointer;
}

.modal-error-confirm:hover {
    filter: brightness(1.04);
}

@media (max-width: 640px) {
    .modal-error-actions {
        justify-content: stretch;
    }

    .modal-error-confirm {
        width: 100%;
    }
}

.modal-declaracion-content {
    padding: 0.95rem 1rem 1.05rem;
    overflow-y: auto;
    color: #21384f;
    line-height: 1.45;
    font-size: 0.92rem;
}

.modal-declaracion-content p {
    margin: 0 0 0.72rem;
}

.declaracion-causas {
    margin: 0 0 0.8rem;
    padding-left: 1.1rem;
}

.declaracion-causas li {
    margin-bottom: 0.34rem;
}

.declaracion-aceptacion {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.95rem;
    margin-bottom: 0.55rem;
    font-weight: 700;
    color: #123b61;
}

.declaracion-aceptacion input[type='checkbox'] {
    width: auto;
    margin-top: 0.2rem;
    accent-color: var(--accent-2);
}

.modal-declaracion-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.7rem;
}

.modal-declaracion-actions button,
.modal-declaracion-actions .secondary-btn {
    margin-top: 0;
}

#modal-adjunto .modal-window {
    width: 85vw;
    height: 85vh;
    max-width: 850px;
    max-height: 700px;
}

.optativas-box {
    border: 1px solid #d7e2ee;
    border-radius: 14px;
    background: #f8fbff;
    padding: 0.9rem;
}

.optativas-help {
    margin: 0 0 0.65rem;
    color: #355476;
    font-size: 0.92rem;
}

.optativas-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.optativas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.52rem 0.92rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, #0d5c8f, #0a7f6f);
    text-decoration: none;
}

.optativas-btn.is-disabled {
    background: #9aa8b8;
    pointer-events: none;
    opacity: 0.75;
}

.optativas-accept-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #163f63;
    font-weight: 700;
    font-size: 0.93rem;
}

.optativas-accept-check input {
    width: 1rem;
    height: 1rem;
}

.hint {
    margin-top: 0.95rem;
    color: var(--warn);
    font-size: 0.92rem;
    background: #fff4ee;
    border: 1px solid #f3d7c8;
    padding: 0.62rem 0.72rem;
    border-radius: 10px;
}

button {
    margin-top: 1.1rem;
    border: 0;
    border-radius: 999px;
    padding: 0.78rem 1.35rem;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(120deg, #0d5c8f, #0a7f6f);
    box-shadow: 0 10px 22px rgba(12, 87, 126, 0.28);
    transition: transform .15s ease, filter .2s ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.spacer-top {
    margin-top: 0.9rem;
}

.upload-block {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(120deg, #eef6ff, #f2fbf9);
    border: 1.5px dashed #9ebfe0;
    border-radius: 16px;
}

.upload-block.visible { display: block; }

.tutor-alt-address[hidden] { display: none !important; }

.upload-block > p {
    margin: 0 0 0.8rem;
    color: #1a4e78;
    font-weight: 700;
    font-size: 0.95rem;
}

.adjuntos-box {
    margin-top: 1rem;
    padding: 0.9rem;
    border: 1px solid #d7e2ee;
    border-radius: 14px;
    background: #f8fbff;
}

.adjuntos-box h3 {
    margin: 0 0 0.65rem;
    font-size: 0.98rem;
    color: #123b61;
}

.adjuntos-empty {
    margin: 0;
    color: #486684;
    font-size: 0.92rem;
}

.adjuntos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 200px));
    gap: 0.65rem;
}

.adjunto-card {
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
}

.adjunto-label {
    margin: 0 0 0.48rem;
    color: #1f3d59;
    font-size: 0.9rem;
    font-weight: 700;
}

.adjunto-preview-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    font-size: 0.88rem;
}

.adjunto-thumb-link {
    display: block;
    text-decoration: none;
    margin-bottom: 0.45rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    max-height: 150px;
}

.adjunto-thumb {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #d1deec;
    background: #eef4fb;
}

.adjunto-thumb-pdf,
.adjunto-thumb-generic {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #2f587f;
    letter-spacing: 0.05em;
    width: 100%;
    height: 100%;
}

.adjunto-thumb-pdf {
    color: #8a2f23;
    background: #fdf0ef;
    border-color: #e8c8c5;
}

@media (max-width: 760px) {
    .adjuntos-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .adjunto-card {
        width: 100%;
    }

    .adjunto-thumb-link {
        min-height: 140px;
        max-height: 160px;
    }
}

input[type='file'] {
    width: 100%;
    border: 1px solid #b7c8da;
    border-radius: 12px;
    padding: 0.48rem 0.74rem;
    font: inherit;
    background: #fff;
    cursor: pointer;
}

input[type='file']::file-selector-button {
    background: var(--chip);
    border: 1px solid #b7c8da;
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    margin-right: 0.6rem;
    font: inherit;
    font-weight: 700;
    color: #123b61;
    cursor: pointer;
}

label small {
    font-weight: 500;
    color: var(--ink-soft);
}

.file-status {
    display: block;
    margin-top: 0.35rem;
    color: #4b627a;
    font-size: 0.85rem;
    font-weight: 600;
}

input.field-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
    background: #fff8f7;
}

small.field-error-msg {
    display: block;
    margin-top: 0.35rem;
    color: #8a2f1f;
    font-size: 0.85rem;
    font-weight: 600;
}

.estudios-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0.6rem;
}

.estudios-table th {
    background: var(--chip);
    color: #123b61;
    font-weight: 700;
    padding: 0.52rem 0.72rem;
    border: 1px solid #d7e2ee;
    text-align: left;
}

.estudios-table td {
    padding: 0.4rem 0.62rem;
    border: 1px solid #d7e2ee;
    vertical-align: middle;
}

.estudios-table td:last-child {
    width: 120px;
}

.estudios-table td input[type='text'] {
    border-radius: 8px;
    padding: 0.38rem 0.55rem;
    font-size: 0.88rem;
}

.estudios-table td input[type='text'].inline {
    display: block;
    margin-left: auto;
    width: 520px;
    min-width: 520px;
    max-width: 100%;
}

.estudios-table td.estudio-nombre-cell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.estudios-table td.estudio-nombre-cell > span {
    white-space: nowrap;
}

.estudios-aportados {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
}

.estudios-aportados-title {
    font-size: 0.88rem;
    color: #5f6e80;
    letter-spacing: 0.03em;
}

.estudios-aportados .ea-label {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    font-weight: 600;
}

.estudios-aportados .ea-label input[type='checkbox'] {
    width: auto;
    margin: 0;
    accent-color: var(--accent-2);
}

.estudios-aportados .ea-otros {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    font-weight: 600;
}

.estudios-aportados .ea-otros-label {
    margin: 0;
    font-weight: 600;
}

.estudios-aportados .ea-otros input[type='text'] {
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    font-size: 0.88rem;
    width: 300px;
}

.expediente-bar {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    margin-bottom: 0.3rem;
}

.expediente-bar .hero-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1 1 auto;
}

.hero-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.25rem;
}

.expediente-bar h1 {
    margin: 0;
}

.expediente-fields {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-left: auto;
}

.expediente-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
}

.expediente-field label {
    margin: 0;
    font-size: 0.88rem;
    white-space: nowrap;
    color: #123b61;
    font-weight: 700;
    width: auto;
    text-align: left;
}

.expediente-field input {
    width: 130px;
    border-radius: 10px;
    font-size: 0.9rem;
    padding: 0.42rem 0.62rem;
    background: #f3f7fc;
    color: #102033;
}

#num_expediente {
    width: 130px;
    text-align: left;
}

.expediente-field input[readonly] {
    border-color: #c8d8e8;
    background: #edf3f9;
    color: #4a6070;
    cursor: default;
}

.solicitud-fechas-box {
    margin: 0.2rem 0 1rem;
    border: 1px solid #cfe0f1;
    border-radius: 12px;
    background: linear-gradient(120deg, #f5f9fe, #f3faf8);
    padding: 0.7rem 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 45%;
    min-width: 280px;   
}

.solicitud-fecha-item {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.solicitud-fecha-label {
    font-size: 0.87rem;
    font-weight: 700;
    color: #1e4970;
}

.solicitud-fecha-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #203547;
    letter-spacing: 0.01em;
}

#tutor-required-badge {
    display: none;
    font-size: 0.78rem;
    font-weight: 600;
    background: #fff0e8;
    color: #8d3d1a;
    border: 1px solid #f3d7c8;
    border-radius: 8px;
    padding: 0.15rem 0.55rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

#seguro-menor-bloque,
#seguro-mayor-bloque {
    display: none;
}

.seguro-mayor-msg {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.actions-grid {
    grid-template-columns: 1fr auto auto auto;
    align-items: end;
    gap: 0.7rem;
}

.firma-hint {
    margin: 0.35rem 0 0.8rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.signature-card {
    border: 1px solid #d7e2ee;
    border-radius: 14px;
    background: #f8fbff;
    padding: 0.75rem;
}

.signature-canvas {
    width: 100%;
    max-width: 100%;
    height: 160px;
    border: 1px solid #c7d6e8;
    border-radius: 10px;
    background: #fff;
    touch-action: none;
    cursor: crosshair;
}

.signature-actions {
    margin-top: 0.55rem;
    display: flex;
    justify-content: flex-end;
}

.secondary-btn {
    border: 1px solid #c7d6e8;
    border-radius: 999px;
    background: #f4f8fc;
    color: #25496c;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.36rem 0.8rem;
    cursor: pointer;
}

.secondary-btn:hover {
    background: #eaf2fb;
}

.back-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.1rem;
    border: 1px solid #c7d6e8;
    border-radius: 999px;
    padding: 0.78rem 1.35rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: #25496c;
    background: #f4f8fc;
    text-decoration: none;
}

.action-disabled {
    margin-top: 1.1rem;
}

@media (max-width: 700px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .card { padding: 1rem; border-radius: 18px; }
    .expediente-bar { flex-direction: column; align-items: flex-start; }
    .expediente-bar .hero-title { align-items: flex-start; gap: 0.65rem; }
    .hero-logo { width: 48px; height: 48px; }
    .expediente-fields { align-items: flex-start; justify-content: flex-start; }
    .expediente-field { justify-content: flex-start; }
    .estudios-table td:last-child { width: 80px; }
    .estudios-table td input[type='text'].inline {
        width: 320px;
        min-width: 320px;
    }
    .estudios-aportados .ea-otros input[type='text'] { width: 300px; }
    .upload-grid { grid-template-columns: 1fr; }
    .actions-grid { grid-template-columns: 1fr; }
}