.brand-mark.brand-mark-logo {
  width: 43px;
  height: 43px;
  padding: 0;
  overflow: hidden;
  background: #f7a45d;
  border-radius: 12px;
}
.brand-mark-logo img { display: block; width: 100%; height: 100%; }
.header-controls { flex-wrap: nowrap; justify-content: flex-end; min-width: 0; max-width: 100%; }
.header-controls > .public-menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; height: var(--header-control-size); margin: 0; }
.header-controls > .public-menu-toggle input { margin: 0; }
.unread-icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.unread-pill-host { position: relative; display: inline-grid; align-items: center; }
.header-profile {
  --profile-avatar-size: 24px;
  --profile-inline-gap: 7px;
  --profile-inline-padding: 9px;
  --profile-pill-reserve: 0px;
  position: relative;
  display: inline-grid;
  grid-template: var(--header-control-size) / minmax(0, 1fr);
  align-items: center;
  flex: 0 1 auto;
  min-width: min-content;
  max-width: 180px;
}
.header-profile:has(.session-avatar) { --profile-pill-reserve: calc(1px + var(--profile-inline-padding) + var(--profile-avatar-size) + var(--profile-inline-gap)); }
.header-profile > .session-control {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: var(--header-control-size);
  min-height: var(--header-control-size);
  gap: var(--profile-inline-gap);
  padding-inline: var(--profile-inline-padding);
}
.header-profile .session-avatar { width: var(--profile-avatar-size); height: var(--profile-avatar-size); flex: none; }
.unread-pill {
  grid-area: 1 / 1;
  position: relative;
  align-self: start;
  justify-self: end;
  transform: translateY(calc(8px - 100%));
  margin-left: var(--unread-pill-reserve, 0px);
  margin-right: 6px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1px 6px;
  width: max-content;
  max-width: calc(100% - var(--unread-pill-reserve, 0px) - 6px);
  min-height: 18px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.header-indicators { --unread-pill-reserve: var(--profile-pill-reserve); }
.unread-pill[hidden],
.unread-pill:not(:has(.unread-indicator:not([hidden]))) { display: none; }
.unread-pill:has(.is-stale:not([hidden])) { border-style: dashed; }
.unread-indicator {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 14px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.unread-indicator[hidden] { display: none; }
a.unread-indicator:hover { color: var(--accent); }
a.unread-indicator:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.unread-indicator svg { width: 12px; height: 12px; flex: none; }
@media (max-width: 600px) {
  .brand-mark.brand-mark-logo { width: 38px; height: 38px; border-radius: 10px; }
  .header-controls { margin-top: 14px; }
}
@media (max-width: 360px) {
  .header-controls { gap: 4px; }
  .header-controls .language-switch { gap: 2px; }
  .unread-pill { padding-inline: 4px; column-gap: 4px; }
  .unread-indicator { font-size: 9px; gap: 2px; }
}
