:root {
  --topbar: #ffb800;
  --topbar-ink: #1a1a1a;
  --env: #c58a00;
  --sidebar: #2b2f3a;
  --sidebar-hover: #353a47;
  --sidebar-active: #3d4352;
  --sidebar-ink: #ffffff;
  --content: #fafafa;
  --feedback: #20406a;
  --topbar-h: 42px;
  --sidebar-w: 212px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  background: var(--content);
  color: var(--topbar-ink);
  -webkit-font-smoothing: antialiased;
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}

/* Top bar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--topbar);
  z-index: 2;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.env {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--env);
}

.topbar-right {
  display: flex;
  align-items: center;
  height: 100%;
}

.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: none;
  color: inherit;
  cursor: default;
}

.user {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding-left: 12px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #bdbdbd;
  color: #fff;
  font-size: 13px;
}

.email {
  font-size: 12px;
  font-weight: 700;
}

.caret {
  width: 18px;
  height: 18px;
}

/* Sidebar */
.layout {
  display: flex;
  min-height: 100%;
  padding-top: var(--topbar-h);
}

.sidebar {
  position: fixed;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--sidebar);
  color: var(--sidebar-ink);
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  padding: 0 16px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

a.nav-item:hover {
  background: var(--sidebar-hover);
}

a.nav-item[aria-current="page"] {
  background: var(--sidebar-active);
  box-shadow: inset 3px 0 0 var(--topbar);
}

.nav-item[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Content */
.content {
  flex: 1;
  margin-left: var(--sidebar-w);
}

/* "Submit Feature / Change Request" tab on the right edge */
.feedback-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  padding: 8px 4px;
  border: 1px solid #fff;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: var(--feedback);
  color: #fff;
  font: 700 10px "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: default;
}
