.volunteer-portal-control {
  --vpc-ink: #12352b;
  --vpc-muted: #405b50;
  --vpc-green: #087f5b;
  --vpc-green-dark: #05664a;
  --vpc-amber: #b7791f;
  --vpc-red: #b42318;
  --vpc-surface: #fffdf7;
  --vpc-line: rgba(8, 127, 91, 0.2);
  color-scheme: only light;
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 2147483000;
  width: 100%;
  box-sizing: border-box;
  padding: max(8px, env(safe-area-inset-top)) 14px 9px;
  background:
    linear-gradient(90deg, rgba(8, 127, 91, 0.08), transparent 28%),
    var(--vpc-surface);
  border-block-end: 1px solid var(--vpc-line);
  box-shadow: 0 8px 24px rgba(18, 53, 43, 0.11);
  color: var(--vpc-ink) !important;
  -webkit-text-fill-color: var(--vpc-ink) !important;
  forced-color-adjust: none;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.volunteer-portal-control-active {
  align-items: flex-start !important;
}

.volunteer-portal-control,
.volunteer-portal-control * {
  box-sizing: border-box;
}

.volunteer-portal-control[hidden] {
  display: none !important;
}

.volunteer-portal-control__inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.volunteer-portal-control__compact {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.volunteer-portal-control__summary {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.volunteer-portal-control__topline,
.volunteer-portal-control__meta,
.volunteer-portal-control__quick-actions {
  display: flex;
  align-items: center;
}

.volunteer-portal-control__topline {
  min-width: 0;
  justify-content: center;
  gap: 8px;
}

.volunteer-portal-control__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--vpc-green-dark) !important;
  -webkit-text-fill-color: var(--vpc-green-dark) !important;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.volunteer-portal-control__schedule-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--vpc-amber) !important;
  -webkit-text-fill-color: initial;
}

.volunteer-portal-control__preview {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: #5b3b8a;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.45;
  white-space: nowrap;
}

.volunteer-portal-control__meta {
  min-width: 0;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.volunteer-portal-control__deadline {
  color: var(--vpc-muted) !important;
  -webkit-text-fill-color: var(--vpc-muted) !important;
  font-weight: 700;
}

.volunteer-portal-control__countdown {
  color: var(--vpc-red) !important;
  -webkit-text-fill-color: var(--vpc-red) !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 850;
  white-space: nowrap;
}

.volunteer-portal-control__quick-actions {
  gap: 8px;
}

.volunteer-portal-control__quick-whatsapp,
.volunteer-portal-control__toggle,
.volunteer-portal-control__action {
  min-height: 42px;
  border: 1px solid var(--vpc-green) !important;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.volunteer-portal-control__quick-whatsapp {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-inline: 11px;
  background: var(--vpc-green) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 11px;
}

.volunteer-portal-control__quick-whatsapp-icon,
.volunteer-portal-control__action-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.volunteer-portal-control__toggle {
  min-width: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 13px;
  background: #ffffff !important;
  color: var(--vpc-green-dark) !important;
  -webkit-text-fill-color: var(--vpc-green-dark) !important;
}

.volunteer-portal-control__chevron {
  font-size: 16px;
  line-height: 1;
}

.volunteer-portal-control__details {
  margin-block-start: 9px;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--vpc-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
}

.volunteer-portal-control__message {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e8b949;
  border-inline-start-width: 4px;
  border-radius: 12px;
  background: #fff4d6;
}

.volunteer-portal-control__headline,
.volunteer-portal-control__direction {
  margin: 0;
  color: var(--vpc-ink) !important;
  -webkit-text-fill-color: var(--vpc-ink) !important;
  line-height: 1.55;
}

.volunteer-portal-control__headline {
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 750;
}

.volunteer-portal-control__scheduled-label {
  color: var(--vpc-ink) !important;
  -webkit-text-fill-color: var(--vpc-ink) !important;
}

.volunteer-portal-control__direction {
  color: #6b4300 !important;
  -webkit-text-fill-color: #6b4300 !important;
  font-size: 13px;
  font-weight: 750;
}

.volunteer-portal-control__contact {
  display: grid;
  grid-template-columns: minmax(150px, 220px);
  justify-content: center;
  gap: 7px 8px;
  align-items: center;
}

.volunteer-portal-control__identity {
  grid-column: 1 / -1;
  display: grid;
  text-align: center;
  line-height: 1.3;
}

.volunteer-portal-control__identity strong,
.volunteer-portal-control__identity .volunteer-portal-control__phone {
  color: var(--vpc-ink) !important;
  -webkit-text-fill-color: var(--vpc-ink) !important;
}

.volunteer-portal-control__identity strong { font-size: 13px; }
.volunteer-portal-control__phone { font-size: 12px; direction: ltr; }

.volunteer-portal-control__action {
  min-width: 94px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff !important;
  color: var(--vpc-green-dark) !important;
  -webkit-text-fill-color: var(--vpc-green-dark) !important;
}

.volunteer-portal-control__action--whatsapp {
  background: var(--vpc-green) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.volunteer-portal-control__quick-whatsapp:focus-visible,
.volunteer-portal-control__toggle:focus-visible,
.volunteer-portal-control__action:focus-visible {
  outline: 3px solid rgba(183, 121, 31, 0.45);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .volunteer-portal-control {
    padding: max(7px, env(safe-area-inset-top)) 10px 8px;
  }

  .volunteer-portal-control__compact {
    min-height: 62px;
    gap: 8px;
  }

  .volunteer-portal-control__summary { gap: 5px; }
  .volunteer-portal-control__preview-suffix { display: none; }
  .volunteer-portal-control__meta { display: grid; justify-items: center; gap: 1px; font-size: 12px; text-align: center; }
  .volunteer-portal-control__quick-actions { gap: 6px; }
  .volunteer-portal-control__toggle { min-width: 76px; padding-inline: 10px; }

  .volunteer-portal-control__details {
    grid-template-columns: 1fr;
    padding-block-end: 3px;
  }

  .volunteer-portal-control__contact { grid-template-columns: minmax(0, 1fr); }
  .volunteer-portal-control__identity {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    text-align: start;
  }
  .volunteer-portal-control__action { width: 100%; }
}

@media (max-width: 370px) {
  .volunteer-portal-control__compact { gap: 6px; }
  .volunteer-portal-control__eyebrow { font-size: 11px; }
  .volunteer-portal-control__preview { font-size: 8px; padding-inline: 5px; }
  .volunteer-portal-control__meta { font-size: 11px; }
  .volunteer-portal-control__quick-whatsapp {
    width: 40px;
    min-width: 40px;
    padding-inline: 0;
  }
  .volunteer-portal-control__quick-whatsapp-label { display: none; }
  .volunteer-portal-control__toggle { min-width: 66px; padding-inline: 8px; }
  .volunteer-portal-control__identity { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .volunteer-portal-control *,
  .volunteer-portal-control *::before,
  .volunteer-portal-control *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
