* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #0f1117; color: #e6edf3; min-height: 100vh; }
.header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; background: #161b22; border-bottom: 1px solid #30363d; }
.logo { font-weight: 700; text-decoration: none; color: #58a6ff; }
.header nav { display: flex; align-items: center; gap: 1rem; }
.header a { color: #8b949e; text-decoration: none; }
.header a:hover { color: #e6edf3; }
#main { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.view { display: none; }
.view.active { display: block; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.25rem; color: #8b949e; font-size: 0.875rem; }
.form-group input { width: 100%; max-width: 320px; padding: 0.5rem 0.75rem; background: #21262d; border: 1px solid #30363d; border-radius: 6px; color: #e6edf3; font-size: 0.875rem; }
.form-group input:focus { outline: none; border-color: #58a6ff; }
.btn { padding: 0.5rem 1rem; border-radius: 6px; border: none; cursor: pointer; font-size: 0.875rem; }
.btn-primary { background: #238636; color: #fff; }
.btn-primary:hover { background: #2ea043; }
.btn-secondary { background: #21262d; color: #e6edf3; border: 1px solid #30363d; }
.btn-secondary:hover { background: #30363d; }
.btn-danger { background: #da3633; color: #fff; }
.btn-danger:hover { background: #f85149; }
.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
.search-box { margin-bottom: 1rem; }
.search-box input { width: 100%; max-width: 400px; padding: 0.5rem 0.75rem; background: #21262d; border: 1px solid #30363d; border-radius: 6px; color: #e6edf3; }
.pkg-list { border: 1px solid #30363d; border-radius: 6px; overflow: hidden; }
.pkg-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid #30363d; cursor: pointer; }
.pkg-row:last-child { border-bottom: none; }
.pkg-row:hover { background: #161b22; }
.pkg-name { font-weight: 600; color: #58a6ff; }
.pkg-meta { font-size: 0.8125rem; color: #8b949e; }
.tags { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-top: 0.25rem; }
.tag { background: #21262d; padding: 0.125rem 0.5rem; border-radius: 999px; font-size: 0.75rem; color: #8b949e; }
.breadcrumb { margin-bottom: 1rem; font-size: 0.875rem; color: #8b949e; }
.breadcrumb a { color: #58a6ff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; min-height: 400px; }
.file-tree { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 0.5rem; overflow: auto; }
.file-tree .file { padding: 0.35rem 0.5rem; border-radius: 4px; cursor: pointer; font-size: 0.8125rem; word-break: break-all; }
.file-tree .file:hover { background: #21262d; }
.file-tree .file.active { background: #1f6feb; color: #fff; }
.file-content { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 1rem; overflow: auto; }
.file-content pre { margin: 0; font-size: 0.8125rem; font-family: ui-monospace, monospace; white-space: pre-wrap; word-break: break-all; color: #e6edf3; }
.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-error { background: #3d1f1f; border: 1px solid #da3633; color: #f85149; }
.alert-success { background: #1a2f1a; border: 1px solid #238636; color: #56d364; }
.alert-warning { background: #2d2a1f; border: 1px solid #9e6a03; color: #e3b341; }
.version-select { margin-bottom: 1rem; }
.version-select select { padding: 0.5rem 0.75rem; background: #21262d; border: 1px solid #30363d; border-radius: 6px; color: #e6edf3; }
.api-key-display { font-family: ui-monospace, monospace; font-size: 0.75rem; word-break: break-all; background: #21262d; padding: 0.5rem; border-radius: 4px; margin-top: 0.5rem; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
