.portal { margin: 0; background: var(--paper, #f5f6f2); color: var(--ink, #293e36); }
.portal * { box-sizing: border-box; }
.portal a { color: inherit; }
.portal-header { display: flex; align-items: center; flex-wrap: wrap; padding: 18px 4%; background: var(--surface, white); border-bottom: 1px solid var(--line, #dce4de); }
.portal-brand { font-size: 24px; text-decoration: none; margin-right: 40px; }
.portal-header nav { display: flex; flex-wrap: wrap; }
.portal-header nav a { padding: 12px; text-decoration: none; }
.portal-actions { display: flex; flex-wrap: wrap; align-items: center; margin-left: auto; }
.portal-actions > * { margin: 4px; }
.portal button, .portal .btn { min-height: 42px; padding: 10px 16px; cursor: pointer; }
.portal button { border: 1px solid var(--line, #dce4de); background: var(--surface, white); color: inherit; border-radius: 10px; font: inherit; }
.portal button.btn-primary { background: #2c594a; color: #fff; }
.portal-main { max-width: 1180px; margin: 0 auto; padding: 32px 24px; }
.portal-intro { display: flex; align-items: center; flex-wrap: wrap; margin: 12px 0 30px; }
.portal h1 { font-size: 36px; margin: 10px 0; }
.portal h2 { font-size: 22px; margin: 0 0 12px; }
.portal h3 { font-size: 18px; margin-top: 26px; }
.portal p, .portal small { color: var(--muted, #67786e); line-height: 1.6; }
.portal-eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--muted, #67786e); }
.portal-card { padding: 28px; margin-bottom: 24px; background: var(--surface, white); border: 1px solid var(--line, #dce4de); border-radius: 18px; }
.portal-links { display: flex; flex-wrap: wrap; margin: 0 -5px; }
.portal-links > * { padding: 12px 16px; margin: 5px; background: var(--paper, #f5f6f2); border-radius: 10px; text-decoration: none; }
.portal-themes { display: flex; flex-wrap: wrap; margin: 20px -8px -8px; }
.portal-theme { display: block; width: calc(25% - 16px); margin: 8px; border: 1px solid var(--line, #dce4de); border-radius: 12px; overflow: hidden; text-decoration: none; }
.portal-theme img { width: 100%; height: 125px; object-fit: cover; display: block; }
.portal-theme strong, .portal-theme span { display: block; margin: 12px; }
.portal-theme span { font-size: 12px; color: var(--muted, #67786e); }
.portal-theme:hover, .portal-theme:focus { outline: 2px solid #749584; outline-offset: 2px; }
.portal-drawer { padding: 24px 5%; border-bottom: 1px solid var(--line, #dce4de); background: var(--surface, white); animation: portal-slide .2s ease-out; }
.portal [hidden] { display: none !important; }
@keyframes portal-slide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.portal-form, .account-form { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.portal-form > *, .account-form > * { width: calc(50% - 20px); margin: 10px; }
.account-form > * { width: calc(25% - 20px); }
.portal label { display: block; font-size: 14px; }
.portal input, .portal select, .portal textarea { display: block; width: 100%; max-width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--line, #dce4de); border-radius: 8px; background: var(--paper, #f5f6f2); color: inherit; font: inherit; }
.portal .portal-wide { width: calc(100% - 20px); }
.portal .portal-check { display: flex; align-items: center; }
.portal-check input { width: auto; margin: 0 10px 0 0; }
.portal small { display: block; font-size: 12px; margin-top: 8px; }
.portal footer { padding: 16px 0; color: var(--muted, #67786e); font-size: 13px; }
.portal-success { padding: 16px; border: 1px solid #739380; border-radius: 10px; }
@media (max-width: 1000px) { .portal-theme { width: calc(50% - 16px); } .account-form > * { width: calc(50% - 20px); } .portal-header nav { order: 3; width: 100%; } }
@media (max-width: 600px) { .portal-main { padding: 20px 12px; } .portal-card { padding: 20px 16px; } .portal h1 { font-size: 28px; } .portal-header { padding: 12px; } .portal-actions { margin-left: 0; } .portal-form > *, .account-form > * { width: calc(100% - 20px); } .portal-theme img { height: 95px; } .portal-theme strong { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .portal-drawer { animation: none; } }
