:root { color-scheme: light; --ink: #183630; --muted: #526860; --paper: #f5f7f2; --line: #cbd6ca; --accent: #176448; --soft: #e6eee1; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 system-ui, sans-serif; }
a { color: #135d47; text-underline-offset: .2em; }
a:hover { color: #083d2d; }
:focus-visible { outline: 3px solid #c15c16; outline-offset: 4px; }
header { border-bottom: 1px solid var(--line); }
.nav { max-width: 1200px; margin: auto; padding: 20px 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.brand { font-weight: 750; text-decoration: none; letter-spacing: .05em; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
main { max-width: 1200px; margin: auto; padding: 48px 28px 72px; }
.narrow { max-width: 860px; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 750; letter-spacing: .14em; margin: 0 0 12px; }
h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.035em; line-height: 1.35; margin: 0 0 20px; }
h2 { font-size: 1.45rem; line-height: 1.5; margin: 0 0 18px; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 16px; }
.intro { max-width: 770px; color: var(--muted); }
.privacy { display: inline-block; padding: 9px 15px; border: 1px solid #a7bea2; border-radius: 6px; background: var(--soft); color: #244932; font-weight: 650; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 28px; margin-top: 28px; min-width: 0; }
.step { color: var(--accent); font-size: .85rem; margin-right: 12px; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 12px; }
label { display: block; font-weight: 600; }
input, select { display: block; width: 100%; border: 1px solid #8d9f93; border-radius: 6px; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; }
input[type=file] { border: 0; padding: 10px 0; max-width: 100%; }
input::file-selector-button { font: inherit; padding: 9px 15px; border: 1px solid var(--accent); border-radius: 5px; color: var(--accent); background: #fff; cursor: pointer; margin-right: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid label small { display: block; color: var(--muted); font-weight: 400; }
.drop-zone { border: 2px dashed #a6b5a0; border-radius: 8px; padding: 24px; background: #f8faf5; }
.dragging { background: var(--soft); border-color: var(--accent); }
.selected { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; margin: 10px 0 0; }
.conditions { margin: 18px 0 24px; }
.conditions p, .conditions li { font-size: .9rem; }
.conditions ul { columns: 2; padding-left: 22px; }
.conditions li { break-inside: avoid; }
.threshold { margin-top: 24px; max-width: 360px; }
.hint { font-size: .9rem; color: var(--muted); margin-top: 10px; }
button, .button { display: inline-block; border: 1px solid var(--accent); border-radius: 6px; padding: 12px 22px; background: var(--accent); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #104b36; color: #fff; }
button.secondary { background: #fff; color: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; align-items: center; }
.status { min-height: 2em; margin-top: 18px; overflow-wrap: anywhere; font-weight: 650; }
.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--soft); white-space: nowrap; font-weight: 650; }
#results table { min-width: 1650px; }
#results th[scope=row] { min-width: 180px; max-width: 270px; overflow-wrap: anywhere; }
#results td:last-child { min-width: 310px; }
td small { display: block; margin-top: 8px; }
.good { color: #176448; }
.bad { color: #a32424; }
.unknown { color: #735311; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details ul { padding-left: 20px; }
.offer { background: #e9eee2; border-color: #bcccae; }
.price { font-size: 1.7rem; font-weight: 750; margin: 8px 0 16px; }
.tool-card { display: block; max-width: 680px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.tool-card:hover { border-color: var(--accent); color: var(--ink); }
.tool-card .link { color: var(--accent); text-decoration: underline; }
.tag { font-size: .8rem; font-weight: 650; color: var(--accent); margin-bottom: 12px; }
.article section { margin: 36px 0; }
.article li { margin-bottom: 10px; }
.article th, .article td { min-width: 140px; }
footer { max-width: 1200px; padding: 24px 28px 40px; margin: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  .nav { padding: 16px 20px; align-items: flex-start; flex-direction: column; gap: 8px; }
  main { padding: 32px 16px 48px; }
  .panel { padding: 20px 16px; }
  .grid { grid-template-columns: 1fr; }
  .conditions ul { columns: 1; }
  .drop-zone { padding: 16px; }
  button, .button { width: 100%; text-align: center; }
  .actions { align-items: stretch; }
}
