:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #102033;
  --muted: #66768a;
  --line: #dfe7f0;
  --navy: #07192c;
  --navy-2: #0d2742;
  --cyan: #18b4c4;
  --cyan-soft: #ddf7fa;
  --blue: #246bfe;
  --blue-soft: #e8f0ff;
  --green: #0b9f6e;
  --green-soft: #e1f7ef;
  --orange: #db7a19;
  --orange-soft: #fff0df;
  --red: #c83f4a;
  --red-soft: #ffe8ea;
  --purple: #7957d5;
  --purple-soft: #f0ebff;
  --gold: #ba8f39;
  --shadow: 0 18px 50px rgba(8, 33, 62, .09);
  --shadow-sm: 0 8px 24px rgba(8, 33, 62, .07);
  --radius: 20px;
  --radius-sm: 13px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.mobile-only { display: none !important; }

/* ============ WARNA PER ROLE ============ */
.role-public { background: #5a6b7e !important; color: #fff !important; }
.role-member { background: linear-gradient(135deg, #1377f3, #14aebc) !important; color: #fff !important; }
.role-committee { background: linear-gradient(135deg, #7957d5, #4f8df5) !important; color: #fff !important; }
.role-investor { background: linear-gradient(135deg, #b98a1e, #e0a92c) !important; color: #fff !important; }
.role-admin { background: linear-gradient(135deg, #c83f4a, #e0654f) !important; color: #fff !important; }

/* ============ LANDING PAGE PUBLIK ============ */
#app-shell.no-sidebar { grid-template-columns: 1fr !important; }
#app-shell.no-sidebar #sidebar { display: none !important; }
.landing-nav { display: flex; gap: 4px; align-items: center; }
.landing-link { padding: 8px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--muted); transition: .18s ease; }
.landing-link:hover { color: var(--ink); background: #eef4fa; }
.landing-link.active { color: var(--blue); background: var(--blue-soft); }
.btn-lg { min-height: 48px; padding: 0 30px; font-size: 13px; border-radius: 13px; }

/* ============ ANIMASI & TRANSISI ============ */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page-enter { animation: pageIn .38s cubic-bezier(.22,.9,.3,1) both; }
@keyframes loginIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.login-panel { animation: loginIn .5s cubic-bezier(.22,.9,.3,1) both; }
.login-form .field { animation: pageIn .45s ease both; }
.login-form .field:nth-child(2) { animation-delay: .07s; }
.login-form .btn-primary { animation: pageIn .45s ease .14s both; }
@keyframes shellIn { from { opacity: 0; } to { opacity: 1; } }
#app-shell:not(.hidden) { animation: shellIn .3s ease both; }
@keyframes badgePop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.role-badge, .avatar { transition: background .25s ease, transform .25s ease; }
.role-badge, .avatar { animation: badgePop .3s ease both; }
@media (prefers-reduced-motion: reduce) { .page-enter, .login-panel, .role-badge, .avatar { animation: none !important; } }

/* ================= HALAMAN LOGIN ================= */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 12% 10%, #123c5f 0%, var(--navy) 42%, #04111f 100%); }
.login-panel { width: min(1080px, 100%); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; box-shadow: 0 34px 90px rgba(0,0,0,.38); }
.login-visual { position: relative; overflow: hidden; padding: 44px 40px; color: #fff; background: linear-gradient(125deg, #07192c 0%, #0d2d4d 58%, #114b63 100%); display: flex; flex-direction: column; justify-content: space-between; min-height: 640px; }
.login-visual:before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -220px; top: -280px; border: 1px solid rgba(89, 225, 238, .24); box-shadow: 0 0 0 52px rgba(31, 154, 177, .04), 0 0 0 104px rgba(31,154,177,.03); }
.login-visual:after { content: ''; position: absolute; inset: auto 0 0 auto; width: 55%; height: 70%; background: linear-gradient(140deg, transparent, rgba(29, 188, 202, .06)); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.login-visual > * { position: relative; z-index: 2; }
.login-visual-copy h2 { font: 800 30px/1.12 Manrope; letter-spacing: -.04em; margin: 14px 0 12px; max-width: 430px; }
.login-visual-copy p { color: #b4c7d8; font-size: 12px; line-height: 1.7; max-width: 400px; }
.login-form-side { display: grid; place-items: center; padding: 40px 36px; }
.login-form-inner { width: 100%; max-width: 420px; }
.login-form-inner h1 { margin: 10px 0 6px; font: 800 25px Manrope; letter-spacing: -.03em; }
.login-sub { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-form { display: grid; gap: 13px; }
.login-form .btn-primary { margin-top: 4px; min-height: 46px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #93a3b4; font-size: 10px; }
.login-divider:before, .login-divider:after { content: ''; height: 1px; flex: 1; background: var(--line); }
.login-divider span { white-space: nowrap; }
.login-form-side .btn-secondary { width: 100%; }

/* sidebar user box */
.user-box { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); }
.user-box-text strong { display: block; color: #fff; font-size: 12px; }
.user-box-text small { display: block; color: #8ca5bd; font-size: 10px; margin-top: 2px; }
.logout-btn { width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #cfdfee; display: grid; place-items: center; font-size: 14px; }
.logout-btn:hover { background: var(--red); color: #fff; }

@media (max-width: 980px) {
  .login-panel { grid-template-columns: 1fr; }
  .login-visual { display: none; }
}
@media (max-width: 560px) {
  .login-page { padding: 14px; }
  .login-form-side { padding: 26px 20px; }
}

#app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: radial-gradient(circle at 8% 8%, #123c5f 0%, var(--navy) 40%, #04111f 100%); color: #fff; padding: 26px 20px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 4px 24px; cursor: pointer; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, #22ccd8, #1d63f3); display: grid; place-items: center; box-shadow: 0 10px 32px rgba(27, 183, 201, .25); transform: rotate(-3deg); }
.brand-mark-core { font: 800 22px Manrope; transform: rotate(3deg); }
.brand-name { font: 800 17px Manrope; letter-spacing: -.02em; }
.brand-sub { color: #8fabc5; font-size: 11px; margin-top: 2px; }
.eyebrow { font-size: 10px; letter-spacing: .14em; font-weight: 800; color: #7c91a7; text-transform: uppercase; }
.sidebar .eyebrow { color: #68849e; padding: 0 4px 9px; }
.role-box { position: relative; }
.role-switch { width: 100%; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: #fff; border-radius: 14px; display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: 10px; padding: 10px; text-align: left; }
.role-switch:hover { background: rgba(255,255,255,.1); }
.role-switch small { display: block; color: #8ca5bd; margin-top: 2px; font-size: 11px; }
.role-badge { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #19a8b8; font-size: 10px; font-weight: 800; }
.chev { color: #7794ad; }
.role-menu { position: absolute; left: 0; right: 0; top: 76px; background: #102840; padding: 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 14px 30px rgba(0,0,0,.3); z-index: 50; }
.role-option { display: flex; gap: 10px; align-items: center; border-radius: 10px; padding: 9px; color: #dce8f4; font-size: 12px; }
.role-option:hover { background: rgba(255,255,255,.08); }
.nav-list { margin-top: 22px; display: grid; gap: 5px; overflow: auto; }
.nav-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: #9db2c7; font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(28, 177, 194, .22), rgba(45, 111, 253, .10)); border-color: rgba(34, 193, 208, .20); }
.nav-icon { width: 24px; text-align: center; opacity: .9; }
.nav-count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #b9cde0; font-size: 10px; }
.sidebar-footer { margin-top: auto; padding-top: 18px; }
.secure-box { display: flex; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.secure-icon { color: #4bd5df; }
.secure-box strong { font-size: 11px; display: block; }
.secure-box small { color: #7894ae; font-size: 10px; line-height: 1.45; display: block; margin-top: 3px; }
.build-info { text-align: center; color: #4d6b86; font-size: 10px; margin-top: 12px; }

.main { min-width: 0; }
.topbar { height: 88px; position: sticky; top: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 34px; background: rgba(244,247,251,.88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(210,220,232,.8); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar h1 { margin: 3px 0 0; font: 800 20px Manrope; letter-spacing: -.025em; }
.topbar-right { display: flex; align-items: center; gap: 11px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); display: grid; place-items: center; position: relative; }
.icon-button:hover { background: var(--surface-2); }
.notif-dot { width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: #e55858; position: absolute; right: 7px; top: 7px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 12px; }
.user-chip-text strong, .user-chip-text small { display: block; }
.user-chip-text strong { font-size: 12px; }
.user-chip-text small { font-size: 10px; color: var(--muted); margin-top: 3px; }

.content { padding: 32px 34px 56px; max-width: 1540px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-head h2 { margin: 3px 0 5px; font: 800 28px Manrope; letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 760px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 12px; min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 12px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #1377f3, #14aebc); box-shadow: 0 9px 22px rgba(31, 119, 224, .18); }
.btn-primary:hover { filter: brightness(.96); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid #f6cdd1; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 11px; }

.hero { position: relative; overflow: hidden; border-radius: 26px; background: linear-gradient(125deg, #07192c 0%, #0d2d4d 58%, #114b63 100%); min-height: 365px; color: #fff; padding: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; box-shadow: var(--shadow); }
.hero:before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -220px; top: -280px; border: 1px solid rgba(89, 225, 238, .24); box-shadow: 0 0 0 52px rgba(31, 154, 177, .04), 0 0 0 104px rgba(31,154,177,.03); }
.hero:after { content: ''; position: absolute; inset: auto 0 0 auto; width: 55%; height: 70%; background: linear-gradient(140deg, transparent, rgba(29, 188, 202, .06)); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; gap: 8px; align-items: center; color: #8fe6eb; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: #29d2da; box-shadow: 0 0 18px #29d2da; }
.hero h2 { font: 800 44px/1.05 Manrope; letter-spacing: -.05em; margin: 18px 0 16px; max-width: 780px; }
.hero p { color: #b4c7d8; font-size: 14px; line-height: 1.72; max-width: 690px; }
.hero-actions { display: flex; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.hero .btn-secondary { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.hero-proof { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.hero-proof span { color: #7897b1; font-size: 10px; }
.hero-proof strong { display: block; font: 800 16px Manrope; color: #fff; margin-bottom: 3px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.orbit { width: 290px; height: 290px; border-radius: 50%; border: 1px solid rgba(141,224,236,.22); position: relative; display: grid; place-items: center; }
.orbit:before, .orbit:after { content: ''; position: absolute; border-radius: 50%; border: 1px dashed rgba(141,224,236,.15); }
.orbit:before { inset: 36px; }
.orbit:after { inset: 82px; border-style: solid; }
.orbit-core { width: 86px; height: 86px; border-radius: 26px; display: grid; place-items: center; font: 800 28px Manrope; background: linear-gradient(145deg,#15c0c9,#236df7); box-shadow: 0 0 42px rgba(37, 173, 211, .36); }
.orbit-node { position: absolute; min-width: 78px; padding: 9px 12px; border-radius: 12px; background: rgba(9,31,50,.85); border: 1px solid rgba(157,223,232,.18); font-size: 9px; text-align: center; color: #b9d4e1; }
.node-a { top: 14px; right: 6px; }.node-b { bottom: 32px; right: -14px; }.node-c { bottom: 12px; left: -6px; }.node-d { top: 42px; left: -16px; }

.section { margin-top: 28px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-title-row h3 { margin: 0; font: 800 18px Manrope; letter-spacing: -.025em; }
.section-title-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.stat-card { padding: 18px; }
.stat-top { display: flex; justify-content: space-between; gap: 12px; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.stat-value { margin-top: 9px; font: 800 25px Manrope; letter-spacing: -.035em; }
.stat-change { font-size: 10px; color: var(--green); margin-top: 6px; }

.product-card { overflow: hidden; }
.product-cover { min-height: 150px; padding: 20px; background: linear-gradient(135deg, #081f35, #155270); color: white; position: relative; overflow: hidden; }
.product-cover:after { content: ''; position: absolute; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; right: -45px; top: -55px; box-shadow: 0 0 0 32px rgba(255,255,255,.025); }
.product-icon { width: 45px; height: 45px; border-radius: 13px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 20px; }
.product-cover h4 { margin: 24px 0 6px; font: 800 18px Manrope; }
.product-cover p { margin: 0; font-size: 11px; color: #b8cedd; max-width: 90%; line-height: 1.45; }
.product-body { padding: 18px; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 9px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .02em; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-gray { background: #edf2f7; color: #637286; }
.badge-dark { background: #e7edf3; color: #263b51; }
.badge-cyan { background: var(--cyan-soft); color: #078293; }

.project-card { padding: 18px; transition: .2s ease; cursor: pointer; }
.project-card:hover { transform: translateY(-2px); border-color: #c8d7e7; box-shadow: 0 14px 34px rgba(8,33,62,.10); }
.project-card-top { display: flex; justify-content: space-between; gap: 14px; }
.project-card h4 { margin: 11px 0 5px; font: 800 16px Manrope; letter-spacing: -.02em; }
.project-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; min-height: 34px; }
.project-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 17px; }
.project-metric { padding: 9px 8px; background: var(--surface-2); border-radius: 10px; text-align: center; }
.project-metric strong { display: block; font-size: 12px; }
.project-metric small { color: var(--muted); font-size: 9px; }
.project-foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid #edf1f5; padding-top: 13px; margin-top: 14px; }
.project-owner { font-size: 10px; color: var(--muted); }
.score-ring { width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--score)*1%), #e9eef4 0); display: grid; place-items: center; position: relative; }
.score-ring:after { content: ''; width: 32px; height: 32px; background: white; border-radius: 50%; position: absolute; }
.score-ring span { position: relative; z-index: 1; font-size: 9px; font-weight: 800; }

.filterbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 15px; margin-bottom: 17px; }
.search { min-width: 230px; flex: 1; position: relative; }
.search input { width: 100%; height: 40px; border: 1px solid #e1e7ef; border-radius: 11px; padding: 0 12px 0 36px; color: var(--ink); outline: none; background: #fbfcfe; }
.search:before { content: '⌕'; position: absolute; left: 12px; top: 8px; color: #7c8b9c; }
.select { height: 40px; border: 1px solid #e1e7ef; border-radius: 11px; padding: 0 10px; color: var(--ink); background: #fbfcfe; outline: none; font-size: 11px; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #edf1f5; font-size: 11px; vertical-align: middle; }
th { color: #76879a; font-weight: 700; background: #fbfcfe; }
td strong { font-size: 11px; }
tr:hover td { background: #fbfdff; }

.timeline { display: grid; gap: 11px; }
.timeline-item { display: grid; grid-template-columns: 64px 10px 1fr; align-items: start; gap: 9px; }
.timeline-time { color: #8a98a8; font-size: 9px; padding-top: 4px; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-top: 4px; box-shadow: 0 0 0 4px var(--cyan-soft); }
.timeline-text { font-size: 10px; color: #3f5063; line-height: 1.45; }

.pipeline { display: grid; grid-template-columns: repeat(7, minmax(125px,1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.pipeline-step { min-height: 105px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; position: relative; }
.pipeline-step:after { content: '→'; position: absolute; right: -8px; top: 43px; color: #adb9c5; z-index: 3; }
.pipeline-step:last-child:after { display:none; }
.pipeline-step strong { display:block; font-size:10px; }
.pipeline-step small { color: var(--muted); font-size: 9px; line-height:1.35; display:block; margin-top:5px; }
.pipeline-count { margin-top: 11px; font: 800 20px Manrope; }

.form-card { padding: 24px; }
.form-section { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 22px; }
.form-section:last-child { border-bottom: 0; margin-bottom:0; }
.form-section h3 { margin: 0 0 4px; font: 800 15px Manrope; }
.form-section > p { margin: 0 0 16px; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field.full { grid-column: 1 / -1; }
.field label { display:block; margin-bottom: 6px; font-size: 10px; font-weight: 700; color: #3f4f61; }
.field input, .field textarea, .field select { width:100%; border:1px solid #dce4ed; border-radius:11px; background:#fbfcfe; outline:none; padding: 11px 12px; font-size:11px; color:var(--ink); }
.field textarea { min-height: 93px; resize: vertical; line-height:1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color:#7eb8f8; box-shadow:0 0 0 3px #edf5ff; }
.help { color:#8795a5; font-size:9px; margin-top:5px; line-height:1.4; }
.checkline { display:flex; gap:9px; align-items:flex-start; font-size:10px; color:#4f6072; line-height:1.45; }
.checkline input { margin-top:2px; }

.notice { padding: 13px 14px; border-radius: 13px; display:flex; gap:10px; font-size:10px; line-height:1.5; }
.notice-info { background:#edf6ff; border:1px solid #d4e8ff; color:#34566f; }
.notice-warning { background:#fff7ea; border:1px solid #f5e0b9; color:#715727; }
.notice-success { background:#e9f9f2; border:1px solid #c8eedf; color:#28634e; }
.notice-danger { background:#fff0f1; border:1px solid #f5d1d5; color:#7d3c42; }

.kpi-strip { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.kpi-mini { padding:13px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.kpi-mini span { color:var(--muted); font-size:9px; }
.kpi-mini strong { display:block; margin-top:5px; font:800 17px Manrope; }

.progress { height:7px; border-radius:10px; background:#eaf0f5; overflow:hidden; }
.progress > span { display:block; height:100%; border-radius:10px; background:linear-gradient(90deg,#1677f3,#15b9c2); }
.score-list { display:grid; gap:12px; }
.score-row { display:grid; grid-template-columns:135px 1fr 35px; gap:10px; align-items:center; font-size:10px; }

.investor-card { padding:17px; }
.investor-head { display:flex; gap:12px; align-items:center; }
.investor-logo { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(135deg,#0b2540,#167a91); color:#fff; font-weight:800; font-size:11px; }
.investor-card h4 { margin:0 0 3px; font:800 14px Manrope; }
.investor-card p { margin:0; color:var(--muted); font-size:10px; }
.focus-tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:13px; }
.investor-meta { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
.meta-box { padding:9px; background:var(--surface-2); border-radius:10px; }
.meta-box small { color:var(--muted); font-size:8px; display:block; }
.meta-box strong { font-size:9px; display:block; margin-top:3px; }

.empty { text-align:center; padding:50px 20px; color:var(--muted); }
.empty-icon { width:58px; height:58px; border-radius:18px; display:grid; place-items:center; background:#eef4f8; margin:0 auto 12px; font-size:22px; }
.empty h3 { margin:0 0 5px; color:var(--ink); font:800 14px Manrope; }
.empty p { font-size:10px; margin:0 auto; max-width:360px; line-height:1.5; }

.modal { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; }
.modal-backdrop { position:absolute; inset:0; background:rgba(1,12,23,.62); backdrop-filter:blur(4px); }
.modal-panel { position:relative; width:min(860px,100%); max-height:92vh; overflow:auto; background:#fff; border-radius:22px; box-shadow:0 28px 80px rgba(0,0,0,.28); }
.modal-head { position:sticky; top:0; z-index:3; display:flex; justify-content:space-between; gap:20px; align-items:center; padding:20px 22px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.95); backdrop-filter:blur(10px); }
.modal-head h2 { margin:3px 0 0; font:800 21px Manrope; }
.modal-body { padding:22px; }
.detail-hero { border-radius:18px; padding:23px; background:linear-gradient(135deg,#081d31,#14516d); color:#fff; }
.detail-hero h3 { margin:12px 0 6px; font:800 23px Manrope; }
.detail-hero p { margin:0; color:#b8cddd; font-size:11px; line-height:1.55; }
.detail-grid { display:grid; grid-template-columns:1.4fr .6fr; gap:16px; margin-top:16px; }
.detail-section { padding:17px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.detail-section h4 { margin:0 0 8px; font:800 12px Manrope; }
.detail-section p, .detail-section li { color:#566779; font-size:10px; line-height:1.6; }
.detail-section ul { margin:0; padding-left:18px; }

.toast-region { position:fixed; right:18px; bottom:18px; z-index:200; display:grid; gap:8px; }
.toast { width:min(350px, calc(100vw - 36px)); padding:13px 14px; background:#0a243d; color:white; border-radius:13px; box-shadow:0 16px 38px rgba(0,0,0,.22); display:flex; gap:10px; align-items:flex-start; font-size:10px; animation:toastIn .24s ease; }
.toast strong { font-size:10px; display:block; margin-bottom:2px; }.toast small{color:#9db7cb;line-height:1.4;}
@keyframes toastIn { from{transform:translateY(10px);opacity:0} to{transform:none;opacity:1} }

@media (max-width: 1180px) {
  #app-shell { grid-template-columns: 232px minmax(0,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .hero { grid-template-columns:1fr; }
  .hero-visual { display:none; }
  .kpi-strip { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 860px) {
  #app-shell { grid-template-columns:1fr; }
  .sidebar { position:fixed; left:-290px; width:270px; transition:.2s ease; box-shadow:0 0 40px rgba(0,0,0,.28); }
  .sidebar.open { left:0; }
  .mobile-only { display:grid !important; }
  .topbar { padding:0 18px; height:78px; }
  .topbar h1 { font-size:16px; }
  .content { padding:22px 18px 44px; }
  .user-chip-text { display:none; }
  .grid-3, .grid-2, .form-grid, .detail-grid { grid-template-columns:1fr; }
  .hero { padding:32px 24px; min-height:auto; }
  .hero h2 { font-size:34px; }
  .page-head { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 560px) {
  .grid-4, .kpi-strip { grid-template-columns:1fr; }
  .hero h2 { font-size:29px; }
  .hero-proof { display:grid; grid-template-columns:1fr 1fr; }
  .topbar-right .icon-button { display:none; }
  .page-head h2 { font-size:23px; }
  .project-metrics { grid-template-columns:1fr 1fr 1fr; }
  .filterbar { align-items:stretch; }
  .search { min-width:100%; }
  .select { flex:1; }
}
