:root {
    --navy: #142c4c;
    --navy-deep: #0d2039;
    --blue: #315f91;
    --ink: #243449;
    --muted: #78879a;
    --line: #e8edf3;
    --surface: #ffffff;
    --page: #f5f7fa;
    --gold: #c6a66a;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

a { text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
    width: 252px;
    min-width: 252px;
    background: var(--navy-deep);
    color: #fff;
    min-height: 100vh;
    padding: 27px 17px 20px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 34px;
    color: white;
}

.brand:hover { color: white; }

.brand-mark {
    height: 43px;
    width: 43px;
    border: 1px solid rgba(215,190,137,.75);
    border-radius: 12px 12px 12px 3px;
    color: #e2c58e;
    display: grid;
    place-items: center;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}

.brand-mark.small { height: 34px; width: 34px; font-size: 16px; }

.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-family: Georgia, serif; font-size: 20px; letter-spacing: 2px; }
.brand-copy span { font-size: 9px; letter-spacing: 1.5px; color: #b9c7d7; margin-top: 4px; }

.sidebar-label {
    color: #8092a8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0 12px 11px;
}

.nav-section-label { margin-top: 27px; }

.side-nav { display: flex; flex-direction: column; gap: 5px; }

.side-link {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #c2ccda;
    padding: 11px 12px;
    border-radius: 7px;
    font-size: 13px;
    transition: .2s ease;
}

.side-link:hover { background: rgba(255,255,255,.07); color: white; }
.side-link.active { background: #244367; color: #fff; box-shadow: inset 3px 0 #d4b77f; }
.nav-icon { width: 19px; text-align: center; font-size: 19px; color: #d4bd91; }

.sidebar-bottom { margin-top: auto; }
.sidebar-note {
    margin: 25px 3px 22px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
    border-radius: 9px;
    padding: 16px;
}
.note-symbol { color: #d8bd87; font-size: 20px; display: block; margin-bottom: 10px; }
.sidebar-note strong { font-family: Georgia, serif; font-size: 14px; line-height: 1.5; }
.sidebar-note p { color: #aebdce; font-size: 11px; line-height: 1.6; margin: 9px 0 0; }
.sidebar-version { padding: 0 10px; color: #8293a8; font-size: 9px; letter-spacing: 1.2px; }
.sidebar-version span { color: #d0b47d; padding: 0 4px; }

.main-area { min-width: 0; flex: 1; display: flex; flex-direction: column; }

.topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;
}

.breadcrumb-text { color: #7b8999; font-size: 12px; }
.breadcrumb-text span { padding: 0 9px; color: #c3cbd5; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.portal-status { color: #68798d; font-size: 11px; }
.portal-status span { display: inline-block; width: 7px; height: 7px; background: #3ba77a; border-radius: 50%; margin-right: 7px; }
.mobile-brand { display: none; align-items: center; gap: 9px; color: var(--navy); }

.page-content { width: 100%; max-width: 1500px; margin: 0 auto; padding: 35px 42px 45px; flex: 1; }

.welcome-section {
    min-height: 270px;
    background: linear-gradient(115deg, #fff 0%, #fff 58%, #f1f5f9 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 42px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.welcome-copy { max-width: 620px; position: relative; z-index: 1; }
.eyebrow { color: #9b8154; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.welcome-copy .eyebrow span { display: inline-block; width: 17px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 7px; }
.welcome-copy h1 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-size: clamp(30px, 3.5vw, 43px); font-weight: 500; margin: 17px 0 12px; letter-spacing: -.8px; }
.welcome-copy h1 span { color: #a48755; }
.welcome-copy p { color: #748296; max-width: 560px; font-size: 13px; line-height: 1.8; margin-bottom: 22px; }

.primary-action {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    background: var(--navy);
    color: white;
    padding: 12px 17px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    transition: .2s ease;
}
.primary-action:hover { background: #254b73; color: white; }
.primary-action span { font-size: 16px; }

.welcome-art { width: 250px; height: 220px; position: relative; margin-right: 35px; flex-shrink: 0; display: grid; place-items: center; }
.art-ring { position: absolute; border: 1px solid rgba(171,145,98,.3); transform: rotate(45deg); border-radius: 28px; }
.ring-one { width: 155px; height: 155px; }
.ring-two { width: 205px; height: 205px; border-color: rgba(49,95,145,.14); }
.art-center { width: 112px; height: 112px; border-radius: 50%; background: var(--navy); display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 12px 30px rgba(20,44,76,.18); color: white; z-index: 1; }
.art-monogram { color: #e2c58e; font-family: Georgia, serif; font-size: 36px; }
.art-center span { font-size: 6px; letter-spacing: 1.2px; }
.art-dot { width: 9px; height: 9px; border-radius: 50%; background: #c5a66b; position: absolute; }
.dot-one { top: 24px; right: 52px; }
.dot-two { bottom: 26px; left: 27px; background: #7897b6; }

.section-block { margin-top: 37px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 17px; }
.section-heading h2, .info-panel h2, .updates-panel h2 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; margin: 7px 0 4px; }
.section-heading p { color: var(--muted); font-size: 12px; margin: 0; }

.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.module-card {
    min-height: 215px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 21px 21px 18px;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module-card:hover { transform: translateY(-3px); border-color: #d5dfeb; box-shadow: 0 9px 25px rgba(30,55,85,.07); }
.module-icon { height: 39px; width: 39px; border-radius: 9px; display: grid; place-items: center; font-size: 21px; margin-bottom: 16px; }
.icon-blue { color: #315f91; background: #edf3fa; }
.icon-violet { color: #7664a7; background: #f2eff9; }
.icon-teal { color: #398d87; background: #eaf6f4; }
.icon-gold { color: #a7864f; background: #f8f3e9; }
.icon-rose { color: #a56b7b; background: #f8eef1; }
.module-tag { color: #9aa6b4; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.module-card h3 { color: var(--navy); font-family: Georgia, serif; font-size: 19px; font-weight: 500; margin: 6px 0 7px; }
.module-card p { color: #7a8797; font-size: 11px; line-height: 1.7; margin: 0 0 16px; }
.module-link { color: #315f91; font-size: 10px; font-weight: 700; margin-top: auto; }
.module-link b { font-size: 15px; margin-left: 5px; }

.bottom-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; margin-top: 20px; }
.info-panel, .updates-panel { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 23px 25px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; }
.panel-symbol { color: #c5a66b; font-size: 26px; }
.info-panel > p { color: #788698; font-size: 11px; line-height: 1.8; max-width: 620px; margin: 12px 0 16px; }
.framework-points { display: grid; gap: 10px; }
.framework-points div { color: #53657a; font-size: 11px; }
.framework-points span { color: #b1935e; font-size: 10px; font-weight: 700; margin-right: 10px; }

.updates-panel h2 { margin-bottom: 13px; }
.empty-state { min-height: 120px; border: 1px dashed #dce3eb; border-radius: 7px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 15px; }
.empty-icon { color: #a8b5c4; font-size: 24px; margin-bottom: 7px; }
.empty-state strong { color: #596b80; font-size: 11px; }
.empty-state p { color: #98a4b2; font-size: 10px; max-width: 260px; margin: 5px 0 0; line-height: 1.6; }

.footer { padding: 16px 42px; border-top: 1px solid var(--line); background: #fff; color: #98a4b2; display: flex; justify-content: space-between; font-size: 10px; }

@media (max-width: 1100px) {
    .sidebar { width: 220px; min-width: 220px; }
    .page-content { padding: 28px 25px; }
    .topbar { padding: 0 25px; }
    .welcome-section { padding: 35px; }
    .welcome-art { margin-right: 0; }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .app-shell { display: block; }
    .sidebar { width: 100%; min-width: 0; min-height: auto; padding: 12px 14px; }
    .brand { padding: 0 4px 12px; }
    .brand-mark { height: 35px; width: 35px; font-size: 16px; }
    .brand-copy strong { font-size: 17px; }
    .sidebar-label, .sidebar-bottom { display: none; }
    .side-nav { flex-direction: row; overflow-x: auto; gap: 5px; padding-bottom: 3px; }
    .side-link { white-space: nowrap; padding: 9px 10px; font-size: 11px; }
    .nav-icon { font-size: 15px; width: auto; }
    .nav-section-label { display: none; }
    .topbar { height: 52px; padding: 0 17px; }
    .mobile-brand { display: flex; font-size: 12px; }
    .breadcrumb-text { display: none; }
    .portal-status { font-size: 9px; }
    .page-content { padding: 18px 14px 28px; }
    .welcome-section { min-height: 0; padding: 27px 22px; }
    .welcome-art { display: none; }
    .welcome-copy h1 { font-size: 31px; }
    .welcome-copy p { font-size: 12px; }
    .module-grid { grid-template-columns: 1fr; gap: 10px; }
    .module-card { min-height: 190px; }
    .bottom-grid { grid-template-columns: 1fr; }
    .footer { padding: 14px 17px; gap: 8px; flex-wrap: wrap; font-size: 9px; }
}
