:root { --ink:#161a1d; --muted:#667078; --line:#dfe3e1; --paper:#f6f7f4; --white:#fff; --green:#146c43; --green-2:#1f8a5b; --mint:#dff4e8; --orange:#ef8354; --red:#c43d3d; --shadow:0 18px 55px rgba(22,26,29,.1); }
* { box-sizing:border-box; }
html { min-height:100%; background:var(--paper); }
body { margin:0; color:var(--ink); font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:15px; }
button,input,select,textarea { font:inherit; }
button { color:inherit; }
code,pre { font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace; }
.topbar { height:64px; padding:0 28px; background:rgba(255,255,255,.94); border-bottom:1px solid var(--line); display:flex; align-items:center; gap:28px; position:sticky; top:0; z-index:20; backdrop-filter:blur(12px); }
.brand { border:0; background:none; display:flex; align-items:center; gap:10px; font-size:18px; cursor:pointer; padding:0; }
.brand-mark { width:34px; height:34px; display:grid; place-items:center; color:white; background:var(--green); border-radius:10px 10px 10px 3px; font-weight:700; }
.global-search { display:flex; align-items:center; gap:8px; background:var(--paper); border:1px solid var(--line); border-radius:9px; padding:0 12px; width:min(430px,40vw); }
.global-search input { border:0; outline:0; background:transparent; padding:9px 0; width:100%; }
.top-actions { margin-left:auto; display:flex; gap:10px; align-items:center; }
.top-notifications { position:relative; color:var(--green); font-size:11px; }
.top-notifications b { position:absolute; right:-5px; top:-7px; min-width:17px; height:17px; padding:0 4px; display:grid; place-items:center; border-radius:9px; background:var(--orange); color:white; font-size:10px; }
.button { border:1px solid var(--line); border-radius:8px; padding:10px 15px; font-weight:600; background:var(--white); cursor:pointer; transition:.18s ease; }
.button:hover { transform:translateY(-1px); border-color:#aeb6b2; }
.button.primary { background:var(--green); border-color:var(--green); color:white; box-shadow:0 7px 18px rgba(20,108,67,.18); }
.button.primary:hover { background:#0f5c38; }
.button.ghost { background:white; }
.button.compact { padding:7px 11px; font-size:13px; }
.button.wide { width:100%; padding:12px; }
.oidc-button { display:block; text-align:center; text-decoration:none; }
.button:disabled { opacity:.55; cursor:wait; }
.avatar { width:35px; height:35px; border:0; border-radius:50%; background:var(--mint); color:var(--green); font-weight:700; cursor:pointer; }
.auth-layout { min-height:calc(100vh - 64px); display:grid; grid-template-columns:minmax(0,1.3fr) minmax(360px,.7fr); }
.auth-story { padding:9vh 8vw; background:var(--ink); color:white; position:relative; overflow:hidden; }
.auth-story:after { content:""; position:absolute; width:430px; height:430px; border:90px solid rgba(31,138,91,.14); border-radius:50%; right:-210px; top:-120px; }
.eyebrow { color:var(--green-2); letter-spacing:.12em; font-size:12px; font-weight:700; margin:0 0 14px; }
.auth-story .eyebrow { color:#76d6a4; }
.auth-story h1 { font-size:clamp(52px,7vw,94px); line-height:.92; letter-spacing:-.06em; margin:0 0 28px; max-width:760px; }
.auth-story h1 span { color:#76d6a4; }
.auth-story>p:not(.eyebrow) { color:#b9c2be; font-size:18px; max-width:610px; line-height:1.6; }
.terminal-card { max-width:680px; margin:48px 0 34px; border:1px solid #3a4140; background:#0d1011; border-radius:14px; box-shadow:0 25px 70px #050606; overflow:hidden; }
.terminal-dots { padding:12px 14px; border-bottom:1px solid #292e2d; display:flex; gap:7px; }
.terminal-dots i { width:9px; height:9px; border-radius:50%; background:#3d4543; }
.terminal-card code { display:block; padding:24px; line-height:2; color:#cbd4d0; font-size:13px; }
.terminal-card b { color:#76d6a4; }
.feature-row { display:flex; flex-wrap:wrap; gap:24px; color:#aeb9b4; font-size:13px; }
.auth-card { background:white; padding:10vh clamp(36px,6vw,90px); display:flex; flex-direction:column; justify-content:center; }
.auth-card h2 { font-size:34px; letter-spacing:-.04em; margin:0 0 32px; }
.form-grid { display:grid; gap:17px; }
.form-grid>label>span { display:block; font-weight:600; margin-bottom:7px; font-size:13px; }
input,select,textarea { width:100%; border:1px solid #cfd5d2; border-radius:8px; background:white; padding:11px 12px; outline:none; }
input:focus,select:focus,textarea:focus { border-color:var(--green-2); box-shadow:0 0 0 3px rgba(31,138,91,.11); }
textarea { min-height:130px; resize:vertical; font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace; font-size:13px; }
small { display:block; color:var(--muted); margin-top:5px; }
.form-error { color:var(--red); min-height:18px; margin:0; font-size:13px; }
.auth-switch { color:var(--muted); text-align:center; margin-top:24px; }
.link-button,.back-link { border:0; background:transparent; color:var(--green); cursor:pointer; font-weight:600; padding:0; }
.dashboard-shell { min-height:calc(100vh - 64px); display:grid; grid-template-columns:270px 1fr; }
.sidebar { padding:34px 22px; border-right:1px solid var(--line); background:#eef0ec; display:flex; flex-direction:column; }
.profile-block { display:flex; gap:12px; align-items:center; padding:0 8px 28px; }
.profile-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--green); font-weight:700; }
.profile-block strong,.profile-block span { display:block; }
.profile-block span { color:var(--muted); font-size:13px; }
.side-link { display:block; width:100%; text-align:left; padding:10px 12px; border:0; background:transparent; border-radius:8px; cursor:pointer; }
.side-link.active { background:white; font-weight:600; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.sidebar-tip { margin-top:auto; padding:18px; border-radius:12px; background:var(--ink); color:white; }
.sidebar-tip p { color:#aeb9b4; line-height:1.45; font-size:13px; margin-bottom:0; }
.dashboard-content { padding:48px clamp(30px,6vw,90px); max-width:1500px; width:100%; }
.section-head,.panel-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:30px; }
.section-head h1 { font-size:42px; letter-spacing:-.045em; margin:0; }
.section-head p,.panel-heading p { color:var(--muted); margin:6px 0 0; }
.repo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:18px; }
.org-strip { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:-10px 0 24px; color:var(--muted); font-size:13px; }
.org-strip strong { padding:7px 11px; border:1px solid var(--line); border-radius:999px; background:white; color:var(--ink); }
.repo-card { text-align:left; border:1px solid var(--line); background:white; border-radius:13px; padding:22px; cursor:pointer; min-height:210px; display:flex; flex-direction:column; transition:.18s ease; }
.repo-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:#bdc7c2; }
.repo-card-head { display:flex; justify-content:space-between; }
.repo-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:9px; background:var(--mint); color:var(--green); font-size:18px; }
.pill { border:1px solid var(--line); border-radius:999px; padding:3px 8px; font-size:11px; color:var(--muted); font-style:normal; }
.repo-card h3 { font-weight:400; margin:18px 0 8px; }
.repo-card p { color:var(--muted); margin:0; line-height:1.45; }
.repo-meta { margin-top:auto; display:flex; justify-content:space-between; color:var(--muted); font-size:12px; }
.status-dot { display:inline-block; width:8px; height:8px; margin-right:6px; background:var(--green-2); border-radius:50%; }
.empty-state { text-align:center; border:1px dashed #c7ceca; border-radius:14px; padding:70px 30px; color:var(--muted); }
.empty-state h2 { color:var(--ink); margin-bottom:8px; }
.empty-state .button { margin-top:18px; }
.empty-state.small { padding:42px 20px; border:0; }
.empty-icon { font-size:42px; color:var(--green); }
.repo-mast { padding:34px clamp(24px,5vw,76px) 26px; background:white; }
.repo-title-row { display:flex; justify-content:space-between; gap:30px; align-items:flex-end; margin-top:20px; }
.repo-title-row h1 { margin:0; font-size:28px; letter-spacing:-.03em; }
.repo-title-row h1 span { color:var(--green); font-weight:500; }
.repo-title-row h1 em { font-size:11px; font-weight:500; letter-spacing:0; border:1px solid var(--line); border-radius:999px; padding:3px 8px; color:var(--muted); vertical-align:middle; }
.repo-title-row p { color:var(--muted); margin:7px 0 0; }
.repo-actions { display:flex; gap:8px; }
.tabs { display:flex; padding:0 clamp(24px,5vw,76px); background:white; border-bottom:1px solid var(--line); gap:22px; }
.tab { border:0; border-bottom:3px solid transparent; background:transparent; padding:14px 2px 11px; cursor:pointer; color:var(--muted); }
.tab.active { border-color:var(--orange); color:var(--ink); font-weight:600; }
.repo-content { padding:32px clamp(24px,5vw,76px) 70px; max-width:1500px; margin:auto; }
.code-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.code-toolbar select { width:auto; min-width:170px; }
.code-toolbar>span { color:var(--muted); font-size:13px; }
.spacer { flex:1; }
.file-panel,.work-list,.api-list,.file-preview { border:1px solid var(--line); border-radius:11px; overflow:hidden; background:white; }
.latest-commit { background:#eff7f2; border-bottom:1px solid var(--line); padding:12px 16px; display:flex; align-items:center; gap:10px; font-size:13px; }
.latest-commit>span:nth-of-type(2) { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.latest-commit code { margin-left:auto; color:var(--green); }
.latest-commit time { color:var(--muted); }
.commit-avatar { width:25px; height:25px; display:grid; place-items:center; background:var(--green); color:white; border-radius:50%; text-transform:uppercase; }
.file-row { width:100%; display:grid; grid-template-columns:26px 1fr auto; gap:10px; text-align:left; padding:12px 16px; border:0; border-bottom:1px solid var(--line); background:white; cursor:pointer; }
.file-row:last-child { border-bottom:0; }
.file-row:hover { background:#fafbf9; }
.file-row span:last-child { color:var(--muted); font-size:12px; }
.file-symbol { color:var(--green); }
.file-preview { margin-top:20px; }
.file-preview>div { padding:10px 14px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.file-preview pre { margin:0; padding:20px; overflow:auto; max-height:520px; line-height:1.55; font-size:13px; background:#fbfcfa; }
.panel-heading h2 { font-size:26px; margin:0; }
.timeline { border-left:2px solid #cfd8d3; margin-left:12px; }
.timeline article { display:grid; grid-template-columns:1fr auto; gap:20px; position:relative; margin:0 0 18px 24px; padding:18px; background:white; border:1px solid var(--line); border-radius:10px; }
.timeline-node { position:absolute; width:12px; height:12px; background:var(--green); border:3px solid var(--paper); border-radius:50%; left:-31px; top:23px; }
.timeline p { color:var(--muted); margin:5px 0 0; font-size:13px; }
.timeline code { color:var(--green); }
.work-list article { display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:10px; padding:16px; border-bottom:1px solid var(--line); }
.work-list article:last-child { border-bottom:0; }
.work-list p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.work-link { border:0; background:transparent; padding:0; cursor:pointer; font-weight:700; text-align:left; }
.work-link:hover { color:var(--green); text-decoration:underline; }
.work-status { color:var(--green-2); font-size:18px; }
.work-status.closed { color:var(--muted); }
.work-status.merged { color:#8250df; }
.api-list article { display:grid; grid-template-columns:105px minmax(260px,1fr) 1fr; gap:16px; padding:14px 16px; border-bottom:1px solid var(--line); align-items:center; }
.api-list article:last-child { border-bottom:0; }
.api-list .method { color:var(--green); font-weight:600; }
.api-list span { color:var(--muted); }
.pull-detail-head { margin-top:24px; }
.review-grid { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:22px; align-items:start; }
.review-grid h3 { margin:0 0 12px; }
.review-grid aside { border:1px solid var(--line); border-radius:11px; background:white; padding:18px; }
.review-grid aside h3:not(:first-child) { margin-top:24px; }
.diff-view { margin:0; padding:18px; min-height:250px; max-height:650px; overflow:auto; border:1px solid #26312c; border-radius:11px; background:#111614; color:#d4ddd8; line-height:1.55; font-size:12px; white-space:pre-wrap; }
.review-note { padding:10px 0; border-bottom:1px solid var(--line); }
.review-note strong,.review-note span { display:block; }
.review-note span,.muted { color:var(--muted); font-size:12px; }
.review-note p { margin:6px 0 0; }
.release-list,.wiki-grid,.project-grid { display:grid; gap:16px; }
.release-list>article,.wiki-grid>article,.project-board { border:1px solid var(--line); border-radius:11px; background:white; padding:20px; }
.release-list>article { display:grid; grid-template-columns:110px 1fr; gap:20px; }
.release-list h3,.wiki-grid h3,.project-title h3 { margin:0 0 6px; }
.release-list p,.project-title p { color:var(--muted); margin:0 0 10px; }
.release-tag { font-family:"SFMono-Regular",Consolas,monospace; color:var(--green); font-weight:700; }
.wiki-grid { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.wiki-grid pre { white-space:pre-wrap; line-height:1.55; color:#38413d; font-family:inherit; max-height:280px; overflow:auto; }
.project-title { display:flex; justify-content:space-between; gap:20px; }
.board-columns { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }
.board-columns section { min-height:120px; padding:12px; border-radius:9px; background:var(--paper); }
.board-columns section>strong { color:var(--muted); text-transform:uppercase; font-size:10px; letter-spacing:.08em; }
.board-card { margin-top:9px; padding:10px; border:1px solid var(--line); border-radius:7px; background:white; font-size:13px; }
.security-summary { display:flex; align-items:baseline; gap:9px; margin-bottom:18px; }
.security-summary strong { font-size:38px; color:var(--green); }
.security-summary span { color:var(--muted); }
.severity { border-radius:5px; padding:4px 6px; text-transform:uppercase; font-size:9px; font-weight:700; text-align:center; }
.severity.critical { background:#fee2e2; color:#991b1b; }
.run-status { color:#d29b21; }
.run-status.success { color:var(--green); }
.run-status.failed { color:var(--red); }
.run-status.waiting { color:#8250df; }
.run-status.cancelled,.run-status.skipped { color:var(--muted); }
.run-output { margin:10px 0 0; padding:12px; max-height:280px; overflow:auto; border-radius:7px; background:#111614; color:#d4ddd8; white-space:pre-wrap; font-size:11px; }
.ci-overview { display:flex; flex-wrap:wrap; gap:10px; margin:-12px 0 28px; }
.ci-overview span { padding:7px 11px; border:1px solid var(--line); border-radius:999px; background:white; color:var(--muted); font-size:12px; }
.subheading { margin:26px 0 12px; }
.workflow-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }
.workflow-card { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:18px; border:1px solid var(--line); border-radius:11px; background:white; }
.workflow-card.invalid { border-color:#efb5b5; background:#fff8f8; }
.workflow-card h3,.workflow-card p { margin:0; }
.workflow-card p:not(.eyebrow) { margin-top:6px; color:var(--muted); font-size:12px; }
.run-list { display:grid; gap:12px; }
.run-card { padding:18px; border:1px solid var(--line); border-radius:11px; background:white; }
.run-summary { display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:10px; }
.run-summary p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.job-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:10px; margin-top:14px; }
.job-grid section { padding:12px; border-radius:8px; background:var(--paper); }
.job-grid section>.pill { float:right; }
.job-grid details { margin-top:9px; }
.job-grid summary { cursor:pointer; font-size:12px; color:var(--muted); }
.run-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-top:12px; }
.check-result { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.package-icon { color:var(--green); font-size:20px; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.settings-card { border:1px solid var(--line); border-radius:11px; background:white; padding:20px; }
.settings-card h2 { margin:0 0 6px; }
.settings-card>p { color:var(--muted); margin:0 0 18px; }
.setting-row { display:flex; justify-content:space-between; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); font-size:12px; }
.setting-row strong { overflow:hidden; text-overflow:ellipsis; }
.setting-row span { color:var(--muted); text-align:right; }
.audit-card { grid-column:1/-1; }
dialog { width:min(560px,calc(100vw - 32px)); border:0; border-radius:14px; padding:0; box-shadow:0 30px 100px rgba(0,0,0,.25); }
dialog::backdrop { background:rgba(15,20,18,.55); backdrop-filter:blur(3px); }
#modal-form { padding:26px; }
.modal-head,.modal-actions { display:flex; justify-content:space-between; align-items:flex-start; }
.modal-head h2 { margin:0 0 24px; font-size:26px; }
.icon-button { border:0; background:var(--paper); border-radius:50%; width:32px; height:32px; cursor:pointer; font-size:20px; }
.modal-actions { justify-content:flex-end; gap:10px; margin-top:24px; }
.check-row { display:flex; align-items:center; gap:10px; background:var(--paper); padding:12px; border-radius:8px; }
.check-row input { width:auto; }
.toast { position:fixed; z-index:100; bottom:25px; right:25px; background:var(--ink); color:white; padding:12px 17px; border-radius:9px; opacity:0; transform:translateY(10px); pointer-events:none; transition:.2s; box-shadow:var(--shadow); }
.toast.show { opacity:1; transform:none; }
.toast.error { background:var(--red); }
.loading,.fatal { padding:80px; text-align:center; color:var(--muted); }

@media (max-width:900px) {
  .auth-layout { grid-template-columns:1fr; }
  .auth-story { padding:60px 28px; }
  .auth-story h1 { font-size:58px; }
  .auth-card { padding:60px 28px; }
  .dashboard-shell { grid-template-columns:1fr; }
  .sidebar { display:none; }
  .global-search { width:auto; flex:1; }
  .repo-title-row { align-items:flex-start; flex-direction:column; }
  .tabs { overflow:auto; }
  .api-list article { grid-template-columns:90px 1fr; }
  .api-list span { grid-column:2; }
  .review-grid,.settings-grid { grid-template-columns:1fr; }
  .audit-card { grid-column:auto; }
}
@media (max-width:600px) {
  .topbar { padding:0 14px; gap:12px; }
  .brand strong { display:none; }
  .global-search { display:none; }
  .dashboard-content,.repo-content { padding-left:16px; padding-right:16px; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .repo-grid { grid-template-columns:1fr; }
  .code-toolbar { flex-wrap:wrap; }
  .spacer { display:none; }
  .latest-commit span:nth-of-type(2),.latest-commit time { display:none; }
  .repo-actions { flex-wrap:wrap; }
  .board-columns { grid-template-columns:1fr; }
  .release-list>article { grid-template-columns:1fr; }
}
