:root {
  --primary: #174b77;
  --dark: #142c40;
  --accent: #2874a6;
  --bg: #f2f5f8;
  --line: #dce4eb;
  --muted: #647587;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font: 15px/1.6 Arial, sans-serif;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 18px 4%;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--primary);
}
.brand strong {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.brand span {
  font-size: 10px;
  letter-spacing: 2px;
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
nav { display: flex; gap: 24px; flex-wrap: wrap; }
a { color: var(--primary); text-decoration: none; }
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 35px 4%;
  min-height: 80vh;
}
h1 { font-size: clamp(26px,4vw,40px); line-height: 1.2; }
h2 { font-size: 21px; line-height: 1.3; }
p { color: var(--muted); }
.hero {
  background: linear-gradient(115deg,#142c40,#22638e);
  padding: 40px;
  border-radius: 12px;
  color: white;
  margin-bottom: 35px;
}
.hero p { color: #dbe8f2; }
.eyebrow {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  opacity: .8;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px #142c4008;
}
.module { display: flex; flex-direction: column; }
.module p { flex: 1; }
.module-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #e7eff7;
  color: var(--primary);
  font-weight: bold;
  border-radius: 10px;
  margin-bottom: 20px;
}
button,.button {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
  border-radius: 6px;
  padding: 12px 20px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
button:hover,.button:hover { opacity: .9; }
.secondary {
  background: white;
  color: var(--primary);
  border-color: var(--line);
}
button:disabled { opacity: .45; cursor: not-allowed; }
label {
  display: block;
  font-weight: bold;
  margin: 12px 0 6px;
}
input:not([type=checkbox]) {
  width: 100%;
  border: 1px solid #cbd6e0;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  margin-bottom: 12px;
}
input:focus { outline: 2px solid #2874a6; }
.login {
  max-width: 450px;
  margin: 7vh auto;
  padding: 35px;
}
.login button { width: 100%; margin: 15px 0; }
.error { color: #b42318; }
small { color: var(--muted); }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 16px;
}
.check { font-weight: normal; }
.metric strong { font-size: 28px; }
.upload {
  border: 2px dashed #c3d4e4;
  border-radius: 10px;
  text-align: center;
  padding: 40px 20px;
}
.upload .module-icon { margin: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
td,th {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th { background: #f3f6f9; }
footer {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
@media(max-width:600px) {
  header { gap: 12px; }
  .account { margin-left: 0; }
  .hero,.card { padding: 20px; }
  main { padding: 20px 4%; }
}

/* UKEM AI Manager */

select, textarea {
  width: 100%;
  border: 1px solid #cbd6e0;
  background: white;
  color: #142c40;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 15px;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.test-result {
  background: #f3f6f9;
  border: 1px solid #dce4eb;
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 14px;
}

select:focus, textarea:focus {
  outline: 2px solid #2874a6;
}
