:root {
  color-scheme: dark;
  --activity: #333333;
  --side: #252526;
  --side-dark: #1f1f1f;
  --editor: #1e1e1e;
  --tab: #2d2d2d;
  --tab-active: #1e1e1e;
  --border: #3c3c3c;
  --border-soft: #2a2a2a;
  --text: #d4d4d4;
  --muted: #858585;
  --comment: #7ee787;
  --blue: #569cd6;
  --heading-blue: #4fc1ff;
  --light-blue: #9cdcfe;
  --yellow: #f4d35e;
  --orange: #ce9178;
  --purple: #c586c0;
  --green: #4ec9b0;
  --status: #007acc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--editor);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--light-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.vscode-window {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 48px 236px minmax(0, 1fr);
}

.activity-bar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 48px;
  background: var(--activity);
  border-right: 1px solid #2b2b2b;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 9px;
  z-index: 30;
}

.activity-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #c5c5c5;
  text-decoration: none;
}

.activity-button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 2px;
  height: 34px;
  background: #ffffff;
}

.activity-button span,
.activity-button::after,
.activity-button::before {
  pointer-events: none;
}

.activity-button.explorer-icon::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 20px;
  border: 2px solid currentColor;
  background: transparent;
  transform: translate(3px, 3px);
}

.activity-button.explorer-icon::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 20px;
  border: 2px solid currentColor;
  background: var(--activity);
  transform: translate(-4px, -4px);
  box-shadow: 5px 5px 0 -3px var(--activity);
}

.activity-button:not(.active):not(.branch):not(.run):not(.text-icon):not(.image-button):not(.explorer-icon)::before {
  content: "";
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(1px, -1px);
}

.activity-button:not(.active):not(.branch):not(.run):not(.text-icon):not(.image-button):not(.explorer-icon)::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: currentColor;
  transform: translate(10px, 10px) rotate(45deg);
}

.activity-button.branch::before {
  content: "";
  width: 18px;
  height: 27px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 0 10px;
}

.activity-button.branch::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 18px 0 -2px currentColor, 14px 18px 0 -2px currentColor;
  transform: translate(-7px, -11px);
}

.activity-button.run::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid currentColor;
}

.activity-button.text-icon {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.activity-button.image-button {
  height: 48px;
  margin-bottom: 3px;
}

.activity-button.image-button img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: cover;
}

.activity-button.university-logo img {
  border-radius: 50%;
  background: #ffffff;
}

.activity-button.instagram-button img {
  border-radius: 6px;
}

.activity-button.image-button:hover {
  background: #3f3f46;
}

.activity-spacer {
  flex: 1;
}

.explorer {
  position: fixed;
  inset: 0 auto 22px 48px;
  width: 236px;
  overflow: auto;
  background: var(--side);
  border-right: 1px solid var(--border);
  z-index: 20;
}

.explorer-heading {
  height: 35px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: #bbbbbb;
  font-size: 11px;
  letter-spacing: 0.05em;
}

details {
  border-top: 1px solid var(--border-soft);
}

summary {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #cccccc;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "v";
  color: #cccccc;
  font-size: 10px;
}

details:not([open]) summary::before {
  content: ">";
}

.file {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 14px 2px 24px;
  color: #cccccc;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.file:hover,
.file.active {
  background: #37373d;
  text-decoration: none;
}

.file.indent {
  padding-left: 34px;
  color: #bdbdbd;
  font-size: 12px;
}

.md-icon,
.json-icon,
.link-icon {
  width: 13px;
  height: 13px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 13px;
  border-radius: 2px;
  color: #1e1e1e;
  font-size: 8px;
  font-weight: 700;
}

.md-icon {
  background: var(--heading-blue);
}

.md-icon::before {
  content: "M";
}

.md-icon.dim {
  background: #6f8fb8;
}

.json-icon {
  background: var(--yellow);
}

.json-icon::before {
  content: "{}";
}

.link-icon {
  background: var(--green);
}

.link-icon::before {
  content: "@";
}

.html-icon {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 14px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
}

.html-icon::before {
  content: "<>";
}

.file-image-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: cover;
  border-radius: 3px;
}

.file-image-icon.circle {
  border-radius: 50%;
  background: #ffffff;
}

.workbench {
  grid-column: 3;
  min-width: 0;
  min-height: 100vh;
  padding-bottom: 22px;
  background: var(--editor);
}

.top-bar {
  position: sticky;
  top: 0;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  background: #3c3c3c;
  border-bottom: 1px solid #1b1b1b;
  z-index: 15;
}

.menu-dots {
  display: flex;
  gap: 6px;
}

.menu-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f56;
}

.menu-dots span:nth-child(2) {
  background: #ffbd2e;
}

.menu-dots span:nth-child(3) {
  background: #27c93f;
}

.window-title {
  flex: 1;
  color: #cccccc;
  font-size: 12px;
  text-align: center;
}

.tabs {
  position: sticky;
  top: 30px;
  height: 35px;
  display: flex;
  overflow-x: auto;
  background: var(--side-dark);
  border-bottom: 1px solid var(--border);
  z-index: 14;
}

.tab {
  min-width: 155px;
  height: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--tab);
  border-right: 1px solid var(--border);
  color: #969696;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.tab:hover {
  color: #ffffff;
  text-decoration: none;
}

.tab.active {
  background: var(--tab-active);
  color: #ffffff;
  border-top: 1px solid var(--blue);
}

.tab-icon {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  border-radius: 2px;
  background: var(--blue);
  color: #1e1e1e;
  font-size: 8px;
  font-weight: 700;
}

.html-tab-icon {
  background: var(--orange);
  font-size: 7px;
}

.editor {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  min-height: calc(100vh - 87px);
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
  font-size: 15px;
  line-height: 1.75;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    var(--editor);
  background-size: 100% 26.25px;
}

.editor-gutter {
  position: sticky;
  top: 65px;
  align-self: start;
  min-height: calc(100vh - 87px);
  padding: 18px 12px 60px 0;
  border-right: 1px solid #2b2b2b;
  color: var(--muted);
  text-align: right;
  user-select: none;
}

.editor-gutter span {
  display: block;
  height: 26.25px;
}

.editor-code {
  min-width: 0;
  max-width: 1180px;
  padding: 18px 32px 72px 22px;
}

.code-block {
  position: relative;
  margin: 0 0 22px;
  scroll-margin-top: 82px;
}

.hero-block {
  min-height: 360px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #2d2d2d;
  background:
    linear-gradient(90deg, rgba(86, 156, 214, 0.08), transparent 44%),
    #1e1e1e;
  overflow: hidden;
}

.line {
  margin: 0 0 7px;
  max-width: 980px;
  color: var(--text);
}

.heading {
  position: relative;
  padding-left: 44px;
  margin-top: 18px;
  color: var(--heading-blue);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0;
}

.heading::before {
  content: attr(data-line);
  position: absolute;
  left: 0;
  top: 0.17em;
  width: 34px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  text-align: right;
}

.heading::after {
  content: "";
  position: absolute;
  left: 39px;
  top: 0.33em;
  width: 3px;
  height: 1.1em;
  background: var(--blue);
  box-shadow: -5px 0 0 rgba(79, 193, 255, 0.32);
}

.h1 {
  margin-top: 0;
  color: var(--heading-blue);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.12;
}

.h1::after {
  top: 0.18em;
  height: 0.82em;
  background: var(--heading-blue);
  box-shadow: -5px 0 0 rgba(79, 193, 255, 0.32);
}

.comment {
  color: var(--comment);
}

.text {
  color: #d4d4d4;
  white-space: normal;
}

.list {
  padding-left: 2ch;
  color: #d4d4d4;
}

.spacer-line {
  height: 1.75em;
}

.token-title {
  color: var(--yellow);
  font-weight: 700;
}

.token-key {
  color: var(--purple);
}

.json-string {
  color: var(--orange);
}

time {
  color: var(--orange);
}

em {
  color: var(--green);
  font-style: normal;
}

.status-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 284px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 10px;
  background: var(--status);
  color: #ffffff;
  font-size: 12px;
  z-index: 40;
}

.status-left {
  margin-right: auto;
}

@media (max-width: 900px) {
  .vscode-window {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .explorer {
    width: 238px;
    transform: translateX(-238px);
  }

  .workbench {
    grid-column: 2;
  }

  .status-bar {
    left: 48px;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .vscode-window {
    display: block;
    padding-left: 42px;
  }

  .activity-bar {
    width: 42px;
  }

  .activity-button {
    width: 42px;
  }

  .explorer {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    transform: none;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .explorer-heading {
    height: 28px;
    padding: 0 12px;
  }

  .explorer .outline {
    display: none;
  }

  .file {
    min-height: 26px;
    padding-left: 22px;
    font-size: 12px;
  }

  .workbench {
    min-height: 100vh;
  }

  .top-bar {
    height: 28px;
  }

  .window-title {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabs {
    top: 28px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .tab {
    min-width: max-content;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 12px;
  }

  .editor {
    grid-template-columns: 42px minmax(0, 1fr);
    font-size: 13px;
  }

  .editor-gutter {
    top: 63px;
    padding-right: 8px;
  }

  .editor-code {
    padding: 14px 14px 64px 16px;
  }

  .hero-block {
    padding: 14px;
    min-height: 330px;
  }

  .h1 {
    font-size: 2rem;
  }

  .status-bar {
    left: 42px;
    height: 24px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    white-space: nowrap;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .status-bar span {
    flex: 0 0 auto;
  }
}
