:root { color-scheme: light; }
body { font-family: system-ui, -apple-system, "Hiragino Sans", sans-serif; margin: 0; padding: 16px; background: #f6f4ef; color: #222; }
header, main { max-width: 880px; margin: 0 auto; }
h1 { font-size: 1.4rem; margin: 8px 0 4px; }
.tagline { font-size: 1.05rem; margin: 2px 0; }
.tagline-en { color: #666; margin: 2px 0 8px; }
.notice { color: #8a6d00; font-size: 0.85rem; }
.lang-switch { float: right; }
.lang-switch button { border: 1px solid #bbb; background: #fff; padding: 4px 10px; cursor: pointer; }
.lang-switch button.active { background: #2f3a5a; color: #fff; }
.card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 16px; margin: 12px 0; }
.controls label { margin-right: 14px; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; color: #444; padding: 4px 6px; }
td { text-align: right; padding: 4px 6px; font-variant-numeric: tabular-nums; }
tr.total th, tr.total td { border-top: 2px solid #2f3a5a; font-weight: 700; font-size: 1.05rem; }
.kind { color: #2f3a5a; font-weight: 600; }
.notes { color: #666; font-size: 0.82rem; padding-left: 18px; }
.fetched, .disclaimer { color: #888; font-size: 0.75rem; }
.cheapest { font-size: 1.1rem; font-weight: 700; color: #2f3a5a; }
.ebay-reference-panel { margin: 28px 0 18px; padding: 16px; border: 2px dashed #7b8794; border-radius: 8px; background: #f8fafc; }
.ebay-reference-header { display: flex; align-items: center; gap: 10px; }
.ebay-reference-header h2 { margin: 0; font-size: 1.1rem; }
.ebay-reference-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e4e9ef; color: #364152; font-size: 0.78rem; font-weight: 700; }
.ebay-reference-notice { margin: 6px 0 12px; color: #596574; font-size: 0.85rem; }
.ebay-reference-items { display: grid; gap: 8px; }
.ebay-reference-empty { margin: 0; color: #596574; font-size: 0.9rem; }
.ebay-reference-item { padding: 10px 12px; border: 1px solid #d7dde5; border-radius: 6px; background: #fff; }
.ebay-reference-item dl { margin: 0 0 6px; }
.ebay-reference-item dl div { display: flex; justify-content: space-between; gap: 12px; }
.ebay-reference-item dt { color: #596574; }
.ebay-reference-item dd { margin: 0; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.form-grid label.check { flex-direction: row; align-items: center; }
input, select { padding: 6px; border: 1px solid #bbb; border-radius: 4px; }
button { background: #2f3a5a; color: #fff; border: 0; border-radius: 4px; padding: 8px 16px; cursor: pointer; margin-right: 8px; }
.sim-link { margin-left: 12px; }
.error { color: #b00020; }
.sim-heading { font-size: 1.05rem; margin: 14px 0 6px; }
.sim-heading:first-child { margin-top: 0; }
.sim-heading.required { color: #2f3a5a; border-left: 4px solid #2f3a5a; padding-left: 8px; }
footer { max-width: 880px; margin: 16px auto; font-size: 0.85rem; color: #555; }
