/*
 * GitHub connection — iOS 26 (c.4.2.78).
 *
 * The task view's GitHub section (.nz-gh-task), and the few extras the
 * Developers wizard and the project's GitHub tab add on top of the
 * setup-wizard skin (assets/css/setup-wizard.css, .nzw-*). Every colour is a
 * shared --ios26-* token (light on :root, dark on body.color-1E202D), so both
 * themes come from one rule set; nothing here uses .card / .alert / .table.
 */

/* ---- the task view's section ------------------------------------------- */

.nz-gh-task {
    border-radius: var(--ios26-radius-lg, 20px);
    background: var(--ios26-surface-strong, rgba(255, 255, 255, .78));
    border: 1px solid var(--ios26-hairline, rgba(17, 24, 39, .08));
    box-shadow: var(--ios26-shadow-1, 0 8px 24px rgba(17, 24, 39, .07));
    overflow: hidden;
}

.nz-gh-task-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px;
}

.nz-gh-icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--ios26-text, #1d1d1f);
    background: var(--ios26-fill, rgba(17, 24, 39, .05));
}

.nz-gh-task-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--ios26-text, #1d1d1f);
}

.nz-gh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ios26-muted, #6e6e73);
    background: var(--ios26-fill, rgba(17, 24, 39, .05));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.nz-gh-pill:hover { color: var(--ios26-accent, #5b73e8); background: var(--ios26-accent-soft, rgba(91, 115, 232, .14)); }

.nz-gh-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ios26-accent, #5b73e8);
    background: var(--ios26-accent-soft, rgba(91, 115, 232, .14));
    white-space: nowrap;
    transition: transform .2s var(--ios26-spring, ease);
}

.nz-gh-action:hover { color: var(--ios26-accent, #5b73e8); filter: brightness(1.05); }
.nz-gh-action:active { transform: scale(.96); }

.nz-gh-tabs { padding: 0 8px; }
.nz-gh-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 999px;
    font-size: 11.5px;
    line-height: 18px;
    text-align: center;
    color: var(--ios26-muted, #6e6e73);
    background: var(--ios26-fill, rgba(17, 24, 39, .05));
}

.nz-gh-sha {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .nz-gh-action span { display: none; }
}

/* ---- the Developers wizard / project tab, on top of .nzw ---------------- */

.nz-gh-wizard .nzw-stage { padding-top: 24px; }

/* a key permission line: label + the level it needs */
.nz-gh-perm .nzw-row-tag { white-space: normal; }
.nz-gh-perm code {
    font-size: 12.5px;
    padding: 1px 6px;
    border-radius: 6px;
    color: var(--ios26-text, #1d1d1f);
    background: var(--ios26-fill, rgba(17, 24, 39, .05));
}

.nz-gh-section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ios26-muted, #6e6e73);
    margin: 18px 4px 6px;
}

.nz-gh-value {
    margin-left: auto;
    color: var(--ios26-muted, #6e6e73);
    font-size: 14px;
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nz-gh-wizard .nzw-row-icon.is-danger { background: color-mix(in srgb, var(--nzw-danger) 14%, transparent); }
.nz-gh-wizard .nzw-row-icon.is-success { background: color-mix(in srgb, var(--nzw-success) 14%, transparent); }

.nz-gh-wizard a.nzw-row { text-decoration: none; }

.nz-gh-steps-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: -8px 0 18px;
    font-size: 12px;
    color: var(--ios26-muted, #6e6e73);
}

/* ---- the task view's summary row (opens the GitHub modal) -------------- */

.nz-gh-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--ios26-radius-lg, 18px);
    background: var(--ios26-surface-strong, rgba(255, 255, 255, .78));
    border: 1px solid var(--ios26-hairline, rgba(17, 24, 39, .08));
    box-shadow: var(--ios26-shadow-1, 0 8px 24px rgba(17, 24, 39, .07));
    color: var(--ios26-text, #1d1d1f);
    text-decoration: none;
    transition: transform .2s var(--ios26-spring, ease), background .2s;
}

.nz-gh-summary:hover { color: var(--ios26-text, #1d1d1f); background: var(--ios26-fill-hover, rgba(17, 24, 39, .06)); }
.nz-gh-summary:active { transform: scale(.985); }
.nz-gh-summary-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nz-gh-summary-title { font-weight: 650; }
.nz-gh-summary-repo { font-weight: 500; color: var(--ios26-muted, #6e6e73); margin-left: 6px; }
.nz-gh-summary-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nz-gh-summary-chevron { color: var(--ios26-muted, #6e6e73); }

.nz-gh-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--ios26-muted, #6e6e73);
    background: var(--ios26-fill, rgba(17, 24, 39, .05));
}

.nz-gh-chip.is-open { color: var(--nz-ghm-open); background: color-mix(in srgb, var(--nz-ghm-open) 12%, transparent); }

/* ---- the GitHub modal: GitHub's own shapes, NIZU's theme --------------- */

:root, .nz-ghm, .nz-gh-summary {
    --nz-ghm-open: #1a7f37;
    --nz-ghm-merged: #8250df;
    --nz-ghm-closed: #cf222e;
    --nz-ghm-border: #d0d7de;
    --nz-ghm-head: #f6f8fa;
    --nz-ghm-muted: #59636e;
    --nz-ghm-link: #0969da;
}

body.color-1E202D .nz-ghm,
body.color-1E202D .nz-gh-summary {
    --nz-ghm-open: #3fb950;
    --nz-ghm-merged: #ab7df8;
    --nz-ghm-closed: #f85149;
    --nz-ghm-border: rgba(240, 246, 252, .14);
    --nz-ghm-head: rgba(240, 246, 252, .04);
    --nz-ghm-muted: #9198a1;
    --nz-ghm-link: #4493f8;
}

.nz-ghm { color: var(--ios26-text, #1f2328); }
.nz-ghm a:not(.nz-ghm-btn):not(.nz-ghm-back):not(.nz-ghm-crumb):not(.nz-ghm-icon-btn) { color: var(--nz-ghm-link); }
.nz-ghm-muted { color: var(--nz-ghm-muted); }

.nz-ghm-topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

.nz-ghm-back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--ios26-accent, #5b73e8); background: var(--ios26-accent-soft, rgba(91, 115, 232, .14));
}

.nz-ghm-crumb {
    display: inline-flex; align-items: center; gap: 6px; font-size: 16px;
    color: var(--nz-ghm-link) !important; min-width: 0;
}
.nz-ghm-crumb strong { font-weight: 650; }
.nz-ghm-crumb i { color: var(--nz-ghm-muted); }
.nz-ghm-slash { color: var(--nz-ghm-muted); margin: 0 2px; }

.nz-ghm-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--nz-ghm-border); background: var(--nz-ghm-head);
    color: var(--ios26-text, #1f2328); cursor: pointer; margin-left: auto; white-space: nowrap;
}
.nz-ghm-btn:hover { color: var(--ios26-text, #1f2328); filter: brightness(.97); }
.nz-ghm-btn-sm { padding: 3px 10px; font-size: 12px; }
.nz-ghm-btn-primary { background: var(--nz-ghm-open); border-color: transparent; color: #fff; margin-left: 0; }
.nz-ghm-btn-primary:hover { color: #fff; }

.nz-ghm-title { font-size: 24px; font-weight: 400; line-height: 1.3; margin: 0 0 8px; }
.nz-ghm-number { color: var(--nz-ghm-muted); font-weight: 300; margin-left: 4px; }

.nz-ghm-subhead {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--nz-ghm-border); font-size: 14px;
}

.nz-ghm-state {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff;
}
.nz-ghm-state.is-open { background: var(--nz-ghm-open); }
.nz-ghm-state.is-done { background: var(--nz-ghm-merged); }

.nz-ghm-tabs { margin: 0 -4px 14px; }
.nz-ghm-tabs a { display: inline-flex; align-items: center; gap: 7px; }

.nz-ghm-box { border: 1px solid var(--nz-ghm-border); border-radius: 6px; overflow: hidden; }

.nz-ghm-box-head {
    display: flex; align-items: center; gap: 16px; padding: 10px 16px;
    background: var(--nz-ghm-head); border-bottom: 1px solid var(--nz-ghm-border);
    font-size: 14px; font-weight: 600;
}
.nz-ghm-box-head .nz-ghm-muted { font-weight: 400; }

.nz-ghm-link-form { padding: 12px 16px; border-bottom: 1px solid var(--nz-ghm-border); }
.nz-ghm-link-form form { display: flex; gap: 10px; align-items: center; }
.nz-ghm-link-form .select2-container { flex: 1; }

.nz-ghm-row {
    display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px;
    border-top: 1px solid var(--nz-ghm-border);
}
.nz-ghm-box > .nz-ghm-row:first-child,
.nz-ghm-box-head + .nz-ghm-row,
.nz-ghm-link-form + .nz-ghm-row { border-top: 0; }
.nz-ghm-row:hover { background: var(--nz-ghm-head); }

.nz-ghm-state-icon { font-size: 16px; margin-top: 3px; width: 16px; text-align: center; }
.nz-ghm-state-icon.is-open { color: var(--nz-ghm-open); }
.nz-ghm-state-icon.is-merged { color: var(--nz-ghm-merged); }
.nz-ghm-state-icon.is-closed { color: var(--nz-ghm-closed); }

.nz-ghm-row-main { flex: 1; min-width: 0; }
.nz-ghm .nz-ghm-row-title { font-weight: 600; font-size: 15px; color: var(--ios26-text, #1f2328) !important; word-break: break-word; }
.nz-ghm .nz-ghm-row-title:hover { color: var(--nz-ghm-link) !important; }
.nz-ghm-row-meta { margin-top: 3px; font-size: 12.5px; color: var(--nz-ghm-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.nz-ghm-row-meta a { color: var(--nz-ghm-muted) !important; }
.nz-ghm-row-meta .nz-ghm-strong { color: var(--ios26-text, #1f2328) !important; font-weight: 600; }

.nz-ghm-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%; font-size: 11px;
    color: var(--nz-ghm-muted); background: var(--nz-ghm-head); border: 1px solid var(--nz-ghm-border);
}

.nz-ghm-branch {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
    padding: 1px 6px; border-radius: 6px;
    color: var(--nz-ghm-link); background: color-mix(in srgb, var(--nz-ghm-link) 12%, transparent);
}

.nz-ghm-ellipsis {
    border: 0; border-radius: 4px; padding: 0 5px; margin-left: 6px; line-height: 14px; height: 14px;
    font-size: 12px; font-weight: 700; color: var(--nz-ghm-muted); background: var(--nz-ghm-head); vertical-align: middle;
}
.nz-ghm-body {
    margin: 8px 0 2px; padding: 0; white-space: pre-wrap; background: transparent; border: 0;
    word-break: normal; overflow-wrap: anywhere; /* app.all.css gives every pre break-all */
    font-size: 12.5px; color: var(--nz-ghm-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nz-ghm-sha-group { display: inline-flex; align-items: center; border: 1px solid var(--nz-ghm-border); border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.nz-ghm-sha-group > * + * { border-left: 1px solid var(--nz-ghm-border); }

.nz-ghm-sha {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 600;
    padding: 4px 9px; color: var(--ios26-text, #1f2328) !important; background: var(--nz-ghm-head);
}

.nz-ghm-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 28px; border: 0; background: var(--nz-ghm-head);
    color: var(--nz-ghm-muted) !important; cursor: pointer;
}
.nz-ghm-row > .nz-ghm-icon-btn { border: 1px solid var(--nz-ghm-border); border-radius: 6px; flex-shrink: 0; }
.nz-ghm-icon-btn:hover { color: var(--nz-ghm-link) !important; }

.nz-ghm-day {
    display: flex; align-items: center; gap: 8px; margin: 4px 0 8px;
    font-size: 14px; color: var(--nz-ghm-muted);
}

.nz-ghm-blank {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 32px 16px; text-align: center; color: var(--nz-ghm-muted); font-size: 13.5px;
}
.nz-ghm-blank i { font-size: 26px; }
.nz-ghm-blank strong { color: var(--ios26-text, #1f2328); font-size: 16px; }

@media (max-width: 575px) {
    .nz-ghm-title { font-size: 20px; }
    .nz-ghm-btn { margin-left: 0; }
    .nz-ghm-row { flex-wrap: wrap; }
}

/* ---- "Start working on this task": branch + terminal line --------------- */

.nz-ghm-start-body { padding: 12px 16px; font-size: 13.5px; }
.nz-ghm-clip {
    display: flex; align-items: center; gap: 0; margin-top: 8px;
    border: 1px solid var(--nz-ghm-border); border-radius: 6px; overflow: hidden;
}
.nz-ghm-clip-label {
    flex: 0 0 auto; min-width: 70px; padding: 5px 10px; font-size: 12px; font-weight: 600;
    color: var(--nz-ghm-muted); background: var(--nz-ghm-head); border-right: 1px solid var(--nz-ghm-border); text-align: center;
}
.nz-ghm-clip code {
    flex: 1; min-width: 0; padding: 5px 10px; font-size: 12.5px; background: transparent;
    color: var(--ios26-text, #1f2328); white-space: nowrap; overflow-x: auto;
}
.nz-ghm-clip .nz-ghm-icon-btn { border-left: 1px solid var(--nz-ghm-border); }
.nz-ghm-start .nz-ghm-btn-primary { margin-left: auto; }

/* ---- the pull-request badge on kanban cards and task lists -------------- */

.nz-gh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
    color: var(--nz-ghm-muted);
    background: color-mix(in srgb, var(--nz-ghm-muted) 12%, transparent);
}
.nz-gh-badge.is-open { color: var(--nz-ghm-open); background: color-mix(in srgb, var(--nz-ghm-open) 13%, transparent); }
.nz-gh-badge.is-merged { color: var(--nz-ghm-merged); background: color-mix(in srgb, var(--nz-ghm-merged) 13%, transparent); }
.nz-gh-badge.is-closed { color: var(--nz-ghm-closed); background: color-mix(in srgb, var(--nz-ghm-closed) 12%, transparent); }

body.color-1E202D .nz-gh-badge {
    --nz-ghm-open: #3fb950;
    --nz-ghm-merged: #ab7df8;
    --nz-ghm-closed: #f85149;
    --nz-ghm-muted: #9198a1;
}

.nz-gh-count.is-warning { color: #9a6700; background: rgba(212, 167, 44, .18); }
body.color-1E202D .nz-gh-count.is-warning { color: #d29922; background: rgba(210, 153, 34, .18); }

/* ---- code review state (c.4.2.86) --------------------------------------- */

.nz-gh-review {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap;
}
.nz-gh-review.is-requested { color: #9a6700; background: rgba(212, 167, 44, .16); }
.nz-gh-review.is-approved { color: #1a7f37; background: rgba(31, 136, 61, .13); }
.nz-gh-review.is-changes_requested { color: #cf222e; background: rgba(207, 34, 46, .11); }
body.color-1E202D .nz-gh-review.is-requested { color: #d29922; background: rgba(210, 153, 34, .16); }
body.color-1E202D .nz-gh-review.is-approved { color: #3fb950; background: rgba(63, 185, 80, .15); }
body.color-1E202D .nz-gh-review.is-changes_requested { color: #f85149; background: rgba(248, 81, 73, .14); }

.nz-gh-badge-review { margin-left: 2px; }
.nz-gh-badge.is-review-changes_requested .nz-gh-badge-review { color: var(--nz-ghm-closed); }

/* ---- People: match a GitHub login to a team member ---------------------- */

.nz-gh-person .nzw-row-label { color: var(--ios26-text, #1d1d1f); text-decoration: none; }
.nz-gh-person .nzw-row-label:hover { color: var(--ios26-accent, #5b73e8); }
.nz-gh-person-pick { flex: 0 0 210px; min-width: 0; }
.nz-gh-person-pick .select2-container { width: 100% !important; }
.nz-gh-wizard .nz-gh-person .nzw-btn { width: auto; min-height: 36px; padding: 0 16px; font-size: 14px; }
@media (max-width: 575px) {
    .nz-gh-person { flex-wrap: wrap; }
    .nz-gh-person-pick { flex: 1 1 100%; order: 3; }
    .nz-gh-wizard .nz-gh-person .nzw-btn { order: 4; width: 100%; }
}
.nz-gh-person .nzw-row-tag { white-space: normal; }

/* ---- CI checks (c.4.2.86) ----------------------------------------------- */

.nz-gh-checks {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap;
    text-decoration: none;
}
.nz-gh-checks.is-pending { color: #9a6700; background: rgba(212, 167, 44, .16); }
.nz-gh-checks.is-success { color: #1a7f37; background: rgba(31, 136, 61, .13); }
.nz-gh-checks.is-failure { color: #cf222e; background: rgba(207, 34, 46, .11); }
body.color-1E202D .nz-gh-checks.is-pending { color: #d29922; background: rgba(210, 153, 34, .16); }
body.color-1E202D .nz-gh-checks.is-success { color: #3fb950; background: rgba(63, 185, 80, .15); }
body.color-1E202D .nz-gh-checks.is-failure { color: #f85149; background: rgba(248, 81, 73, .14); }
a.nz-gh-checks:hover { filter: brightness(.95); }
.nz-ghm .nz-ghm-row-meta a.nz-gh-checks.is-success { color: #1a7f37 !important; }
.nz-ghm .nz-ghm-row-meta a.nz-gh-checks.is-failure { color: #cf222e !important; }
.nz-ghm .nz-ghm-row-meta a.nz-gh-checks.is-pending { color: #9a6700 !important; }
body.color-1E202D .nz-ghm .nz-ghm-row-meta a.nz-gh-checks.is-success { color: #3fb950 !important; }
body.color-1E202D .nz-ghm .nz-ghm-row-meta a.nz-gh-checks.is-failure { color: #f85149 !important; }
body.color-1E202D .nz-ghm .nz-ghm-row-meta a.nz-gh-checks.is-pending { color: #d29922 !important; }

/* the board badge: failing checks tint the whole badge red */
.nz-gh-badge.is-review-checks_failure { color: var(--nz-ghm-closed); background: color-mix(in srgb, var(--nz-ghm-closed) 12%, transparent); }

/* ---- "My development" dashboard widget (c.4.2.86) ----------------------- */

.nz-ghw .nz-ghw-head { display: flex; align-items: center; gap: 10px; }
.nz-ghw .nz-ghw-body { padding: 6px 12px 12px; max-height: 520px; overflow-y: auto; }
.nz-ghw-section + .nz-ghw-section { margin-top: 10px; }
.nz-ghw-title {
    display: flex; align-items: center; gap: 7px; padding: 8px 4px 4px;
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ios26-muted, #6e6e73);
}
.nz-ghw-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
    color: var(--ios26-text, #1d1d1f); text-decoration: none; transition: background .15s;
}
.nz-ghw-row:hover { background: var(--ios26-fill, rgba(17, 24, 39, .05)); color: var(--ios26-text, #1d1d1f); }
.nz-ghw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nz-ghw-label { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nz-ghw-num { font-weight: 400; color: var(--ios26-muted, #6e6e73); }
.nz-ghw-meta { font-size: 12px; color: var(--ios26-muted, #6e6e73); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nz-ghw-chips { display: flex; gap: 4px; flex-shrink: 0; }
.nz-ghw-empty { padding: 4px 10px 6px; font-size: 12.5px; color: var(--ios26-muted, #6e6e73); }
.nz-ghw-hint { background: var(--ios26-accent-soft, rgba(91, 115, 232, .14)); color: var(--ios26-accent, #5b73e8); margin-bottom: 6px; }
.nz-ghw-hint:hover { color: var(--ios26-accent, #5b73e8); }
.nz-ghw .nz-ghm-state-icon.is-open { color: #1a7f37; }
body.color-1E202D .nz-ghw .nz-ghm-state-icon.is-open { color: #3fb950; }
@media (max-width: 575px) { .nz-ghw-chips { display: none; } }

/* ---- release notes of a milestone (c.4.2.86) ---------------------------- */

.nz-ghm-markdown {
    display: block; width: 100%; box-sizing: border-box; border: 0; padding: 12px 16px; resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5;
    color: var(--ios26-text, #1f2328); background: transparent; outline: 0;
}
body.color-1E202D .nz-ghm .nz-ghm-markdown { background: transparent !important; color: var(--ios26-text) !important; border: 0 !important; }
.nz-ghm-clip-input {
    flex: 1; min-width: 0; border: 0; outline: 0; padding: 5px 10px; font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: transparent; color: var(--ios26-text, #1f2328);
}
body.color-1E202D .nz-ghm .nz-ghm-clip-input { background: transparent !important; color: var(--ios26-text) !important; border: 0 !important; }
.nz-ghm-clip:focus-within { border-color: var(--nz-ghm-link); }
/* PerfectScrollbar measures the release notes before they are laid out and
   keeps a horizontal rail for a width that never overflows (scrollWidth ===
   clientWidth): hide that rail for this window only */
.modal-body:has(#github-release-notes) > .ps__rail-x { display: none !important; }
.nzw-note .nzw-link { white-space: nowrap; flex-shrink: 0; padding: 4px 10px; }

/* "Ask AI Reports" in the project's Development band */
.nz-gh-ask-ai {
    display: inline-flex; align-items: center; padding: 1px 10px; margin-left: 4px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    color: var(--ios26-accent, #5b73e8); background: var(--ios26-accent-soft, rgba(91, 115, 232, .14));
}
.nz-gh-ask-ai:hover { color: var(--ios26-accent, #5b73e8); filter: brightness(1.05); }
#github-import-issues .nzw-row-tag { white-space: normal; }

/* ---- labels in the task's GitHub window, as GitHub draws them ----------- */
.nz-ghm-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.nz-ghm-label {
    display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px;
    font-size: 12px; font-weight: 500; line-height: 22px; white-space: nowrap;
}

/* ---- the GitHub chip in a project's header (every tab) ------------------ */
.nz-gh-header-chip {
    display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 12px;
    border-radius: 999px; font-size: 13px; font-weight: 600; vertical-align: middle;
    color: var(--ios26-text, #1f2328); background: var(--ios26-fill, rgba(17, 24, 39, .06));
    text-decoration: none; transition: background .2s;
}
.nz-gh-header-chip:hover { color: var(--ios26-text, #1f2328); background: var(--ios26-fill-hover, rgba(17, 24, 39, .1)); }
.nz-gh-header-count { display: inline-flex; align-items: center; gap: 4px; padding-left: 6px; border-left: 1px solid var(--ios26-hairline, rgba(17,24,39,.12)); color: #1a7f37; }
body.color-1E202D .nz-gh-header-count { color: #3fb950; }
.nz-gh-chip-warn { color: #d97706; }
.nz-gh-board-fields { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
