.thte-portal { font-family: var(--thte-body); color: var(--thte-light); max-width: 900px; margin: 0 auto; }
.thte-portal h2 { font-family: var(--thte-head); color: var(--thte-gold); margin: 0 0 6px; }
.thte-portal .tp-hero { background: var(--thte-navy); border: 1px solid rgba(188,152,88,.5); border-radius: 14px; padding: 22px 24px; margin-bottom: 16px; }
.thte-portal .tp-hero p { color: var(--thte-grey); margin: 0; }
.thte-portal .tp-card { background: var(--thte-panel); border: 1px solid rgba(188,152,88,.35); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; color: var(--thte-light); }
.thte-portal .tp-job { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.thte-portal .tp-date { font-family: var(--thte-head); font-weight: 700; color: var(--thte-gold); font-size: 1.15em; }
.thte-portal .tp-type { color: var(--thte-grey); }
.thte-portal .tp-files { width: 100%; border-collapse: collapse; margin: 0; }
.thte-portal .tp-files td { padding: 10px 6px; border-top: 1px solid rgba(188,152,88,.2); vertical-align: middle; color: var(--thte-light); background: transparent; }
.thte-portal .tp-kind { display: block; font-size: .78em; text-transform: uppercase; letter-spacing: .05em; color: var(--thte-gold-2); }
.thte-portal .tp-name { word-break: break-word; }
.thte-portal .tp-main .tp-name { font-weight: 600; }
.thte-portal .tp-size { color: var(--thte-grey); white-space: nowrap; font-size: .9em; }
.thte-portal .tp-btn { display: inline-block; background: var(--thte-gold); color: var(--thte-navy) !important; font-family: var(--thte-head); font-weight: 700; padding: 8px 16px; border-radius: 8px; text-decoration: none !important; white-space: nowrap; }
.thte-portal .tp-btn-ghost { background: transparent; color: var(--thte-gold) !important; border: 1px solid var(--thte-gold-muted); }
.thte-portal .tp-note { background: rgba(225,185,108,.12); border-left: 3px solid var(--thte-gold); padding: 8px 12px; color: var(--thte-light); }
.thte-portal .tp-note a { color: var(--thte-gold); }
@media (max-width: 600px) { .thte-portal .tp-size { display: none; } }

.thte-portal h3 { font-family: var(--thte-head); color: var(--thte-gold); margin: 0 0 10px; font-size: 1.1em; }
.thte-portal .tp-form label { display: block; margin: 0 0 12px; color: var(--thte-grey); font-size: .95em; }
.thte-portal .tp-form input[type=email], .thte-portal .tp-form input[type=password] { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--thte-gold-muted); background: var(--thte-navy); color: var(--thte-light); font: 1em var(--thte-body); }
.thte-portal .tp-form .tp-check { display: flex; gap: 8px; align-items: center; }
.thte-portal .tp-form button { border: 0; cursor: pointer; font-size: 1em; }
.thte-portal .tp-form button.tp-btn-ghost { border: 1px solid var(--thte-gold-muted); }
.thte-portal .tp-hint { color: var(--thte-grey); font-size: .9em; }
.thte-portal .tp-msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; color: var(--thte-light); }
.thte-portal .tp-ok { background: var(--thte-panel); border-left: 4px solid var(--thte-ok); }
.thte-portal .tp-bad { background: var(--thte-panel); border-left: 4px solid var(--thte-bad); }
.thte-portal .tp-hero { position: relative; }
.thte-portal .tp-signout { position: absolute; right: 20px; top: 18px; color: var(--thte-gold) !important; font-size: .9em; }

.thte-portal .tp-terms { background: rgba(255,255,255,.04); border: 1px solid rgba(188,152,88,.3); border-radius: 8px; padding: 4px 14px; margin: 8px 0 12px; color: var(--thte-light); font-size: .95em; max-height: 260px; overflow: auto; }
.thte-portal .tp-termsbox { margin: 6px 0 14px; }
.thte-portal .tp-actions { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; font-size: .92em; }
.thte-portal .tp-inline { margin: 0; }
.thte-portal .tp-link { background: none; border: 0; color: var(--thte-gold); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.thte-portal .tp-remove summary { color: var(--thte-grey); cursor: pointer; text-decoration: underline; }
.thte-portal .tp-remove .tp-form { margin-top: 8px; }
