#ss-dynamic-island {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 99999;
  transform: translateX(-50%) translateY(-140%) scale(0.82);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.45, 0.64, 1),
    opacity 0.35s ease,
    width 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-radius 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

#ss-dynamic-island.is-visible {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#ss-dynamic-island.is-expanded {
  width: min(92vw, 390px);
  border-radius: 22px;
}

#ss-dynamic-island .ss-di-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

#ss-dynamic-island.is-expanded .ss-di-pill {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 22px;
}

#ss-dynamic-island .ss-di-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#ss-dynamic-island .ss-di-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.14);
}

#ss-dynamic-island .ss-di-icon.contact {
  background: rgba(210, 98, 46, 0.35);
}

#ss-dynamic-island .ss-di-icon.candidature {
  background: rgba(63, 113, 85, 0.45);
}

#ss-dynamic-island .ss-di-text {
  min-width: 0;
  flex: 1;
}

#ss-dynamic-island .ss-di-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ss-dynamic-island.is-expanded .ss-di-title {
  white-space: normal;
}

#ss-dynamic-island .ss-di-sub {
  font-size: 11px;
  opacity: 0.78;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ss-dynamic-island.is-expanded .ss-di-sub {
  white-space: normal;
}

#ss-dynamic-island .ss-di-body {
  display: none;
  width: 100%;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.88;
}

#ss-dynamic-island.is-expanded .ss-di-body {
  display: block;
}

#ss-dynamic-island .ss-di-meta {
  display: none;
  width: 100%;
  font-size: 11px;
  opacity: 0.65;
}

#ss-dynamic-island.is-expanded .ss-di-meta {
  display: block;
}

#ss-dynamic-island .ss-di-actions {
  display: none;
  width: 100%;
  gap: 8px;
}

#ss-dynamic-island.is-expanded .ss-di-actions {
  display: flex;
}

#ss-dynamic-island .ss-di-btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

#ss-dynamic-island .ss-di-btn.primary {
  background: #d2622e;
  color: #fff;
}

#ss-dynamic-island .ss-di-pulse {
  animation: ss-di-pulse 1.1s ease-in-out 2;
}

@keyframes ss-di-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(210, 98, 46, 0.45); }
  50% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 10px rgba(210, 98, 46, 0); }
}

#ss-dynamic-island .ss-di-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d2622e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Liste notifications (sous widget météo) */
#ss-notif-list {
  width: 168px;
  pointer-events: auto;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

#ss-notif-list .ss-nl-card {
  width: 168px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#ss-notif-list .ss-nl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#ss-notif-list .ss-nl-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #d7dee6;
}

#ss-notif-list .ss-nl-sub {
  font-size: 11px;
  color: #c9d2db;
  margin-top: 2px;
}

#ss-notif-list .ss-nl-head-icon {
  font-size: 18px;
  line-height: 1;
  opacity: 0.9;
}

#ss-notif-list .ss-nl-items {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 360px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

#ss-notif-list .ss-nl-item {
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#ss-notif-list .ss-nl-item-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

#ss-notif-list .ss-nl-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
}

#ss-notif-list .ss-nl-item-icon.contact {
  background: rgba(210, 98, 46, 0.35);
}

#ss-notif-list .ss-nl-item-icon.candidature {
  background: rgba(63, 113, 85, 0.45);
}

#ss-notif-list .ss-nl-item-main {
  min-width: 0;
  flex: 1;
}

#ss-notif-list .ss-nl-item-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

#ss-notif-list .ss-nl-item-label {
  font-size: 10.5px;
  color: #d7dee6;
  margin-top: 2px;
  line-height: 1.25;
  word-break: break-word;
}

#ss-notif-list .ss-nl-item-detail,
#ss-notif-list .ss-nl-item-message {
  font-size: 10px;
  color: #c9d2db;
  margin-top: 6px;
  line-height: 1.35;
  word-break: break-word;
}

#ss-notif-list .ss-nl-item-foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  font-size: 9.5px;
  color: rgba(201, 210, 219, 0.85);
}

#ss-notif-list .ss-nl-traiter {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(210, 98, 46, 0.88);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

#ss-notif-list .ss-nl-traiter:hover:not(:disabled) {
  background: rgba(210, 98, 46, 1);
}

#ss-notif-list .ss-nl-traiter:disabled {
  opacity: 0.65;
  cursor: wait;
}

#ss-notif-list .ss-nl-traiter:active:not(:disabled) {
  transform: scale(0.98);
}
