:root {
  --seg-header-ink: #111710;
  --seg-header-muted: #667085;
  --seg-header-line: #e1e6df;
  --seg-header-green: #a8e63a;
  --seg-header-soft: #f5f7f4;
}

.seg-app-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: block;
  width: 100%;
  min-height: 72px;
  border-bottom: 1px solid var(--seg-header-line);
  padding: 0;
  background: rgb(255 255 255 / 96%);
  color: var(--seg-header-ink);
  box-shadow: 0 8px 28px rgb(22 34 18 / 5%);
  backdrop-filter: blur(16px);
}

.seg-app-header__inner {
  display: flex;
  width: min(100% - 48px, 1320px);
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.seg-app-header__brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.seg-app-header__brand:focus-visible,
.seg-app-header button:focus-visible,
.seg-app-header__account:focus-visible {
  outline: 3px solid rgb(74 181 232 / 35%);
  outline-offset: 3px;
}

.seg-app-header__brand img {
  display: block;
  width: auto;
  height: 29px;
}

.seg-app-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seg-app-header__icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--seg-header-line);
  border-radius: 50%;
  background: #fff;
  color: var(--seg-header-ink);
  box-shadow: 0 6px 16px rgb(20 31 17 / 7%);
  cursor: pointer;
}

.seg-app-header__icon-button:hover,
.seg-app-header__account:hover {
  border-color: #c8d0c5;
  background: var(--seg-header-soft);
}

.seg-app-header__icon-button img {
  width: 21px;
  height: 21px;
}

.seg-app-header__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  min-width: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 1px 5px;
  background: var(--seg-header-green);
  color: #15200f;
  font: 800 10px/1 system-ui, sans-serif;
}

.seg-app-header__account {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--seg-header-line);
  border-radius: 999px;
  padding: 4px 5px 4px 14px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 16px rgb(20 31 17 / 7%);
}

.seg-app-header__account-copy {
  min-width: 0;
  text-align: right;
}

.seg-app-header__account-copy strong,
.seg-app-header__account-copy span {
  display: block;
  overflow: hidden;
  max-width: 190px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seg-app-header__account-copy strong {
  font: 750 12px/1.25 "Plus Jakarta Sans", system-ui, sans-serif;
}

.seg-app-header__account-copy span {
  margin-top: 2px;
  color: var(--seg-header-muted);
  font: 500 10px/1.25 "Plus Jakarta Sans", system-ui, sans-serif;
}

.seg-app-header__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--seg-header-ink);
  color: #fff;
  font: 800 11px/1 "Plus Jakarta Sans", system-ui, sans-serif;
}

.seg-app-notifications {
  position: relative;
}

.seg-app-notifications__drawer {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 28px));
  max-height: 72vh;
  overflow: hidden;
  border: 1px solid var(--seg-header-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgb(15 23 42 / 20%);
}

.seg-app-notifications__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0ec;
  padding: 16px 18px;
}

.seg-app-notifications__head p,
.seg-app-notifications__head h2 {
  margin: 0;
}

.seg-app-notifications__head p {
  color: var(--seg-header-muted);
  font: 750 9px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seg-app-notifications__head h2 {
  margin-top: 4px;
  font: 800 16px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
}

.seg-app-notifications__head button,
.seg-app-notifications__delete {
  min-height: 36px;
  border: 1px solid var(--seg-header-line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: #536054;
  font: 700 10px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
}

.seg-app-notifications__list {
  max-height: 52vh;
  overflow-y: auto;
}

.seg-app-notifications__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-bottom: 1px solid #edf0ec;
  padding: 14px 16px;
}

.seg-app-notifications__item[data-unread="true"] {
  background: linear-gradient(180deg, #f7fee9 0%, #fff 100%);
}

.seg-app-notifications__open {
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.seg-app-notifications__open strong,
.seg-app-notifications__open span,
.seg-app-notifications__open time {
  display: block;
}

.seg-app-notifications__open strong {
  font: 750 12px/1.35 "Plus Jakarta Sans", system-ui, sans-serif;
}

.seg-app-notifications__open span {
  margin-top: 5px;
  color: var(--seg-header-muted);
  font: 500 11px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
}

.seg-app-notifications__open time {
  margin-top: 7px;
  color: #8a958a;
  font: 600 9px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
}

.seg-app-notifications__empty,
.seg-app-notifications__error {
  margin: 0;
  padding: 26px 18px;
  color: var(--seg-header-muted);
  font: 500 12px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
  text-align: center;
}

@media (max-width: 640px) {
  .seg-app-header { min-height: 64px; }
  .seg-app-header__inner { width: min(100% - 24px, 1320px); min-height: 64px; }
  .seg-app-header__brand img { height: 24px; }
  .seg-app-header__account { min-height: 44px; padding: 2px; border: 0; background: transparent; box-shadow: none; }
  .seg-app-header__account-copy { display: none; }
  .seg-app-header__avatar { width: 40px; height: 40px; }
  .seg-app-notifications__drawer { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 92px); }
  .seg-app-notifications__list { max-height: calc(100dvh - 170px); }
}
