* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  padding-bottom: 120px;
}

.app {
  min-height: 100vh;
  padding: 20px 16px 140px;
}

.hero {
  padding: 16px 8px 20px;
  text-align: center;
}

.brand {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hello {
  font-size: 24px;
  font-weight: 600;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 20px;
}

.toolbar.hidden {
  display: none;
}

.toolbar-btn {
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 15px;
}

.screen-title {
  font-size: 20px;
  font-weight: 700;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 80px;
}

.card {
  display: block;
  width: 100%;
  background: #1f1f22;
  border-radius: 24px;
  padding: 22px 20px;
  border: none;
  text-align: left;
  color: #fff;
  cursor: pointer;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 15px;
  color: #1e90ff;
  line-height: 1.35;
}

.form-card {
  background: #1f1f22;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #d8d8d8;
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #404040;
  background: #0f0f10;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 10px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.primary-btn {
  background: #1e90ff;
  color: #fff;
}

.secondary-btn {
  background: #2b2b30;
  color: #fff;
}

.danger-btn {
  background: #df5a5a;
  color: #fff;
}

.summary-block {
  background: #1f1f22;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}

.summary-block h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.summary-pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.5;
}

.error {
  margin-top: 20px;
  background: #2b1d1d;
  color: #ffb3b3;
  padding: 14px;
  border-radius: 14px;
}

.hidden {
  display: none;
}

.search-dropdown {
  background: #101012;
  border: 1px solid #303030;
  border-radius: 14px;
  margin-top: 6px;
  overflow: hidden;
}

.search-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #222;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #1d1d20;
}

.repeat-card {
  background: #17171a;
  border: 1px solid #2e2e35;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  background: #222;
  color: #fff;
  padding: 14px 16px;
  border-radius: 14px;
  z-index: 10;
  text-align: center;
}

.toast.hidden {
  display: none;
}