:root {
  --bg: #1a1208;
  --panel: #231809;
  --panel-alt: #1a2010;
  --border: #4a3020;
  --border-green: #3a4820;
  --text: #f5ede0;
  --muted: #a07050;
  --muted-2: #806040;
  --accent: #c8873a;
  --accent-bright: #f0a050;
  --accent-green: #8ab840;
  --danger: #e08070;
  --danger-bg: #2a1010;
  --danger-border: #8b2020;
  --ok-bg: #1a2a10;
  --ok-border: #4a8020;
  --btn: #3a2010;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.header {
  background: var(--panel);
  border-bottom: 2px solid #8b4513;
  margin: 0 -24px 24px;
  padding: 28px 24px 20px;
}

.eyebrow {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.2;
}

.section-title {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 24px 0 12px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field:last-child { margin-bottom: 0; }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

label {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

input[type="datetime-local"],
select,
textarea {
  background: var(--bg);
  border: 1px solid #5a3a20;
  border-radius: 4px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 16px;
  font-family: system-ui, sans-serif;
  width: 100%;
}

textarea { resize: vertical; }

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.value-pill {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--btn);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper button {
  width: 36px;
  height: 36px;
  background: var(--btn);
  border: 1px solid #5a3a20;
  border-radius: 4px;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}

.stepper span#pizzasValue {
  font-size: 28px;
  min-width: 32px;
  text-align: center;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  font-family: system-ui, sans-serif;
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.method-option {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}

.method-option.selected {
  background: var(--btn);
  border-color: var(--accent);
}

.method-option .m-label {
  color: #c8a070;
  font-size: 14px;
}
.method-option.selected .m-label {
  color: var(--text);
  font-weight: bold;
}

.method-option .m-desc {
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 2px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  color: #c8a070;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.suggestion {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: var(--accent-bright);
  background: var(--btn);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.suggestion button {
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #1a1208;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.recipe-box {
  margin-bottom: 12px;
}

.recipe-box .box-title {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}
.recipe-grid span:nth-child(odd) { color: var(--muted); }

.garlic-box {
  background: var(--panel-alt);
  border-color: var(--border-green);
}
.garlic-box .box-title { color: var(--accent-green); }
.garlic-box p {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: #a0c070;
  line-height: 1.6;
  margin: 0;
}

.flag {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.flag.warn { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.flag.ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: #90d060; }

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

.step { display: flex; }

.step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
  flex-shrink: 0;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 16px;
  flex-shrink: 0;
  background: #8b4513;
  border: 2px solid var(--accent);
}
.step.past .step-dot { background: #5a3a20; border-color: #4a2a10; }
.step.soon .step-dot { background: var(--accent); border-color: var(--accent-bright); }

.step-line {
  width: 2px;
  flex-grow: 1;
  background: #3a2010;
  min-height: 16px;
}

.step-body {
  padding: 12px 0 12px 12px;
}
.step.past .step-body { opacity: 0.5; }

.step-time {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.step.soon .step-time { color: var(--accent-bright); }

.step-label {
  font-size: 15px;
  margin-bottom: 3px;
}

.step-detail {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: #907060;
  line-height: 1.5;
}

.tips {
  margin-top: 12px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.7;
}
.tips strong { color: var(--accent); }

.log-form { display: flex; flex-direction: column; gap: 16px; }

.rating {
  display: flex;
  gap: 6px;
  font-size: 22px;
}
.rating span {
  cursor: pointer;
  color: #4a3020;
}
.rating span.filled { color: var(--accent); }

button.primary {
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #1a1208;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 12px;
  cursor: pointer;
}
button.primary:disabled { opacity: 0.5; cursor: default; }

.attempts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attempt {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: system-ui, sans-serif;
}

.attempt-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.attempt-title {
  font-size: 14px;
  color: var(--text);
}

.attempt-date {
  font-size: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}

.attempt-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.attempt-notes {
  font-size: 12px;
  color: #907060;
  margin-top: 6px;
  line-height: 1.5;
}

.attempt-actions {
  margin-top: 8px;
}

.attempt-actions button {
  background: none;
  border: 1px solid var(--danger-border);
  color: var(--danger);
  border-radius: 4px;
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}

.empty {
  font-family: system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted-2);
  font-style: italic;
}
