.portal-header {
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 36px;
  border-bottom: 1px solid var(--border);
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.portal-brand img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
}
.portal-brand strong {
  display: block;
  font-size: 20px;
}
.portal-brand small {
  display: block;
  color: var(--gold-dark);
  letter-spacing: 2px;
  font-size: 9px;
  margin-top: 2px;
}
.portal-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #72757b;
  font-size: 13px;
}
.portal-header nav a:hover {
  color: var(--gold-dark);
}
.version-tag {
  border: 1px solid #e8debf;
  color: #8a6a29;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
}
.portal-main {
  max-width: 1320px;
  margin: auto;
  padding: 45px 36px 36px;
}
.portal-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 55px;
  gap: 30px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.eyebrow > span {
  height: 6px;
  width: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.portal-intro h1 {
  font-size: 49px;
  line-height: 1.45;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.portal-intro h1 em {
  color: var(--gold-dark);
  font-style: normal;
  font-weight: 400;
}
.portal-intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.intro-mark {
  padding: 20px 80px;
  text-align: center;
  border-inline-start: 1px solid var(--border);
}
.intro-mark > span {
  display: block;
  font:
    italic 72px/1.2 Georgia,
    serif;
  color: var(--gold);
  letter-spacing: -4px;
}
.intro-mark > small {
  font-size: 21px;
}
.mark-line {
  width: 35px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto;
}
.intro-mark p {
  font-size: 12px;
}
.portal-section {
  margin-bottom: 24px;
}
.portal-section .eyebrow {
  margin-bottom: 6px;
}
.portal-section h2 {
  margin: 0;
  font-size: 22px;
}
.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.application-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.application-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px #1319250c;
}
.app-preview {
  height: 245px;
  position: relative;
  overflow: hidden;
}
.client-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, #1414169c, #15151a00);
  padding: 28px;
  color: white;
}
.preview-overlay small {
  font-size: 8px;
  letter-spacing: 3px;
  opacity: 0.8;
}
.preview-overlay h3 {
  font-size: 30px;
  margin: 15px 0;
}
.preview-overlay > span {
  font-size: 11px;
  border-bottom: 1px solid #e7d298;
  padding-bottom: 5px;
}
.app-number {
  position: absolute;
  bottom: 15px;
  left: 18px;
  font: 35px Georgia;
  color: #ffffff7d;
}
.app-card-body {
  padding: 24px;
}
.app-label {
  font-size: 10px;
  color: var(--gold-dark);
  font-weight: 700;
}
.app-count {
  font-size: 10px;
  color: var(--muted);
}
.app-card-body h3 {
  font-size: 23px;
  margin: 9px 0;
}
.app-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  min-height: 73px;
}
.open-app {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
}
.open-app > span {
  font-size: 20px;
  color: var(--gold-dark);
}
.folder-name {
  display: block;
  text-align: right;
  color: #9c9b98;
  font-size: 10px;
  margin-top: 14px;
}
.admin-preview {
  background: #e6e8e3;
  padding: 25px 18px 0;
}
.mini-dashboard {
  background: #fff;
  border-radius: 9px 9px 0 0;
  height: 100%;
  display: flex;
  gap: 15px;
  box-shadow: 0 10px 30px #0001;
  overflow: hidden;
  padding-left: 15px;
}
.mini-dashboard aside {
  width: 45px;
  background: var(--dark);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 17px;
  padding-top: 10px;
}
.mini-dashboard aside b {
  font: italic 24px Georgia;
  color: #dbb767;
}
.mini-dashboard aside i {
  width: 22px;
  height: 3px;
  background: #ffffff35;
  border-radius: 3px;
}
.mini-dashboard > div {
  flex: 1;
  padding: 17px 0;
}
.mini-head {
  font-size: 11px;
  font-weight: 700;
}
.mini-stats {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}
.mini-stats i {
  font-style: normal;
  background: #f8f7f2;
  padding: 7px 9px;
  border-radius: 5px;
  flex: 1;
  font-size: 14px;
}
.mini-stats small {
  font-size: 7px;
  display: block;
  color: #999;
}
.mini-dashboard svg {
  width: 100%;
  height: 58px;
}
.mini-rows {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.mini-rows i {
  height: 4px;
  background: #efefec;
  width: 90%;
  border-radius: 3px;
}
.admin-preview .app-number {
  color: #41484455;
}
.ops-preview {
  background: #e5ece9;
  padding: 22px 40px 0;
}
.mini-task {
  height: 110%;
  background: #fff;
  border-radius: 15px 15px 0 0;
  padding: 18px;
  box-shadow: 0 10px 30px #0001;
}
.task-symbol {
  background: #eff5f0;
  color: #32816b;
  font-size: 15px;
  height: 26px;
  width: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.mini-task .between small {
  font-size: 9px;
  color: #888;
}
.mini-task h4 {
  font-size: 17px;
  margin: 10px 0 1px;
}
.mini-task p {
  font-size: 9px;
  color: #999;
}
.task-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}
.task-line i {
  height: 10px;
  width: 10px;
  border: 1px solid #ddd;
  border-radius: 50%;
}
.task-line i.done {
  background: var(--gold);
  border-color: var(--gold);
}
.task-line span {
  height: 1px;
  flex: 1;
  background: #e6e3da;
}
.task-mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin: 7px 0;
}
.task-mini-row span {
  color: #999;
}
.task-action {
  display: block;
  background: var(--dark);
  padding: 8px;
  border-radius: 6px;
  color: white;
  font-size: 10px;
  text-align: center;
  margin-top: 12px;
}
.ops-preview .app-number {
  color: #596b6355;
}
.review-panel {
  margin-top: 42px;
  padding: 28px;
}
.review-panel h2 {
  font-size: 20px;
  margin: 0;
}
.review-panel .eyebrow {
  margin-bottom: 4px;
}
.review-panel > p {
  font-size: 13px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 24px;
}
.review-grid label {
  color: #777;
}
.review-grid select {
  font-weight: 400;
  margin-top: 6px;
}
.portal-footer {
  max-width: 1320px;
  margin: auto;
  padding: 25px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 11px;
}
.portal-footer a {
  color: var(--gold-dark);
}
#scenario-state {
  margin: 18px 0 0;
}
@media (max-width: 1000px) {
  .portal-intro h1 {
    font-size: 40px;
  }
  .intro-mark {
    padding-inline: 40px;
  }
  .application-grid {
    gap: 16px;
  }
  .app-card-body {
    padding: 18px;
  }
  .app-preview {
    height: 220px;
  }
  .ops-preview {
    padding-inline: 22px;
  }
  .mini-stats i {
    padding: 7px;
  }
  .portal-header nav {
    gap: 15px;
  }
}
@media (max-width: 760px) {
  .portal-header,
  .portal-main {
    padding-inline: 20px;
  }
  .portal-header nav > a {
    display: none;
  }
  .portal-header nav > .all-versions {
    display: inline;
    white-space: nowrap;
  }
  .portal-header {
    flex-wrap: wrap;
  }
  .portal-intro {
    padding: 15px 0 25px;
  }
  .portal-intro h1 {
    font-size: 34px;
  }
  .intro-mark {
    display: none;
  }
  .portal-intro p {
    font-size: 13px;
  }
  .application-grid {
    grid-template-columns: 1fr;
  }
  .app-preview {
    height: 240px;
  }
  .app-card-body p {
    min-height: 0;
  }
  .app-card-body {
    padding: 23px;
  }
  .review-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .portal-footer {
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px;
  }
  .portal-brand small {
    font-size: 8px;
  }
  .review-panel {
    padding: 20px;
  }
  .review-panel .between {
    gap: 14px;
  }
  .portal-section {
    display: block;
  }
  .portal-section .demo-note {
    display: block;
    margin-top: 10px;
  }
}
