
* { box-sizing: border-box; }
body {
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #faf7f2;
  color: #2b2523;
  margin: 0;
  padding: 24px;
}
.container { max-width: 900px; margin: 0 auto; }
h1 { margin-bottom: 4px; }
.subtitle { color: #6b6058; margin-top: 0; margin-bottom: 24px; }
.card {
  background: #fff;
  border: 1px solid #e6ddd3;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.card h2 { margin-top: 0; font-size: 1.1rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
label { display: flex; flex-direction: column; font-size: 0.9rem; gap: 6px; }
input[type=number], input[type=text] {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.radio-row { display: block; margin-bottom: 10px; font-size: 0.95rem; }
.helper-text { font-size: 0.85rem; color: #6b6058; margin-top: 8px; }
.hidden { display: none; }
.actions { display: flex; gap: 12px; margin-bottom: 20px; }
.btn-primary, .btn-secondary {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.btn-primary { background: #8a5a44; color: white; }
.btn-secondary { background: #eee0d2; color: #2b2523; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.summary-grid div {
  background: #faf5ee;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.85rem;
}
.summary-grid strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.recommended-tools {
  margin-top: 24px;
  padding: 14px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fbfaf8;
}
.remove-btn { background: none; border: none; color: #a33; cursor: pointer; font-size: 0.9rem; }

.csv-upload-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.file-upload-label { display: inline-block; cursor: pointer; }
.upload-warnings {
  background: #fff8e6;
  border: 1px solid #f0d98c;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  max-height: 120px;
  overflow-y: auto;
}
a.btn-secondary { text-decoration: none; display: inline-block; }

.app-version { text-align: center; color: #b0a89e; font-size: 0.75rem; margin-top: 20px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.tool-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e6ddd3;
  border-radius: 8px;
  padding: 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.tool-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-color: #d8c9b8; }
.tool-name { font-weight: 600; margin-bottom: 4px; color: #8a5a44; }
.tool-blurb { font-size: 0.82rem; color: #6b6058; }
