* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, sans-serif; background: #0f1419; color: #e7ecf3; }
a { color: #6cb6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.sidebar { width: 220px; background: #161b22; min-height: 100vh; padding: 20px; display: flex; flex-direction: column; position: fixed; }
.brand { font-weight: 700; font-size: 1.2rem; margin-bottom: 24px; color: #fff; }
.sidebar nav { display: flex; flex-direction: column; gap: 8px; }
.sidebar nav a { padding: 10px 12px; border-radius: 8px; color: #c9d1d9; }
.sidebar nav a.active, .sidebar nav a:hover { background: #21262d; color: #fff; text-decoration: none; }
.content { margin-left: 220px; padding: 32px; max-width: 1100px; }
h1 { margin-top: 0; font-size: 1.75rem; }
h2 { font-size: 1.1rem; margin-top: 0; }
.card { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .grid.two { grid-template-columns: 1fr; } .sidebar { position: static; width: 100%; min-height: auto; } .content { margin-left: 0; } }
.stat .num { font-size: 2rem; font-weight: 700; }
.stat .label { color: #8b949e; }
.btn.small { padding: 6px 12px; font-size: 0.85rem; }
.actions { white-space: nowrap; }
.actions a, .actions-row a { margin-right: 8px; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.detail-header h2 { margin: 0; }
.detail-table { width: 100%; margin: 16px 0; }
.detail-table th { width: 180px; color: #8b949e; font-weight: 500; }
.actions-row { margin: 16px 0; }
.project-form { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #30363d; }
.project-form:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
code { background: #0d1117; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }
table a { font-weight: 500; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #30363d; }
.btn { border: none; border-radius: 8px; padding: 10px 16px; cursor: pointer; font-weight: 600; }
.btn.primary { background: #238636; color: #fff; }
.btn.primary:hover { background: #2ea043; }
.btn.ghost { background: transparent; color: #8b949e; border: 1px solid #30363d; }
.form-grid { display: grid; gap: 12px; max-width: 480px; }
label { display: grid; gap: 6px; color: #8b949e; font-size: 0.9rem; }
input, select { padding: 10px; border-radius: 8px; border: 1px solid #30363d; background: #0d1117; color: #e7ecf3; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; text-transform: uppercase; }
.badge.success { background: #23863633; color: #3fb950; }
.badge.failed { background: #da363333; color: #f85149; }
.badge.running { background: #d2992233; color: #d29922; }
.btn.danger { background: #da3633; color: #fff; }
.btn.danger:hover { background: #f85149; }
.btn.small.danger { background: #da363333; color: #f85149; border: 1px solid #da363366; }
.btn.small.danger:hover { background: #da363355; }
.danger-zone { border-color: #da363366; }
.hint { color: #8b949e; margin: 0 0 16px; font-size: 0.95rem; }
.error-text { color: #f85149; font-size: 0.85rem; }
.log-view { background: #0d1117; padding: 16px; border-radius: 8px; overflow: auto; max-height: 70vh; font-size: 0.85rem; white-space: pre-wrap; word-break: break-word; }
.login-page { min-height: 100vh; display: grid; place-items: center; }
.login-card { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 32px; width: min(400px, 90vw); display: grid; gap: 16px; }
.alert.error { background: #da363333; color: #f85149; padding: 10px; border-radius: 8px; }
