.portal { margin: 0; min-height: 100vh; background: #326aaf; color: #1c3455; font: 1rem/1.5 system-ui, sans-serif; }
.portal-card { box-sizing: border-box; max-width: 64rem; margin: 3rem auto; padding: 2rem; border-radius: 1.25rem; background: #fffdf7; }
.portal h1 { font-size: 2rem; margin: .5rem 0 1.5rem; }
.portal h2 { margin: 2rem 0 .5rem; }
.portal form:not(.portal-logout) { display: grid; gap: 1rem; margin-top: 1.5rem; }
.portal label { display: grid; gap: .35rem; font-weight: 700; }
.portal input, .portal textarea, .portal select { box-sizing: border-box; width: 100%; padding: .75rem; border: 1px solid #9cafc6; border-radius: .5rem; font: inherit; }
.portal button { padding: .8rem 1.1rem; border: 0; border-radius: .6rem; background: #285eaa; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.portal-logout { text-align: right; }
.portal-error { padding: .8rem; border-radius: .5rem; background: #ffe7df; color: #812d22; }
.portal-success { padding: .8rem; border-radius: .5rem; background: #e4f3df; color: #245b30; }
.portal a { color: #285eaa; }
.portal-tabs, .portal-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; }
.portal-tabs a { padding: .65rem .85rem; border-radius: .55rem; background: #eaf1fb; font-weight: 700; }
.portal-table-wrap { max-width: 100%; overflow-x: auto; }
.portal table { width: 100%; border-collapse: collapse; text-align: left; }
.portal th, .portal td { padding: .7rem; border-bottom: 1px solid #dce4ef; vertical-align: top; }
.portal .portal-inline { display: flex !important; flex-wrap: wrap; align-items: center; gap: .4rem !important; margin: .2rem 0 .55rem !important; }
.portal-inline input, .portal-inline select { width: auto; max-width: 14rem; }
.portal-inline button { padding: .55rem .7rem; }
.portal .portal-check { display: flex; align-items: center; gap: .5rem; }
.portal-check input { width: auto; }
.portal .portal-danger { background: #9f3434; }
.portal-delete { margin: 1.5rem 0; padding: 1rem; border: 1px solid #dfbbbb; border-radius: .7rem; }
.portal-delete summary { cursor: pointer; font-weight: 800; }
@media (max-width: 700px) { .portal-card { margin: 1rem; padding: 1.2rem; } .portal th, .portal td { padding: .5rem; } }
