.tfep{max-width:1100px;margin:24px auto;padding:28px;border:1px solid #e7e1d9;border-radius:16px;background:#fff;color:#292521;box-sizing:border-box}.tfep *{box-sizing:border-box}.tfep-header{display:flex;gap:22px;align-items:center;border-bottom:1px solid #eee5dc;padding-bottom:20px}.tfep-logo{width:140px;max-width:30%;height:auto;object-fit:contain}.tfep-eyebrow{font-size:12px;letter-spacing:.12em;color:#86602c;font-weight:700}.tfep-header h2{font-size:32px;line-height:1.2;margin:5px 0 6px}.tfep-header p{margin:0;color:#655f59}.tfep-welcome{padding:16px 0;color:#514c45}.tfep-welcome a{margin-left:10px}.tfep-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:16px;margin-top:12px}.tfep-tile{display:flex;flex-direction:column;gap:10px;padding:22px;border:1px solid #e5dcd0;border-radius:12px;text-decoration:none!important;color:#2b2825!important;background:#fffdf9;transition:border-color .2s}.tfep-tile:hover{border-color:#9b6a2d}.tfep-tile strong{font-size:19px}.tfep-tile small{color:#6b655f;font-size:14px;line-height:1.5}.tfep-tile span:last-child{font-weight:700;color:#80531c;margin-top:auto}.tfep-tile-icon{font-size:25px;color:#80531c}.tfep-notice{padding:22px 0}@media(max-width:650px){.tfep{padding:18px}.tfep-header{align-items:flex-start;gap:12px}.tfep-logo{width:85px}.tfep-header h2{font-size:24px}}/* v1.5 front-end navigation remains styled by existing portal rules */

/* v1.6.3: protect the logged-out portal against theme image/form styles */
.tfep,.tfep *{box-sizing:border-box}
.tfep{width:calc(100% - 24px);max-width:1100px;min-width:0;overflow-wrap:anywhere}
.tfep .tfep-header{display:flex;align-items:center;gap:20px;min-width:0}
.tfep .tfep-header .tfep-logo{display:block!important;width:140px!important;max-width:28%!important;height:auto!important;max-height:110px!important;object-fit:contain!important;flex:0 0 auto}
.tfep .tfep-header>div{min-width:0}
.tfep .tfep-notice{max-width:440px;margin:24px auto;padding:20px;border:1px solid #e6ddcf;border-radius:12px;background:#fffdf9}
.tfep .tfep-notice h3{font-size:22px;line-height:1.35;margin:0 0 18px}
.tfep .tfep-notice #loginform{display:flex;flex-direction:column;gap:12px;max-width:100%;margin:0}
.tfep .tfep-notice #loginform p{display:block;margin:0;width:100%;min-width:0}
.tfep .tfep-notice #loginform label{display:block;width:100%;margin-bottom:5px}
.tfep .tfep-notice #loginform input[type=text],.tfep .tfep-notice #loginform input[type=password]{display:block;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:11px 12px;font-size:16px;line-height:1.4;border:1px solid #b9b1a5;border-radius:6px}
.tfep .tfep-notice #loginform p.login-remember label{display:flex;align-items:center;gap:8px}
.tfep .tfep-notice #loginform input[type=checkbox]{width:auto;height:auto;margin:0}
.tfep .tfep-notice #loginform input[type=submit]{display:block;width:100%;max-width:100%;background:#674019;color:#fff;border:0;border-radius:6px;padding:12px 16px;cursor:pointer}
.tfep .tfep-notice a{color:#674019}
@media(max-width:650px){.tfep{width:calc(100% - 16px);padding:16px}.tfep .tfep-header .tfep-logo{width:90px!important;max-width:30%!important;max-height:80px!important}.tfep .tfep-notice{padding:16px;margin:18px 0}.tfep .tfep-header h2{font-size:24px}}

/* v1.6.5: compact, accessible signed-out portal form */
.tfep .tfep-notice{width:100%;max-width:460px;margin:20px auto;padding:20px 22px}
.tfep .tfep-notice h3{font-size:20px;line-height:1.3;margin:0 0 14px}
.tfep .tfep-notice #loginform{gap:10px}
.tfep .tfep-notice #loginform p{font-size:15px;line-height:1.4}
.tfep .tfep-notice #loginform label{font-size:15px;font-weight:600;margin-bottom:5px}
.tfep .tfep-notice #loginform input[type=text],.tfep .tfep-notice #loginform input[type=password]{font-size:16px;padding:10px 12px;min-height:44px}
.tfep .tfep-notice #loginform p.login-remember label{display:inline-flex;align-items:center;gap:9px;font-size:15px;font-weight:400;cursor:pointer}
.tfep .tfep-notice #loginform input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;position:static!important;opacity:1!important;visibility:visible!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;flex:none!important;accent-color:#674019;margin:0!important;padding:0!important;vertical-align:middle!important;border-radius:3px!important}
.tfep .tfep-notice #loginform input[type=submit]{font-size:16px;font-weight:600;min-height:44px;padding:10px 14px}
.tfep .tfep-notice a{font-size:15px}
@media(max-width:650px){.tfep .tfep-notice{max-width:100%;margin:16px auto;padding:16px}.tfep .tfep-notice h3{font-size:19px}.tfep .tfep-header{flex-wrap:wrap}}

/* v1.6.12: shared profile entry and personal participation */
.tfep .tfep-welcome{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 18px}
.tfep .tfep-account-links{display:inline-flex;align-items:center;flex-wrap:wrap;gap:16px}
.tfep .tfep-account-links a{margin:0;color:#80531c;text-decoration:underline}
.tfep .tfep-participation{margin-top:18px;border:1px solid #e5dcd0;border-radius:12px;padding:18px 22px;background:#fffdf9;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.tfep .tfep-participation h3{margin:0 0 5px;font-size:19px}
.tfep .tfep-participation p{margin:0;color:#6b655f;font-size:14px}
.tfep .tfep-participation-link{font-weight:700;color:#80531c}
@media(max-width:650px){.tfep .tfep-participation{padding:16px}}

.tfep .tfep-participation-nav{display:flex;gap:12px 22px;flex-wrap:wrap;margin-top:12px}.tfep .tfep-participation-nav a{color:#80531c;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.tfep-account-links{display:inline-flex;gap:14px;flex-wrap:wrap}.tfep-account-links a{margin-left:0!important}@media(max-width:650px){.tfep .tfep-participation-nav{flex-direction:column;gap:9px}.tfep-welcome{display:flex;flex-direction:column;gap:8px}}
