:root {
    color-scheme: dark;
    --bg: #0a0a0f;
    --card: #111118;
    --input: #1a1a24;
    --border: #2a2a3a;
    --gold: #e8b84b;
    --gold-dim: #9a7830;
    --text: #d4d4e0;
    --muted: #a0a0b3;
    --radius: 6px;
    --mono: Consolas, 'Courier New', monospace;
    font: 13px/1.6 Verdana, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: 16px; letter-spacing: -.3px; }
h3 { font-size: 13px; }
p { color: var(--muted); }
.icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
.gold, .text-link { color: var(--gold); }
.muted { color: var(--muted); }
.mono, code { font-family: var(--mono); }
code { font-size: 12px; overflow-wrap: anywhere; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10; padding: 12px 18px; background: var(--gold); color: var(--bg); }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: #101017; border-right: 1px solid var(--border); padding: 29px 18px 20px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; font-size: 12px; font-weight: bold; white-space: nowrap; }
.brand img { flex-shrink: 0; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: normal; margin-top: 3px; }
.sidebar-panel { display: flex; flex-direction: column; flex: 1; padding-top: 46px; }
.nav-label, .eyebrow { color: var(--muted); font-size: 9px; font-weight: bold; letter-spacing: 1.5px; }
.nav-label { padding-left: 14px; margin-bottom: 14px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 14px; margin: 4px 0; border: 1px solid transparent; border-radius: var(--radius); color: var(--muted); font-size: 12px; }
.nav-link:hover { background: var(--input); }
.nav-link.is-current { background: #211b10; color: var(--gold); border-color: #514125; border-left: 3px solid var(--gold); padding-left: 12px; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-left: auto; }
.sidebar-note { margin: auto 4px 28px; padding: 46px 8px 0; }
.sidebar-note .eyebrow { font-size: 8px; color: var(--gold-dim); }
.sidebar-note p { font-size: 17px; line-height: 1.6; color: var(--text); margin: 10px 0 16px; }
.sidebar-note a { font-size: 10px; color: var(--muted); }
.sidebar-note .icon { width: 13px; }
.sidebar-footer { border-top: 1px solid var(--border); padding: 22px 12px 0; display: flex; flex-direction: column; gap: 4px; font-size: 10px; }
.sidebar-footer strong { color: var(--gold); letter-spacing: 1px; }
.sidebar-footer small { color: #818193; margin-top: 12px; font-size: 9px; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 76px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 38px; }
.breadcrumb { color: var(--muted); font-size: 11px; }
.breadcrumb span { margin: 0 14px; color: #656576; }
.breadcrumb strong { font-weight: normal; color: var(--text); }
.account-link { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.account-link > .icon { width: 13px; color: var(--muted); }
.account-avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #282233; color: #d7c4f5; font: 11px var(--mono); }
main { width: 100%; max-width: 1600px; padding: 36px 38px 24px; margin: 0 auto; flex: 1; min-width: 0; }
.page-heading { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.page-heading .eyebrow { font-size: 9px; color: var(--gold-dim); margin-bottom: 9px; }
h1 { font-size: clamp(24px, 2.6vw, 34px); color: #f3f3f7; letter-spacing: -1.5px; margin-bottom: 9px; }
.page-heading p { margin-bottom: 0; font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; white-space: nowrap; }
.environment { background: var(--card); padding: 6px 10px; }
.environment::before { content: ''; background: #9c9cab; width: 5px; height: 5px; border-radius: 50%; }
.gold-badge { border-color: #594527; background: #241d10; color: var(--gold); }
.profile-panel { background: linear-gradient(110deg, #181720, #17151a 65%, #211d15); border: 1px solid #3e3540; border-radius: var(--radius); padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.profile-info { display: flex; align-items: center; gap: 22px; min-width: 0; }
.profile-info > div { min-width: 0; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #5c4b32; object-fit: cover; flex-shrink: 0; }
.avatar-placeholder { display: grid; place-items: center; color: var(--gold); font: bold 25px var(--mono); background: #302738; }
.profile-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 1px; }
.profile-title h2 { font-size: 20px; color: #f0f0f5; margin-bottom: 0; overflow-wrap: anywhere; }
.profile-info p { margin: 9px 0 11px; font-size: 11px; max-width: 680px; overflow-wrap: anywhere; }
.profile-counts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 10px; }
.profile-counts strong { color: var(--text); font-weight: normal; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 16px; border: 1px solid var(--gold-dim); border-radius: var(--radius); background: #1e0e00; color: var(--gold); font-size: 11px; font-weight: bold; cursor: pointer; flex-shrink: 0; }
.button:hover { background: #2a200e; border-color: var(--gold); }
.button.secondary { color: var(--text); background: #1a1922; border-color: #3b3946; font-weight: normal; }
.button.secondary:hover { color: var(--gold); border-color: var(--gold-dim); }
.button .icon { width: 14px; height: 14px; }
.button.small { min-height: 36px; padding: 7px 10px; font-size: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 36px; }
.stat-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 20px; }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.stat-label .icon { color: var(--gold-dim); width: 18px; }
.stat-card > strong { display: block; font: 32px/1.3 var(--mono); color: #f4f4f7; margin: 13px 0 8px; }
.stat-card small { font-size: 9px; color: var(--muted); }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.section-heading h2 { margin-bottom: 5px; }
.section-heading p { font-size: 11px; margin-bottom: 0; }
.section-heading > a { font-size: 10px; }
.count { display: inline-block; margin-left: 7px; padding: 1px 6px; border-radius: 4px; background: var(--input); font: 11px/1.6 var(--mono); color: var(--muted); vertical-align: middle; }
.repo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.repo-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; min-width: 0; transition: border-color .2s; }
.repo-card:hover { border-color: #62502e; }
.repo-heading { display: flex; align-items: start; gap: 9px; }
.repo-heading > .icon { color: var(--gold-dim); width: 17px; height: 20px; }
.repo-heading > a { font-size: 12px; font-weight: bold; color: #e5dfcf; overflow-wrap: anywhere; }
.repo-heading .badge { font-size: 8px; padding: 2px 6px; margin-left: auto; }
.repo-card > p { font-size: 10px; line-height: 1.9; margin: 13px 0 23px; min-height: 38px; overflow-wrap: anywhere; }
.repo-meta { display: flex; flex-wrap: wrap; gap: 17px; align-items: center; color: var(--muted); font-size: 10px; margin-top: auto; }
.repo-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.repo-meta .icon { width: 13px; height: 13px; }
.language { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.language::before { content: ''; width: 7px; height: 7px; background: #b398d3; border-radius: 50%; flex-shrink: 0; }
.repo-bottom { border-top: 1px solid #23232e; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 19px; padding-top: 13px; font-size: 9px; color: var(--muted); }
.repo-bottom a { color: #c5c2b9; }
.repo-bottom .icon { width: 12px; height: 12px; margin-left: 4px; }
.bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.feature-link { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 15px; background: #101016; }
.feature-icon { display: inline-flex; justify-content: center; align-items: center; width: 39px; height: 39px; flex-shrink: 0; border: 1px solid #3d3426; background: #211b13; border-radius: var(--radius); color: var(--gold); }
.feature-link h3 { font-size: 11px; margin: 0 0 5px; }
.feature-link p { font-size: 10px; margin: 0; }
.feature-link > span:last-child { margin-left: auto; color: var(--gold); }
.data-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; margin: 23px 0 0; }
.data-note .icon { width: 14px; height: 14px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding: 21px 38px; font-size: 9px; color: var(--muted); }
.footer .icon { width: 11px; height: 11px; }
.separator { margin: 0 12px; color: #575768; }
.panel { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px; border-bottom: 1px solid var(--border); }
.panel-heading h2 { margin: 0; overflow-wrap: anywhere; }
.panel-heading > .muted { font-size: 10px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; padding: 22px; }
.filters > div { min-width: 0; }
.filters label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.filters p { margin: 0 0 10px auto; font-size: 10px; }
.search-field { flex: 1; min-width: 180px !important; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 13px; top: 12px; width: 17px; color: var(--muted); }
.input-icon input { padding-left: 40px; }
input, select { min-height: 43px; max-width: 100%; width: 100%; padding: 9px 12px; border: 1px solid var(--border); background: var(--input); color: var(--text); border-radius: var(--radius); font-size: 12px; }
select { padding-right: 30px; }
.repo-select { width: min(100%, 450px); }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
th { background: #16161f; padding: 13px 20px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
td { padding: 19px 20px; border-top: 1px solid #242430; }
tbody tr:nth-child(even) { background: #0e0e16; }
tbody tr:hover { background: #181821; }
td:first-child { min-width: 240px; }
.repo-name { display: inline-flex; align-items: center; gap: 8px; color: #e0d5ba; font-weight: bold; overflow-wrap: anywhere; }
.repo-name .icon { width: 15px; }
.repo-description { font-size: 10px; margin: 6px 0 0; max-width: 480px; overflow-wrap: anywhere; }
td time { white-space: nowrap; font-size: 10px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 15px 18px; margin-bottom: 20px; border: 1px solid #68522c; background: #272011; color: #e5c887; border-radius: var(--radius); font-size: 11px; }
.empty-state { text-align: center; padding: 55px 22px; width: 100%; }
.empty-state > .icon { width: 34px; height: 34px; color: var(--gold-dim); margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; }
.empty-state p { max-width: 500px; margin: 0 auto; font-size: 12px; }
.timeline { list-style: none; padding: 8px 24px; margin: 0; }
.timeline li { display: flex; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid #25252f; }
.timeline li:last-child { border: 0; }
.timeline li > div { min-width: 0; }
.timeline-icon { display: grid; place-items: center; border: 1px solid var(--border); background: var(--input); width: 40px; height: 40px; border-radius: 50%; color: var(--gold); flex-shrink: 0; }
.timeline p { color: var(--text); margin: 0 0 4px; overflow-wrap: anywhere; font-size: 12px; }
.timeline a { color: var(--gold); }
.timeline .muted { font-size: 10px; overflow-wrap: anywhere; }
.timeline time { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: 10px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.success { background: #0f2415; color: #4ade80; border-color: #275736; }
.failure { background: #2a1010; color: #f87171; border-color: #743131; }
.progress { background: #11243a; color: #83bafa; border-color: #345274; }
.pending { background: #302611; color: #e8b84b; border-color: #655025; }
.neutral { background: #23232b; color: #b5b5c5; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 22px; font-size: 11px; }
.tabs { display: flex; gap: 24px; padding: 0 22px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 16px 0; color: var(--muted); }
.tabs .selected { border-bottom: 2px solid var(--gold); color: var(--gold); }
.detail-list { padding: 0 22px; list-style: none; }
.detail-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); padding: 20px 0; }
.detail-list li > div { min-width: 0; }
.detail-list a { overflow-wrap: anywhere; }
.detail-list p { margin: 6px 0 0; font-size: 10px; }
.support-hero { display: flex; flex-direction: column; align-items: start; background: radial-gradient(ellipse at right, #302616, #13131b 65%); border: 1px solid #493d2d; padding: 42px; border-radius: var(--radius); }
.support-hero > .badge { margin: 23px 0 16px; }
.support-hero h2 { font-size: clamp(24px, 3vw, 34px); max-width: 620px; color: #eee8dc; }
.support-hero p { max-width: 680px; margin-bottom: 26px; }
.support-card { padding: 28px; }
.support-card h2 { margin: 20px 0 12px; }
.support-card p { font-size: 12px; }
dl { margin-bottom: 0; }
dl > div { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--border); font-size: 11px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 901px) { .menu-toggle { display: none; } }
@media (max-width: 1200px) {
    .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
    main { padding: 28px 24px; }
    .topbar, .footer { padding-left: 24px; padding-right: 24px; }
    .repo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { gap: 12px; }
    .stat-card { padding: 16px; }
    .brand { font-size: 10px; gap: 8px; }
    .profile-panel { flex-wrap: wrap; }
}
@media (max-width: 900px) {
    .app-shell { display: block; }
    .sidebar { position: static; height: auto; padding: 16px 24px; display: block; border-right: 0; border-bottom: 1px solid var(--border); }
    .brand { display: inline-flex; font-size: 12px; }
    .menu-toggle { float: right; min-height: 42px; }
    .sidebar.enhanced:not(.is-open) .sidebar-panel { display: none; }
    .sidebar-panel { padding-top: 22px; }
    .sidebar-note { display: none; }
    .sidebar-footer { margin-top: 20px; }
    .topbar { min-height: 60px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    main { padding: 24px 16px; }
    .sidebar, .topbar, .footer { padding-left: 16px; padding-right: 16px; }
    .breadcrumb { font-size: 10px; }
    .breadcrumb span { margin: 0 7px; }
    .account-link { font-size: 10px; }
    .account-link > .icon { display: none; }
    .profile-panel { padding: 20px; }
    .profile-info { align-items: start; gap: 14px; }
    .profile-avatar { width: 52px; height: 52px; }
    .profile-title h2 { font-size: 17px; }
    .profile-title .badge { display: none; }
    .profile-counts { gap: 6px 12px; }
    .repo-grid, .bottom-grid { grid-template-columns: minmax(0, 1fr); }
    .stat-label { font-size: 9px; align-items: start; }
    .stat-card { padding: 16px 13px; }
    .stat-card > strong { font-size: 28px; }
    .filters > div { width: 100%; }
    .filters p { margin-left: 0; }
    .timeline { padding: 0 16px; }
    .timeline li { flex-wrap: wrap; gap: 12px; }
    .timeline li > div { flex: 1; }
    .timeline time { width: 100%; padding-left: 52px; margin-top: -7px; }
    .support-hero { padding: 25px; }
    .footer > span:nth-child(2) { display: none; }
    .detail-list li { flex-wrap: wrap; gap: 10px; }
    .pagination { gap: 10px; padding: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
