:root {
  color: #ffffff;
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: transparent;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
}

.widget-stage {
  width: min(100%, 390px);
  display: grid;
  place-items: center;
}

.popup-panel {
  width: min(100%, 360px);
  max-height: calc(100dvh - 48px);
  border-radius: 17px;
  padding: 24px 24px 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(45, 38, 47, 0.92), rgba(7, 21, 35, 0.91)),
    radial-gradient(circle at 16% 11%, rgba(255, 255, 255, 0.1), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 42px rgba(0, 194, 255, 0.12);
  backdrop-filter: blur(13px) saturate(138%);
  animation: popup-in 620ms cubic-bezier(0.2, 1.34, 0.32, 1) both;
}

.popup-panel-compact {
  width: min(100%, 348px);
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.popup-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 15px;
  font-style: italic;
  color: #f7f7ff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.pulse-dot {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eff71f;
  box-shadow: 0 0 16px rgba(239, 247, 31, 0.82);
}

.icon-button {
  width: 34px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.34));
}

.login-panel,
.reminder-panel {
  display: grid;
  justify-items: center;
  text-align: center;
}

.login-panel h1,
.reminder-panel h1 {
  margin: 0 0 20px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 44px;
  line-height: 0.95;
  font-style: italic;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.25),
    0 0 22px rgba(255, 255, 255, 0.12);
}

.login-panel p,
.reminder-panel p {
  margin: 0 0 27px;
  font-size: 18px;
  font-weight: 790;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
}

.reminder-panel strong {
  color: #1eff43;
  font-weight: 950;
}

.google-button {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 9px;
  display: block;
  padding: 0;
  aspect-ratio: 294 / 65;
  background: #ffffff;
  box-shadow: 0 11px 23px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.google-button:active {
  transform: translateY(2px);
}

.google-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

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

.create-panel {
  display: grid;
  gap: 18px;
}

.field-stack {
  display: grid;
  gap: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 760;
}

.field-stack input {
  width: 100%;
  height: 51px;
  border-radius: 9px;
  border: 2px solid rgba(149, 166, 198, 0.78);
  padding: 0 15px;
  color: #ffffff;
  background: rgba(8, 19, 35, 0.6);
  font-size: 19px;
  font-weight: 720;
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.field-stack input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.field-stack input:focus {
  border-color: #05d8ff;
  box-shadow:
    0 0 0 3px rgba(5, 216, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.date-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 760;
}

.date-pill {
  min-width: 0;
  height: 51px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  border: 2px solid rgba(149, 166, 198, 0.66);
  background: rgba(8, 19, 35, 0.72);
  color: #ffffff;
  padding: 0 7px;
}

.date-pill input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font-size: 17px;
  font-weight: 790;
}

.date-pill input::-webkit-calendar-picker-indicator {
  display: none;
}

.pill-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  position: relative;
  opacity: 0.92;
}

.pill-icon-calendar {
  border: 2px solid #ffffff;
  border-radius: 4px;
}

.pill-icon-calendar::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 6px;
  height: 2px;
  background: #ffffff;
}

.pill-icon-clock {
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.pill-icon-clock::before,
.pill-icon-clock::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: #ffffff;
  transform-origin: 50% 100%;
}

.pill-icon-clock::after {
  top: 10px;
  width: 6px;
  height: 2px;
}

.skew-button {
  width: 100%;
  min-height: 60px;
  border: 0;
  padding: 0;
  transform: skewX(-7deg);
  color: #ffffff;
  position: relative;
  isolation: isolate;
  filter: drop-shadow(0 10px 13px rgba(0, 0, 0, 0.28));
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.skew-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--button-bg);
  border: var(--button-border);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.26),
    inset 0 -5px 0 rgba(0, 0, 0, 0.09),
    0 0 22px var(--button-glow);
}

.skew-button span {
  display: block;
  transform: skewX(7deg);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  font-style: italic;
  color: var(--button-text);
  text-shadow: var(--button-shadow);
  white-space: nowrap;
}

.skew-button:hover {
  transform: translateY(-2px) skewX(-7deg);
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.34));
}

.skew-button:active {
  transform: translateY(2px) skewX(-7deg);
}

.skew-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.skew-button-blue {
  --button-bg: linear-gradient(180deg, #04bfff, #0995f2);
  --button-border: 5px solid #05d8ff;
  --button-glow: rgba(5, 216, 255, 0.44);
  --button-text: #8deaff;
  --button-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.skew-button-yellow {
  --button-bg: linear-gradient(180deg, #ffff00, #ffe600);
  --button-border: 0;
  --button-glow: rgba(255, 252, 0, 0.44);
  --button-text: #070707;
  --button-shadow: 0 1px 0 rgba(255, 255, 255, 0.26);
}

.skew-button-green {
  --button-bg: linear-gradient(180deg, #18f342, #00cd32);
  --button-border: 0;
  --button-glow: rgba(0, 255, 75, 0.36);
  --button-text: #ffffff;
  --button-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.skew-button-pink {
  --button-bg: linear-gradient(180deg, #ff2b66, #ff1d55);
  --button-border: 0;
  --button-glow: rgba(255, 45, 100, 0.36);
  --button-text: #ffffff;
  --button-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.manager-panel {
  max-height: calc(100dvh - 126px);
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding-right: 2px;
}

.manager-panel::-webkit-scrollbar {
  width: 8px;
}

.manager-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.manager-top {
  display: flex;
  justify-content: flex-end;
}

.manager-section {
  display: grid;
  gap: 10px;
}

.manager-section h2 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  line-height: 1;
  font-style: italic;
  letter-spacing: 0;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.reminder-list {
  display: grid;
  gap: 10px;
}

.reminder-item {
  display: grid;
  gap: 12px;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.reminder-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.reminder-info strong,
.reminder-info span,
.reminder-info em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.reminder-info strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 850;
}

.reminder-info span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 680;
}

.reminder-info em {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  color: #07131f;
  background: #eff71f;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.reminder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button,
.text-button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(9, 24, 44, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.mini-button:hover,
.text-button:hover {
  border-color: rgba(5, 216, 255, 0.58);
}

.mini-button-primary {
  border-color: rgba(0, 255, 75, 0.54);
  background: linear-gradient(180deg, #18f342, #00cd32);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 255, 75, 0.22);
}

.mini-button-danger {
  border-color: rgba(255, 45, 100, 0.58);
  color: #ffffff;
  background: rgba(255, 29, 85, 0.22);
}

.text-button {
  justify-self: start;
  min-height: 30px;
  border: 0;
  padding-inline: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
}

.empty-message,
.status-message {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.empty-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 720;
}

.status-message {
  margin: 12px 0 0 !important;
  color: #ffe86b;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.25;
  text-transform: uppercase;
}

.loading-text {
  padding: 45px 0;
  text-align: center;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 30px;
  font-style: italic;
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: translateY(52px) scale(0.82);
  }
  68% {
    opacity: 1;
    transform: translateY(-8px) scale(1.03);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 500px) {
  .app {
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  }

  .popup-panel {
    padding: 22px 21px 20px;
    max-height: calc(100dvh - 36px);
  }

  .manager-panel {
    max-height: calc(100dvh - 112px);
  }

  .date-row {
    grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 375px) {
  .login-panel h1,
  .reminder-panel h1 {
    font-size: 40px;
  }

  .date-pill {
    gap: 4px;
    padding-inline: 5px;
  }

  .date-pill input {
    font-size: 15px;
  }

  .skew-button span {
    font-size: 20px;
  }

  .reminder-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reminder-actions .mini-button-danger {
    grid-column: 1 / -1;
  }
}
