:root {
    --bg: #0d1117;
    --panel: #161b22;
    --border: #30363d;
    --text: #c9d1d9;
    --muted: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79b8ff;
    --danger: #f85149;
    --ok: #3fb950;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel);
}
header h1 { margin: 0; font-size: 1.25rem; }
header a { color: var(--accent); text-decoration: none; }
main { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; flex: 1; }
footer { margin-top: 2rem; padding: 1rem; font-size: 0.85rem; text-align: center; }
.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
input[type="text"] {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 1rem;
}
button {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
label { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); margin-bottom: 1rem; }
.status { color: var(--muted); margin-bottom: 1rem; }
.error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; }
td { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.9rem; }
.sans { display: flex; flex-direction: column; gap: 0.35rem; }
.sans span {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    word-break: break-all;
    line-height: 1.4;
}
.intro { color: var(--text); margin-bottom: 1rem; }
.limits {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}
.limits summary {
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
}
.limits ul { margin: 0.75rem 0 0.5rem; padding-left: 1.25rem; color: var(--muted); }
.limits li { margin-bottom: 0.4rem; }
.pagination { display: flex; gap: 0.5rem; margin-top: 1rem; }
.muted { color: var(--muted); }
.cert-detail {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.cert-detail h3 { margin-top: 0; }
.cert-detail dl { display: grid; grid-template-columns: 140px 1fr; gap: 0.5rem 1rem; }
.cert-detail dt { color: var(--muted); }
.cert-detail dd { margin: 0; }
a.sha { color: var(--accent); cursor: pointer; text-decoration: underline; }
.hidden { display: none; }
