/* Legal Coin embeddable widgets. */
:root { --bg: #fff; --ink: #111827; --muted: #6b7280; --line: #e5e7eb; --brand: #2563eb; --r: 8px; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: transparent; }
body { font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); }
body.dark { --bg: #111827; --ink: #f9fafb; --muted: #9ca3af; --line: #374151; color: var(--ink); color-scheme: dark; }
#lcw { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
td:last-child, .btn, .offers td:nth-child(2) { white-space: nowrap; }
thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
tbody th small { color: var(--muted); font-weight: 400; }
.up { color: #16a34a; } .down { color: #dc2626; }
.foot, .state { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.state { margin: 0; padding: 16px 4px; }
a { color: var(--brand); }
.btn { display: inline-block; padding: 6px 10px; border: 1px solid var(--brand); border-radius: var(--r); background: transparent; color: var(--brand); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.dir { margin: 0 0 6px; font-weight: 600; }
.conv { display: flex; flex-direction: column; gap: 10px; }
.conv label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.conv input, .conv select, .conv output { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; display: flex; align-items: center; min-width: 0; }
.conv .btn { align-self: center; }
@media (max-width: 360px) { /* narrow embeds and catalog previews: drop the sparkline column of the rates table */
	.rates th:nth-child(4), .rates td:nth-child(4) { display: none; }
}
@media (max-width: 320px) { /* tiny embeds and catalog previews: no reserve / reviews columns */
	.offers th:nth-child(3), .offers td:nth-child(3), .offers th:nth-child(4), .offers td:nth-child(4) { display: none; }
}
