/* GriGsi Find — notification bell + inbox panel (EN) */

.find-inbox-slot {
  position: relative;
  flex-shrink: 0;
}

body.grigsi-find-page #find-inbox-slot,
body.inst-page--product-find #find-inbox-slot,
body.space-shell #find-inbox-slot,
body.ios-theme.space-shell #find-inbox-slot {
  position: fixed;
  top: 10px;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: 12px;
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 11000;
}

body.space-shell .home-header-cluster {
  padding-right: 46px;
}

body.space-shell .find-inbox-bell {
  background: rgba(255, 255, 255, 0.92);
  color: #3d2860;
  border-color: rgba(129, 119, 240, 0.35);
  box-shadow: 0 2px 10px rgba(61, 40, 96, 0.15);
}

body.space-shell .find-inbox-badge {
  box-shadow: 0 0 0 2px #fff;
}

body.grigsi-find-page .find-top-end {
  padding-right: 46px;
}

.find-inbox-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(15, 26, 22, 0.92);
  color: #e8fff8;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.find-inbox-bell:hover,
.find-inbox-bell:focus-visible {
  background: rgba(46, 160, 130, 0.22);
  border-color: rgba(125, 255, 200, 0.35);
  outline: none;
}

.find-inbox-bell__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.find-inbox-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #0f1a16;
}

.find-inbox-badge--hidden {
  display: none !important;
}

.find-inbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  background: rgba(0, 0, 0, 0.45);
}

.find-inbox-backdrop--hidden {
  display: none !important;
}

.find-inbox-panel {
  position: fixed;
  z-index: 12001;
  top: 10px;
  top: max(10px, env(safe-area-inset-top, 0px));
  bottom: 10px;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  left: 10px;
  left: max(10px, env(safe-area-inset-left, 0px));
  right: 10px;
  right: max(10px, env(safe-area-inset-right, 0px));
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  max-height: 70vh;
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(125, 255, 200, 0.18);
  background: #122820;
  color: #eefcf7;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.find-inbox-panel--hidden {
  display: none !important;
}

.find-inbox-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.find-inbox-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.find-inbox-panel__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.find-inbox-panel__mark {
  border: none;
  background: transparent;
  color: #7dffc8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}

.find-inbox-panel__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.find-inbox-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.find-inbox-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.find-inbox-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.find-inbox-item--unread {
  background: rgba(46, 160, 130, 0.1);
}

.find-inbox-item__icon {
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.4;
}

.find-inbox-item__body {
  min-width: 0;
  flex: 1;
}

.find-inbox-item__title {
  margin: 0 0 2px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  word-wrap: break-word;
}

.find-inbox-item__sub {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(232, 255, 248, 0.72);
  line-height: 1.35;
  word-wrap: break-word;
}

.find-inbox-item__status {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffc657;
  line-height: 1.35;
}

.find-inbox-empty {
  margin: 0;
  padding: 24px 16px 28px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(232, 255, 248, 0.55);
  flex-shrink: 0;
}

.inst-find-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

body.inst-page--product-find #find-inbox-slot {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 11000;
}

body.inst-page--product-find .inst-find-topbar__actions {
  padding-right: 46px;
}

.find-top-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
