.desktop {
  background: var(--ef-bg-dim);
}

.window {
  position: absolute;
  background: var(--ef-bg);
  width: 320px;
  border: 1px solid var(--ef-border);
  border-radius: var(--win-radius);
  box-shadow: var(--win-shadow);
  overflow: hidden;
}

.window.focused .titlebar {
  background: var(--ef-bg-soft);
}

.titlebar {
  background: var(--ef-bg);
  color: var(--ef-grey);
  font-family: var(--font-chrome);
  font-size: 12px;
  border-bottom: 1px solid var(--ef-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  cursor: grab;
  user-select: none;
}

.titlebar-buttons {
  display: flex;
  gap: 4px;
}

.menubar {
  display: flex;
  gap: 14px;
  padding: 4px 10px;
  font-family: var(--font-chrome);
  font-size: 11px;
  color: var(--ef-grey);
  border-bottom: 1px solid var(--ef-border);
}

.titlebar-buttons button {
  width: 16px;
  height: 16px;
  background: var(--ef-surface);
  border: 1px solid var(--ef-border-light);
  font-family: var(--font-chrome);
  font-size: 10px;
  color: var(--ef-fg);
  cursor: pointer;
  padding: 0px;
}

.titlebar-buttons button:last-child {
  color: var(--ef-red);
}

.window-content {
  color: var(--ef-fg);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 12px;
  line-height: 1.6;
}

.window-content p {
  margin: 0 0 0.5em;
}

/* Browser agnostic fixes for scroll bars. */
.post-list::-webkit-scrollbar {
  width: 8px;
}
.post-list::-webkit-scrollbar-thumb {
  background: var(--ef-border-light);
}
.post-list::-webkit-scrollbar-track {
  background: var(--ef-bg-dim);
}

.link-list p {
  margin: 0 0 10px;
  font-size: 13px;
}

.link {
  display: block;
  padding: 3px 0;
  margin: 0;
  font-family: var(--font-chrome);
  font-size: 12px;
  color: var(--ef-aqua);
  text-decoration: none;
}

.link::before {
  content: "→ ";
  color: var(--ef-grey);
}

.link:hover {
  color: var(--ef-green);
}

.about-text h2 {
  margin: 0 0 12px;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-grid img {
  image-rendering: pixelated;
}

.window.maximized {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100%;
}

.window.minimized {
  display: none;
}

.irc-body {
  align-items: flex-start;
}

.irc-info p {
  margin: 2px 0;
  font-family: var(--font-chrome);
  font-size: 12px;
}

.irc-info code {
  color: var(--ef-aqua);
}

.irc-note {
  color: var(--ef-grey);
  font-size: 11px;
}
