/* Виджет «Обратный отсчёт» — тёмная тема.
   Палитра согласована с каркасом портала: фон #0f1115, текст #e6e8ee, акцент #6ea8fe. */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #0f1115;
  color: #e6e8ee;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 460px;
  background: #171a21;
  border: 1px solid #262b36;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.subtitle {
  margin: 0 0 22px;
  color: #9aa0ad;
  font-size: 0.95rem;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #c3c8d2;
  font-size: 0.9rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

input[type="date"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  background: #0f1115;
  color: #e6e8ee;
  border: 1px solid #333a47;
  border-radius: 10px;
  font-size: 1rem;
  color-scheme: dark;
}

input[type="date"]:focus {
  outline: none;
  border-color: #6ea8fe;
}

button {
  flex: 0 0 auto;
  padding: 12px 20px;
  background: #6ea8fe;
  color: #0b1220;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover { background: #8bbcff; }
button:active { background: #5b95eb; }

.result {
  margin-top: 22px;
  min-height: 1.5em;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e6e8ee;
}

.result.error { color: #ff8a8a; font-weight: 500; font-size: 1.05rem; }
.result .num { color: #6ea8fe; }

.back {
  margin: 0;
  color: #9aa0ad;
  font-size: 0.9rem;
}

.back a { color: #6ea8fe; text-decoration: none; }
.back a:hover { text-decoration: underline; }

@media (max-width: 420px) {
  .card { padding: 22px 18px; }
  h1 { font-size: 1.4rem; }
  button { flex: 1 1 100%; }
}
