:root {
  color-scheme: light;
  --bg: #e6eaf0;
  --card: #fff;
  --text: #3e4654;
  --muted: #7d8694;
  --line: #e4e8ee;
  --field: #d7dce3;
  --primary: #1c9ad8;
  --primary-dark: #157eaf;
  --link: #1286b5;
  --danger: #b42318;
  --shadow: 0 10px 28px rgba(31, 45, 69, 0.08);
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}
button, input, select { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 48px;
}
.auth-page h1 {
  margin: 0 0 26px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #3a414c;
  text-align: center;
  text-wrap: balance;
}
.card {
  width: min(400px, 100%);
  background: var(--card);
  border: 1px solid #e8ecf1;
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 26px 24px 20px;
  animation: fade 0.22s ease;
}
.card h2 {
  margin: 2px 0 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #6b7280;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.stack { display: flex; flex-direction: column; gap: 12px; }
.field {
  position: relative;
  display: block;
  height: 44px;
  border: 1px solid var(--field);
  border-radius: 4px;
  background: #fff;
}
.field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 154, 216, 0.14);
}
.field input,
.field select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0 12px 0 36px;
  text-align: right;
}
.field select { appearance: none; }
.field input::placeholder { color: #b0b6c0; }
.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aeb6c2;
  display: flex;
  pointer-events: none;
}

.captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  direction: ltr;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  min-height: 74px;
  padding: 12px;
}
.captcha, .captcha * { font-family: Arial, Helvetica, sans-serif; }
.captcha-check {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0;
  color: #202124;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
}
.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  display: grid;
  place-items: center;
}
.captcha-box[data-state="passed"] { background: var(--primary); border-color: var(--primary); }
.captcha-box[data-state="loading"] {
  border-color: #e6e6e6;
  border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.captcha-brand { display: flex; flex-direction: column; align-items: center; color: #6b7280; line-height: 1.1; }
.captcha-brand strong { font-size: 11px; color: #555; letter-spacing: 0.2px; }
.captcha-brand small { font-size: 9px; }
.captcha-wrap { position: relative; }
.captcha-pop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(18, 22, 28, 0.46);
  backdrop-filter: blur(3px) saturate(0.86);
  -webkit-backdrop-filter: blur(3px) saturate(0.86);
}
.captcha-dialog {
  position: fixed;
  width: min(348px, calc(100vw - 24px));
  border: 1px solid #dadce0;
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}
.captcha-prompt {
  background: #1a73e8;
  color: #fff;
  min-height: 78px;
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}
.captcha-prompt span { font-size: 14px; font-weight: 600; font-family: var(--font); }
.captcha-prompt strong { font-size: 22px; line-height: 1.25; font-family: var(--font); }
.captcha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #fff; direction: ltr; }
.captcha-tile {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: #d5e3ee;
  overflow: hidden;
  cursor: pointer;
}
.captcha-tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.captcha-tile.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 115, 232, 0.28);
  box-shadow: inset 0 0 0 3px #1a73e8;
}
.captcha-tick {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a73e8;
  display: grid;
  place-items: center;
}
.captcha-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  padding: 4px 6px 6px;
}
.captcha-icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  display: grid;
  place-items: center;
}
.captcha-icon:hover { background: #f1f3f4; }
.captcha-verify {
  border: 0;
  background: transparent;
  color: #1a73e8;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  padding: 8px 12px;
}
.captcha-verify:hover { background: #e8f0fe; border-radius: 4px; }
.captcha-pop .form-error { margin: 0 8px 8px; }

.form-error {
  margin: 0;
  color: var(--danger);
  background: #fef3f2;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13.5px;
}
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.check { display: flex; align-items: center; gap: 8px; color: #5d6672; font-size: 13px; font-weight: 400; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }

.btn {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  min-width: 112px;
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: 0.65; cursor: default; }
.btn-block { width: 100%; }
.btn-small, .btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--field);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-small:hover, .btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }

.auth-links { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--link);
  font-size: 14px;
  font-weight: 400;
}
.linkish:hover { text-decoration: underline; }

.demo-hint {
  width: min(400px, 100%);
  margin-top: 16px;
  text-align: center;
  color: #6b7380;
  font-size: 13px;
}
.demo-hint p { margin: 0 0 8px; }
.demo-accounts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  border: 1px solid #d5deea;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }

.intro { margin: -8px 0 4px; text-align: center; color: #5c6572; font-size: 14px; }
.email { color: #14324a; font-weight: 700; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 13px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.otp-boxes { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.otp-digit {
  width: 46px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 1px solid var(--field);
  border-radius: 8px;
  color: var(--text);
}
.otp-digit:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 154, 216, 0.15);
}
.mail {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcfe;
  text-align: right;
}
.mail header { background: #f3f6f9; padding: 10px 12px; color: #667084; font-size: 12.5px; display: grid; gap: 3px; }
.mail .body { padding: 14px 12px 16px; }
button.otp-code {
  display: inline-block;
  margin: 8px 0;
  font-size: 28px;
  letter-spacing: 6px;
  font-weight: 700;
  color: #14324a;
  background: #fff;
  border: 1px dashed #c5d4e2;
  border-radius: 8px;
  padding: 8px 12px;
  direction: ltr;
  font-family: var(--font);
}

.shell { display: flex; min-height: 100vh; align-items: stretch; }
.side {
  width: 260px;
  flex: none;
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 14px 10px; }
.brand strong { display: block; font-size: 14px; line-height: 1.35; }
.brand small { color: var(--muted); }
.logo {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.nav-label { color: #98a0ad; font-size: 12px; margin: 8px 14px; }
.nav { display: flex; flex-direction: column; gap: 4px; padding: 0 10px; }
.nav-btn {
  width: 100%;
  text-align: right;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #3e4756;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
}
.nav-btn svg { flex: none; }
.nav-btn.active { background: #e7f5fc; color: #0f7eae; }
.nav-btn:hover { background: #f4f7fa; }
.nav-btn.active:hover { background: #e7f5fc; }
.pill {
  margin-inline-start: auto;
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  padding: 0 6px;
}
.side-foot { margin-top: auto; padding: 14px; border-top: 1px solid #eef1f5; font-size: 13px; }
.side-foot small { color: var(--muted); display: block; }

.main { flex: 1; min-width: 0; background: var(--bg); }
.top {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.top h2 { margin: 0; font-size: 20px; white-space: nowrap; }
.top-title { min-width: 140px; }
.top-title small { color: var(--muted); white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.who { display: flex; align-items: center; gap: 8px; }
.who div { text-align: right; }
.who strong, .who small { display: block; white-space: nowrap; }
.who small { color: var(--muted); font-size: 12px; font-weight: 400; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7f5fc;
  color: #0f7eae;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.search, .select, .field-plain {
  height: 40px;
  border: 1px solid var(--field);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.search { width: 210px; }
.content { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.welcome, .panel, .stat {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(46, 59, 84, 0.05);
}
.welcome { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 18px; }
.welcome h3, .panel h3 { margin: 0; font-size: 16px; }
.welcome p { margin: 4px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 16px 18px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat b { display: block; margin-top: 6px; font-size: 26px; color: #243044; }
.stat:nth-child(1) { border-top: 3px solid #1c9ad8; }
.stat:nth-child(2) { border-top: 3px solid #12b981; }
.stat:nth-child(3) { border-top: 3px solid #f59e0b; }
.stat:nth-child(4) { border-top: 3px solid #7c6bc4; }
.grid-2 { display: grid; grid-template-columns: 1.45fr 0.8fr; gap: 14px; }
.panel { padding: 16px 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 10px; text-align: right; border-bottom: 1px solid #eef1f5; font-size: 14px; vertical-align: top; }
th { color: #7b8494; font-weight: 600; font-size: 12.5px; }
tr[data-id] { cursor: pointer; }
tr[data-id]:hover { background: #f7fbfe; }
td.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.count { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }

.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.badge-ok { background: #ecfdf3; color: #067647; }
.badge-info { background: #e7f5fc; color: #0f7eae; }
.badge-warn { background: #fffaeb; color: #b54708; }
.badge-bad { background: #fef3f2; color: #b42318; }
.badge-muted { background: #f2f4f7; color: #667085; }

.alert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alert-list li { background: #fff7ed; color: #9a3412; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.ok-note { background: #ecfdf3; color: #067647; border-radius: 8px; padding: 10px 12px; margin: 0; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 32px; gap: 8px; align-items: center; margin: 8px 0; font-size: 13px; }
.bar-track { background: #eef2f6; border-radius: 99px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 99px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.money-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f3f6; }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 36, 48, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 30;
}
.modal {
  background: #fff;
  width: min(560px, 100%);
  border-radius: 10px;
  max-height: min(80vh, 720px);
  overflow: auto;
  padding: 16px 16px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.modal-head h3 { margin: 0; }
.icon-x { border: 0; background: #f3f5f8; border-radius: 8px; padding: 6px 10px; font: inherit; }
.modal dl { margin: 0; display: grid; gap: 0; }
.modal dl div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1f3f6; }
.modal dt { color: var(--muted); }
.modal dd { margin: 0; }

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #17324a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  z-index: 60;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  max-width: min(92vw, 520px);
  text-align: center;
}

.portal.shell { flex-direction: column; background: #e7edf3; }
.portal-bar {
  height: 48px;
  flex: none;
  background: #1a8fc4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.portal-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.portal-home { color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; }
a.side-item { text-decoration: none; }
.portal-burger,
.portal-logout {
  background: transparent;
  border: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  padding: 4px;
}
.portal-logout { font-size: 13px; font-weight: 400; }
.portal-body { display: flex; flex: 1; min-height: calc(100vh - 48px); }
.portal-side {
  width: 270px;
  flex: none;
  background: #3c4b59;
  color: #f4f7f9;
  overflow: auto;
  padding: 4px 0 20px;
  min-height: calc(100vh - 48px);
}
.portal-side.is-collapsed { display: none; }
.portal .side-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: #c5d0d6;
  background: transparent;
  border: 0;
  text-align: right;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
.portal .side-item span { white-space: nowrap; }
.portal .side-item svg { flex: none; }
.portal .side-item.is-disabled { cursor: default; }
.portal .side-item.is-active,
.portal .side-item.active { background: #4c5d6c; color: #fff; }
.side-dot {
  width: 9px;
  height: 9px;
  margin-inline-start: auto;
  flex: none;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.28);
}
.portal-main {
  flex: 1;
  min-width: 0;
  background: #e7edf3;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 10px;
}
.home-title {
  margin: 2px 2px 14px;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: #3c4652;
}
.home-alert {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #d74631;
  color: #fff;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.home-alert ul,
.home-note ul {
  margin: 0;
  padding: 0 18px 0 0;
}
.home-alert li,
.home-note li { margin: 0; }
.home-alert ul {
  flex: 1;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.75;
}
.home-days {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00c0ef;
  color: #fff;
  border-radius: 3px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.home-note {
  background: #00c0ef;
  color: #fff;
  padding: 12px 18px;
  margin-bottom: 16px;
  text-align: right;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.home-note p { margin: 0; }
.home-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-card {
  background: #fff;
  border: 1px solid #e6e8ec;
  text-align: center;
  min-height: 96px;
  display: flex;
  flex-direction: column;
}
.home-card strong {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  color: #333;
  padding: 18px 8px 8px;
}
.home-card span {
  background: #f5f5f5;
  color: #86a0af;
  font-size: 13px;
  font-weight: 400;
  padding: 8px 6px 10px;
}
.score-card { background: #fff; border: 1px solid #e1e7ee; }
.criteria-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 20px 8px;
}
.board-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #666;
  white-space: nowrap;
}
.board-select {
  width: min(560px, 62%);
  height: 32px;
  border: 1px solid #d5dde4;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 30px;
  color: #777;
  padding: 0 12px;
  text-align: right;
  text-align-last: right;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}
.board-select:focus { border-color: #8ec3dd; outline: none; }
.score-note {
  margin: 10px 20px 0;
  color: #8a9096;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}
.score-table { width: calc(100% - 24px); margin: 14px 12px 16px; border-collapse: collapse; }
.score-table th,
.score-table td {
  border: 1px solid #e4e9ee;
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.score-table th { font-weight: 700; font-size: 13px; color: #333; background: #f4f7fa; }
.score-table td.criteria { text-align: right; font-weight: 400; color: #222; line-height: 1.5; }
.score-table td.num,
.score-table td.expected { font-weight: 400; color: #222; white-space: nowrap; }
.score-table td.result { font-weight: 700; white-space: nowrap; }
.score-table .result-bad { color: #e53935; }
.score-table .result-good { color: #2db85c; }
.score-table .result-muted { color: #222; font-weight: 400; }
.contracts-block { padding: 6px 8px 8px; }
.contracts-head { text-align: right; padding: 4px 12px 8px; }
.contracts-head h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: #666; }
.contracts-head p { margin: 4px 0 0; color: #8a9096; font-size: 12px; font-weight: 400; line-height: 1.45; }
.contracts-table td.contract-value { color: #000; font-weight: 700; }
.guarantee-block { margin-top: 8px; }
.score-table td.point-good { color: #2db85c; }
.score-table td.point-mid { color: #c4a035; }
.score-table td.point-bad { color: #e0674a; }
.guarantee-note {
  margin: 0 20px 0 12px;
  text-align: right;
  color: #8a9096;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}
.filter-block { padding: 6px 20px 12px; }
.filter-block h3 {
  margin: 0 0 16px;
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  color: #666;
}
.filter-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.filter-row label {
  min-width: 58px;
  text-align: right;
  font-size: 13px;
  font-weight: 400;
  color: #666;
}
.filter-select {
  width: min(340px, 70%);
  height: 32px;
  border: 1px solid #d5dde4;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #777;
  padding: 0 12px;
  text-align: right;
  text-align-last: right;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}
.eval-box {
  margin: 6px 16px 14px;
  border: 1px solid #e4e9ee;
  padding: 12px 8px 16px;
}
.eval-legend {
  display: flex;
  direction: ltr;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 4px 12px 8px;
  font-size: 11px;
  font-weight: 400;
  color: #666;
}
.eval-legend span { display: inline-flex; align-items: center; gap: 6px; }
.eval-swatch { width: 16px; height: 8px; display: inline-block; }
.perf-chart {
  direction: ltr;
  display: flex;
  align-items: stretch;
  height: 230px;
  margin: 4px 12px 0;
}
.perf-y {
  width: 42px;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: #8a9096;
  font-size: 11px;
  line-height: 1;
  padding-bottom: 0;
}
.perf-plot {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid #cfd6de;
  background-image: repeating-linear-gradient(to top, #e6ebf0 0, #e6ebf0 1px, transparent 1px, transparent 10%);
}
.perf-bar { width: min(78px, 16%); }
.level-table { width: calc(100% - 8px); margin: 12px 4px 4px; }
.level-table td { background: #fff; }
.terms-link {
  margin-top: auto;
  align-self: flex-end;
  color: #1f6fa5;
  font-size: 13px;
  font-weight: 400;
  padding: 16px 2px 4px;
}
.terms-box {
  align-self: flex-end;
  max-width: 460px;
  margin: 0 0 8px;
  background: #fff;
  border: 1px solid #e1e7ee;
  color: #4a5562;
  font-size: 13px;
  padding: 10px 12px;
}
.terms-box p { margin: 0; }

@media (max-width: 1180px) {
  .who small { display: none; }
  .search { width: 130px; }
  .top { gap: 10px; padding: 12px 14px; }
}
@media (max-width: 1000px) {
  .stats, .report-grid, .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .shell:not(.portal) { flex-direction: column; }
  .portal-side { width: 210px; }
  .portal .side-item { font-size: 12.5px; padding: 8px 10px; }
  .side { width: 100%; height: auto; position: static; border-left: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; overflow: auto; padding-bottom: 10px; }
  .nav-btn { width: auto; white-space: nowrap; }
  .side-foot { display: none; }
  .top { flex-wrap: wrap; }
  .search { width: 150px; }
}
@media (max-width: 640px) {
  .auth-page h1 { font-size: 26px; }
  .stats, .report-grid, .grid-2, .welcome { grid-template-columns: 1fr; display: grid; }
  .welcome { display: grid; }
  .who small, .top-title small { display: none; }
  .modal dl div, .bar-row { grid-template-columns: 1fr; }
  input, select, .otp-digit { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
@media print {
  .side, .top-actions, .demo-hint, .tools, .toast, .backdrop { display: none !important; }
  .shell { display: block; }
  body, .main { background: #fff; }
  .panel, .stat, .welcome { box-shadow: none; border: 1px solid #ddd; }
}
