.ci-heading { margin-bottom:22px; flex-wrap:wrap }
.ci-heading .action-row { justify-content:flex-start }
.ci-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px }
.ci-editor .field,.ci-editor .field input,.ci-editor .field select { min-width:0 }
.ci-editor textarea,.ci-credential textarea { width:100%; min-height:92px; padding:11px; background:#f7faf8; color:var(--ink); border:1px solid #b9c9c1; border-radius:7px; resize:vertical; font:14px/1.55 Consolas,"Microsoft YaHei",monospace }
.ci-editor .field + .hint,.ci-editor .ci-pair + .hint { margin-top:-12px }
.ci-editor .action-row { position:sticky; bottom:0; background:white; padding-block:12px; border-top:1px solid var(--line) }
.ci-editor input,.ci-editor textarea,.ci-editor select { scroll-margin-block:68px }
.ci-archive { margin-right:auto; color:#9b3732 }
dialog.wide:has(.ci-editor,.ci-vault) { max-width:760px }
.ci-credential textarea { -webkit-text-security:disc }
.ci-key,.ci-bindings { border-top:1px solid var(--line); padding-top:13px; overflow-wrap:anywhere }
.ci-key .action-row { flex:none }
.ci-key [data-delete] { color:#9b3732 }
.ci-vault,.ci-bindings,.ci-directories { grid-template-columns:minmax(0,1fr) }
.ci-bindings,.ci-checks { display:grid; gap:9px }
.ci-bindings .link-btn { white-space:nowrap }
.ci-binding { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:end; margin-top:8px }
.ci-binding .link-btn { min-height:41px }
.ci-checks { margin-top:7px; color:var(--muted); font-size:13px }
.ci-dir-result { display:flex; gap:9px; align-items:baseline; overflow-wrap:anywhere }
.ci-dir-result b { color:var(--ink) }
.ci-dir-result .mono { font-size:13px; margin-block:2px }
#ci-dir-check { margin-right:auto }
.ci-projects nav button,.ci-overview h2 { overflow-wrap:anywhere; min-width:0 }
.ci-overview .ci-line { flex-wrap:wrap }
.ci-overview .ci-edit { color:#fff; background:transparent; border-color:#ffffff66 }
.ci-overview .ci-edit:hover:enabled { background:#ffffff16 }
#ci-error { margin-bottom:16px }
.ci-layout { display:grid; grid-template-columns:minmax(178px, .27fr) minmax(0, 1fr); gap:18px; align-items:start }
.ci-projects,.ci-section { padding:20px; background:white; border:1px solid var(--line); border-radius:var(--radius) }
.ci-projects { padding:17px 12px }
.ci-projects h2 { font-size:13px; color:var(--muted); letter-spacing:0; margin:0 8px 9px }
.ci-runner-title h2 { margin-bottom:0 }
.ci-projects nav { display:grid; gap:4px; border-bottom:1px solid var(--line); padding-bottom:15px; margin-bottom:17px }
.ci-projects nav button { border:1px solid transparent; border-radius:7px; text-align:left; background:none; color:var(--ink); padding:9px 10px }
.ci-projects nav button:hover { background:var(--page) }
.ci-projects nav button[aria-current] { border-color:#bad8c9; background:var(--light); color:var(--deep) }
.ci-projects small,.ci-table small { display:block; margin-top:2px; font-size:12px; color:var(--muted) }
.ci-runners,.ci-events { padding:0; margin:0; list-style:none }
.ci-line { display:flex; align-items:center; justify-content:space-between; gap:12px }
.ci-runners li { padding:6px 8px; font-size:13px; overflow-wrap:anywhere }
.ci-notice { padding:12px 16px; border:1px solid #eed59c; border-radius:var(--radius); background:#fff7e5; color:#774708; font-size:14px; overflow-wrap:anywhere }
.ci-notice p { margin-top:3px; font-size:13px }
.ci-environment { margin-top:15px; border-top:1px solid var(--line); padding-top:12px; font-size:13px; overflow-wrap:anywhere }
.ci-environment summary { cursor:pointer }
.ci-environment summary .badge { margin-inline:5px }
.ci-environment small,.ci-environment ul { color:var(--muted) }
.ci-environment ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr)); gap:8px 14px; padding:0; list-style:none; margin:12px 0 0 }
.ci-environment li { display:flex; align-items:baseline; gap:7px }
.ci-environment b { color:var(--ink); font-weight:600 }
.ci-main { display:grid; min-width:0; gap:13px }
.ci-overview { padding:20px 22px; border-radius:var(--radius); background:var(--deep); color:white }
.ci-overview h2 { font-size:clamp(25px,3vw,34px) }
.ci-overview p,.ci-overview dt { color:#c6e0d2; font-size:13px }
.ci-overview p { margin-top:4px }
.ci-overview button { background:#e4f4e8; color:var(--deep); border:1px solid #e4f4e8 }
.ci-facts { margin:15px 0 0; padding-top:13px; border-top:1px solid #ffffff36; display:grid; grid-template-columns:1fr 1fr; gap:8px 20px }
.ci-facts dd { margin:1px 0 0; font-size:14px; overflow-wrap:anywhere }
.ci-section h3 { font-size:17px }
.ci-watch { display:flex; align-items:center; gap:5px; font-size:13px; color:var(--muted); cursor:pointer }
.ci-watch input { accent-color:var(--green); width:16px; height:16px }
.ci-poll { margin-top:12px }
.ci-poll + .error { margin-top:6px }
.ci-stages { counter-reset:stage; list-style:none; padding:0; margin:15px 0 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(138px,100%),1fr)); gap:12px }
.ci-stages li { counter-increment:stage; display:flex; align-items:baseline; gap:7px; font-size:13px }
.ci-stages li::before { content:counter(stage); flex:none; display:grid; place-items:center; width:19px; height:19px; border-radius:50%; background:var(--light); color:var(--green); font:600 11px/1 monospace }
.ci-artifacts { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin-top:13px }
.ci-artifacts label { min-width:0; flex:1 1 210px }
.ci-artifacts a { text-decoration:none }
.ci-scroll { overflow:auto }
.ci-table { width:100%; margin-top:9px; border-collapse:collapse; font-size:13px }
.ci-table th,.ci-table td { white-space:nowrap; text-align:left; padding:8px 8px 8px 0; border-bottom:1px solid var(--line) }
.ci-table th { font-size:12px; font-weight:500; color:var(--muted) }
.ci-table td:last-child { text-align:right }
.ci-table tr:last-child td { border:0 }
.ci-empty { margin-top:12px; color:var(--muted); font-size:14px }
.ci-events { display:grid; gap:10px }
.ci-events li { padding-left:12px; border-left:2px solid #b7d7c5; font-size:14px; overflow-wrap:anywhere }
.ci-events time { font-size:12px; color:var(--muted) }
.ci-events p { white-space:pre-wrap }
@media(max-width:760px) {
  .ci-layout { grid-template-columns:minmax(0,1fr) }
  .ci-projects nav { grid-template-columns:repeat(auto-fit,minmax(95px,1fr)); padding-bottom:10px; margin-bottom:10px }
  .ci-runners { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr)); gap:5px 12px }
  .ci-projects nav small { display:none }
}
@media(max-width:490px) {
  .ci-pair { grid-template-columns:1fr }
  .ci-binding { grid-template-columns:minmax(0,1fr) auto; gap:7px }
  .ci-binding .field:first-child { grid-column:1/-1 }
  .ci-key { flex-wrap:wrap }
  .ci-heading .action-row { gap:6px }
  .ci-section,.ci-overview { padding:15px }
  .ci-facts { grid-template-columns:1fr }
  .ci-heading { gap:6px }
  .ci-environment small { display:block; margin-top:5px }
}
.ci-details { grid-template-columns:minmax(0,1fr) }
.ci-tabs { justify-self:start }
.ci-tabs button[aria-selected=true] { color:var(--ink); background:white; font-weight:650; box-shadow:0 1px 4px #16362921 }
.ci-output { max-height:49vh; overflow:auto; margin:0 0 10px; padding:14px; white-space:pre-wrap; background:#122c26; color:#e3f5eb; border-radius:8px; tab-size:4 }
#ci-logs .hint { overflow-wrap:anywhere }
