/*! Jetlag © 2026 Reda Jordan Benjamin Bouchaib. All rights reserved. Proprietary and confidential — unauthorized copying, modification, or distribution is prohibited. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #212326;
  color: #ccc;
  fill: #ccc;
  font-family: Arial, sans-serif;
  display: grid;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  touch-action: manipulation;
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
}

input,
textarea,
select,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

[hidden] {
  display: none !important;
}

.fallback {
  display: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

[data-js][data-busy] {
  position: relative;
  color: transparent;
  pointer-events: none;
}

[data-js][data-busy]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 2px solid #212326;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

body {
  grid-template-columns: 1fr;
}

.middle {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  height: 100%;
}

.middle > section {
  overflow-y: auto;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.room {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

[data-js="header"]:not(:has(> [data-js="banner"]:first-child)) {
  padding-top: env(safe-area-inset-top);
}

@media (display-mode: browser) {
  body {
    height: 100dvh;
  }
}

.landscape {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 300;
  padding: 24px;
  font-size: 18px;
  font-weight: 600;
}

@media (orientation: landscape) and (pointer: coarse) and (max-height: 500px) {
  .landscape {
    display: flex;
  }
}

.haptic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 3;
}

:where(:has(> .haptic)) {
  position: relative;
}

:disabled > .haptic {
  display: none;
}

[data-js="home"] > [data-js="time"] {
  position: relative;
  background: transparent;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
}

[data-js="home"] > [data-js="time"] [data-js="clock"] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
  font-size: clamp(110px, 74.78px + 9.783vw, 200px);
}

.settingsitem input {
  width: 60px;
  margin-left: 12px;
  padding: 4px 8px;
  border: 1px solid #333;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .waiting {
    animation: none !important;
  }
}