:root{
  --navy:#0E1442; --navy-2:#12173D; --gold:#E0A83E; --blue:#4A9FD8;
  --cream:#FAF8F4; --muted:#8a8578; --line:#ece8de; --green:#2f9e5b; --amber:#b5652e;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{ font-family:'Inter',sans-serif; background:var(--cream); color:var(--navy); }
h1,h2,h3,.brand{ font-family:'Space Grotesk',sans-serif; }
a{ color:inherit; }

/* ---- login/reset pages ---- */
.login-body{ background:var(--navy); min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.card{ background:#fff; border-radius:16px; padding:40px 36px; width:100%; max-width:380px; }
.card .brand{ display:flex; align-items:center; gap:10px; margin-bottom:28px; }
.card .brand .mark{ width:36px; height:36px; border-radius:50%; object-fit:cover; }
.card .brand span{ font-size:17px; font-weight:700; color:var(--navy); }
.card h1{ font-size:20px; color:var(--navy); margin-bottom:6px; }
.card p.sub{ font-size:12.5px; color:var(--muted); margin-bottom:22px; }
.card label{ font-size:12px; font-weight:600; color:var(--navy); margin-bottom:5px; display:block; }
.card input{ width:100%; border:1px solid var(--line); border-radius:8px; padding:11px 12px; font-size:13px; font-family:inherit; margin-bottom:16px; }
.card input:focus{ outline:2px solid var(--blue); outline-offset:1px; border-color:var(--blue); }
.btn{ width:100%; background:var(--gold); color:var(--navy); padding:12px; border-radius:8px; font-weight:700; font-size:14px; border:none; cursor:pointer; font-family:inherit; }
.btn:hover{ filter:brightness(1.05); }
.link-row{ display:flex; justify-content:space-between; margin-top:16px; font-size:12px; }
.link-row a{ color:var(--blue); text-decoration:none; }
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:11px; color:var(--green); background:#e6f4ea; padding:4px 10px; border-radius:20px; margin-bottom:20px; }

/* ---- portal app shell ---- */
.app{ display:flex; min-height:100vh; }
.sidebar{ width:220px; background:var(--navy); padding:20px 14px; flex-shrink:0; position:sticky; top:0; height:100vh; overflow-y:auto; }
.sidebar .brand{ display:flex; align-items:center; gap:10px; color:#fff; font-size:16px; font-weight:700; margin-bottom:24px; padding:0 8px; }
.sidebar .brand .mark{ width:32px; height:32px; border-radius:50%; object-fit:cover; }
.nav-item{ display:flex; align-items:center; gap:10px; padding:10px 10px; border-radius:8px; font-size:13px; color:#aeb4d9; cursor:pointer; margin-bottom:2px; text-decoration:none; }
.nav-item:hover{ background:#1a2158; color:#fff; }
.nav-item.active{ background:var(--gold); color:var(--navy); font-weight:600; }
.nav-section-label{ font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:#5c649a; margin:16px 8px 6px; }

.main{ flex:1; padding:24px 28px; min-width:0; }
.topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.greeting{ font-size:18px; font-weight:600; }
.top-right{ display:flex; align-items:center; gap:14px; }
.twofa-badge{ font-size:11px; color:var(--green); display:flex; align-items:center; gap:4px; }
.avatar{ width:32px; height:32px; border-radius:50%; background:var(--gold); color:var(--navy); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }

.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
@media (max-width:900px){ .stat-grid{ grid-template-columns:repeat(2,1fr); } }
.stat{ background:#fff; border-radius:10px; padding:14px 16px; border-left:3px solid var(--blue); }
.stat.gold{ border-left-color:var(--gold); }
.stat.amber{ border-left-color:var(--amber); }
.stat.green{ border-left-color:var(--green); }
.stat p:first-child{ font-size:11px; color:var(--muted); margin-bottom:4px; }
.stat p:last-child{ font-size:22px; font-weight:700; }

.grid-2{ display:grid; grid-template-columns:1.3fr 1fr; gap:16px; }
@media (max-width:900px){ .grid-2{ grid-template-columns:1fr; } }
.panel{ background:#fff; border-radius:10px; padding:16px 18px; margin-bottom:14px; }
.panel h3{ font-size:13px; font-weight:600; margin-bottom:10px; }

.task-row{ display:flex; justify-content:space-between; padding:9px 0; border-top:1px solid var(--line); font-size:12.5px; gap:10px; }
.tag{ font-size:10.5px; padding:2px 8px; border-radius:6px; font-weight:600; white-space:nowrap; }
.tag.todo{ color:var(--muted); background:var(--cream); }
.tag.in_progress{ color:var(--amber); background:#fbeee0; }
.tag.review{ color:var(--green); background:#e6f4ea; }
.tag.done{ color:var(--muted); background:var(--cream); }

.announce-item{ padding:10px 0; border-top:1px solid var(--line); }
.announce-item h4{ font-size:12.5px; margin-bottom:2px; }
.announce-item span{ font-size:11px; color:var(--muted); }

.presence-row{ display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line); }
.presence-row .av{ width:30px; height:30px; border-radius:50%; background:var(--gold); color:var(--navy); display:flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:700; position:relative; flex-shrink:0; }
.presence-row .dot{ position:absolute; bottom:-1px; right:-1px; width:9px; height:9px; border-radius:50%; border:2px solid #fff; }
.presence-row .dot.on{ background:var(--green); }
.presence-row .dot.busy{ background:var(--amber); }
.presence-row .dot.off{ background:#ccc; }
.presence-row p{ font-size:12.5px; }
.presence-row span{ font-size:11px; color:var(--muted); }

.placeholder{ background:#fff; border-radius:10px; padding:60px 20px; text-align:center; color:var(--muted); }
.placeholder h2{ color:var(--navy); font-size:18px; margin-bottom:8px; }

.board{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
@media (max-width:900px){ .board{ grid-template-columns:1fr 1fr; } }
.board-col h4{ font-size:11px; font-weight:600; color:var(--muted); margin-bottom:8px; text-transform:uppercase; letter-spacing:.05em; }
.board-card{ background:#fff; border-radius:10px; padding:12px; margin-bottom:8px; border-left:3px solid var(--blue); }
.board-card p:first-child{ font-size:12.5px; font-weight:600; margin-bottom:3px; }
.board-card p:last-child{ font-size:11px; color:var(--muted); }

table.data-table{ width:100%; border-collapse:collapse; background:#fff; border-radius:10px; overflow:hidden; }
table.data-table th{ text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); padding:12px 14px; border-bottom:1px solid var(--line); }
table.data-table td{ padding:12px 14px; font-size:12.5px; border-bottom:1px solid var(--line); }
select.status-select{ font-size:12px; padding:5px 8px; border-radius:6px; border:1px solid var(--line); font-family:inherit; }
