@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/Vazirmatn-Variable.woff2") format("woff2");
}

html,
body {
  background-color: #07090e;
  background-image:
    radial-gradient(ellipse 88% 52% at 50% 40%, rgba(46, 128, 158, 0.42) 0%, rgba(18, 48, 68, 0.22) 42%, transparent 70%),
    linear-gradient(180deg, #1a2633 0%, #10202c 34%, #0a141c 62%, #05070b 100%);
  font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
}

.absolute.inset-0.bg-black,
.relative.h-screen.bg-\[\#07090e\],
canvas {
  background-color: transparent !important;
  background-image: none !important;
}

.font-mono {
  font-family: "Cascadia Mono", "Segoe UI Mono", ui-monospace, Consolas, monospace !important;
}

.backdrop-blur,
.backdrop-blur-sm,
.backdrop-blur-md,
.backdrop-blur-xl {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.bg-\[\#0b0f19\]\/85,
.bg-\[\#0b0f19\]\/90,
.bg-\[\#0b0f19\]\/95,
.bg-slate-900\/90,
.bg-slate-900\/95 {
  background-color: #121a24 !important;
}

.bg-slate-900\/60,
.bg-slate-900\/70,
.bg-slate-800\/70,
.bg-slate-800\/80 {
  background-color: #1c2836 !important;
}

.shadow-cyan-500,
.shadow-cyan-500\/20,
.shadow-cyan-500\/25,
.shadow-cyan-950\/40,
.shadow-cyan-950\/50 {
  --tw-shadow-color: rgba(0, 0, 0, 0.45) !important;
}

.border-cyan-500\/30,
.border-cyan-500\/40 {
  border-color: rgba(140, 214, 232, 0.42) !important;
}

.bg-gradient-to-tr.from-cyan-500.to-blue-600 {
  background-image: none !important;
  background-color: #1aa3c4 !important;
}
header .from-cyan-500.has-mark {
  background-size: cover !important;
  background-position: center !important;
}
header .from-cyan-500.has-mark svg { display: none !important; }

.text-\[10px\],
.text-\[11px\] {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.animate-pulse,
.animate-bounce {
  animation: none !important;
}

@media (max-width: 767px) {
  .absolute.bottom-20 {
    bottom: 6.5rem;
  }

  .absolute.bottom-20 .text-\[10px\] {
    justify-content: center;
    text-align: center;
    line-height: 1.45;
    max-width: 92vw;
  }
}

@media (min-width: 520px) {
  .absolute.bottom-20 .text-\[10px\] {
    width: max-content;
    max-width: 92vw;
    white-space: nowrap;
  }
}

.pulse-note {
  position: fixed;
  z-index: 35;
  top: 4.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 560px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #121a24;
  color: #e7eef6;
  border: 1px solid rgba(140, 214, 232, 0.42);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
  font: 500 13px/1.45 Vazirmatn, "Segoe UI", Tahoma, sans-serif;
}

.pulse-note a,
.pulse-note > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.pulse-note strong {
  font-weight: 700;
}

.pulse-note span {
  color: #a9bad2;
  font-weight: 450;
}

.pulse-note button {
  margin-inline-start: auto;
  border: 0;
  background: transparent;
  color: #a9bad2;
  font: inherit;
  cursor: pointer;
}

.pulse-note img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}

.pulse-note-good {
  border-color: rgba(120, 190, 140, 0.55);
}

.pulse-note-bad {
  border-color: rgba(214, 120, 120, 0.55);
}

body.pulse-has-notice .absolute.top-16 {
  top: 8.6rem !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #8cd6e8;
  outline-offset: 2px;
}

.pulse-day {
  border-radius: 999px !important;
  border: 1px solid rgba(140, 214, 232, 0.28) !important;
  background-color: #162230 !important;
  background-image: none !important;
  box-shadow: none !important;
  min-height: 46px;
  padding: 7px 16px !important;
}

.pulse-day.is-on {
  background-color: #1aa3c4 !important;
  border-color: transparent !important;
  color: #062028 !important;
}

.pulse-day > div {
  align-items: center;
  text-align: center;
}

.pulse-day.is-on > div span {
  color: #062028 !important;
}

.pulse-day span {
  font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
  white-space: nowrap;
}

span.font-mono.text-cyan-300 {
  white-space: nowrap;
}

#pulseAlert {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 8, 12, 0.72);
}

#pulseAlert[hidden] { display: none; }

.pa-card {
  width: min(440px, 100%);
  position: relative;
  background: #121a24;
  color: #f4f7fb;
  border: 1px solid rgba(140, 214, 232, 0.35);
  border-radius: 22px;
  padding: 18px 16px 16px;
  font-family: Vazirmatn, Tahoma, sans-serif;
}

.pa-x {
  position: absolute;
  top: 12px;
  left: 12px;
  border: 0;
  background: #1c2836;
  color: #d5e2ea;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
}

.pa-title { display: block; font-size: 16px; line-height: 1.6; margin-left: 64px; }
.pa-when, .pa-lead, .pa-msg { margin: 8px 0 0; color: #9fb4c8; font-size: 13px; line-height: 1.7; }
.pa-mins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pa-mins button, .pa-save, .pa-drop {
  border: 1px solid rgba(140, 214, 232, 0.28);
  background: #162230;
  color: #f4f7fb;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}
.pa-mins button.is-on, .pa-save { background: #1aa3c4; color: #062028; border-color: transparent; }
.pa-custom { display: block; margin-top: 12px; color: #9fb4c8; font-size: 13px; }
.pa-custom input {
  margin-right: 8px;
  width: 88px;
  background: #0c121a;
  color: #f4f7fb;
  border: 1px solid rgba(140, 214, 232, 0.28);
  border-radius: 10px;
  padding: 6px 8px;
  font: inherit;
}
.pa-actions { display: flex; gap: 8px; margin-top: 14px; }

/* Personal alerts inside the Telegram mini app */
/* A compact bell within the existing header controls; the calendar stays unchanged. */
.pa-launch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(103,232,249,.30); border-radius: 10px; background: #102d3a; color: #80dfee; cursor: pointer; transition: background-color .16s, border-color .16s; }
.pa-launch:hover { background: #194253; border-color: rgba(103,232,249,.65); }
.pa-launch:focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; }
.pa-launch span { display: none; font: 700 13px Vazirmatn, Tahoma, sans-serif; white-space: nowrap; }
@media (min-width: 1024px) { .pa-launch { width: auto; padding: 0 10px; } .pa-launch span { display: inline; } }
/* The generated utility CSS omitted these positioning classes. */
.absolute.top-\[63\%\].left-3.right-3 { top: 63%; left: 12px; right: 12px; }
.pa-launch[hidden], #pulseAlert [hidden] { display: none !important; }
.pa-card { max-height: min(85dvh, 680px); overflow: auto; direction: rtl; }
.pa-items { max-height: 48dvh; overflow: auto; margin-top: 12px; }
.pa-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #334155; }
.pa-item b { font-size: 13px; }
.pa-item button { flex-shrink: 0; }
.pa-save:disabled, .pa-drop:disabled { opacity: .5; }

/* Compact the header only when the extra action is present. */
@media (max-width: 420px) {
  header.pa-has-alerts { gap: 4px; }
  header.pa-has-alerts > div:first-child { min-width: 0; padding-inline: 6px; gap: 4px; }
  header.pa-has-alerts > div:first-child > div[dir="ltr"] { min-width: 0; overflow: hidden; white-space: nowrap; }
  header.pa-has-alerts > div:last-child { flex-shrink: 0; gap: 2px; }
  header.pa-has-alerts > div:last-child > button:not(.pa-launch) { padding: 4px; }
}
@media (max-width: 350px) {
  header.pa-has-alerts > div:first-child > div[dir="ltr"] > span { font-size: 12px; letter-spacing: 0; }
}
/* On short screens the central day controls already provide the same navigation. */
@media (max-width: 767px) and (max-height: 700px) {
  .absolute.top-\[63\%\].left-3.right-3 { display: none; }
}
