/* Fière Allure: https://fiere-allure.com/a-propos/ - locally served Overpass. */
.pbrd-intro { align-items: flex-start; }
.pbrd-intro h2 { margin: 12px 0; font-size: 30px; }
.pbrd-intro p { max-width: 840px; }
.pbrd-step { margin-top: 20px; }
.pbrd-step h2, #pbrd-config-form h2 { display: flex; gap: 12px; align-items: center; }
.pbrd-number { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--teal); color: var(--teal); border-radius: 50%; min-width: 30px; height: 30px; font-size: 15px; flex-shrink: 0; }
.pbrd-plan, .pbrd-retirement { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pbrd-plan code, .pbrd-artifact code { overflow-wrap: anywhere; word-break: break-word; }
.pbrd-artifact { font-size: 13px; color: var(--muted); line-height: 1.65; }
.pbrd-conflicts { width: 100%; text-align: left; border-collapse: collapse; }
.pbrd-conflicts th, .pbrd-conflicts td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pbrd-conflicts td { min-width: 180px; }
.pbrd-conflicts td:nth-child(2) { overflow-wrap: anywhere; max-width: 320px; }
.pbrd-conflicts small { display: block; color: var(--muted); margin-top: 8px; }
.pbrd-conflicts select { width: 100%; min-width: 210px; }
.pbrd-guide { padding-left: 22px; line-height: 1.7; }
.pbrd-guide li + li { margin-top: 10px; }
#pbrd-content .form-actions { flex-wrap: wrap; }
#pbrd-content details > summary { cursor: pointer; }
#pbrd-content .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 700px) { .pbrd-intro { flex-direction: column; } .pbrd-step .split-title { align-items: flex-start; gap: 14px; } }
@font-face {
  font-family: Overpass;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/overpass-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Overpass;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/overpass-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  font-family: Overpass, sans-serif;
  font-synthesis: none;
  color-scheme: dark;
  color: #fff;
  background: #04052e;
  --navy: #04052e;
  --teal: #37ef9f;
  --muted: #b4b4c0;
  --line: #2d2e51;
  --white: #fff;
  --surface: #10113b;
  --raised: #191b45;
  --quiet: #9696ad;
  --green-wash: #102d3d;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--teal); }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--teal); color: var(--navy); }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 900; }
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--white);
  text-decoration: none !important;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}
.brand-sub { display: block; font-size: 9px; letter-spacing: 1.8px; font-weight: 500; color: var(--muted); margin-top: 8px; }
.source-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.source-choice { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.source-choice:has(input:checked) { border-color: var(--teal); background: var(--green-wash); }
.source-choice input[type=radio] { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--teal); }
.source-choice strong { display: block; }
.source-choice small { display: block; color: var(--muted); margin-top: 6px; font-weight: 400; }
.source-choice:has(input:disabled) { opacity: .6; }
@media (max-width: 700px) { .source-choices { grid-template-columns: 1fr; } }
.brand > span:last-child { white-space: nowrap; }
.brand-mark { display: grid; grid-template-columns: repeat(2,12px); gap: 4px; flex-shrink: 0; }
.brand-mark i { width: 12px; height: 12px; background: var(--teal); }
.brand-mark i:nth-child(2) { background: transparent; border: 1px solid var(--teal); }
.brand-mark i:nth-child(3) { background: transparent; border: 1px solid var(--teal); }
.brand-signature { font-weight: 800; letter-spacing: -.3px; color: var(--teal); }
.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--teal);
}
.eyebrow::before, .section-label::before { content: ''; width: 32px; height: 2px; background: var(--teal); flex-shrink: 0; }
.login-layout { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr .9fr; border-top: 3px solid var(--teal); }
.login-intro { padding: 56px clamp(36px,6vw,100px); color: var(--white); display: flex; flex-direction: column; align-items: flex-start; }
.login-intro .brand { margin-bottom: clamp(70px,10vh,130px); }
.login-intro h1 { font-size: clamp(44px,4.8vw,76px); line-height: 1.03; letter-spacing: -2.8px; margin: 28px 0 22px; font-weight: 900; }
.login-intro h1 em { color: var(--teal); font-style: normal; }
.login-intro p { max-width: 410px; line-height: 1.8; color: var(--muted); font-size: 16px; margin: 0; }
.login-process { display: flex; gap: 40px; margin-top: 46px; border-top: 1px solid var(--line); padding-top: 25px; color: var(--teal); font-size: 12px; }
.login-process b { display: block; color: var(--white); margin-top: 9px; font-size: 14px; font-weight: 500; }
.login-intro small { margin-top: auto; padding-top: 70px; font-size: 12px; color: var(--quiet); }
.login-intro small .brand-signature { display: block; color: var(--white); margin-top: 10px; font-size: 17px; }
.login-panel { display: grid; place-items: center; padding: 50px; background: var(--surface); border-left: 1px solid var(--line); position: relative; }
.login-panel::before { content: ''; position: absolute; top: 50px; right: 50px; width: 42px; height: 42px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); }
.login-box { width: 100%; max-width: 370px; }
.login-box h2 { font-size: 38px; line-height: 1.1; letter-spacing: -1.2px; margin: 25px 0 16px; }
.login-box > p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 34px; }
.login-note { font-size: 12px !important; text-align: center; margin-top: 26px; }
.login-box label { margin-bottom: 22px; }
.login-box input { padding: 13px; }
.login-box .button { padding: 15px 18px; justify-content: space-between; margin-top: 7px; }
.form-error { font-size: 13px; color: #ff9aa6; line-height: 1.5; }
.app-layout { min-height: 100dvh; display: grid; grid-template-columns: 244px 1fr; }
.sidebar { background: var(--navy); color: var(--muted); position: sticky; top: 0; height: 100dvh; padding: 35px 20px 25px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.sidebar .brand { padding: 0 10px 49px; font-size: 24px; gap: 10px; }
.workspace-label { padding: 0 14px; font-size: 10px; font-weight: 500; letter-spacing: 1.5px; color: var(--quiet); margin: 0 0 14px; }
.projects-label { margin-top: 36px; }
.nav-item { border: 1px solid transparent; background: transparent; border-radius: 2px; color: var(--muted); display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; text-align: left; font-size: 13px; }
.nav-item:hover { color: var(--white); background: var(--surface); }
.nav-item.active { background: var(--green-wash); color: var(--teal); border-color: #245346; }
.nav-item > span:first-child { font-size: 20px; }
.nav-count { font-size: 11px !important; margin-left: auto; background: #37ef9f14; padding: 3px 7px; border-radius: 2px; }
.project-nav-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; text-align: left; border: 0; color: var(--muted); background: none; font-size: 13px; line-height: 1.6; }
.project-nav-button:hover, .project-nav-button.selected { color: var(--white); }
.tiny-project { width: 6px; height: 6px; border: 1px solid var(--teal); flex-shrink: 0; }
.project-nav-button.selected .tiny-project { background: var(--teal); }
.sidebar-bottom { border-top: 1px solid var(--line); padding: 22px 8px 0; margin-top: auto; display: flex; gap: 10px; font-size: 12px; line-height: 1.6; }
.sidebar-bottom small { display: block; font-size: 10px; color: var(--quiet); }
.engine-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-top: 5px; flex-shrink: 0; }
.main-shell { min-width: 0; display: flex; flex-direction: column; border-top: 3px solid var(--teal); }
.topbar { min-height: 77px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; font-size: 12px; color: var(--muted); }
.topbar #breadcrumb span { padding: 0 12px; color: #73738d; }
.account-actions { display: flex; gap: 20px; align-items: center; }
.local-badge { border: 1px solid var(--line); padding: 6px 9px; font-size: 10px; color: var(--muted); }
.account-button { border: 0; background: none; display: flex; gap: 9px; align-items: center; color: var(--white); font-size: 12px; }
.avatar { background: var(--raised); color: var(--teal); display: grid; place-items: center; border: 1px solid var(--line); width: 30px; height: 30px; border-radius: 50%; font-size: 12px; }
.icon-button { border: 0; background: none; font-size: 23px; color: var(--muted); }
.icon-button:hover { color: var(--teal); }
#content { padding: 44px 40px; flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 40px; color: var(--quiet); font-size: 11px; border-top: 1px solid var(--line); }
.page-heading { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 34px; }
.page-heading h1 { font-size: clamp(32px,3.2vw,48px); line-height: 1.1; letter-spacing: -1.5px; font-weight: 900; margin: 0 0 14px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.page-heading > .button { margin-top: 4px; }
.button { border: 1px solid var(--teal); background: transparent; border-radius: 2px; padding: 11px 16px; color: var(--teal); font-size: 13px; font-weight: 600; display: inline-flex; gap: 12px; align-items: center; justify-content: center; text-decoration: none !important; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.button:hover { background: var(--green-wash); }
.button.primary { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.button.primary:hover { background: #82f7c5; border-color: #82f7c5; }
.button.small { font-size: 12px; padding: 9px 12px; }
.button.danger { color: #ff9aa6; border-color: #a24c66; }
.button.danger:hover { background: #38203e; }
.full { width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 0 0 38px; }
.stat-card { border: 1px solid var(--line); border-radius: 3px; padding: 24px; background: var(--surface); display: flex; align-items: center; gap: 18px; }
.stat-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--green-wash); color: var(--teal); border-radius: 2px; font-size: 23px; flex-shrink: 0; }
.stat-card:nth-child(2) .stat-icon { color: #a5b4ff; background: #232351; }
.stat-card:nth-child(3) .stat-icon { color: #d3abff; background: #2c2248; }
.stat-number { font-size: 34px; line-height: 1.1; font-weight: 900; letter-spacing: -1px; }
.stat-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 30px 0 20px; }
.section-heading h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.section-heading h2::before { content: ''; width: 24px; height: 2px; background: var(--teal); }
.subtle { font-size: 12px; color: var(--quiet); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(295px,1fr)); gap: 20px; }
.project-card { border: 1px solid var(--line); border-radius: 3px; background: var(--surface); overflow: hidden; transition: border-color .18s, transform .18s; }
.project-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.project-card-body { padding: 26px; }
.card-header { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 23px; }
.project-initial { background: var(--green-wash); color: var(--teal); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 2px; font-size: 20px; font-weight: 800; }
.project-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; letter-spacing: -.4px; font-weight: 800; }
.project-card .repo-name { font-size: 12px; color: var(--muted); display: block; margin-bottom: 24px; overflow-wrap: anywhere; }
.card-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.branch { font-family: ui-monospace,monospace; font-size: 11px; border: 1px solid var(--line); padding: 3px 7px; border-radius: 2px; background: var(--navy); color: var(--muted); }
.card-footer { padding: 16px 26px; background: #0c0d35; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--quiet); }
.text-button { border: 0; border-bottom: 1px solid var(--teal); padding: 4px 0; background: transparent; color: var(--teal); font-size: 12px; font-weight: 600; }
.text-button:hover { color: var(--white); }
.chip { border-radius: 3px; background: #262747; color: var(--muted); font-size: 11px; font-weight: 500; padding: 5px 9px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip.green { background: var(--green-wash); color: #70f0b8; }
.chip.amber { background: #352c37; color: #ffcf84; }
.chip.blue { background: #232351; color: #b4c2ff; }
.chip.red { background: #38203e; color: #ff9aa6; }
.chip-dot { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.surface { padding: 28px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.surface h2 { font-size: 21px; line-height: 1.25; margin: 0 0 12px; font-weight: 800; letter-spacing: -.4px; }
.surface > p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.surface + .surface { margin-top: 20px; }
.empty-state { padding: 55px 30px; text-align: center; background: var(--surface); border: 1px dashed #484965; border-radius: 3px; }
.empty-state h2 { font-size: 24px; margin: 15px 0 12px; }
.empty-state p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 26px; }
.empty-icon { font-size: 35px; color: var(--teal); }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tab { padding: 0 0 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tab:hover { color: var(--white); }
.tab.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-columns > .surface + .surface { margin: 0; }
.summary-value { font-size: 14px; font-weight: 500; line-height: 1.8; overflow-wrap: anywhere; margin: 14px 0 0; }
.summary-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--quiet); margin: 22px 0 5px; }
.notice { background: var(--green-wash); border: 1px solid #245346; border-radius: 3px; padding: 20px 24px; margin: 0 0 24px; display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.notice h3 { font-size: 16px; margin: 0 0 7px; color: var(--teal); font-weight: 700; }
.notice p { font-size: 13px; line-height: 1.7; color: #b2c8c8; margin: 0; }
.notice.neutral { background: #1b1d47; border-color: #383b67; }
.notice.neutral h3 { color: #c4ceff; }
.notice.neutral p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form-grid .span-two { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 9px; font-size: 13px; font-weight: 500; color: #ddddE6; }
input, textarea, select { width: 100%; border: 1px solid #494a69; border-radius: 2px; background: var(--navy); color: var(--white); padding: 11px 12px; font-size: 13px; line-height: 1.6; min-width: 0; }
input::placeholder, textarea::placeholder { color: #9696ad; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); outline: 1px solid var(--teal); outline-offset: 0; }
textarea { resize: vertical; min-height: 90px; }
label small, .field-hint { font-size: 12px; line-height: 1.7; color: var(--quiet); font-weight: 400; }
.checkbox { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; line-height: 1.7; }
.checkbox input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; accent-color: var(--teal); }
.form-section { margin-bottom: 20px; }
.form-section > h2 { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.inline-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.steps { display: grid; gap: 20px; counter-reset: step; }
.step { display: flex; align-items: flex-start; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.step:last-child { border: 0; padding-bottom: 0; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #245346; border-radius: 50%; color: var(--teal); background: var(--green-wash); font-size: 12px; flex-shrink: 0; }
.step-content { flex: 1; min-width: 0; }
#database-connection-step .button { max-width: 100%; white-space: normal; }
.step h3 { font-size: 16px; margin: 3px 0 10px; font-weight: 700; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 0 0 15px; }
.step code { font-size: 12px; background: var(--raised); padding: 2px 5px; border-radius: 2px; color: #ced5ed; overflow-wrap: anywhere; }
.commit-list, .job-list { list-style: none; padding: 0; margin: 0; }
.commit-item, .job-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.commit-item:last-child, .job-item:last-child { border: 0; }
.commit-title, .job-title { font-size: 14px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
.commit-meta, .job-meta { font-size: 12px; color: var(--quiet); margin-top: 6px; line-height: 1.7; overflow-wrap: anywhere; }
.commit-sha { font: 11px ui-monospace,monospace; background: var(--raised); padding: 4px 7px; border-radius: 2px; color: var(--muted); }
.task-box { min-height: 170px; font-size: 14px; margin: 20px 0; }
.divider { margin: 24px 0; border-top: 1px solid var(--line); }
details { margin-top: 20px; font-size: 13px; color: var(--muted); }
summary { cursor: pointer; padding: 12px 0; }
details .form-grid { margin-top: 15px; }
.code-box { background: var(--navy); border: 1px solid var(--line); border-radius: 2px; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 ui-monospace,monospace; max-height: 260px; overflow: auto; color: var(--muted); }
.control-dialog { width: min(760px,calc(100% - 32px)); max-height: 90dvh; border: 1px solid #484965; border-top: 3px solid var(--teal); border-radius: 3px; padding: 0; box-shadow: 0 20px 100px #0006; color: var(--white); background: var(--surface); }
.control-dialog::backdrop { background: #04052ec9; backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 27px; line-height: 1.15; letter-spacing: -.6px; margin: 0 0 9px; }
.dialog-header p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }
.dialog-close { border: 1px solid var(--line); background: transparent; width: 32px; height: 32px; border-radius: 2px; font-size: 22px; color: var(--muted); flex-shrink: 0; display: grid; place-items: center; }
.dialog-close:hover { color: var(--teal); border-color: var(--teal); }
.dialog-body { padding: 24px 28px; max-height: 65dvh; overflow: auto; }
.dialog-footer { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; background: var(--navy); }
.choice-list { display: grid; gap: 12px; }
.project-choice { padding: 18px; border: 1px solid var(--line); border-radius: 2px; text-align: left; background: var(--navy); color: var(--white); }
.project-choice:hover { border-color: var(--teal); background: var(--green-wash); }
.project-choice strong { display: block; font-size: 15px; }
.project-choice small { font-size: 12px; color: var(--muted); line-height: 1.8; display: block; margin-top: 8px; overflow-wrap: anywhere; }
#toast { position: fixed; right: 28px; bottom: 25px; z-index: 10000; background: var(--green-wash); color: var(--white); border: 1px solid var(--teal); box-shadow: 0 8px 30px #0004; border-radius: 3px; padding: 15px 20px; font-size: 13px; max-width: 450px; line-height: 1.7; }
#toast.error { background: #38203e; border-color: #ff9aa6; }
.busy-dot { display: inline-block; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: pulse 1.3s infinite; }
.report-link { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.mb { margin-bottom: 20px; }
.mt { margin-top: 20px; }
.muted { color: var(--muted); }
.small-text { font-size: 13px; line-height: 1.8; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line); line-height: 1.7; }
th { font-weight: 500; color: var(--quiet); font-size: 11px; }
td { color: var(--muted); }
.header-back { font-size: 12px; margin-bottom: 22px; display: inline-block; }
.split-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.split-title .chip { flex-shrink: 0; }
.hint-line { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 15px 0; }
.spinner { text-align: center; padding: 55px; font-size: 14px; color: var(--muted); }
.secret-state { font-size: 11px; color: var(--teal); margin-left: 5px; }
.no-margin { margin: 0 !important; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width:1100px) {
  .app-layout { grid-template-columns: 210px 1fr; }
  .sidebar { padding: 28px 12px; }
  .topbar { padding: 0 28px; }
  #content { padding: 32px 28px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px; gap: 12px; }
  .stat-icon { width: 36px; height: 36px; }
  .account-actions { gap: 10px; }
  .local-badge { display: none; }
  .page-heading { flex-wrap: wrap; }
  .login-intro { padding: 45px 36px; }
  .login-panel { padding: 36px; }
  .login-process { gap: 26px; }
}
@media (max-width:780px) {
  .app-layout { display: block; }
  .sidebar { height: auto; position: relative; padding: 22px 20px; display: block; border-right: 0; }
  .sidebar .brand { padding: 0; font-size: 29px; gap: 12px; }
  .sidebar .workspace-label, .sidebar .nav-item, .sidebar #project-nav, .sidebar-bottom { display: none; }
  .main-shell { border-top-width: 2px; }
  .topbar { min-height: 62px; padding: 0 20px; }
  #content { padding: 30px 20px; }
  .page-heading { gap: 20px; margin-bottom: 28px; }
  .page-heading h1 { font-size: 34px; letter-spacing: -1px; overflow-wrap: anywhere; }
  .page-heading p { font-size: 13px; overflow-wrap: anywhere; }
  .stats-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
  .stat-card { padding: 17px 20px; }
  .stat-number { font-size: 28px; }
  .stat-card small { margin-top: 4px; }
  .two-columns, .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-two { grid-column: auto; }
  .project-grid { grid-template-columns: 1fr; }
  .tabs { gap: 24px; }
  .surface { padding: 22px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 18px; }
  .section-heading .subtle { text-align: right; }
  .app-footer { padding: 20px; flex-wrap: wrap; gap: 12px; line-height: 1.6; }
  .account-button #account-name { display: none; }
  .notice { display: block; }
  .notice .button { margin-top: 16px; white-space: normal; }
  .login-layout { grid-template-columns: 1fr; }
  .login-intro { padding: 28px 25px 34px; }
  .login-intro .brand { margin-bottom: 38px; }
  .login-intro h1 { font-size: clamp(40px,8.7vw,60px); letter-spacing: -1.6px; margin-bottom: 0; }
  .login-intro p, .login-process, .login-intro small { display: none; }
  .login-panel { padding: 40px 25px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .login-panel::before { display: none; }
  .login-box h2 { font-size: 32px; }
  .section-label, .eyebrow { font-size: 10px; }
  .control-dialog { max-height: 94dvh; }
  .dialog-header, .dialog-body, .dialog-footer { padding: 20px; }
  .dialog-header h2 { font-size: 24px; }
  .dialog-body { max-height: 63dvh; }
  .dialog-footer { flex-wrap: wrap; }
  .dialog-footer .button { white-space: normal; }
  .account-actions { gap: 4px; }
  .step { gap: 12px; }
  #toast { right: 15px; left: 15px; bottom: 15px; }
  .topbar #breadcrumb { max-width: 65%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .form-actions { flex-wrap: wrap; }
}

/* Compact transient log: one scrolling terminal, no cards or nested output panes. */
.live-panel { margin-top: 24px; }
.live-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.live-heading h2 { margin: 12px 0 0; font-size: 28px; }
.live-controls { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.live-controls > label:first-child { flex: 1; min-width: 220px; }
.live-controls > label { min-width: 0; }
.live-controls select { max-width: 100%; }
.job-item > div:first-child { min-width: 0; }
.live-controls .checkbox { padding-bottom: 11px; font-size: 12px; }
.live-controls .text-button { margin-bottom: 12px; }
.live-event-list { height: 480px; overflow: auto; overscroll-behavior: contain; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--navy); color: #dddde6; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; scrollbar-color: #494a69 var(--navy); }
.live-event-list .live-empty { margin: 0; padding: 0; text-align: left; font: inherit; }
.live-line { margin: 0; padding: 1px 0; min-width: 0; }
.live-time { color: var(--quiet); }
.live-role { font-weight: 600; color: var(--muted); }
.live-role-builder { color: var(--teal); }
.live-role-github, .live-role-technical_reviewer { color: #b4c2ff; }
.live-role-ssh, .live-role-visual_reviewer, .live-role-behavioral_reviewer { color: #d3abff; }
.live-entry-title { color: var(--muted); }
.live-line[data-status="failed"] .live-entry-title, .live-line[data-status="failure"] .live-entry-title, .live-line[data-status="FAILED"] .live-entry-title { color: #ff9aa6; }
.live-link { white-space: nowrap; }
.live-footnote { margin: 18px 0 0 !important; font-size: 11px !important; color: var(--quiet); }
@media (max-width:780px) {
  .job-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .job-item > div:first-child { grid-column: 1 / -1; }
  .job-item > .text-button { justify-self: end; }
  .live-heading { gap: 12px; align-items: flex-start; }
  .live-heading h2 { font-size: 25px; }
  .live-heading .chip { margin-top: 5px; }
  .live-controls { gap: 10px 18px; }
  .live-controls > label:first-child { width: 100%; flex-basis: 100%; min-width: 0; }
  .live-controls .checkbox { flex: 1; }
  .live-event-list { height: 420px; padding: 10px; }
}
@media (max-width:780px) {
  .split-title { flex-direction: column; align-items: flex-start; }
}

.environment-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; margin: 0 0 28px; border: 1px solid var(--line); border-left: 3px solid var(--teal); background: var(--surface); }
.environment-buttons { display: flex; gap: 6px; margin-top: 12px; }
.environment-button { padding: 9px 16px; border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 2px; font-size: 13px; }
.environment-button.active { border-color: var(--teal); color: var(--teal); background: var(--green-wash); }
.environment-button:hover { border-color: var(--teal); }
.environment-destination { display: flex; flex-direction: column; gap: 8px; text-align: right; font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.environment-destination strong { font-weight: 600; }
.environment-destination span { color: var(--muted); font-size: 12px; }
.project-environments { display: grid; gap: 12px; font-size: 11px; color: var(--muted); }
.project-environments > div { display: flex; justify-content: space-between; gap: 12px; }
.project-environments > div > span:last-child { text-align: right; overflow-wrap: anywhere; }
@media (max-width:780px) {
  .environment-bar { align-items: flex-start; flex-direction: column; gap: 20px; padding: 20px; }
  .environment-destination { text-align: left; }
}

/* Deployment guide, accessible from every authenticated screen. */
.topbar { gap: 20px; }
.topbar #breadcrumb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-actions { flex-shrink: 0; }
.help-button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--white); font-size: 12px; white-space: nowrap; }
.help-button > span { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font-size: 11px; font-weight: 700; }
.help-button:hover { color: var(--teal); border-color: var(--teal); background: var(--green-wash); }
.help-dialog { width: min(1120px,calc(100% - 40px)); }
.help-dialog .dialog-body { padding: 0; max-height: 67dvh; scroll-behavior: smooth; }
.help-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 32px; padding: 28px; align-items: start; }
.help-nav { display: flex; flex-direction: column; gap: 5px; position: sticky; top: 28px; }
.help-nav .section-label { margin-bottom: 15px; font-size: 10px; }
.help-nav button { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; padding: 11px 9px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.6; }
.help-nav button span { color: var(--teal); font-size: 10px; }
.help-nav button:hover, .help-nav button:focus-visible { background: var(--green-wash); color: var(--white); border-color: #245346; }
.help-content { min-width: 0; font-size: 14px; line-height: 1.8; color: var(--muted); }
.help-content h3, .help-content strong { color: var(--white); }
.help-content p { margin: 16px 0; }
.help-intro > h3 { font-size: 38px; line-height: 1.08; letter-spacing: -1.2px; margin: 24px 0; }
.help-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.help-modes > div { border: 1px solid var(--line); border-top: 2px solid var(--teal); padding: 18px; background: var(--navy); }
.help-mode-label { display: block; font-size: 10px; letter-spacing: 1.2px; color: var(--teal); margin-bottom: 12px; }
.help-modes strong { display: block; font-size: 19px; line-height: 1.25; font-weight: 800; }
.help-modes p { font-size: 12px; line-height: 1.8; margin: 12px 0 0; }
.help-prerequisites, .help-callout { border-left: 2px solid var(--teal); padding: 14px 18px; background: var(--green-wash); font-size: 13px; }
.help-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.help-section > h3 { display: flex; gap: 13px; align-items: baseline; font-size: 23px; line-height: 1.3; letter-spacing: -.5px; margin: 0 0 22px; scroll-margin-top: 28px; }
.help-section > h3 > span { font-size: 12px; color: var(--teal); font-weight: 500; letter-spacing: 0; }
.help-content ol { padding-left: 22px; margin: 0; }
.help-content li { padding-left: 5px; margin-bottom: 14px; }
.help-content li::marker { color: var(--teal); font-size: 12px; }
.help-content code { font-size: 12px; overflow-wrap: anywhere; color: #d0d8ed; }
.help-code { background: var(--navy); border: 1px solid var(--line); padding: 16px; margin: 18px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; }
.help-table { min-width: 500px; }
.help-table caption { text-align: left; font-size: 12px; color: var(--quiet); padding-bottom: 10px; }
.help-table th { color: var(--muted); }
.help-table td { color: #d0d0dc; overflow-wrap: anywhere; }
.help-table thead th { color: var(--teal); }
.help-fields { margin: 22px 0; }
.help-fields dt { color: var(--white); font-size: 14px; font-weight: 700; margin-top: 18px; }
.help-fields dd { margin: 6px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.help-source { font-size: 12px; line-height: 1.9; }
.help-content details { border-bottom: 1px solid var(--line); margin: 0; }
.help-content summary { padding: 17px 0; font-size: 14px; color: var(--white); line-height: 1.7; }
.help-content details p { margin: 0 0 20px; font-size: 13px; }
.help-end { padding-top: 28px; font-size: 12px; color: var(--quiet); }
@media (max-width:900px) {
 .help-layout { grid-template-columns: 1fr; gap: 26px; }
 .help-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; }
 .help-nav .section-label { grid-column: 1 / -1; margin-bottom: 5px; }
 .help-nav button { border-color: var(--line); padding: 9px; }
}
@media (max-width:780px) {
 .topbar { gap: 12px; }
 .topbar #breadcrumb { max-width: none; }
 .help-button { padding: 7px 8px; gap: 6px; }
 .help-dialog { width: calc(100% - 24px); }
 .help-dialog .dialog-header h2 { font-size: 23px; }
 .help-dialog .dialog-body { max-height: 65dvh; }
 .help-layout { padding: 20px; gap: 24px; }
 .help-nav { grid-template-columns: 1fr; }
 .help-nav button { padding: 8px 10px; }
 .help-intro > h3 { font-size: 31px; }
 .help-content { font-size: 13px; }
 .help-modes { grid-template-columns: 1fr; }
 .help-section > h3 { font-size: 21px; }
}
@media (prefers-reduced-motion:reduce) { .help-dialog .dialog-body { scroll-behavior: auto; } }
.help-dialog #dialog-content { display: flex; flex-direction: column; max-height: calc(90dvh - 4px); }
.help-dialog .dialog-header, .help-dialog .dialog-footer { flex-shrink: 0; }
.help-dialog .dialog-body { flex: 1; min-height: 0; max-height: none; }
@media (max-width:780px) { .help-dialog #dialog-content { max-height: calc(94dvh - 4px); } }

/* One project, purpose-specific workspaces. */
.project-subnav{display:grid;gap:3px;margin:3px 12px 15px 26px;padding-left:13px;border-left:1px solid var(--line)}
.project-subnav button{border:0;background:transparent;text-align:left;padding:8px 12px;border-radius:6px;color:inherit;font:inherit;font-size:.88rem;cursor:pointer}
.project-subnav button:hover,.project-subnav button[aria-current=page]{background:var(--green-wash);color:var(--teal)}
.workspace-view-name{font-weight:400;color:var(--muted)}.transfer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.transfer-card{display:flex;flex-direction:column;align-items:flex-start}.transfer-card h2{font-size:1.12rem}.transfer-card .button{margin-top:auto}.transfer-warning{border-left:3px solid #c78d32;padding-left:12px;font-size:.88rem;color:#e9bd7a}
.remote-entities{max-height:340px;overflow:auto;display:grid;gap:10px;border:1px solid var(--line);border-radius:8px;padding:14px}.remote-entities small{display:block;color:var(--muted)}.remote-diff{padding:12px;border:1px solid var(--line);border-radius:8px;margin:12px 0}.remote-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;font-size:.8rem;background:var(--raised);padding:12px}.workspace-project .project-nav-button{width:100%}#workspace-body{min-width:0}#workspace-body .live-panel{margin-top:24px}#transfer-history .job-item{flex-wrap:wrap;gap:12px}
@media(max-width:850px){.transfer-grid{grid-template-columns:1fr}.workspace-view-name{display:block;font-size:.65em}.project-subnav{margin-left:18px}}

@media(max-width:780px){.sidebar #project-nav{display:block;margin-top:12px}.workspace-project:not(.current){display:none}.project-subnav{display:flex;flex-wrap:wrap;margin:5px 0 0;padding:0;border-left:0;gap:4px}.project-subnav button{padding:9px 10px}.workspace-project .project-nav-button{padding:8px 0}.remote-diff .two-columns{display:block}.remote-diff pre{max-width:100%}}

@media(max-width:780px){#workspace-body .live-controls{display:grid;grid-template-columns:1fr;gap:14px}#workspace-body .live-controls>label{width:100%;min-width:0}#workspace-body .live-controls .checkbox{padding:0}#workspace-body .live-controls .text-button{justify-self:start;margin:0}}

/* Every transfer uses the same selected procedure and explicit approval flow. */
.transfer-intro{color:var(--muted);font-size:14px;line-height:1.8}.transfer-card.is-selected{border-color:var(--teal);background:var(--green-wash)}.transfer-card [aria-pressed=true]{border-color:var(--teal);color:var(--teal)}
.transfer-procedure{scroll-margin-top:24px}.transfer-procedure-heading h2{margin:14px 0;font-size:26px;line-height:1.3}.transfer-procedure-heading>p{max-width:900px}.transfer-placeholder{border-style:dashed}.transfer-placeholder h2{margin-top:14px}
.transfer-phase>h3{display:flex;align-items:center;gap:12px;font-size:21px;line-height:1.4;margin:0 0 18px}.transfer-phase-number{display:inline-grid;place-items:center;flex-shrink:0;width:30px;height:30px;border:1px solid var(--teal);color:var(--teal);font-size:13px;border-radius:50%}
.transfer-endpoints{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.transfer-endpoints>div{padding:18px;border:1px solid var(--line);background:var(--navy);display:flex;flex-direction:column;gap:10px;min-width:0}.transfer-endpoints strong{font-size:15px;overflow-wrap:anywhere}.transfer-endpoints small{font-size:11px;line-height:1.6;color:var(--quiet);overflow-wrap:anywhere}
.transfer-requirements{padding-left:22px;font-size:13px;line-height:1.9;color:var(--muted)}.transfer-requirements li{margin:8px 0}.transfer-requirements li::marker{color:var(--teal)}.transfer-phase>p,.transfer-procedure-heading>p{font-size:14px;line-height:1.8;color:var(--muted)}
.transfer-run-actions{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.transfer-run-actions .button{margin:10px 0}.transfer-run-actions .transfer-busy{color:#e9bd7a}.transfer-result{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.transfer-result p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.transfer-phase .pbrd-step{background:var(--navy);margin-top:18px;padding:22px}.transfer-phase .pbrd-step h4{display:flex;align-items:center;gap:10px;font-size:18px;margin:0;line-height:1.4}.transfer-phase .pbrd-history{background:transparent}.transfer-history-all>summary{cursor:pointer}.transfer-history-all .job-item{flex-wrap:wrap;gap:12px}.transfer-history-all .job-item>span:first-child{flex:1;min-width:180px}
@media(max-width:780px){.transfer-endpoints{grid-template-columns:1fr}.transfer-procedure-heading h2{font-size:22px}.transfer-phase>h3{font-size:18px}.transfer-phase .pbrd-step{padding:16px}.transfer-phase .pbrd-step .split-title{align-items:flex-start;gap:10px;flex-wrap:wrap}.transfer-run-actions .button{max-width:100%;white-space:normal;text-align:center}.transfer-result .split-title{flex-wrap:wrap;gap:12px}.transfer-history-all .job-item>span:first-child{min-width:0;flex-basis:100%}}

.maintenance-connection summary{cursor:pointer;font-weight:650}.maintenance-connection .form-actions{align-self:end}.maintenance-plugins{width:100%;border-collapse:collapse}.maintenance-plugins th,.maintenance-plugins td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--border,#e6e5e3);vertical-align:top}.maintenance-plugins small{display:block;color:var(--muted,#6b6b6b);margin-top:5px;overflow-wrap:anywhere}.maintenance-plugins td:first-child{min-width:190px}.maintenance-plugins .button{white-space:normal}#maintenance-panel .job-item>div:first-child{min-width:0;overflow-wrap:anywhere}#maintenance-approval-form>label{margin-top:18px}#maintenance-approval-form>button{margin-top:20px}@media(max-width:700px){.maintenance-plugins{min-width:610px}#maintenance-panel .inline-actions{flex-wrap:wrap}#maintenance-panel .split-title{align-items:flex-start;gap:12px;flex-wrap:wrap}#maintenance-panel .job-item{flex-wrap:wrap}}
