/* Garden Companion — senior-friendly, offline-first gardening journal */

:root {
  --accent: #2b6b4f;
  --accent-hover: #225640;
  --accent-soft: #e7f3ec;
  --accent-mid: #3d8a66;
  --danger: #a32020;
  --danger-soft: #fdecec;
  --warn: #8a5a00;
  --warn-soft: #fff4db;
  --ok: #2b6b4f;
  --ok-soft: #e7f3ec;
  --text: #1a221e;
  --text-muted: #4a554e;
  --border: #c5d0c9;
  --surface: #ffffff;
  --bg: #f2f6f3;
  --shadow: 0 2px 10px rgba(26, 34, 30, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --touch: 48px;
  --max: 720px;
  --space: 1rem;
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header */
.app-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  font-size: 1.75rem;
  line-height: 1;
}

.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-wrap: balance;
}

.tagline {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Tabs */
.tab-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 0.75rem 0;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.tab {
  flex: 1 0 auto;
  min-height: var(--touch);
  min-width: 5.5rem;
  padding: 0.6rem 0.85rem;
  border: 2px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.tab:hover {
  color: var(--text);
  background: var(--surface);
}

.tab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.tab.active {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
  box-shadow: inset 0 -3px 0 var(--accent);
}

/* Main */
#main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.panel[hidden] {
  display: none !important;
}

.panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  color: var(--text);
  text-wrap: balance;
}

.panel-lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1rem;
  text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: var(--touch);
  min-width: var(--touch);
  padding: 0.65rem 1.1rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--accent-soft);
}

.btn-text {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  min-width: auto;
  padding: 0.5rem 0.65rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.btn-text:hover:not(:disabled) {
  background: var(--accent-soft);
  text-decoration: none;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: #8a1a1a;
}

.btn-danger-outline {
  background: var(--surface);
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger-outline:hover:not(:disabled) {
  background: var(--danger-soft);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--touch);
  min-height: var(--touch);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.btn-icon:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-icon:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.linkish {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  min-height: auto;
}

.linkish:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Cards & stats */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-head h3,
.card > h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--text);
}

.card-head h3 {
  margin-bottom: 0;
}

.sample-card {
  border-color: var(--accent-mid);
  background: linear-gradient(180deg, #f7fbf8 0%, var(--surface) 100%);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 560px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.95rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-card.stat-accent {
  border-color: var(--accent-mid);
  background: var(--accent-soft);
}

.stat-label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-link {
  margin-top: 0.35rem;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0.35rem 0;
  min-height: 44px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.stat-link:hover {
  text-decoration: none;
}

.stat-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.location-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  min-height: 44px;
}

.location-pill strong {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.loc-icon {
  line-height: 1;
}

/* Forms */
.filters {
  margin-bottom: 1rem;
}

.filters.compact {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .filters.compact {
    grid-template-columns: 1fr 12rem;
    align-items: end;
  }
}

.field {
  margin-bottom: 0.85rem;
}

.filters .field:last-child,
.modal-body .field:last-of-type {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.req {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.85rem;
}

.optional {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.field-hint {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.field input[type="text"],
.field input[type="search"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

.field textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .filter-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.check-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--touch);
}

.check-field input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.check-field label {
  margin: 0;
  font-weight: 600;
}

.form-error {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.help-text {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

.result-count {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.status-msg {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  color: var(--accent);
  min-height: 1.4em;
}

.empty-msg {
  margin: 0.5rem 0 0;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-align: center;
  text-wrap: pretty;
}

.empty-msg.muted {
  background: transparent;
  padding: 0.35rem 0;
  text-align: left;
}

/* Item lists */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
}

.item-card.compact {
  padding: 0.75rem 0.9rem;
}

.item-card button.item-main {
  all: unset;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  width: 100%;
}

.item-card button.item-main:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.item-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.item-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.item-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.item-notes {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
  text-wrap: pretty;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.item-actions .btn {
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pill.fav {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: #e6cf8a;
}

.pill.sample {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #a8d4bc;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

/* Rank / tip lists */
.rank-list,
.tip-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li,
.tip-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.rank-list li:last-child,
.tip-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rank-list li:first-child,
.tip-list li:first-child {
  padding-top: 0;
}

.rank-name {
  font-weight: 600;
  color: var(--text);
}

.rank-count {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 700;
}

.tip-list li {
  display: block;
  color: var(--text);
  text-wrap: pretty;
}

.tip-list li strong {
  color: var(--accent);
}

.subhead {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.05rem;
}

.inline-form {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.field-btn {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Detail body */
.detail-grid {
  display: grid;
  gap: 0.75rem;
}

.detail-row {
  display: grid;
  gap: 0.15rem;
}

.detail-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.detail-value {
  font-size: 1.05rem;
  color: var(--text);
  text-wrap: pretty;
}

/* Modal / dialog */
.modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(96vw, 520px);
  max-height: min(92vh, 900px);
  box-shadow: 0 12px 40px rgba(26, 34, 30, 0.22);
  color: var(--text);
  background: var(--surface);
}

.modal::backdrop {
  background: rgba(26, 34, 30, 0.45);
}

.modal-sm {
  width: min(96vw, 420px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent);
}

.modal-body {
  padding: 1rem;
  overflow-y: auto;
  max-height: min(65vh, 560px);
}

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 200;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1.15rem;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Footer */
.app-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1rem 2rem;
  text-align: center;
}

.app-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .tab {
    transition: none;
  }
}

/* Garden Companion extras */
.rating-stars {
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #b8d4c4;
}

.chip.muted {
  background: #eef1ef;
  color: var(--text-muted);
  border-color: var(--border);
}

.chip.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: #e6c96a;
}

.chip.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.calendar-month {
  margin-bottom: 1.25rem;
}

.calendar-month h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.plant-window {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.plant-window:last-child {
  border-bottom: none;
}

.plant-window .pw-name {
  flex: 1 1 8rem;
  font-weight: 600;
}

.plant-window .pw-meta {
  flex: 2 1 12rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.zone-banner {
  background: var(--accent-soft);
  border: 2px solid #b8d4c4;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.zone-banner p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.zone-banner strong {
  color: var(--accent);
  font-size: 1.15rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

@media (max-width: 540px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.item-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.season-bar {
  display: flex;
  height: 1.25rem;
  border-radius: 6px;
  overflow: hidden;
  background: #e8ece9;
  margin: 0.35rem 0 0.75rem;
}

.season-bar span {
  display: block;
  height: 100%;
  min-width: 2px;
}

.season-bar .sb-success { background: var(--accent); }
.season-bar .sb-mixed { background: #c9a227; }
.season-bar .sb-poor { background: #a32020; }

.insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insight-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.insight-list li:last-child {
  border-bottom: none;
}

.qty-badge {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.segmented button {
  min-height: var(--touch);
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.segmented button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.note-body {
  white-space: pre-wrap;
  margin: 0.4rem 0 0;
  color: var(--text);
}

.settings-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.settings-inline .field {
  flex: 1 1 10rem;
  margin: 0;
}

/* Utilities used by Garden Companion */
.item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.item-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.muted {
  color: var(--text-muted);
  font-weight: 500;
}

.btn-sm {
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
}

.check-label input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.done-text {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 500;
}

.calendar-month.current-month h4 {
  color: var(--accent-hover);
}

.req {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
  text-transform: lowercase;
}

.help-text {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

.status-msg {
  margin: 0.5rem 0 0;
  min-height: 1.25rem;
  color: var(--accent);
  font-weight: 600;
}

.sample-card {
  border-color: #b8d4c4;
  background: linear-gradient(180deg, #f7fbf8 0%, var(--surface) 100%);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.card-head h3 {
  margin: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem 1rem;
}

.filters .field {
  margin-bottom: 0.75rem;
}

.filters .field:last-child {
  margin-bottom: 0;
}
