:root {
  --uees-blue: #0736a4;
  --uees-blue-deep: #04256f;
  --uees-gold: #f2c300;
  --uees-ink: #16233b;
  --uees-slate: #5b6782;
  --uees-border: #d7deeb;
  --uees-surface: #ffffff;
  --uees-bg: #f5f7fb;
  --uees-soft: #eef4ff;
  --uees-ok: #1e7a4e;
  --uees-danger: #a22d2d;
  --radius: 8px;
  --shadow-soft: 0 18px 50px rgba(7, 54, 164, 0.09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--uees-ink);
  background: linear-gradient(180deg, #f4f7fd 0%, #f9fbff 100%);
}
a { color: var(--uees-blue); }
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 22px;
  background: var(--uees-blue-deep);
  color: #fff;
  border-right: 4px solid var(--uees-gold);
}
.brand img {
  width: 160px;
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}
.sidebar .brand h1,
.sidebar .brand p {
  color: #fff;
}
.sidebar .brand p {
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}
.brand h1, .card h2, .card h3, .card h4 { margin: 0 0 10px; }
.muted { color: var(--uees-slate); }
.sidebar .card {
  padding: 14px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.sidebar .card h3,
.sidebar .card p,
.sidebar .card li,
.sidebar .card small,
.sidebar .card a {
  color: rgba(255,255,255,0.92);
}
.side-footer { margin-top: 18px; }
.side-button {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
}
.side-button:hover { background: rgba(255,255,255,0.10); }
.sidebar .card p, .sidebar .card li, .sidebar .card small {
  color: rgba(255,255,255,0.86);
  line-height: 1.5;
}
.content {
  padding: 30px 32px 42px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
}
.hero, .panel, .card-surface {
  background: var(--uees-surface);
  border: 1px solid var(--uees-border);
  border-top: 6px solid var(--uees-gold);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  border-radius: var(--radius);
}
.hero-top, .section-head, .split {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--uees-soft);
  color: var(--uees-blue-deep);
  font-weight: 700;
  font-size: 0.92rem;
}
.btn,
button,
input,
select,
textarea {
  font: inherit;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--uees-blue); color: #fff; }
.btn-secondary { background: #fff; color: var(--uees-blue-deep); border-color: #c8d5ef; }
.btn-accent { background: var(--uees-gold); color: var(--uees-blue-deep); }
.btn-danger { background: var(--uees-danger); color: #fff; }
.btn:hover { filter: brightness(0.98); }
.info-grid, .field-grid, .review-grid, .metric-grid, .grid-2, .grid-3 {
  display: grid;
  gap: 18px;
}
.info-grid, .review-grid, .metric-grid, .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.info-card, .review-card, .metric-card, .card {
  background: #fff;
  border: 1px solid var(--uees-border);
  border-radius: var(--radius);
  padding: 18px;
}
.metric-label { display:block; color: var(--uees-slate); font-size: 0.9rem; margin-bottom: 6px; }
.metric-value { font-size: 1.8rem; font-weight: 700; color: var(--uees-blue-deep); }
.field label { display:block; margin-bottom: 6px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid #c8d5ef;
  background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.question-card {
  border: 1px solid var(--uees-border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}
.question-title { font-weight: 700; line-height: 1.45; margin-bottom: 12px; }
.inline-options, .scale-options {
  display: grid;
  gap: 10px;
}
.option-card {
  border: 1px solid #d5def2;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.option-card input { margin-top: 2px; }
.step-panel { display: none; }
.step-panel.active { display: block; }
.panel-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.tip, .notice, .status-box {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid #d8e4ff;
  background: #f8fbff;
  color: var(--uees-ink);
}
.status-box.success { border-color: #bfe2cb; background: #f5fff8; color: var(--uees-ok); }
.toolbar {
  display:flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar-left, .toolbar-right { display:flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.table-wrap {
  overflow: auto;
  border: 1px solid var(--uees-border);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4ebf6;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}
th {
  position: sticky;
  top: 0;
  background: #f5f8ff;
  color: var(--uees-blue-deep);
  z-index: 1;
}
.hidden { display: none !important; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--uees-soft);
  color: var(--uees-blue-deep);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 43, 0.55);
  z-index: 50;
}
.modal {
  position: fixed;
  inset: 5vh auto auto 50%;
  transform: translateX(-50%);
  width: min(820px, calc(100vw - 28px));
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--uees-border);
  box-shadow: 0 30px 80px rgba(6, 25, 79, 0.28);
  z-index: 60;
}
.modal-header {
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 20px 22px 0;
}
.modal-body { padding: 0 22px 22px; }
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--uees-border);
  background: #fff;
  cursor: pointer;
}
.consent-copy { display: grid; gap: 18px; line-height: 1.6; }
.consent-copy ul { margin: 8px 0 0; padding-left: 18px; }
.login-box {
  max-width: 420px;
  margin: 8vh auto;
}
.small { font-size: 0.9rem; }
@media (max-width: 980px) {
  .page { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 4px solid var(--uees-gold); }
  .hero-top, .section-head, .split { flex-direction: column; }
  .info-grid, .review-grid, .metric-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
