:root { color-scheme: light; --ink: #17202a; --muted: #65717d; --paper: #f4f1ea; --panel: #fffdf8; --accent: #d65a3a; --line: #ded8ce; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; background: radial-gradient(circle at 15% 10%, #f9d9c5 0, transparent 28%), linear-gradient(135deg, var(--paper), #e7ece7); }
.portal-shell { width: min(1040px, calc(100% - 40px)); margin: auto; padding: 8vh 0; }
.login-panel, .portal-view { background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); box-shadow: 0 24px 70px #2632381c; }
.login-panel { max-width: 480px; margin: 8vh auto; padding: clamp(28px, 6vw, 60px); }
.eyebrow { color: var(--accent); font: 700 11px/1.4 Arial, sans-serif; letter-spacing: 2px; margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: .98; margin: 0 0 14px; }
.intro, .summary { color: var(--muted); }
form { display: grid; gap: 18px; margin-top: 30px; }
label { display: grid; gap: 8px; font-weight: 700; }
input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: #fff; font: 16px Arial, sans-serif; }
button { border: 0; padding: 14px 18px; color: #fff; background: var(--accent); cursor: pointer; font: 700 15px Arial, sans-serif; }
button:disabled { opacity: .6; cursor: wait; }
.status { min-height: 24px; color: #a33221; font: 14px Arial, sans-serif; }
.portal-view { padding: clamp(24px, 5vw, 58px); }
.portal-header { display: flex; justify-content: space-between; gap: 24px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.secondary-button { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.module-card { display: grid; gap: 12px; min-height: 190px; padding: 24px; color: inherit; border: 1px solid var(--line); background: #fff; text-decoration: none; transition: transform .2s, border-color .2s; }
.module-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.module-card strong { font-size: 1.5rem; }
.module-card span:last-child { color: var(--muted); font: 14px Arial, sans-serif; }
.module-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--ink); font: 700 14px Arial, sans-serif; }
.module-dialog { width: min(620px, calc(100% - 32px)); padding: 30px; color: var(--ink); border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 70px #26323838; }
.module-dialog::backdrop { background: #17202a66; backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.dialog-header h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.dialog-close { width: 38px; height: 38px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); font-size: 25px; line-height: 1; }
.hr-module-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.hr-module-option { display: grid; gap: 10px; min-height: 160px; padding: 20px; color: inherit; border: 1px solid var(--line); background: #fff; text-decoration: none; transition: transform .2s, border-color .2s; }
.hr-module-option:hover { transform: translateY(-3px); border-color: var(--accent); }
.hr-module-option span:last-child { color: var(--muted); font: 14px Arial, sans-serif; }
@media (max-width: 500px) { .module-dialog { padding: 22px; } .hr-module-options { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .portal-shell { width: min(100% - 24px, 520px); padding: 24px 0; } .module-grid { grid-template-columns: 1fr; } .portal-header { align-items: center; } }