/* Rec-it notifications — paper, type, hairlines. No color emoji. */

.recit-notify {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.45rem;
  width: min(22.5rem, calc(100vw - 2rem));
  pointer-events: none;
  font-family: var(--sans);
}

.recit-note {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr) auto;
  gap: 0.45rem 0.55rem;
  align-items: start;
  padding: 0.55rem 0.65rem 0.55rem 0.6rem;
  background: var(--surface, #fff);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 12%, transparent);
  animation: recit-note-in 180ms ease-out;
}

.recit-note.is-leaving {
  animation: recit-note-out 160ms ease-in forwards;
}

.recit-note.is-notice,
.recit-note.is-success {
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  border-radius: 999px;
  padding: 0.42rem 0.55rem 0.42rem 0.85rem;
  align-items: center;
}

.recit-note.is-notice .recit-note-mark,
.recit-note.is-success .recit-note-mark,
.recit-note.is-notice .recit-note-kicker,
.recit-note.is-success .recit-note-kicker,
.recit-note.is-notice .recit-note-hint,
.recit-note.is-success .recit-note-hint {
  display: none;
}

.recit-note.is-error {
  border-color: color-mix(in srgb, var(--danger, #8a2f2f) 55%, var(--border));
  box-shadow:
    inset 2px 0 0 var(--danger, #8a2f2f),
    0 8px 24px color-mix(in srgb, var(--ink) 12%, transparent);
}

.recit-note.is-warning {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow:
    inset 2px 0 0 var(--accent),
    0 8px 24px color-mix(in srgb, var(--ink) 12%, transparent);
}

.recit-note.is-tech .recit-note-kicker {
  letter-spacing: 0.08em;
}

.recit-note-mark {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  color: var(--danger, #8a2f2f);
}

.recit-note.is-warning .recit-note-mark,
.recit-note.is-tech .recit-note-mark {
  color: var(--accent);
}

.recit-note-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.recit-note-body {
  min-width: 0;
}

.recit-note-kicker {
  margin: 0 0 0.12rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.recit-note-msg {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.recit-note-hint {
  margin: 0.22rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.recit-note-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.05rem 0.2rem;
  font-family: var(--sans);
}

.recit-note-close:hover,
.recit-note-close:focus-visible {
  opacity: 1;
}

.recit-note.is-notice .recit-note-close,
.recit-note.is-success .recit-note-close {
  color: var(--bg);
}

@keyframes recit-note-in {
  from { opacity: 0; transform: translateY(0.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes recit-note-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(0.35rem); }
}

@media (max-width: 700px) {
  .recit-notify {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
}
