/*
 * Вид тот же, что в приложении: тёмная тема, тот же синий, те же отступы.
 * Человек открывает браузер и узнаёт свой комод, а не «какой-то сайт».
 */

:root {
  --bg: #101223;
  --surface: #171a2c;
  --surface-2: #1e2236;
  --ink: #e5e7f5;
  --ink-dim: #c5c9e0;
  --accent: #b7c4ff;
  --accent-bg: #2e3f91;
  --error: #ffb4ab;
}

* { box-sizing: border-box; }

/* Своё `display` у label и кнопок перебивает атрибут hidden, и спрятанное
   остаётся на виду. Правило общее и стоит раньше всех остальных. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: 40px;
}

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #ffffff14;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}

.top h1 { font-size: 20px; margin: 0; }
.top .muted { margin-right: auto; }

main { max-width: 760px; margin: 0 auto; padding: 16px; }

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
}

.card h2 { margin: 0 0 6px; font-size: 17px; }

label {
  display: block;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-dim);
}

label.row { display: flex; align-items: center; gap: 8px; }

input[type="text"], input[type="password"], input:not([type]) {
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #ffffff22;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
}

button {
  margin-top: 16px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #10131f;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button.ghost {
  margin: 0;
  padding: 7px 14px;
  background: #ffffff14;
  color: var(--ink);
  font-weight: 500;
}

.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.tabs button {
  margin: 0;
  padding: 8px 14px;
  background: #ffffff10;
  color: var(--ink-dim);
  font-weight: 500;
}

.tabs button.active { background: var(--accent-bg); color: #fff; }

.totals {
  display: flex;
  gap: 24px;
  background: var(--accent-bg);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.totals div { display: flex; flex-direction: column; }
.totals b { font-size: 22px; }

.list { display: flex; flex-direction: column; }

.day-head {
  margin: 16px 0 4px;
  font-size: 13px;
  color: var(--ink-dim);
}

.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
}

.row-item:nth-child(odd) { background: #ffffff08; }
.grow { flex: 1; min-width: 0; }
.emoji { font-size: 20px; width: 28px; text-align: center; }
.done { text-decoration: line-through; color: var(--ink-dim); }

.note {
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 8px;
}

.note-title { font-weight: 600; margin-bottom: 4px; }

.muted { color: var(--ink-dim); }
.small { font-size: 12.5px; }

.status {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-bg);
  font-size: 14px;
}

.status.error { background: #5c1f22; color: var(--error); }

footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------ правка */

button.wide { width: 100%; margin: 0 0 14px; }

select {
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #ffffff22;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
}

input[type="date"] {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ffffff22;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
}

.two { display: flex; gap: 12px; }
.two label { flex: 1; min-width: 0; }

.row-buttons { display: flex; gap: 10px; align-items: center; }
.row-buttons button { margin-top: 16px; }

/* Крестик показывается при наведении и всегда — на сенсорном экране,
   где наводить нечем. */
.kill {
  margin: 0;
  padding: 4px 9px;
  background: transparent;
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
}

.row-item:hover .kill, .kill:focus { opacity: 1; }
@media (hover: none) { .kill { opacity: 0.55; } }

/* Дело можно отметить нажатием — покажем это курсором. */
.row-item.tappable { cursor: pointer; }
.row-item.tappable:hover { background: #ffffff14; }

#send { background: var(--accent-bg); color: #fff; }
