:root {
  --bg: #f4efe8;
  --bg-soft: #faf7f2;
  --surface: #ffffff;
  --border: #e8e0d5;
  --border-strong: #d4c5a9;
  --primary: #c84b31;
  --primary-disabled: #c0a99a;
  --dark: #382110;
  --text: #1a1a1a;
  --text-muted: #5a4e42;
  --text-faint: #7b6e5d;
  --text-fainter: #9c8f7f;
  --light-on-dark: #f4efe8;
  --tab-inactive: #d4c5a9;
  --confirm: #3f7a3f;
  --serif: 'Palatino Linotype', Palatino, Georgia, serif;
  --body: 'Georgia', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
}

.app {
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--body);
}

/* Header */
.app-header {
  background: var(--dark);
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 12px;
}

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

.brand-icon {
  font-size: 26px;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--light-on-dark);
  letter-spacing: -0.5px;
}

.tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  color: var(--tab-inactive);
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.15s;
}

.tab-btn.tab-active {
  background: var(--primary);
  color: #fff;
}

/* Main */
.main {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.panel-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--dark);
  margin: 0 0 4px 0;
}

.panel-subtitle {
  font-size: 13px;
  color: var(--text-fainter);
  margin: 0 0 20px 0;
}

.no-bg { }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  color: var(--text-fainter);
}

.form-input,
.form-select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-soft);
  color: var(--text-fainter);
  min-height: 44px;
}

.form-input {
  color: var(--text);
}

.form-select.form-select-chosen {
  color: var(--text);
}

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

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 14px;
  color: var(--text-muted);
  font-family: inherit;
}

.error-msg {
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 12px;
}

.confirm-msg {
  color: var(--confirm);
  font-size: 13px;
  margin-bottom: 12px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary-lg {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 28px;
  font-size: 15px;
  font-family: var(--serif);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s;
}

.btn-primary-lg.btn-disabled {
  background: var(--primary-disabled);
  cursor: default;
}

.btn-reroll {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 11px 20px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}

.btn-dark {
  background: var(--dark);
  color: var(--light-on-dark);
  border: none;
  border-radius: 5px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}

.btn-primary-sm {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  min-height: 32px;
}

.btn-secondary-sm {
  background: var(--border);
  color: var(--text-muted);
  border: none;
  border-radius: 5px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  min-height: 32px;
}

/* Section */
.section-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 16px;
}

/* Suggestion Card */
.suggestion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.suggestion-cover {
  width: 48px;
  height: 64px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cover-0 { background: hsl(20, 35%, 55%); }
.cover-1 { background: hsl(100, 35%, 55%); }
.cover-2 { background: hsl(180, 35%, 55%); }
.cover-3 { background: hsl(260, 35%, 55%); }
.cover-4 { background: hsl(340, 35%, 55%); }

.suggestion-body {
  flex: 1;
}

.suggestion-why {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  padding: 4px 10px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 12px;
  font-style: italic;
}

.suggestion-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-indicator {
  font-size: 12px;
  color: var(--text-fainter);
}

/* Book Card */
.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.book-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.book-card-main {
  flex: 1;
}

.book-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.suggestion-body .book-title {
  font-size: 17px;
}

.book-author {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.book-reason {
  font-size: 12px;
  color: var(--text-fainter);
  margin-top: 6px;
  font-style: italic;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--primary-disabled);
  cursor: pointer;
  font-size: 18px;
  padding: 0 0 0 12px;
  min-height: 32px;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 18px;
  line-height: 1;
  color: var(--border-strong);
}

.star.star-filled {
  color: var(--primary);
}

.star.star-clickable {
  cursor: pointer;
}

/* Notes */
.notes-editor {
  margin-top: 10px;
}

.notes-textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 8px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  background: var(--bg-soft);
}

.notes-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.notes-section {
  margin-top: 8px;
}

.notes-display {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-radius: 5px;
  padding: 6px 10px;
  margin-bottom: 6px;
}

.notes-edit-btn {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-faint);
  cursor: pointer;
  min-height: 32px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 0;
  color: var(--text-fainter);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-text {
  font-size: 15px;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 24px;
  color: var(--text-fainter);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  .tabs {
    width: 100%;
    justify-content: center;
  }

  .main {
    padding: 20px 16px;
  }

  .panel {
    padding: 20px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-select {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .btn-primary-lg,
  .btn-reroll {
    width: 100%;
  }

  .suggestion-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .suggestion-actions {
    flex-direction: column;
  }

  .suggestion-actions .btn-primary,
  .suggestion-actions .btn-dark {
    width: 100%;
  }

  .book-card {
    padding: 14px 16px;
  }
}

DESCRIPTION: Added an "Add this to Already Read" checkbox to the Discover form, placed directly below the Mood / Genre filter. When the user clicks "Get Recommendations" with the box checked, the entered book (title, author, and "what you loved" as the reason) is saved to the Previously Read collection before the AI suggestions are fetched. Duplicate entries are prevented and a small green confirmation message shows the result. Errors on save are surfaced to the user. Added a `--confirm` color token and checkbox styling; also nudged form font sizes to 16px to prevent iOS auto-zoom on focus.