/*
  Alert 06 — Product Update Notice — standalone HTML/CSS/JS
  implementation. No build step, no framework, no external dependency:
  copy index.html, this file, and script.js into any project as-is.
*/

:root {
  --alert-accent: #39ff14;
  --alert-fg: oklch(0.17 0 0);
  --alert-muted: oklch(0.48 0 0);
  --alert-border: oklch(0.92 0 0);
  --alert-soft: oklch(0.96 0 0);
  --alert-ink-hover: oklch(0.3 0 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Collapses its own height on "Don't show again". The clip lives here
   only while closing, so the reminder menu can overflow the card. The
   root is also the size container the layout responds to. */
.alert06 {
  container-type: inline-size;
  display: grid;
  grid-template-rows: 1fr;
  border-radius: 1rem;
  opacity: 1;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  transition:
    grid-template-rows 260ms cubic-bezier(0.3, 0.8, 0.25, 1),
    opacity 200ms ease-out;
}

.alert06[data-state="closing"] {
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
}

.alert06 p {
  margin: 0;
}

.alert06__clip {
  min-height: 0;
}

.alert06__surface {
  border: 1px solid var(--alert-border);
  border-radius: 1rem;
  background-color: #ffffff;
}

.alert06__full {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem;
}

.alert06__full[hidden],
.alert06__snoozed[hidden] {
  display: none;
}

.alert06__preview {
  display: flex;
  height: 100%;
  min-height: 7rem;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0.75rem;
  background-color: oklch(0.19 0.004 250);
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(57, 255, 20, 0.1), transparent 55%);
  padding: 0.75rem;
}

.alert06__preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert06__preview-line {
  width: 3.5rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.7);
}

.alert06__preview-time {
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0 0.375rem;
  font-size: 9px;
  line-height: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.alert06__days {
  display: flex;
  height: 3rem;
  align-items: flex-end;
  gap: 0.375rem;
}

.alert06__day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* The miniature's scheduled runs are neon; the rest stay quiet. Bars grow
   in once, staggered. */
.alert06__bar {
  width: 100%;
  border-radius: 0.125rem;
  background-color: rgba(255, 255, 255, 0.22);
  transform-origin: bottom;
  animation: alert06-grow 520ms cubic-bezier(0.3, 0.8, 0.25, 1) both;
}

.alert06__bar[data-scheduled] {
  background-color: var(--alert-accent);
}

.alert06__day-label {
  font-size: 8px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
}

.alert06__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0 0.25rem 0.25rem;
}

.alert06__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert06__badge {
  border-radius: 9999px;
  background-color: var(--alert-accent);
  padding: 0.125rem 0.5rem;
  font-size: 11px;
  line-height: 1rem;
  font-weight: 600;
  color: var(--alert-fg);
}

.alert06__kind {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--alert-muted);
}

.alert06__title {
  margin-top: 0.5rem !important;
  font-size: 1rem;
  line-height: 1.375;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--alert-fg);
}

.alert06__description {
  margin-top: 0.25rem !important;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--alert-muted);
}

.alert06__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.alert06__cta {
  display: flex;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  background-color: var(--alert-fg);
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  outline: none;
  transition: background-color 150ms;
}

.alert06__cta:hover {
  background-color: var(--alert-ink-hover);
}

.alert06__cta svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 180ms ease-out;
}

.alert06__cta:hover svg {
  transform: translateX(2px);
}

.alert06__snooze {
  position: relative;
}

.alert06__trigger {
  display: flex;
  width: 100%;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  padding: 0 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--alert-fg);
  cursor: pointer;
  outline: none;
  transition: background-color 150ms;
}

.alert06__trigger:hover {
  background-color: var(--alert-soft);
}

.alert06__trigger svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 180ms ease-out;
}

.alert06__trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.alert06__cta:focus-visible,
.alert06__trigger:focus-visible,
.alert06__undo:focus-visible {
  outline: 2px solid var(--alert-fg);
  outline-offset: 2px;
}

.alert06__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  min-width: 12rem;
  flex-direction: column;
  margin-top: 0.375rem;
  border: 1px solid var(--alert-border);
  border-radius: 0.75rem;
  background-color: #ffffff;
  padding: 0.25rem;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.25);
  animation: alert06-menu 160ms ease-out both;
}

.alert06__menu[hidden] {
  display: none;
}

.alert06__option {
  display: flex;
  width: 100%;
  height: 2.25rem;
  align-items: center;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  padding: 0 0.75rem;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--alert-fg);
  cursor: pointer;
  outline: none;
}

.alert06__option--quiet {
  color: var(--alert-muted);
}

.alert06__option:hover,
.alert06__option:focus-visible {
  background-color: var(--alert-soft);
}

.alert06__option:focus-visible {
  outline: 2px solid var(--alert-fg);
  outline-offset: -2px;
}

.alert06__divider {
  height: 1px;
  margin: 0.25rem 0;
  background-color: var(--alert-border);
}

.alert06__snoozed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 1rem;
  animation: alert06-menu 220ms ease-out both;
}

.alert06__snoozed-dot {
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--alert-fg);
}

.alert06__snoozed-text {
  min-width: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--alert-fg);
  outline: none;
}

.alert06__snoozed-title {
  font-weight: 600;
}

.alert06__snoozed-when {
  color: var(--alert-muted);
}

.alert06__undo {
  border: 0;
  border-radius: 0.375rem;
  background: none;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: var(--alert-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.alert06__undo:hover {
  background-color: var(--alert-soft);
}

@keyframes alert06-grow {
  from {
    transform: scaleY(0.1);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes alert06-menu {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@container (min-width: 24rem) {
  .alert06__actions {
    flex-direction: row;
    align-items: center;
  }
  .alert06__cta,
  .alert06__trigger {
    height: 2.25rem;
  }
  .alert06__trigger {
    width: auto;
  }
  .alert06__menu {
    width: auto;
  }
}

@container (min-width: 32rem) {
  .alert06__full {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 1.25rem;
  }
  .alert06__content {
    padding: 0.25rem 0.5rem 0.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alert06,
  .alert06__cta svg,
  .alert06__trigger svg {
    transition: none;
  }
  .alert06__bar,
  .alert06__menu,
  .alert06__snoozed {
    animation: none;
  }
}

/*
  Page layout — the canvas this resource is presented on. Adjust or drop it
  when placing the resource inside your own layout.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.5;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
p {
  margin: 0;
}
.alert06-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
}
.alert06-layout__page {
  width: 100%;
  max-width: 45rem;
}
.alert06-layout__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}
.alert06-layout__heading {
  font-size: 15px;
  font-weight: 600;
  color: oklch(0.205 0 0);
}
.alert06-layout__product {
  font-size: 0.75rem;
  line-height: 1rem;
  color: oklch(0.556 0 0);
}
.alert06-layout__page .alert06 {
  margin-bottom: 1rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 40px -16px rgba(0, 0, 0, 0.14);
}
.alert06-layout__reports {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  background: #ffffff;
}
.alert06-layout__report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}
.alert06-layout__report + .alert06-layout__report {
  border-top: 1px solid oklch(0.97 0 0);
}
.alert06-layout__report-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: oklch(0.205 0 0);
}
.alert06-layout__report-meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  line-height: 1rem;
  color: oklch(0.556 0 0);
}
@media (min-width: 640px) {
  .alert06-layout {
    padding: 2.5rem;
  }
}
