:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #030812;
  --panel: rgba(14, 25, 43, 0.82);
  --panel-strong: #111f35;
  --panel-hover: #152844;
  --border: rgba(143, 170, 211, 0.17);
  --border-strong: rgba(143, 170, 211, 0.28);
  --text: #eef5ff;
  --muted: #91a2bd;
  --muted-2: #61728d;
  --blue: #1598ff;
  --blue-2: #0067ff;
  --purple: #a728ff;
  --green: #3ddc97;
  --yellow: #f7c948;
  --red: #ff6b7a;
  --orange: #ff9e45;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.hidden { display: none !important; }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background:
    radial-gradient(circle at 16% 7%, rgba(0, 119, 255, 0.2), transparent 29%),
    radial-gradient(circle at 93% 13%, rgba(159, 36, 255, 0.16), transparent 27%),
    linear-gradient(180deg, #07111f 0%, #06101d 50%, #040b14 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-hero { padding: 7vw; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-hero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(20,151,255,.22), transparent 67%); right: -180px; top: 14%; }
.brand-lockup { display: flex; align-items: center; gap: 14px; font-weight: 800; letter-spacing: -.04em; font-size: 28px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 103, 255, .25)); }
.login-copy { max-width: 720px; margin-top: 76px; position: relative; z-index: 1; }
.eyebrow { color: #65b8ff; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-copy h1 { font-size: clamp(48px, 6vw, 84px); line-height: .98; letter-spacing: -.065em; margin: 18px 0 26px; }
.gradient-text { background: linear-gradient(90deg, #7ac8ff, #138eff 52%, #b76cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-copy p { color: #9db0ca; font-size: 19px; line-height: 1.65; max-width: 650px; }
.login-points { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 720px; }
.login-point { border: 1px solid var(--border); background: rgba(9,20,36,.54); padding: 17px; border-radius: 15px; backdrop-filter: blur(16px); }
.login-point b { display: block; margin-bottom: 7px; font-size: 14px; }
.login-point span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-panel { padding: 40px; display: grid; place-items: center; border-left: 1px solid var(--border); background: rgba(3, 8, 18, .42); backdrop-filter: blur(22px); }
.login-card { width: min(440px, 100%); background: rgba(13,24,42,.88); border: 1px solid var(--border-strong); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field label { color: #c6d4e8; font-size: 12px; font-weight: 700; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--border); background: rgba(5,13,25,.76); color: var(--text); border-radius: 11px; outline: none; padding: 12px 13px; transition: .2s ease; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(21,152,255,.74); box-shadow: 0 0 0 3px rgba(21,152,255,.12); }
.field-hint { color: var(--muted-2); font-size: 11px; line-height: 1.45; }
.login-demo { border: 1px dashed rgba(107, 184, 255, .3); background: rgba(10,117,214,.08); border-radius: 12px; padding: 12px; margin: 18px 0; font-size: 12px; color: #a9c8e8; line-height: 1.6; }

.btn { border: 1px solid var(--border); background: var(--panel-strong); border-radius: 10px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 13px; transition: .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: rgba(132,179,241,.4); background: var(--panel-hover); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { border-color: transparent; background: linear-gradient(135deg, #0474ff, #175eea 58%, #7a25e9); box-shadow: 0 10px 24px rgba(10, 103, 242, .22); }
.btn-primary:hover { background: linear-gradient(135deg, #1688ff, #256cf0 58%, #8c35ef); }
.btn-danger { background: rgba(255,107,122,.1); border-color: rgba(255,107,122,.3); color: #ffacb5; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 11px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; width: 248px; height: 100vh; left: 0; top: 0; border-right: 1px solid var(--border); background: rgba(5,12,23,.84); backdrop-filter: blur(22px); padding: 21px 14px; display: flex; flex-direction: column; z-index: 20; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 3px 9px 23px; }
.sidebar-brand .brand-logo { width: 33px; height: 33px; }
.sidebar-brand strong { font-size: 20px; letter-spacing: -.04em; }
.sidebar-brand span { display: block; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; margin-top: 2px; }
.sidebar-section { margin: 12px 9px 8px; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #526581; }
.nav { display: grid; gap: 4px; }
.nav-link { border: 0; width: 100%; background: transparent; color: #91a3bd; padding: 10px 12px; border-radius: 10px; display: flex; gap: 11px; align-items: center; text-align: left; cursor: pointer; font-weight: 650; font-size: 13px; }
.nav-link:hover { color: #dbe9fb; background: rgba(95,145,207,.08); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(13,122,247,.22), rgba(106,48,231,.13)); box-shadow: inset 3px 0 #168eff; }
.nav-icon { width: 18px; text-align: center; font-size: 15px; opacity: .93; }
.sidebar-spacer { flex: 1; }
.sidebar-card { margin: 13px 7px; padding: 15px; border-radius: 13px; border: 1px solid rgba(49,152,255,.23); background: linear-gradient(145deg, rgba(9,103,220,.13), rgba(99,34,218,.09)); }
.sidebar-card b { font-size: 12px; display: block; margin-bottom: 6px; }
.sidebar-card p { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 0 0 11px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid var(--border); }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #168eff, #8e2ff0); font-weight: 800; font-size: 12px; flex: 0 0 auto; }
.sidebar-user-name { min-width: 0; flex: 1; }
.sidebar-user-name b, .sidebar-user-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.sidebar-user-name b { font-size: 11px; }
.sidebar-user-name span { color: var(--muted-2); font-size: 9px; margin-top: 2px; }

.main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; height: 66px; border-bottom: 1px solid var(--border); background: rgba(6,14,26,.76); backdrop-filter: blur(20px); display: flex; align-items: center; gap: 16px; padding: 0 28px; z-index: 15; }
.mobile-menu { display: none; }
.search { flex: 1; max-width: 620px; position: relative; }
.search input { width: 100%; background: rgba(8,18,32,.8); border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 10px 12px 10px 38px; outline: none; }
.search::before { content: "⌕"; position: absolute; left: 13px; top: 7px; color: var(--muted-2); font-size: 19px; }
.search-shortcut { position: absolute; right: 9px; top: 8px; color: var(--muted-2); border: 1px solid var(--border); padding: 3px 7px; border-radius: 6px; font-size: 9px; }
.topbar-actions { margin-left: auto; display: flex; gap: 9px; align-items: center; }
.content { padding: 30px; max-width: 1540px; margin: 0 auto; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-header h1 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.page-header p { color: var(--muted); margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.page-actions { display: flex; gap: 9px; align-items: center; }

.grid { display: grid; gap: 16px; }
.metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.metric-card { border: 1px solid var(--border); background: linear-gradient(155deg, rgba(17,32,54,.86), rgba(8,18,32,.82)); border-radius: var(--radius); padding: 19px; min-height: 132px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(16,140,255,.2)), transparent 70%); right: -34px; top: -35px; }
.metric-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 700; }
.metric-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: rgba(64,139,232,.1); color: #66baff; }
.metric-value { font-size: 30px; font-weight: 800; letter-spacing: -.045em; margin-top: 19px; }
.metric-foot { color: var(--muted-2); font-size: 10px; margin-top: 6px; }
.metric-foot.good { color: #65e6ad; }
.dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr); align-items: start; }
.card { border: 1px solid var(--border); background: rgba(12,24,42,.78); border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 44px rgba(0,0,0,.12); }
.card-header { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.card-header p { margin: 4px 0 0; font-size: 10px; color: var(--muted); }
.card-body { padding: 18px; }
.card + .card { margin-top: 16px; }
.repo-list { display: grid; }
.repo-row { padding: 15px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: .16s; }
.repo-row:last-child { border-bottom: 0; }
.repo-row:hover { background: rgba(62,123,193,.06); }
.repo-main { min-width: 0; }
.repo-title { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 13px; }
.repo-icon { color: #6ab9ff; }
.repo-org { color: #7f91aa; font-weight: 500; }
.repo-desc { color: var(--muted); font-size: 11px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repo-meta { margin-top: 10px; display: flex; gap: 15px; color: var(--muted-2); font-size: 9px; }
.repo-side { text-align: right; display: grid; align-content: center; gap: 8px; justify-items: end; }
.badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 8px; color: #a7b8ce; font-size: 9px; font-weight: 700; text-transform: capitalize; }
.badge.public { color: #64dbaa; border-color: rgba(61,220,151,.25); background: rgba(61,220,151,.07); }
.badge.private { color: #a8b7ca; }
.badge.internal { color: #a69cff; border-color: rgba(141,115,255,.26); }
.badge.open { color: #65e6ad; background: rgba(61,220,151,.08); border-color: rgba(61,220,151,.24); }
.badge.closed { color: #aab5c5; }
.badge.merged { color: #d199ff; background: rgba(167,40,255,.09); border-color: rgba(167,40,255,.3); }
.badge.critical { color: #ff9ea9; border-color: rgba(255,107,122,.34); background: rgba(255,107,122,.1); }
.badge.high { color: #ffbf85; border-color: rgba(255,158,69,.3); background: rgba(255,158,69,.09); }
.badge.medium { color: #f7da82; border-color: rgba(247,201,72,.26); background: rgba(247,201,72,.07); }
.badge.low { color: #8fcfff; border-color: rgba(21,152,255,.25); background: rgba(21,152,255,.07); }

.activity-list { display: grid; gap: 2px; }
.activity-item { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 10px 0; }
.activity-dot { width: 27px; height: 27px; border-radius: 9px; background: rgba(28,128,237,.11); color: #6ab9ff; display: grid; place-items: center; font-size: 11px; }
.activity-copy { color: #c9d5e6; font-size: 10px; line-height: 1.5; }
.activity-copy span { color: var(--muted); }
.activity-time { color: var(--muted-2); font-size: 8px; margin-top: 3px; }
.ai-card { background: linear-gradient(145deg, rgba(13,54,101,.44), rgba(50,20,95,.35)); border-color: rgba(80,139,225,.24); }
.ai-orb { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #118dff, #7e2ee7); font-size: 20px; box-shadow: 0 14px 26px rgba(16,103,231,.22); }
.ai-hero { display: flex; gap: 14px; align-items: center; }
.ai-hero h3 { margin: 0 0 5px; font-size: 15px; }
.ai-hero p { margin: 0; color: #9fb1ca; font-size: 10px; line-height: 1.5; }
.ai-actions { display: grid; gap: 8px; margin-top: 17px; }
.ai-action { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border-radius: 10px; background: rgba(6,14,27,.38); border: 1px solid rgba(139,166,210,.12); font-size: 10px; }
.ai-action span:last-child { color: #65b8ff; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { color: #71839e; text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 11px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: rgba(70,128,194,.06); }
.empty-state { text-align: center; padding: 55px 24px; color: var(--muted); }
.empty-icon { font-size: 34px; opacity: .6; }
.empty-state h3 { color: var(--text); margin: 14px 0 7px; font-size: 16px; }
.empty-state p { margin: 0 auto 18px; max-width: 430px; font-size: 11px; line-height: 1.6; }

.repo-header-card { padding: 20px; margin-bottom: 16px; }
.repo-breadcrumb { color: var(--muted); font-size: 12px; }
.repo-breadcrumb b { color: #dbe9fb; }
.repo-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 12px; }
.repo-heading h1 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.repo-heading p { color: var(--muted); margin: 7px 0 0; font-size: 11px; max-width: 720px; }
.clone-bar { display: flex; gap: 8px; margin-top: 18px; max-width: 720px; }
.clone-bar code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--border); background: #07101d; border-radius: 9px; padding: 10px 12px; color: #aac4e5; font-size: 10px; }
.tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { padding: 12px 13px; color: var(--muted); font-size: 10px; font-weight: 700; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tab.active { color: #fff; border-color: #148dff; }
.repo-toolbar { padding: 13px 15px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--border); }
.repo-toolbar .select { width: auto; min-width: 145px; padding: 8px 10px; font-size: 10px; }
.repo-path { color: var(--muted); font-size: 10px; margin-left: 5px; }
.file-list { display: grid; }
.file-row { display: grid; grid-template-columns: minmax(180px, 1fr) 120px 220px; padding: 11px 15px; border-bottom: 1px solid var(--border); align-items: center; gap: 12px; font-size: 10px; cursor: pointer; }
.file-row:hover { background: rgba(72,133,204,.06); }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8e7f9; }
.file-name span { margin-right: 8px; }
.file-sha, .file-size { color: var(--muted-2); }
.readme { padding: 24px; line-height: 1.7; color: #cbd8e8; font-size: 13px; }
.readme h1, .readme h2, .readme h3 { color: #f0f6ff; letter-spacing: -.03em; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.readme code { background: rgba(113,145,188,.12); padding: 2px 5px; border-radius: 5px; }
.code-view { overflow: auto; max-height: 70vh; background: #040a12; }
.code-view pre { margin: 0; padding: 20px; color: #c8d8ed; font-size: 11px; line-height: 1.65; tab-size: 2; }

.ai-score-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.score-card { display: grid; place-items: center; text-align: center; padding: 28px; }
.score-ring { --score: 0; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#168eff calc(var(--score) * 1%), rgba(107,137,180,.15) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 11px; background: #0d1a2d; border-radius: 50%; }
.score-number { position: relative; z-index: 1; font-size: 42px; font-weight: 850; letter-spacing: -.055em; }
.score-grade { position: relative; z-index: 1; color: #69bcff; font-size: 10px; font-weight: 800; }
.score-card h3 { margin: 19px 0 7px; font-size: 15px; }
.score-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.analysis-summary { padding: 21px; }
.analysis-summary h2 { margin: 0 0 6px; font-size: 17px; }
.analysis-summary > p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.analysis-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.analysis-mini { border: 1px solid var(--border); border-radius: 11px; padding: 13px; background: rgba(4,11,21,.3); }
.analysis-mini b { display: block; font-size: 18px; }
.analysis-mini span { color: var(--muted); font-size: 9px; }
.findings { display: grid; gap: 9px; }
.finding { border: 1px solid var(--border); border-left-width: 3px; border-radius: 10px; padding: 13px; background: rgba(6,14,26,.35); }
.finding.critical { border-left-color: var(--red); }
.finding.high { border-left-color: var(--orange); }
.finding.medium { border-left-color: var(--yellow); }
.finding.low { border-left-color: var(--blue); }
.finding-top { display: flex; justify-content: space-between; gap: 12px; }
.finding h4 { margin: 0; font-size: 11px; }
.finding p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.language-bars { display: grid; gap: 10px; }
.language-row { display: grid; grid-template-columns: 90px 1fr 42px; gap: 10px; align-items: center; font-size: 10px; }
.bar { height: 7px; border-radius: 999px; background: rgba(108,137,177,.13); overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #148dff, #8d31ee); border-radius: inherit; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 22px; }
.modal { width: min(570px, 100%); max-height: 90vh; overflow-y: auto; border: 1px solid var(--border-strong); background: #0d192b; border-radius: 18px; box-shadow: var(--shadow); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 17px 19px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 9px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--border); background: #07111e; border-radius: 11px; margin-bottom: 19px; }
.segmented button { border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 9px; cursor: pointer; font-weight: 700; font-size: 11px; }
.segmented button.active { background: #162943; color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.toast-root { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 9px; z-index: 200; }
.toast { width: min(380px, calc(100vw - 40px)); border: 1px solid var(--border-strong); background: #122139; border-radius: 12px; padding: 13px 15px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: toast-in .2s ease; }
.toast.error { border-color: rgba(255,107,122,.35); }
.toast.success { border-color: rgba(61,220,151,.3); }
.toast b { display: block; font-size: 11px; margin-bottom: 3px; }
.toast span { color: var(--muted); font-size: 10px; line-height: 1.4; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }
.skeleton { position: relative; overflow: hidden; background: rgba(102,132,175,.08); border-radius: 8px; min-height: 16px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); transform: translateX(-100%); animation: shimmer 1.25s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.muted { color: var(--muted); }
.text-good { color: var(--green); }
.text-danger { color: var(--red); }
.text-link { color: #68baff; cursor: pointer; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-hero { min-height: 54vh; }
  .login-panel { border-left: 0; border-top: 1px solid var(--border); }
  .file-row { grid-template-columns: minmax(180px, 1fr) 100px; }
  .file-row > :last-child { display: none; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .main { grid-column: auto; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .search-shortcut { display: none; }
  .content { padding: 20px 14px 35px; }
  .page-header { flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 112px; padding: 15px; }
  .metric-value { font-size: 25px; margin-top: 13px; }
  .login-hero { padding: 40px 24px; }
  .login-copy { margin-top: 48px; }
  .login-copy h1 { font-size: 47px; }
  .login-points { grid-template-columns: 1fr; }
  .login-panel { padding: 24px; }
  .login-card { padding: 25px; }
  .ai-score-wrap { grid-template-columns: 1fr; }
  .analysis-metrics { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .repo-heading { flex-direction: column; }
  .clone-bar { flex-wrap: wrap; }
  .clone-bar code { flex-basis: 100%; }
  .file-row { grid-template-columns: minmax(0, 1fr) 70px; }
}
