:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body { font: 15px/1.5 system-ui, sans-serif; max-width: 70rem; margin: 0 auto; padding: 1rem; }
header { display: flex; justify-content: space-between; align-items: center; }
h1 { font-size: 1.4rem; }
section { margin: 1.5rem 0; padding: 1rem; border: 1px solid #8884; border-radius: .4rem; }
label { display: block; margin: .5rem 0; }
button { font: inherit; padding: .5rem 1rem; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
#run, #upload { font-weight: 600; }
.log { white-space: pre-wrap; font-family: ui-monospace, monospace; font-size: .85rem; margin-top: .5rem; }
.err { color: #c00; font-weight: 600; }
.flag { color: #b45309; font-weight: 600; }
table { border-collapse: collapse; width: 100%; margin: .5rem 0; }
th, td { border: 1px solid #8883; padding: .2rem .5rem; text-align: left; font-size: .85rem; }
.diff-store { margin: .4rem 0; }
.diff-store summary { cursor: pointer; }
pre { overflow-x: auto; background: #8881; padding: .5rem; }
.hint { color: #666; font-size: .85rem; }
.rates-actions { margin-top: .5rem; display: flex; align-items: center; gap: .75rem; }
#rates-status.err { color: #c00; }

#rates-table, #stores-table { font-size: .85rem; }
#rates-table input, #stores-table input, #stores-table select { font: inherit; width: 100%; box-sizing: border-box; padding: .2rem; }
#rates-table td.r-min { color: #666; font-variant-numeric: tabular-nums; }
#rates-table td:first-child, #rates-table th:first-child { font-weight: 600; }
.s-remove { border: none; background: none; color: #c00; font-size: 1.1rem; cursor: pointer; padding: 0 .3rem; }
#store-add { margin-top: .4rem; }
#rates-section h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
