@font-face {
  font-family: Endmed;
  src: local('Arial');
}
* {
  box-sizing: border-box;
}
html {
  background: #f3f5fa;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #19233c;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
svg.icon {
  height: 21px;
  width: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b9bdf2;
  outline-offset: 3px;
}
.topbar {
  height: 82px;
  padding: 12px max(20px, calc((100% - 1000px) / 2));
  background: #292f78;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 3px 18px #141b4b12;
}
.topbar img {
  width: 153px;
  height: auto;
  display: block;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.network {
  font-size: 11px;
  color: #d7dafa;
  white-space: nowrap;
}
.network i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a3dccb;
  margin-right: 4px;
}
.avatar {
  border: 1px solid #ffffff38;
  background: #ffffff14;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 650;
}
main {
  max-width: 1040px;
  margin: auto;
  padding: 25px 20px 115px;
  outline: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 720;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.muted {
  color: #6c758a;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #747e96;
  margin-bottom: 9px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 23px;
}
.page-heading p {
  margin-top: 7px;
  font-size: 13px;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid #e0e4ee;
  background: white;
  border-radius: 14px;
  color: #434b6c;
}
.primary,
.secondary {
  border: 0;
  border-radius: 13px;
  padding: 14px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  min-height: 49px;
}
.primary {
  background: #353a88;
  color: white;
  box-shadow: 0 5px 12px #292f7814;
}
.secondary {
  background: #eef0f8;
  color: #343c77;
}
.full {
  width: 100%;
}
.hero {
  position: relative;
  overflow: hidden;
  background: #292f78;
  color: white;
  border-radius: 23px;
  padding: 25px;
  margin-bottom: 20px;
  min-height: 169px;
}
.hero:after {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  border: 36px solid #ffffff06;
  border-radius: 50%;
  right: -105px;
  top: -62px;
  pointer-events: none;
}
.hero .eyebrow {
  color: #c3c7f0;
}
.hero h2 {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.hero p {
  font-size: 13px;
  color: #d4d8f4;
  margin: 6px 0 19px;
}
.hero a {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #292f78;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 15px;
  font-weight: 650;
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.stat {
  display: block;
  background: white;
  padding: 15px 12px;
  border: 1px solid #e8eaf1;
  border-radius: 17px;
}
.stat .stat-label {
  font-size: 11px;
  color: #6c758a;
  display: block;
  margin: 8px 0 2px;
}
.stat strong {
  font-size: 27px;
  letter-spacing: -1px;
  display: block;
  line-height: 1.3;
}
.stat .icon {
  height: 18px;
  color: #616aac;
}
.stat.closed .icon {
  color: #419680;
}
.stat.pending .icon {
  color: #b68743;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 13px;
}
.section-heading a {
  font-size: 12px;
  color: #535c98;
  font-weight: 650;
}
.cards {
  display: grid;
  gap: 12px;
}
.card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e5e8f0;
  border-radius: 18px;
  padding: 17px;
  background: white;
  box-shadow: 0 3px 9px #25305203;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 11px;
}
.record {
  font-size: 10px;
  letter-spacing: 0.4px;
  font-weight: 650;
  color: #707a93;
}
.badge {
  border-radius: 7px;
  padding: 4px 8px;
  background: #eef0fa;
  color: #5e6595;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.closed {
  background: #edf7f1;
  color: #347c61;
}
.badge.active {
  background: #edf3fc;
  color: #3269aa;
}
.badge.waiting {
  background: #fff5e5;
  color: #956524;
}
.card h3 {
  font-size: 14px;
  font-weight: 670;
  margin-bottom: 6px;
}
.device-line {
  font-size: 12px;
  color: #757e92;
  overflow-wrap: anywhere;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #7a8295;
  border-top: 1px solid #f0f1f6;
  padding-top: 12px;
  margin-top: 13px;
}
.person {
  display: flex;
  align-items: center;
  gap: 6px;
}
.person .icon {
  height: 14px;
  width: 14px;
}
.card:hover {
  border-color: #c4c8e3;
}
.search-box {
  position: relative;
  margin: 0 0 15px;
}
.search-box > .icon {
  position: absolute;
  top: 16px;
  left: 14px;
  color: #8a90a3;
  width: 18px;
}
.search-box input {
  padding-left: 42px;
  background: white;
  border-color: #e3e7f0;
}
.tabs {
  display: flex;
  padding: 4px;
  background: #e8ebf4;
  border-radius: 13px;
  gap: 3px;
  margin-bottom: 15px;
}
.tabs button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 11px 5px;
  font-size: 12px;
  color: #70798e;
  font-weight: 600;
  min-height: 43px;
}
.tabs button[aria-selected='true'] {
  background: white;
  color: #343b7e;
  box-shadow: 0 2px 5px #25305209;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.filter-row label {
  flex: 1;
}
.filter-row select {
  padding: 11px;
  font-size: 13px;
  background: #fff;
}
.count {
  font-size: 11px;
  color: #788096;
  white-space: nowrap;
}
.list-note {
  font-size: 12px;
  color: #7a8295;
  margin: 4px 0 13px;
}
.bottom-nav {
  position: fixed;
  z-index: 25;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 9px max(10px, calc((100% - 670px) / 2)) calc(9px + env(safe-area-inset-bottom));
  background: #ffffffef;
  border-top: 1px solid #e5e8f1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  backdrop-filter: blur(18px);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: #858da2;
  min-height: 48px;
}
.bottom-nav a[aria-current='page'] {
  color: #353b86;
  font-weight: 700;
}
.bottom-nav .nav-new .icon {
  background: #353b86;
  color: white;
  border-radius: 11px;
  padding: 7px;
  width: 34px;
  height: 34px;
  margin-top: -10px;
  margin-bottom: -2px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6a7393;
  margin: 0 0 20px;
  min-height: 30px;
}
.back .icon {
  width: 16px;
}
.detail-title {
  font-size: 22px;
  margin: 10px 0;
}
.detail-section {
  background: white;
  border: 1px solid #e5e8f0;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
}
.detail-section h2 {
  font-size: 15px;
  margin-bottom: 13px;
}
.info-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 9px 0;
  border-top: 1px solid #f0f2f7;
  font-size: 12px;
}
.info-line:first-of-type {
  border: 0;
}
.info-line span {
  color: #7a8297;
}
.info-line strong {
  font-weight: 550;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 70%;
}
.text-block {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #566078;
}
.timeline {
  display: grid;
  gap: 12px;
}
.timeline div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.timeline i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bfc5da;
  flex-shrink: 0;
}
.timeline time {
  margin-left: auto;
  color: #858da2;
  font-size: 10px;
}
.form-section {
  background: white;
  border: 1px solid #e5e8f0;
  border-radius: 18px;
  padding: 19px;
  margin-bottom: 15px;
}
.form-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 19px;
}
.step {
  border-radius: 8px;
  background: #eff0f9;
  color: #555a9b;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.form-section label,
.login-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #545f78;
  margin-bottom: 16px;
}
label small,
.hint {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #7b8499;
  margin-top: 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e0e4ef;
  border-radius: 11px;
  padding: 13px;
  color: #26314d;
  background: #fafbfe;
  min-width: 0;
  font-size: 16px;
  outline: none;
}
label > input,
label > select,
label > textarea,
label > .password {
  margin-top: 7px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #858bc1;
  box-shadow: 0 0 0 3px #858bc114;
}
textarea {
  resize: vertical;
  min-height: 104px;
}
input::placeholder,
textarea::placeholder {
  color: #a0a6b6;
  font-size: 13px;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 400 !important;
  padding: 10px 0;
  margin: 0 !important;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: #353b86;
  margin: 0;
  flex-shrink: 0;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  border: 0;
  border-radius: 8px;
  padding: 7px 9px;
  background: #f0f2f9;
  font-size: 10px;
  color: #666f8d;
}
.institution-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.institution-symbol {
  display: flex;
  width: 42px;
  height: 42px;
  background: #eef0fa;
  color: #7179ad;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.institution-info {
  flex: 1;
}
.institution-info small {
  font-size: 11px;
  color: #80889d;
}
.institution-count {
  font-size: 11px;
  white-space: nowrap;
  color: #707ba1;
}
.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}
.empty {
  text-align: center;
  padding: 38px 20px;
  background: #fff;
  border: 1px solid #e5e8f0;
  border-radius: 18px;
  color: #7a8295;
  font-size: 13px;
}
.empty .icon {
  width: 34px;
  height: 34px;
  color: #999fbd;
  display: block;
  margin: 0 auto 13px;
}
.empty strong {
  color: #59627c;
  display: block;
  margin-bottom: 6px;
}
.error {
  background: #fff0f1;
  border-radius: 11px;
  padding: 13px;
  color: #a03a48;
  font-size: 12px;
  margin-bottom: 15px;
  white-space: pre-wrap;
}
.notice {
  padding: 14px;
  border-radius: 12px;
  background: #edf2fa;
  color: #5d6a8b;
  font-size: 12px;
  margin-bottom: 16px;
}
.saved {
  background: #edf7f1;
  color: #357459;
}
.result-icon {
  width: 58px;
  height: 58px;
  background: #e8f5ed;
  color: #328262;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px auto 18px;
}
.review-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #788399;
  margin-bottom: 15px;
}
.review-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.load-more {
  margin-top: 16px;
  width: 100%;
}
.login-screen {
  min-height: 100dvh;
  background: linear-gradient(165deg, #292f78 0%, #292f78 39%, #f3f5fa 39%);
  padding: 48px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-brand {
  text-align: center;
  margin-bottom: 33px;
}
.login-brand img {
  width: 228px;
  display: block;
  margin: auto;
}
.login-brand span {
  display: block;
  color: #b9bde0;
  font-size: 8px;
  letter-spacing: 2.1px;
  margin-top: 12px;
}
.login-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 410px;
  box-shadow: 0 14px 40px #11195110;
}
.login-card .app-icon {
  width: 45px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.login-card h1 {
  font-size: 27px;
  margin-bottom: 10px;
}
.login-card .muted {
  font-size: 13px;
  margin-bottom: 25px;
}
.login-card small {
  font-size: 10px;
  color: #858ca1;
  display: block;
  text-align: center;
  margin-top: 17px;
}
.password {
  position: relative;
}
.password input {
  padding-right: 70px;
}
.password button {
  position: absolute;
  right: 5px;
  top: 4px;
  bottom: 4px;
  border: 0;
  background: transparent;
  color: #787fa0;
  font-size: 11px;
  padding: 10px;
}
.login-footer {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #8c94aa;
  margin-top: 25px;
}
.initial {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100dvh;
  gap: 20px;
  color: #747e99;
  font-size: 12px;
}
.initial img {
  width: 54px;
  border-radius: 15px;
}
#toast {
  position: fixed;
  z-index: 100;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  background: #27334b;
  color: white;
  border-radius: 13px;
  font-size: 12px;
  box-shadow: 0 8px 25px #131c3825;
}
dialog {
  border: 0;
  max-width: calc(100% - 32px);
  width: 370px;
  border-radius: 22px;
  padding: 23px;
  color: #28324c;
}
dialog::backdrop {
  background: #16204265;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
dialog p {
  margin: 10px 0;
}
dialog .secondary {
  margin-top: 20px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 700px) {
  main {
    padding-top: 34px;
  }
  .hero {
    padding: 32px;
    min-height: 180px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .stats {
    gap: 15px;
  }
  .stat {
    padding: 20px;
  }
  .stat strong {
    font-size: 34px;
  }
  .stat .stat-label {
    font-size: 12px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .two-col .form-section {
    height: fit-content;
  }
  .form-width {
    max-width: 670px;
    margin: auto;
  }
  h1 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 360px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .topbar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .network {
    display: none;
  }
  .stats {
    gap: 7px;
  }
  .stat {
    padding: 13px 10px;
  }
  .stat .stat-label {
    font-size: 10px;
  }
}
