* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #090c11;
  color: #e8edf5;
  font-family: system-ui, sans-serif;
}
.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid #273140;
}
.portfolio-demo-name {
  min-width: 0;
  color: #9da9bc;
  font-size: 14px;
  line-height: 1.3;
  text-align: right;
  overflow-wrap: anywhere;
}
.portfolio-demo-container { min-width: 0; min-height: 0; }
.portfolio-demo { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.portfolio-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 132px;
  min-height: 44px;
  flex-shrink: 0;
  padding: 11px 16px;
  border: 1px solid #3c4655;
  border-radius: 6px;
  background: #111824;
  color: #e8edf5;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.portfolio-return:hover {
  background: #222d3d;
  color: #ffffff;
  border-color: #929ba5;
}
.portfolio-return:focus-visible {
  outline: 2px solid #bbcef7;
  outline-offset: 3px;
}
.portfolio-return-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  mask: url('/portfolio/arrow-left.svg') center / contain no-repeat;
  -webkit-mask: url('/portfolio/arrow-left.svg') center / contain no-repeat;
}
