/* Used Tool Restoration Resale Decider */
:root {
  --bg: #f6f3ec;
  --bg-alt: #ede7d9;
  --ink: #2a2620;
  --muted: #6b6357;
  --line: #c9c0ad;
  --accent: #8a4b2e;
  --accent-ink: #fff8ef;
  --good: #3d6b3a;
  --warn: #a06a1f;
  --bad: #9e3b2e;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(40,30,15,.06), 0 6px 24px rgba(40,30,15,.06);
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; font-size: 1.05rem;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}
.nav {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: .95rem;
}
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 28px;
  padding: 28px 0 40px;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h2 { margin-top: 0; }

/* Form */
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
legend { font-weight: 600; font-size: .95rem; padding: 0 6px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 14px; margin: 0 0 14px; }
select, input[type=text] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

/* Range sliders */
.range-row { margin-bottom: 14px; }
.range-row input[type=range] { width: 100%; accent-color: var(--accent); }
.range-legend {
  display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 8px; padding: 10px 14px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
}
.btn:hover { filter: brightness(.95); }
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--bg-alt); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* Verdict */
.verdict {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fbf8f1);
  margin-top: 14px;
}
.verdict h3 { margin: 0 0 6px; font-size: 1.05rem; }
.verdict .pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; margin-bottom: 10px;
  background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line);
}
.verdict .pill.keep { background: #e6f0e3; color: var(--good); border-color: #c4dcbf; }
.verdict .pill.sell { background: #f4ecdc; color: var(--warn); border-color: #e3d4a9; }
.verdict .pill.donate { background: #e9ecef; color: #444; border-color: #cfd3d8; }
.verdict .pill.skip { background: #f4e3dc; color: var(--bad); border-color: #e6c4b4; }

.value-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .95rem;
}
.value-row:last-child { border-bottom: 0; }

/* Steps */
.steps { padding-left: 18px; margin: 6px 0 12px; }
.steps li { margin: 4px 0; }

/* Side panel */
.side .card { margin-bottom: 16px; }
.side h3 { margin-top: 0; font-size: 1rem; }
.side ul { padding-left: 18px; margin: 6px 0; font-size: .95rem; }
.side table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.side th, .side td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--line); }
.side th:nth-child(2), .side td:nth-child(2) { text-align: right; }

/* History */
.history-item {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px;
  margin-bottom: 8px; background: #fff; font-size: .9rem;
  display: flex; justify-content: space-between; gap: 10px;
}
.history-item .tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .75rem; background: var(--bg-alt); border: 1px solid var(--line); margin-right: 6px;
}
.history-item .meta { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.history-item .open-row { cursor: pointer; background: transparent; border: 0; text-align: left; padding: 0; color: var(--ink); }

/* Content sections */
.section h2 { font-size: 1.2rem; margin-top: 0; }
.section { margin-top: 24px; }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 8px; }
table.compare th, table.compare td {
  border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top;
}
table.compare th { background: var(--bg-alt); }

.callout {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-size: .95rem; margin: 10px 0;
}
.muted { color: var(--muted); font-size: .9rem; }

footer {
  border-top: 1px solid var(--line); padding: 18px 0 28px;
  background: var(--bg-alt); color: var(--muted); font-size: .9rem;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Focus states */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Print */
@media print {
  .site-header, .nav, .side, .btn-row, footer, .history, .section { display: none !important; }
  .layout { display: block; }
  .verdict { break-inside: avoid; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
