:root{--ink:#183b35;--muted:#6d7d77;--accent:#d5ee78;--line:#dce3da;--paper:#f6f7f1}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}header,main,footer{max-width:1120px;margin:auto}header{height:98px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}a{color:inherit}.brand{font:800 28px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-decoration:none;display:flex;align-items:center;gap:10px}.logo{background:var(--ink);color:var(--accent);border-radius:12px;padding:0 10px;font-size:34px}.dot{color:#719742;margin-left:-10px}.local{font-size:12px;display:flex;align-items:center;gap:8px}.local i{width:7px;height:7px;background:#729d56;border-radius:50%}.intro{padding:57px 0 36px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#718066}h1,h2,h3,p{margin-top:0}h1{font:700 clamp(34px,5vw,52px)/1.17 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-2px;margin:16px 0 20px}h1 span{color:#7a8b74}.intro p{line-height:1.75;color:var(--muted);font-size:16px}.workspace{display:grid;grid-template-columns:1.25fr 1fr;gap:50px}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:0 5px 20px #183b3504}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}h2{font:700 18px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0}.step{font-size:9px;letter-spacing:1px;color:var(--muted)}.drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;border:1.5px dashed #b8c6af;border-radius:12px;min-height:220px;background:#f9fbf5;cursor:pointer;padding:20px}.drop:hover,.dragging{background:#eff6db;border-color:#53734c}.drop strong{font-size:15px;max-width:100%;overflow-wrap:anywhere}.drop span:not(.upload-icon){font-size:12px;color:var(--muted)}.drop small{font-size:10px;color:var(--muted)}.upload-icon{width:46px;height:46px;border-radius:50%;background:#eaf0dd;font-size:29px;margin-bottom:4px}.drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.drop:focus-within{outline:2px solid var(--ink);outline-offset:3px}.field{margin:24px 0}.field label{display:block;font-size:12px;font-weight:600;margin-bottom:10px}select{width:100%;border:1px solid var(--line);border-radius:8px;background:white;padding:12px;color:var(--ink);font:inherit;font-size:13px}button{cursor:pointer;font:inherit}.primary{width:100%;border:0;border-radius:9px;padding:15px 18px;background:var(--ink);color:white;font-size:13px;font-weight:600;display:flex;justify-content:space-between}.primary span{color:var(--accent)}.primary:hover{background:#28564b}.primary:disabled{opacity:.6}.hint{font-size:11px;line-height:1.6;color:var(--muted);margin:14px 0 0}.guide{padding:25px 5px}.guide>h2{font-size:25px;line-height:1.4;margin:16px 0 25px;letter-spacing:-.6px}.guide-row{display:flex;gap:16px;margin:22px 0}.guide-row b{background:#e9eddf;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:12px;flex-shrink:0}h3{font-size:13px;margin:2px 0 7px}.guide p{color:var(--muted);font-size:12px;line-height:1.6;margin:0}.privacy{border-top:1px solid var(--line);padding-top:20px;margin-top:28px;font-size:13px;font-weight:600}.privacy p{font-weight:400;margin-top:7px}.history{margin:48px 0}.muted{color:var(--muted);font-size:12px}.empty{padding:28px;text-align:center;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:13px}.history-row{display:flex;align-items:center;gap:18px;padding:19px 5px;border-bottom:1px solid var(--line);text-decoration:none}.history-row>div{flex:1;min-width:0}.history-row strong{display:block;overflow-wrap:anywhere;font-size:13px}.history-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.file-icon{background:#e8eddf;padding:8px 12px;border-radius:8px}.badge{display:inline-block;border-radius:20px;padding:6px 10px;font-size:10px;background:#e8ecdf;white-space:nowrap}.badge.done{background:#e3efce;color:#426036}.badge.error{background:#fbe6df;color:#943c28}.badge.processing{background:#f6edcc;color:#80652d}footer{border-top:1px solid var(--line);padding:25px 0;display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.back{display:inline-block;text-decoration:none;font-size:12px;margin-top:35px}.detail-heading{padding:35px 0}.detail-heading h1{font-size:32px;overflow-wrap:anywhere}.detail-heading .muted{margin-left:12px}.actions{display:flex;gap:8px;flex-wrap:wrap}.secondary{font-size:12px;padding:9px 13px;border:1px solid var(--line);border-radius:7px;text-decoration:none;background:white}.transcript{white-space:pre-wrap;line-height:1.9;font-size:16px;overflow-wrap:anywhere}.result{min-height:260px;margin-bottom:20px}.waiting{text-align:center;max-width:530px;margin:25px auto}.waiting p{color:var(--muted);line-height:1.7;font-size:13px;margin-top:20px}.spinner{display:block;width:32px;height:32px;border:3px solid #e6eddd;border-top-color:#547751;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 25px}@keyframes spin{to{transform:rotate(360deg)}}.delete-form{margin:0 0 40px}.delete{border:none;background:none;color:#946758;font-size:12px;padding:0}.errorlist{color:#a03c28;font-size:12px;padding-left:18px}#copy-status{font-size:12px;color:#53734c}@media(max-width:760px){header,main,footer{margin-left:22px;margin-right:22px}header{height:78px}.brand{font-size:23px}.local{font-size:10px}.workspace{grid-template-columns:1fr;gap:14px}.intro{padding-top:35px}.card{padding:22px}.guide{padding:25px 6px}.history{margin-top:22px}footer{gap:15px;line-height:1.6;flex-direction:column}.section-title{flex-wrap:wrap}.history-row{gap:10px}}

.setup{background:#f3f7e7;border:1px solid #dce5c8;border-radius:10px;padding:16px;margin:0 0 20px;font-size:12px;line-height:1.6}.setup p{margin:9px 0}.setup code{display:block;overflow-wrap:anywhere;font-size:11px}.detail-heading .eyebrow{line-height:1.7}

.account-nav{display:flex;align-items:center;gap:14px;font-size:12px;flex-wrap:wrap}.account-nav form{margin:0}@media(max-width:760px){header{height:auto;min-height:90px;gap:12px;padding:14px 0;flex-wrap:wrap}.account-nav{font-size:11px}}

/* Full-width layout and consistent action links. */
header,main,footer{max-width:none;width:auto;margin-left:clamp(16px,3vw,48px);margin-right:clamp(16px,3vw,48px)}
.workspace{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
main a:not(.history-row),.account-nav a,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:11px 16px;border:1px solid #b8c6af;border-radius:9px;background:#fff;color:var(--ink);font:600 13px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-decoration:none;text-align:center;vertical-align:middle}
main a:not(.history-row):hover,.account-nav a:hover,.secondary:hover{background:#eaf0dd;border-color:#53734c}
a:focus-visible,button:focus-visible{outline:3px solid #53734c;outline-offset:3px}
a.history-row{padding:18px;margin-top:10px;border:1px solid var(--line);border-radius:12px;background:white}
a.history-row:hover{background:#eff6db;border-color:#b8c6af}
.account-nav span{overflow-wrap:anywhere;min-width:0}
@media(max-width:760px){.workspace{grid-template-columns:minmax(0,1fr)}.account-nav{gap:8px;max-width:100%}.history-row{flex-wrap:wrap}.card{min-width:0}}

/* Institutional USAL identity reused from Asistencia. */
.brand{gap:18px;min-width:0;flex-wrap:wrap}.usal-mark{position:relative;display:block;flex:0 0 200px;width:200px;height:48px;overflow:hidden;background:#fff}.usal-mark img{position:absolute;right:0;top:0;display:block;width:auto;height:48px;max-width:none}header{height:auto;min-height:98px;gap:20px;padding-top:18px;padding-bottom:18px;flex-wrap:wrap}@media(max-width:760px){.brand{gap:12px;font-size:23px}.usal-mark{flex-basis:166.67px;width:166.67px;height:40px}.usal-mark img{height:40px}header{min-height:90px}}

/* Compact centered sign-in card. */
.auth-page{min-height:calc(100vh - 200px);display:grid;place-items:center;padding:40px 0}
.auth-card{width:100%;max-width:560px;padding:36px;text-align:center}
.auth-card .auth-intro{padding:0 0 26px}
.auth-card h1{font-size:clamp(28px,4vw,38px);letter-spacing:-1.2px;line-height:1.2}
.auth-card .auth-intro p{font-size:15px;margin-bottom:0}
.auth-provider{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:12px}
.auth-provider form{width:100%}
.auth-provider .g_id_signin{max-width:100%}
@media(max-width:600px){.auth-page{padding:24px 0}.auth-card{padding:28px 22px}}

/* Header blanco a todo el ancho, con el contenido alineado al resto de la página. */
header{background:#fff;margin-left:0;margin-right:0;padding-left:clamp(16px,3vw,48px);padding-right:clamp(16px,3vw,48px)}

.history-entry{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;background:#fff;margin-top:10px;padding-right:18px}
.history-entry a.history-row{flex:1;border:0;margin:0;background:transparent;min-width:0}
.history-entry:hover{background:#eff6db;border-color:#b8c6af}
.history-word{margin:0;flex-shrink:0}
@media(max-width:760px){.history-entry{flex-wrap:wrap;padding-right:0;gap:0}.history-entry a.history-row{flex-basis:100%}.history-word{margin:0 18px 16px}}
