:root {
  --navy: #1B365D;
  --navy-dark: #142947;
  --navy-light: #2C4A75;
  --grey: #5F6368;
  --grey-light: #DADCE0;
  --grey-faint: #EDEFF2;
  --bg: #F8F9FA;
  --white: #FFFFFF;
  --pass: #1E7E34;
  --amber: #B8860B;
  --fail: #B02A37;
  --pass-bg: #E6F4EA;
  --amber-bg: #FCF3DC;
  --fail-bg: #FBE9EB;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', Roboto, system-ui, -apple-system, sans-serif;
  background: var(--bg); color: #202124; font-size: 14px; line-height: 1.45;
}
a { color: var(--navy); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Landing ---------- */
.landing-header {
  background: var(--white); border-bottom: 1px solid var(--grey-light);
  padding: 14px 32px; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 700; color: var(--navy); font-size: 17px; letter-spacing: .2px; }
.brand small { color: var(--grey); font-weight: 400; }
.hero { max-width: 880px; margin: 72px auto; padding: 0 24px; text-align: center; }
.hero h1 { font-size: 34px; color: var(--navy); margin-bottom: 14px; font-weight: 700; }
.hero p { color: var(--grey); font-size: 16px; max-width: 640px; margin: 0 auto 28px; }
.hero-points { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 36px 0; }
.hero-point {
  background: var(--white); border: 1px solid var(--grey-light); border-radius: 8px;
  padding: 18px 20px; width: 255px; text-align: left;
}
.hero-point h3 { color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.hero-point p { font-size: 13px; color: var(--grey); margin: 0; }
.btn {
  display: inline-block; border: none; border-radius: 6px; padding: 10px 22px;
  font-size: 14px; font-weight: 600;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-small { padding: 5px 12px; font-size: 12.5px; font-weight: 500; border-radius: 5px; }
.btn-danger { background: var(--fail); color: #fff; }

/* ---------- Auth forms ---------- */
.auth-card {
  background: var(--white); border: 1px solid var(--grey-light); border-radius: 10px;
  max-width: 420px; margin: 48px auto; padding: 30px;
}
.auth-card h2 { color: var(--navy); margin-bottom: 18px; font-size: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--grey); margin-bottom: 4px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--grey-light); border-radius: 6px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy-light); border-color: transparent;
}
.form-msg { font-size: 13px; margin-top: 10px; }
.form-msg.ok { color: var(--pass); }
.form-msg.err { color: var(--fail); }

/* ---------- App shell (Gmail-like) ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: 56px 1fr; height: 100vh; }
.topbar {
  grid-column: 1 / 3; background: var(--white); border-bottom: 1px solid var(--grey-light);
  display: flex; align-items: center; gap: 20px; padding: 0 20px;
}
.topbar .brand { min-width: 212px; }
.searchbox { flex: 1; max-width: 560px; position: relative; }
.searchbox input {
  width: 100%; padding: 9px 14px; border-radius: 8px; border: 1px solid transparent;
  background: var(--grey-faint); font-size: 14px;
}
.searchbox input:focus { background: #fff; border-color: var(--grey-light); outline: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.bell { position: relative; background: none; border: none; font-size: 18px; color: var(--grey); }
.bell .dot {
  position: absolute; top: -2px; right: -4px; background: var(--fail); color: #fff;
  font-size: 10px; border-radius: 8px; padding: 0 4px; min-width: 14px;
}
.userchip { font-size: 13px; color: var(--grey); }

.sidebar {
  background: var(--white); border-right: 1px solid var(--grey-light); padding: 14px 8px;
  overflow-y: auto;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 0 18px 18px 0;
  color: #333; font-size: 13.5px; font-weight: 500; cursor: pointer; border: none;
  background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--grey-faint); }
.nav-item.active { background: #E4EAF2; color: var(--navy); font-weight: 700; }
.nav-item .cnt { margin-left: auto; font-size: 11.5px; color: var(--grey); }

.main { overflow-y: auto; padding: 22px 28px; }
.page-title { color: var(--navy); font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--grey); font-size: 13px; margin-bottom: 18px; }

.card {
  background: var(--white); border: 1px solid var(--grey-light); border-radius: 8px;
  padding: 18px 20px; margin-bottom: 16px;
}
.card h3 { color: var(--navy); font-size: 14.5px; margin-bottom: 10px; }

/* list rows (Gmail-esque) */
.rowlist { background: var(--white); border: 1px solid var(--grey-light); border-radius: 8px; overflow: hidden; }
.lrow {
  display: flex; align-items: center; gap: 14px; padding: 11px 16px;
  border-bottom: 1px solid var(--grey-faint); cursor: pointer;
}
.lrow:last-child { border-bottom: none; }
.lrow:hover { box-shadow: inset 0 0 0 1px var(--grey-light); background: #FCFDFE; }
.lrow .t { font-weight: 600; min-width: 200px; }
.lrow .m { color: var(--grey); font-size: 12.5px; }
.lrow .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.badge {
  display: inline-block; border-radius: 10px; padding: 2px 10px; font-size: 11.5px; font-weight: 700;
}
.badge.pass, .badge.recommend { background: var(--pass-bg); color: var(--pass); }
.badge.amber, .badge.conditional { background: var(--amber-bg); color: var(--amber); }
.badge.fail, .badge.resubmit { background: var(--fail-bg); color: var(--fail); }
.badge.neutral { background: var(--grey-faint); color: var(--grey); }
.badge.navy { background: #E4EAF2; color: var(--navy); }

.score-big { font-size: 30px; font-weight: 700; color: var(--navy); }

/* stat cards */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stat {
  background: var(--white); border: 1px solid var(--grey-light); border-radius: 8px;
  padding: 14px 20px; min-width: 170px;
}
.stat .v { font-size: 22px; font-weight: 700; color: var(--navy); }
.stat .l { font-size: 12px; color: var(--grey); margin-top: 2px; }

/* analysis sections */
.sec-block { margin-bottom: 14px; }
.sec-head {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--grey-light); border-radius: 8px; padding: 12px 16px; cursor: pointer;
}
.sec-head .score { margin-left: auto; font-weight: 700; color: var(--navy); }
.sec-body { padding: 6px 0 0 0; display: none; }
.sec-block.open .sec-body { display: block; }
.crit {
  background: var(--white); border: 1px solid var(--grey-light); border-radius: 8px;
  padding: 14px 16px; margin: 8px 0 8px 18px;
}
.crit-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crit-head .cid { font-weight: 700; color: var(--navy); }
.crit q { font-style: italic; color: var(--grey); font-size: 13px; }
.crit .lab { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--grey); font-weight: 700; margin-top: 10px; }
.crit p, .crit li { font-size: 13px; }
.crit ul { padding-left: 18px; margin-top: 3px; }
.flag { color: var(--fail); }
.icgate { background: var(--grey-faint); border-radius: 6px; padding: 8px 10px; font-size: 12.5px; color: #333; margin-top: 10px; }

/* dropzone */
.dropzone {
  border: 2px dashed var(--grey-light); border-radius: 10px; background: var(--white);
  padding: 36px; text-align: center; color: var(--grey); cursor: pointer;
}
.dropzone.drag { border-color: var(--navy); background: #F0F4F9; }

/* progress */
.progress { height: 6px; background: var(--grey-faint); border-radius: 3px; overflow: hidden; margin: 12px 0; }
.progress > div { height: 100%; background: var(--navy); width: 30%; animation: slide 1.2s infinite ease-in-out; }
@keyframes slide { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; background: var(--white); }
.tbl th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--grey); padding: 9px 12px; border-bottom: 1px solid var(--grey-light); font-weight: 700;
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--grey-faint); font-size: 13px; }
.tbl tr:hover td { background: #FCFDFE; }

select.inline, input.inline {
  padding: 5px 8px; border: 1px solid var(--grey-light); border-radius: 5px; font-size: 12.5px;
  font-family: inherit; background: #fff;
}
.sys-default { color: var(--grey); font-size: 11.5px; }
.overridden { color: var(--navy); font-weight: 700; }

.notif-panel {
  position: absolute; right: 18px; top: 54px; width: 360px; max-height: 480px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--grey-light); border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12); z-index: 50; display: none;
}
.notif-panel.open { display: block; }
.notif { padding: 12px 16px; border-bottom: 1px solid var(--grey-faint); }
.notif .t { font-weight: 600; font-size: 13px; }
.notif .b { color: var(--grey); font-size: 12.5px; }
.notif.unread { background: #F0F4F9; }

.empty { text-align: center; color: var(--grey); padding: 40px 0; font-size: 13.5px; }
.muted { color: var(--grey); font-size: 12.5px; }
.inline-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mt { margin-top: 12px; }

/* ---------- Blue Water brand ---------- */
.bw-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bw-logo { width: 34px; height: 34px; flex: none; }
.bw-word { display: flex; flex-direction: column; line-height: 1.05; }
.bw-name { font-weight: 800; letter-spacing: .3px; color: var(--navy); font-size: 16.5px; }
.bw-name .w2 { color: #1D8A96; }
.bw-tag { font-size: 9.5px; letter-spacing: 2.2px; color: var(--grey); font-weight: 700; margin-top: 2px; }
.bw-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 1.4px; color: #1D8A96;
  border: 1px solid #9FD8DE; border-radius: 4px; padding: 1px 5px; margin-left: 6px;
  align-self: flex-start; margin-top: 1px;
}
.topbar .bw-brand { min-width: 212px; }
.hero-dark .bw-name, .hero-dark .bw-name .w2 { color: #fff; }
.hero-dark .bw-tag { color: #A9C3E4; }

/* ---------- Impact landing ---------- */
.hero2 {
  background: linear-gradient(160deg, #0E2240 0%, #1B365D 55%, #1D5A6E 100%);
  color: #fff; padding: 72px 24px 84px; text-align: center; position: relative; overflow: hidden;
}
.hero2 h1 { font-size: 38px; font-weight: 800; max-width: 760px; margin: 0 auto 16px; letter-spacing: -.3px; }
.hero2 h1 em { font-style: normal; color: #7FD1C8; }
.hero2 p.lead { color: #C9D7EA; font-size: 17px; max-width: 680px; margin: 0 auto 30px; }
.hero2 .btn-primary { background: #fff; color: var(--navy); }
.hero2 .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.wavebed { position: absolute; left: 0; right: 0; bottom: -2px; pointer-events: none; }

.impact-path { max-width: 1020px; margin: -46px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.impact-cards { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.impact-card {
  background: var(--white); border: 1px solid var(--grey-light); border-radius: 12px;
  padding: 22px; width: 312px; text-align: left; box-shadow: 0 8px 28px rgba(14,34,64,.10);
}
.impact-card .step { font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; color: #1D8A96; }
.impact-card h3 { color: var(--navy); font-size: 16.5px; margin: 6px 0 8px; }
.impact-card p { color: var(--grey); font-size: 13.5px; margin: 0; }
.impact-card .now { background: #E6F4EA; color: var(--pass); border-radius: 10px; font-size: 10.5px;
  font-weight: 800; padding: 2px 9px; margin-left: 8px; letter-spacing: .6px; }

.sdg-band { max-width: 860px; margin: 48px auto 0; padding: 0 24px; text-align: center; }
.sdg-band h2 { color: var(--navy); font-size: 21px; margin-bottom: 8px; }
.sdg-band p { color: var(--grey); font-size: 14px; max-width: 640px; margin: 0 auto 18px; }
.sdg-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.sdg-chip {
  border-radius: 16px; padding: 6px 14px; font-size: 12.5px; font-weight: 600;
  background: #E4EAF2; color: var(--navy); border: 1px solid #CBD8E8;
}
.sdg-chip.teal { background: #E0F2F1; color: #11616B; border-color: #B7DFDC; }
.landing-feats { max-width: 1020px; margin: 54px auto 72px; padding: 0 24px;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- 0-10 score adjuster ---------- */
.score-adjust { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.score-adjust input {
  width: 72px; padding: 5px 8px; border: 1px solid var(--grey-light); border-radius: 6px;
  font-size: 13px; font-weight: 700; color: var(--navy); text-align: right; font-family: inherit;
}
.score-adjust input.adjusted { border-color: #1D8A96; background: #E0F2F1; }
.score-adjust .of10 { color: var(--grey); font-size: 11.5px; }
.score-adjust .revert { background: none; border: none; color: #1D8A96; font-size: 11.5px; font-weight: 700; }
.adjusted-badge { background: #E0F2F1; color: #11616B; border-radius: 10px; padding: 2px 9px;
  font-size: 11px; font-weight: 800; }
