/* S167/S171/S171b Trilux portal. Header matches main-site top bar #111 + #D00A00 accent, white text. Brand: Trilux red #D00A00, hover #A30F0A. */
*{box-sizing:border-box}body{margin:0;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#111;background:#f4f4f4}
.stg{background:#111;color:#fff;text-align:center;font-size:12px;padding:4px}
header{background:#111;color:#fff;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:8px 16px;border-bottom:4px solid #D00A00}
header a.logo{display:inline-flex;align-items:center;min-height:44px;color:#fff;text-decoration:none}
header a.logo:hover,header a.logo:focus-visible{color:#fff}
header img{height:40px;width:auto;display:block}
.hdr-top{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.hdr-bottom{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;width:100%}
header a.back{color:#fff;font-size:14px;line-height:1.2;display:inline-flex;align-items:center;min-height:44px;padding:0 10px;text-decoration:underline;white-space:nowrap}
header a.back:hover,header a.back:focus-visible{color:#fff}
header a.logo:focus-visible,header a.back:focus-visible{outline:2px solid #fff;outline-offset:2px}
form.nav{display:inline-flex;align-items:center;margin:0;gap:8px;min-height:44px}.nav a,.nav .link{color:#fff;font-size:14px;font-weight:700;margin:0;background:none;border:0;border-radius:0;cursor:pointer;text-decoration:underline;padding:0 10px;display:inline-flex;align-items:center;min-height:44px;width:auto}.nav a:hover,.nav .link:hover{background:transparent;color:#fff}
main{max-width:520px;margin:0 auto;padding:16px}.card{background:#fff;border-radius:10px;padding:20px;margin-bottom:16px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
h1{font-size:22px;margin:0 0 12px}h2{font-size:18px;margin:0 0 10px}label{display:block;font-weight:600;margin:14px 0 6px}
input[type=text],input:not([type]),input[type=email]{width:100%;font-size:18px;padding:12px;border:1px solid #bbb;border-radius:8px}
#code{letter-spacing:6px;font-size:24px;text-align:center}
label.chk{font-weight:400;display:flex;gap:8px;align-items:center}
button{display:block;width:100%;margin-top:16px;padding:14px;font-size:17px;font-weight:700;color:#fff;background:#D00A00;border:0;border-radius:8px;cursor:pointer}
button:hover{background:#A30F0A}button.secondary{background:#fff;color:#D00A00;border:2px solid #D00A00}button.secondary:hover{background:#D00A00;color:#fff}
a.btn{display:block;width:100%;margin-top:16px;padding:14px;font-size:17px;font-weight:700;color:#fff;background:#D00A00;border:0;border-radius:8px;cursor:pointer;text-align:center;text-decoration:none;box-sizing:border-box}a.btn:hover{background:#A30F0A;color:#fff}
.err{color:#A30F0A;font-weight:600}.warn{background:#fff;border-left:4px solid #D00A00;padding:8px 12px;margin-top:16px}.hint{color:#555;font-size:14px}
.status-box{border-radius:8px;padding:12px 14px;border:2px solid #ccc}.status-box.approved{border-color:#1a7f37}.status-box.need_info,.status-box.ready,.status-box.denied{border-color:#D00A00}
.status-box .label{font-weight:700;margin:0 0 4px}.ref{font-weight:600;margin:12px 0 6px}
footer{max-width:520px;margin:0 auto;padding:8px 16px 32px;font-size:14px;color:#444}footer a{color:#D00A00}.warn-foot{font-weight:600}
a{color:#D00A00}a:hover{color:#A30F0A}

/* S175 pending + approved animations (portal). Trilux red #D00A00 + white. Transform/opacity only. */
.status-box.pending,.status-box.approved{text-align:center}
.status-box.pending .label,.status-box.approved .label,.status-box.pending p,.status-box.approved p{text-align:left}
.tlx-pending{position:relative;width:96px;height:96px;margin:0 auto 10px;flex:none}
.tlx-pending i.r{position:absolute;inset:8px;border-radius:50%;border:2px solid #D00A00;opacity:.85;animation:tlxPulse 1.6s ease-out infinite}
.tlx-pending i.r:nth-child(2){inset:0;animation-delay:.55s;border-color:#fff}
.tlx-pending svg{position:absolute;left:50%;top:50%;width:36px;height:36px;margin:-18px;filter:drop-shadow(0 0 6px rgba(208,10,0,.7))}
.tlx-pending.is-static i.r{animation:none;opacity:.45}
@keyframes tlxPulse{0%{transform:scale(.7);opacity:.9}100%{transform:scale(1.25);opacity:0}}
.tlx-cele{position:relative;width:120px;height:120px;margin:4px auto 8px}
.tlx-cele .seal{position:absolute;inset:18px;border-radius:50%;background:radial-gradient(circle at 50% 35%,#ff3b2f,#D00A00 55%,#7a0600);display:grid;place-items:center;box-shadow:0 0 0 5px rgba(208,10,0,.2),0 0 28px rgba(208,10,0,.7);animation:tlxPop .5s cubic-bezier(.3,1.6,.5,1) both}
.tlx-cele .seal svg{width:44px;height:44px}
.tlx-cele .ring{position:absolute;inset:0;border-radius:50%;border:2px solid #D00A00;opacity:0;animation:tlxRipple 1.3s .15s ease-out 2}
.tlx-cele b{position:absolute;left:50%;top:50%;width:7px;height:13px;margin:-6px 0 0 -3px;border-radius:2px;background:#fff;opacity:0;animation:tlxSpark 1s cubic-bezier(.15,.7,.3,1) forwards}
.tlx-cele b:nth-of-type(1){background:#D00A00;--r:4deg;--d:-62px;animation-delay:0.20s}
.tlx-cele b:nth-of-type(2){background:#ffffff;--r:26deg;--d:-72px;animation-delay:0.22s}
.tlx-cele b:nth-of-type(3){background:#ff5a4e;--r:48deg;--d:-82px;animation-delay:0.23s}
.tlx-cele b:nth-of-type(4){background:#ffffff;--r:70deg;--d:-92px;animation-delay:0.24s}
.tlx-cele b:nth-of-type(5){background:#A30F0A;--r:92deg;--d:-62px;animation-delay:0.26s}
.tlx-cele b:nth-of-type(6){background:#D00A00;--r:114deg;--d:-72px;animation-delay:0.28s}
.tlx-cele b:nth-of-type(7){background:#ffffff;--r:136deg;--d:-82px;animation-delay:0.29s}
.tlx-cele b:nth-of-type(8){background:#ff5a4e;--r:158deg;--d:-92px;animation-delay:0.30s}
.tlx-cele b:nth-of-type(9){background:#ffffff;--r:180deg;--d:-62px;animation-delay:0.32s}
.tlx-cele b:nth-of-type(10){background:#A30F0A;--r:202deg;--d:-72px;animation-delay:0.34s}
.tlx-cele b:nth-of-type(11){background:#D00A00;--r:224deg;--d:-82px;animation-delay:0.35s}
.tlx-cele b:nth-of-type(12){background:#ffffff;--r:246deg;--d:-92px;animation-delay:0.36s}
.tlx-cele b:nth-of-type(13){background:#ff5a4e;--r:268deg;--d:-62px;animation-delay:0.38s}
.tlx-cele b:nth-of-type(14){background:#ffffff;--r:290deg;--d:-72px;animation-delay:0.40s}
.tlx-cele b:nth-of-type(15){background:#A30F0A;--r:312deg;--d:-82px;animation-delay:0.41s}
.tlx-cele b:nth-of-type(16){background:#D00A00;--r:334deg;--d:-92px;animation-delay:0.42s}
@keyframes tlxPop{from{transform:scale(.2);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes tlxRipple{from{transform:scale(.7);opacity:.9}to{transform:scale(1.55);opacity:0}}
@keyframes tlxSpark{0%{opacity:1;transform:rotate(var(--r)) translateY(0) scale(.5)}100%{opacity:0;transform:rotate(var(--r)) translateY(var(--d)) rotate(200deg) scale(1)}}
@media(prefers-reduced-motion:reduce){
  .tlx-fw-stage,.tlx-pending i.r,.tlx-cele .ring,.tlx-cele b{display:none}
  .tlx-fw-static{display:block}
  .tlx-cele .seal{animation:none}
}

button:disabled{background:#8a8a8a!important;border-color:#8a8a8a!important;cursor:not-allowed;opacity:.85}
/* S185 animated language switch (matches apply S184). ?v=s185 */
.tlx-lang{display:inline-flex;align-items:center;margin:0;font-family:inherit}
header .tlx-lang-switch,header button.tlx-lang-switch,header a.tlx-lang-switch{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0 2px;min-height:44px;min-width:88px;width:auto;border:0;border-radius:999px;background:transparent;cursor:pointer;color:inherit;font:inherit;font-size:inherit;font-weight:inherit;text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
header .tlx-lang-switch:hover,header button.tlx-lang-switch:hover,header a.tlx-lang-switch:hover{background:transparent;color:inherit;text-decoration:none}
header .tlx-lang-switch:focus{outline:none}
header .tlx-lang-switch:focus-visible{outline:2px solid #fff;outline-offset:2px}
.tlx-lang-track{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;width:84px;height:32px;padding:0;background:#e8e8e8;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.tlx-lang-knob{position:absolute;top:2px;left:2px;width:calc(50% - 2px);height:calc(100% - 4px);background:#D00A00;border-radius:999px;box-shadow:0 1px 3px rgba(0,0,0,.28);pointer-events:none;transform:translateX(0);transition:transform .2s ease}
.tlx-lang-switch[aria-checked="true"] .tlx-lang-knob{transform:translateX(100%)}
.tlx-lang-opt{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;height:100%;color:#333;font:700 12px/1 inherit;letter-spacing:.04em;user-select:none;transition:color .2s ease}
.tlx-lang-switch[aria-checked="false"] .tlx-lang-en,
.tlx-lang-switch[aria-checked="true"] .tlx-lang-es{color:#fff}
@media(prefers-reduced-motion:reduce){.tlx-lang-knob,.tlx-lang-opt{transition:none}}
.tlx-legal-prevails{font-size:6px;line-height:1.4;color:inherit;margin-top:8px;opacity:.9}
.s183-ban{background:#111;color:#fff;font:600 12px/1.4 var(--tlx-font,Montserrat,sans-serif);padding:8px 12px;text-align:center}
.s183-ban a{color:#fff;margin:0 6px;text-decoration:underline}

/* S197: keep the S186 two-row header on small screens; don't let form button styles take over the pill */
@media (max-width: 640px) {
  header{display:flex;flex-direction:column;align-items:stretch}
  .hdr-top{display:flex;align-items:center;justify-content:space-between;width:100%}
  .hdr-bottom{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;width:100%}
  header .tlx-lang-switch,header button.tlx-lang-switch,header a.tlx-lang-switch{appearance:none;-webkit-appearance:none;display:inline-flex;width:auto;max-width:none;margin:0;padding:0 2px;min-height:44px;min-width:88px;background:transparent;border:0;border-radius:999px}
}
