:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #0d1117; color: #e6edf3; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; height: 100vh; }
main { min-width: 0; display: flex; flex-direction: column; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #30363d; }
h1 { margin: 0 12px 0 0; font-size: 16px; font-weight: 650; }
select, input, button { min-height: 36px; border: 1px solid #66717e; background: #161b22; color: #e6edf3; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 13px; }
input { width: 230px; min-width: 0; }
input::placeholder { color: #aab3c2; }
button { cursor: pointer; }
button:hover, select:hover { border-color: #aab3c2; }
:focus-visible { outline: 2px solid #78b7ee; outline-offset: 3px; }
::selection { background: #35536a; color: #ffffff; }
#plot { width: 100%; flex: 1; min-height: 480px; }
.plot-status { display: grid; place-items: center; height: 100%; margin: 0; padding: 16px; color: #aab3c2; font-size: 13px; text-align: center; }
.view-note { padding: 0 16px 12px; color: #aab3c2; font-size: 12px; line-height: 1.5; }
aside { border-left: 1px solid #30363d; background: #161b22; padding: 20px; overflow: auto; scrollbar-color: #484f58 #161b22; }
h2 { font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.legend { list-style: none; margin: 0 0 26px; padding: 0; }
.legend li { display: flex; gap: 9px; align-items: center; margin: 9px 0; font-size: 13px; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.count { margin-left: auto; font-variant-numeric: tabular-nums; color: #aab3c2; }
.name { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.meta { color: #b8c1d0; font-size: 13px; line-height: 1.7; margin-top: 10px; overflow-wrap: anywhere; }
.card-preview { display: block; width: 100%; max-height: 360px; object-fit: contain; margin: 18px 0; }
.card-preview:not([src]) { display: none; }
a { color: #78b7ee; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; height: auto; }
  #plot { height: 65vh; min-height: 400px; flex: auto; }
  aside { border-left: 0; border-top: 1px solid #30363d; overflow: visible; }
  .legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .card-preview { width: min(100%, 280px); }
}
@media (max-width: 480px) { header { padding: 12px; } h1 { width: 100%; } input { flex: 1 0 100%; width: 100%; } .legend { gap: 0 16px; } }
