/* The portal is an entrance, not a navigation shell around the applications. */
.portal-page {
  background: #eeede7;
  color: #292c2b;
}
.portal-page .topbar {
  max-width: 1280px;
  height: 84px;
  margin: auto;
  background: transparent;
  border: 0;
  padding: 0 48px;
}
.portal-page .logo {
  font-size: 20px;
  letter-spacing: -0.04em;
}
.portal-page .logo svg {
  color: #8a603d;
}
.portal-page .account {
  gap: 8px;
}
.portal-page .account > span {
  display: inline;
  color: #777c77;
  margin-right: 12px;
}
.portal-page .account button,
.portal-page .account a {
  color: #535b55;
  font-size: 13px;
  background: transparent;
  border-color: transparent;
}
.portal-page .account a.admin-entry {
  border-color: #b9bdb4;
  padding: 7px 15px;
  min-height: 38px;
}
.portal-page .account button:hover,
.portal-page .account a:hover {
  background: #e1e2da;
}
.portal-page .shell {
  max-width: 1280px;
  padding: 32px 48px 30px;
}
.portal-page .resource-strip {
  display: none;
}
.portal-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 18px 0 42px;
}
.portal-intro h1 {
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin: 12px 0 14px;
}
.portal-intro p {
  font-size: 14px;
  color: #747b74;
  margin: 0;
  max-width: 540px;
  line-height: 1.8;
}
.portal-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #727a70;
}
.portal-kicker:before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7f947d;
}
.portal-side {
  font-size: 13px;
  color: #7b8178;
  padding-bottom: 5px;
  white-space: nowrap;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 24px;
}
.portal-card {
  position: relative;
  display: block;
  border: 1px solid #d0d2c7;
  background: #f6f5f0;
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s;
  animation: portal-enter 0.65s both;
}
.portal-card:nth-child(2) {
  animation-delay: 0.1s;
}
.portal-card:hover {
  transform: translateY(-5px);
  border-color: #8d9989;
}
.portal-card:focus-visible {
  outline-color: #6d765e;
}
.portal-art {
  position: relative;
  height: 246px;
  background: #e8dfcf;
  overflow: hidden;
}
.portal-art.spatial {
  background: #303c37;
}
.portal-art canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.portal-art-top {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.portal-art .portal-number {
  color: #866c53;
  font-size: 13px;
}
.portal-art.spatial .portal-number {
  color: #b4c3b7;
}
.portal-art .status {
  font-size: 12px;
  color: #655e4f;
  background: #eee8db;
  padding: 4px 10px;
  border-radius: 20px;
}
.portal-art.spatial .status {
  color: #d7e1d6;
  background: #465449;
}
.portal-art .status.on:before {
  background: #6c805a;
}
.portal-art.spatial .status.on:before {
  background: #b2c5a4;
}
.portal-card-body {
  padding: 25px 28px 27px;
}
.portal-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.portal-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.portal-arrow {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #c4c9bc;
  border-radius: 50%;
  font-size: 23px;
  color: #606c58;
  transition:
    transform 0.25s,
    background 0.25s;
}
.portal-card:hover .portal-arrow {
  transform: rotate(-35deg);
  background: #dce2d4;
}
.portal-card p {
  font-size: 13px;
  color: #757c73;
  line-height: 1.8;
  margin: 12px 0 22px;
  max-width: 390px;
}
.portal-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #828979;
}
.portal-card-meta strong {
  font-size: 13px;
  color: #526249;
  font-weight: 500;
}
.portal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 0;
  border-bottom: 1px solid #d0d3c9;
  padding-bottom: 24px;
}
.portal-bottom p {
  color: #798174;
  font-size: 13px;
  margin: 0;
}
.portal-bottom button {
  background: none;
  border-color: #b8c0b0;
  color: #526249;
  font-size: 13px;
  min-height: 38px;
}
.portal-bottom button:hover {
  background: #e0e4d8;
}
.portal-page footer {
  border: 0;
  color: #898f84;
  font-size: 12px;
  margin-top: 10px;
}
.portal-page #compute {
  color: #2b322c;
}
.portal-page #compute .gpu {
  background: #f3f3ec;
}
.portal-page #compute .monitor-grid,
.portal-page #compute .gpu {
  border-color: #ced4c7;
}
.portal-page #compute .gpu p,
.portal-page #compute .gpu-title,
.portal-page #compute .gpu strong small,
.portal-page #compute .system-line,
.portal-page #compute .section-head p {
  color: #697365;
}
.portal-page #compute .section-head .eyebrow {
  color: #697365;
}
.portal-page #compute meter::-webkit-meter-bar {
  background: #d7ddcf;
}
.portal-page #compute meter::-webkit-meter-optimum-value {
  background: #8a9779;
}
.app-back {
  color: #b3b9bf;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-back:before {
  content: "←";
  font-size: 18px;
}
.app-context {
  border-left: 1px solid #45494c;
  padding-left: 24px;
  font-size: 15px;
  color: #d4d7d9;
}
.app-topbar {
  gap: 24px;
}
.app-topbar .logo {
  display: none;
}
@keyframes portal-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1650px) {
  .portal-page .shell {
    padding-top: 48px;
  }
  .portal-art {
    height: 280px;
  }
}
@media (max-width: 1050px) {
  .portal-page .topbar {
    padding: 0 30px;
  }
  .portal-page .shell {
    padding: 28px 30px;
  }
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .portal-card-body {
    padding: 23px;
  }
  .portal-art {
    height: 230px;
  }
  .portal-intro h1 {
    font-size: 36px;
  }
  .portal-side {
    display: none;
  }
  .portal-card h2 {
    font-size: 22px;
  }
}
@media (max-width: 720px) {
  .portal-page .topbar {
    height: 76px;
    min-height: 76px;
    flex-wrap: nowrap;
    padding: 0 20px;
    gap: 10px;
  }
  .portal-page .logo {
    font-size: 18px;
  }
  .portal-page .account > span,
  .portal-page .account button:first-of-type {
    display: none;
  }
  .portal-page .account {
    gap: 0;
  }
  .portal-page .account a.admin-entry {
    padding: 5px 10px;
    min-height: 34px;
    font-size: 12px;
  }
  .portal-page .account button {
    font-size: 12px;
  }
  .portal-page .shell {
    padding: 12px 20px 28px;
  }
  .portal-intro {
    margin: 15px 0 28px;
  }
  .portal-intro h1 {
    font-size: 31px;
    letter-spacing: -0.06em;
    margin: 14px 0 12px;
  }
  .portal-intro p {
    font-size: 13px;
    max-width: 310px;
  }
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .portal-art {
    height: 210px;
  }
  .portal-card-body {
    padding: 22px;
  }
  .portal-card h2 {
    font-size: 23px;
  }
  .portal-card p {
    margin-bottom: 18px;
    font-size: 13px;
  }
  .portal-card-meta {
    font-size: 12px;
  }
  .portal-bottom {
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
  }
  .portal-bottom p {
    font-size: 12px;
    max-width: 190px;
  }
  .portal-bottom button {
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
  }
  .portal-page footer {
    font-size: 11px;
    gap: 5px;
    margin-top: 14px;
  }
  .app-topbar {
    min-height: 72px;
    height: 72px;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0 18px;
  }
  .app-context {
    font-size: 13px;
    padding-left: 12px;
  }
  .app-back {
    font-size: 12px;
  }
  .app-topbar .account > span {
    display: none;
  }
  .app-topbar .account button {
    font-size: 12px;
    padding: 5px;
  }
  .app-topbar .account {
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-card {
    animation: none;
    transition: none;
  }
  .portal-arrow {
    transition: none;
  }
  .portal-card:hover {
    transform: none;
  }
}
.portal-page {
  background: #eeefec;
}
.portal-page .portal-card {
  background: #f7f8f5;
}
.portal-page footer,
.portal-card-meta {
  color: #626d5e;
}
.portal-side,
.portal-kicker,
.portal-intro p,
.portal-card p,
.portal-bottom p,
.portal-page .account > span {
  color: #667160;
}
.portal-card {
  display: flex;
  flex-direction: column;
}
.portal-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.portal-card-meta {
  margin-top: auto;
}
.portal-card p {
  min-height: 46px;
}
.portal-art {
  flex-shrink: 0;
}
.portal-side,
.portal-kicker,
.portal-intro p,
.portal-card p,
.portal-bottom p,
.portal-page .account > span {
  color: #5b6655;
}
.portal-card p {
  max-width: 340px;
  min-height: 0;
  margin-bottom: 18px;
}

.portal-art.stems {
  background: #dfd9c9;
}
@media (min-width: 641px) and (max-width: 1050px) {
  .portal-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
.portal-art.video {
  background: #30383d;
}
.portal-art.mesh {
  background: #45443c;
}
/* Five applications: three across the first row, two equal entries below. */
@media (min-width: 1101px) {
  .portal-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .portal-card {
    grid-column: span 2;
  }
  .portal-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.portal-art.video .portal-number,
.portal-art.mesh .portal-number {
  color: #dce4e0;
}
.portal-art.video .status,
.portal-art.mesh .status {
  color: #dce4e0;
}
.portal-art.video .status,
.portal-art.mesh .status {
  background: #4c574d;
  color: #eef2e9;
}
.portal-art.video .status.on:before,
.portal-art.mesh .status.on:before {
  background: #c3d2b7;
}
