*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: system-ui, sans-serif; background: #f7f8f5; color: #1a1a1a; line-height: 1.6; }

.ya-wrap { max-width: 580px; margin: 0 auto; padding: 2rem 1rem 4rem; }

.ya-logo { font-size: 20px; font-weight: 600; color: #085041; margin-bottom: 0.5rem; }
.ya-tagline { color: #555; margin-bottom: 2rem; }
.ya-sub { color: #555; margin-bottom: 1.5rem; }
.ya-hint { font-size: 13px; color: #888; margin-top: 4px; display: block; }
.ya-footer { font-size: 12px; color: #aaa; text-align: center; margin-top: 2.5rem; }
.ya-footer code { font-size: 11px; word-break: break-all; }

h1 { font-size: 20px; font-weight: 600; margin-bottom: 0.25rem; }

.ya-pill { display: inline-block; background: #E1F5EE; color: #085041; font-size: 13px; padding: 4px 12px; border-radius: 99px; margin-bottom: 1.25rem; }

.ya-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 1.5rem; }

.ya-group { margin-bottom: 1.25rem; }
.ya-group label { display: block; font-size: 14px; color: #444; margin-bottom: 6px; font-weight: 500; }

input[type=email], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fafafa;
  transition: border-color .15s;
}
input[type=email]:focus, textarea:focus { outline: none; border-color: #1D9E75; background: #fff; }
textarea { resize: vertical; }

.ya-freq { display: flex; gap: 8px; flex-wrap: wrap; }
.ya-freq-item { flex: 1; min-width: 120px; }
.ya-freq-item input[type=radio] { display: none; }
.ya-freq-item span {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 10px 8px; border: 1px solid #ddd; border-radius: 8px;
  font-size: 14px; cursor: pointer; background: #fafafa; transition: all .15s;
}
.ya-freq-item span small { font-size: 11px; color: #999; margin-top: 2px; }
.ya-freq-item input:checked + span { border-color: #1D9E75; background: #E1F5EE; color: #085041; }

.ya-btn-primary {
  width: 100%; padding: 13px; background: #1D9E75; color: #fff; border: none;
  border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer;
  text-decoration: none; text-align: center; display: block; transition: background .15s;
}
.ya-btn-primary:hover { background: #0F6E56; }

.ya-btn-secondary {
  padding: 12px 20px; background: #fff; color: #555; border: 1px solid #ddd;
  border-radius: 8px; font-size: 14px; cursor: pointer; text-decoration: none;
  display: inline-block; transition: background .15s;
}
.ya-btn-secondary:hover { background: #f5f5f5; }

.ya-actions { display: flex; gap: 10px; margin-top: 1.5rem; align-items: center; }
.ya-actions .ya-btn-primary { width: auto; flex: 2; }

/* Tasks */
.ya-tasks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.5rem; }

.ya-task-card {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 12px;
  padding: 1rem 1.25rem; transition: border-color .15s;
}
.ya-task-card label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.ya-task-card input[type=checkbox] { margin-top: 4px; accent-color: #1D9E75; }
.ya-task-card--done { opacity: .6; }
.ya-task-card--done .ya-task-title { text-decoration: line-through; }

.ya-task-num {
  min-width: 28px; height: 28px; border-radius: 50%;
  background: #f0f0f0; color: #666;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ya-task-num--done { background: #E1F5EE; color: #1D9E75; }

.ya-task-title { font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.ya-task-desc { font-size: 13px; color: #666; }

/* Progress */
.ya-progress-block { margin-bottom: 1.5rem; font-size: 14px; color: #555; }
.ya-progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ya-progress-bar { height: 8px; background: #eee; border-radius: 99px; overflow: hidden; }
.ya-progress-fill { height: 100%; background: #1D9E75; border-radius: 99px; transition: width .4s; }

/* Next card */
.ya-next-card {
  background: #fff; border: 1.5px solid #1D9E75; border-radius: 12px;
  padding: 1.25rem; margin-bottom: 1.5rem;
}
.ya-next-label { font-size: 11px; font-weight: 600; color: #1D9E75; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.ya-next-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ya-next-desc { font-size: 14px; color: #555; }

/* Banner flash */
.ya-banner { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 1.25rem; }
.ya-banner--success { background: #E1F5EE; color: #085041; }
.ya-banner--error   { background: #FCEBEB; color: #A32D2D; }

/* Stop button */
.ya-btn-stop {
  display: block; width: 100%; margin-top: 2rem;
  background: none; border: 1px solid #ddd; border-radius: 8px;
  padding: 10px; font-size: 13px; color: #aaa; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.ya-btn-stop:hover { border-color: #e57373; color: #c0392b; }

/* Paused banner */
.ya-paused-banner {
  background: #FFF8E1; color: #7B5800; border-radius: 8px;
  padding: 10px 14px; font-size: 14px; margin-bottom: 1.25rem;
}
