:root {
  --window-shell-bar: #2b2b2b;
  --window-shell-active: #0c0c0c;
  --window-shell-text: #ffffff;
  --window-shell-border: rgba(255, 255, 255, 0.14);
  --window-shell-hover: rgba(255, 255, 255, 0.08);
  --window-shell-close: #c42b1c;
}

.site-window-bar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  flex: 0 0 auto;
  background: var(--window-shell-bar);
  color: var(--window-shell-text);
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  user-select: none;
}

.site-window-tabs {
  display: flex;
  align-self: stretch;
  min-width: 0;
  overflow-x: hidden;
  scrollbar-width: none;
}

.site-window-tabs::-webkit-scrollbar {
  display: none;
}

.site-window-tab {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 10px;
  flex: 1 1 300px;
  width: 300px;
  min-width: 0;
  max-width: 300px;
  padding: 0 14px;
  background: transparent;
}

.site-window-tab.active {
  background: var(--window-shell-active);
}

.site-window-tab-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
}

.site-window-tab-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--window-shell-text);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
}

.site-window-tab-close:hover,
.site-window-tab-close:focus-visible {
  opacity: 1;
  outline: none;
}

.site-window-menu-wrap {
  position: relative;
  display: flex;
  align-self: stretch;
}

.site-window-new,
.site-window-close {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  flex: 0 0 48px;
  border: 0;
  background: transparent;
  color: var(--window-shell-text);
  font-family: inherit;
  font-size: 20px;
  cursor: pointer;
}

.site-window-new:hover,
.site-window-new:focus-visible {
  background: var(--window-shell-hover);
  outline: none;
}

.site-window-menu {
  position: absolute;
  z-index: 110;
  top: 40px;
  left: 0;
  width: 220px;
  padding: 4px;
  border: 1px solid var(--window-shell-border);
  background: var(--window-shell-bar);
}

.site-window-menu[hidden] {
  display: none;
}

.site-window-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--window-shell-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-window-option[hidden] {
  display: none;
}

.site-window-option:hover,
.site-window-option:focus-visible {
  background: var(--window-shell-hover);
  outline: none;
}

.site-window-option-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--window-shell-border);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
}

.site-window-spacer {
  flex: 1;
}

.site-window-control {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 100%;
  flex: 0 0 48px;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--window-shell-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.site-window-control:hover,
.site-window-control:focus-visible {
  background: var(--window-shell-hover);
  outline: none;
}

.site-window-close:hover,
.site-window-close:focus-visible {
  background: var(--window-shell-close);
  outline: none;
}

@media (max-width: 600px) {
  .site-window-tab {
    width: 180px;
  }

  .site-window-spacer,
  .site-window-control {
    display: none;
  }
}
