:root {
    --bg: #f7f4ed;
    --panel: #ffffff;
    --ink: #1d1a16;
    --muted: #766d60;
    --line: #e4dac9;
    --gold: #b8872d;
    --deep: #24201a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button {
    border: 0;
    border-radius: 6px;
    background: var(--gold);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 10px 14px;
}
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.portal-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px; background: var(--deep); color: #f8f1e5; overflow: auto; }
.portal-brand { display: flex; align-items: center; gap: 11px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.portal-brand span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 900; font-size: 12px; }
.portal-brand strong { font-size: 18px; }
.portal-sidebar nav { display: grid; gap: 6px; }
.portal-sidebar nav a { padding: 10px 11px; border-radius: 6px; color: #e8dcc8; font-size: 14px; }
.portal-sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.website-link { margin-top: auto; padding: 12px; border-radius: 6px; background: rgba(184,135,45,.16); color: #f2d492; text-align: center; font-weight: 800; }
.portal-main { min-width: 0; }
.portal-topbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 28px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.portal-topbar span, .panel-title span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
h1, h2, p { margin: 0; letter-spacing: 0; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 30px; }
h2 { font-size: 20px; }
.portal-content { display: grid; gap: 20px; padding: 28px; }
.portal-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.portal-kpis article, .portal-panel, .portal-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(46, 35, 20, .05);
}
.portal-kpis article { padding: 18px; }
.portal-kpis span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.portal-kpis strong { display: block; margin: 6px 0; font-size: 34px; line-height: 1; }
.portal-kpis small { color: var(--muted); }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.portal-grid.two { grid-template-columns: 1fr 1fr; }
.portal-panel { padding: 20px; }
.panel-title { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.portal-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.portal-card { display: grid; gap: 8px; min-height: 96px; padding: 15px; }
.portal-card span { color: var(--gold); font-size: 13px; font-weight: 800; }
.portal-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.portal-row strong { color: var(--gold); }
.portal-form { display: grid; gap: 14px; }
.portal-notice { padding: 12px 14px; border-radius: 6px; background: #ecfdf5; color: #0f766e; font-weight: 800; }
.portal-form label { display: grid; gap: 6px; color: var(--muted); font-weight: 800; }
.portal-form textarea, .portal-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    font: inherit;
}
@media (max-width: 1100px) {
    .portal-shell { grid-template-columns: 230px minmax(0, 1fr); }
    .portal-grid, .portal-grid.two { grid-template-columns: 1fr; }
    .portal-card-grid, .portal-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .portal-shell { display: block; }
    .portal-sidebar { position: static; height: auto; }
    .portal-topbar { align-items: flex-start; flex-direction: column; }
    .portal-content { padding: 18px; }
    .portal-card-grid, .portal-kpis { grid-template-columns: 1fr; }
}
