/* ==== Кнопки ==== */
button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  width: 100%;
  font-size: 1em;
  margin: 6px 0;
  max-width: 360px;
  transition: background 0.2s ease, transform 0.1s;
}
button:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}
button:active {
  transform: scale(0.98);
}

/* ==== Поля ввода ==== */
input, textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-field);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 1em;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ==== Плитки ==== */
.tile, .sub-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 10px auto;
  width: 100%;
  max-width: 420px;
  font-size: 1.05em;
  color: #fff;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s;
}
.tile:hover, .sub-tile:hover {
  background: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52,152,219,0.15);
}

/* ==== Диалоги ==== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}
.dialog-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  width: 80%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.dialog-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.dialog-buttons button {
  flex: 1;
}
