:root {
  color-scheme: light dark;
  --bg: #f6f7f8; --panel: #ffffff; --fg: #1d232b; --muted: #667080; --line: #e3e6ea; --accent: #266e62;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14181d; --panel: #1c2127; --fg: #e8ebef; --muted: #9aa4b2; --line: #323a44; --accent: #7fc8b2; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding-top: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 20px; font-weight: 700; }
.brand img { border-radius: 6px; }
.tag { color: var(--muted); }
main { padding-top: 22px; padding-bottom: 40px; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.field { position: relative; }
input[type="search"] { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--fg); font: inherit; font-size: 17px; }
input[type="search"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#suggestions { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px;
  list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 28, 38, .16); max-height: 320px; overflow-y: auto; }
#suggestions li { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 7px; cursor: pointer; }
#suggestions li[aria-selected="true"], #suggestions li:hover { background: var(--bg); }
#suggestions .c { font-weight: 600; white-space: nowrap; min-width: 84px; }
#suggestions .t { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { color: var(--muted); margin: 18px 2px; }
.panel { margin-top: 18px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.hint { margin: 10px 2px 0; color: var(--muted); font-size: 13px; }
.list { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.list h2 { margin: 0; padding: 14px 18px; font-size: 16px; border-bottom: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; color: inherit; text-decoration: none;
  border-top: 1px solid var(--line); }
.list a:first-of-type { border-top: 0; }
.list a:hover, .list a:focus-visible { background: var(--bg); outline: none; }
.list .c { font-weight: 600; min-width: 84px; white-space: nowrap; }
.list .t { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .gpaext-badge { margin-left: 0; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.examples a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--accent); text-decoration: none; font-size: 14px; }
footer { padding-bottom: 40px; color: var(--muted); font-size: 13px; }
footer p { margin: 6px 0; }
footer a { color: var(--accent); margin-right: 14px; }
.prose { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; }
.prose h1 { font-size: 24px; } .prose h2 { font-size: 17px; margin-top: 28px; }
