/* Menu, bovenbalk en algemene opbouw */
/* Sidebar */
.sb {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 20px 12px 20px max(12px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
}
.brand svg {
  width: 28px;
  height: 32px;
  flex: none;
}
.brand b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}
.brand span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}
.sb-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 18px 10px 6px;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
}
.sb-item svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.sb-item:hover {
  background: var(--hover);
  color: var(--ink);
}
.sb-item.on {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}
.sb-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  margin: 0 4px;
}
.sb-item .cnt {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 7px;
  min-width: 20px;
  text-align: center;
  background: var(--line);
  color: var(--ink-2);
}
.sb-item .cnt.hot {
  background: var(--bad);
  color: #fff;
}
.sb-foot {
  margin-top: auto;
  padding: 14px 10px 0;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.sb-foot i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  margin-right: 6px;
}

/* Top */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.search {
  position: relative;
  flex: 1;
  max-width: 460px;
  min-width: 0;
}
.search input[type='text'] {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
}
.search > svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}
.sr {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  padding: 6px;
  z-index: 30;
  max-height: 60vh;
  overflow-y: auto;
}
.sr button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
}
.sr button:hover {
  background: var(--hover);
}
.sr small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.top .grow {
  flex: 1;
}
.me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.me select {
  width: auto;
  padding: 6px 8px;
  border-radius: 999px;
}
.content {
  padding-block: 26px 72px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1480px;
  width: 100%;
}
