    :root {
      color-scheme: light dark;
      font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
      --bg: #fbfbfa;
      --fg: #1a1c1e;
      --muted: #5d6573;
      --faint: #7c828b;
      --line: #e3e4df;
      --line-strong: #d3d5cf;
      --panel: #ffffff;
      --field: #ffffff;
      --accent: #a8481c;
      --accent-strong: #8a3a16;
      --accent-soft: #f7ebe1;
      --on-accent: #ffffff;
      --danger: #b42318;
      --code-bg: #f3f3ef;
      --code-fg: #1f2933;
      --radius: .3rem;
      --shadow-pop: 0 8px 24px rgb(0 0 0 / 14%);
      --nav-control-height: 2.5rem;
      --mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
      accent-color: var(--accent);
    }
    * { box-sizing: border-box; }
    :where([hidden]) { display: none !important; }
    ::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
    :target { scroll-margin-top: 4.5rem; }
    html { min-height: 100%; background: var(--bg); }
    body { min-height: 100vh; margin: 0 auto; max-width: 1280px; padding: 0 1.25rem 1rem; display: flex; flex-direction: column; line-height: 1.55; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
    header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-strong); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 2; }
    .site-left { display: flex; gap: 1.3rem; align-items: center; min-width: 0; }
    .primary-nav, .auth-nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
    .auth-nav { margin-left: auto; justify-content: flex-end; gap: .55rem; }
    .auth-nav a, .auth-nav .link-button { color: var(--muted); font-size: .92rem; font-weight: 550; text-decoration: none; }
    .auth-nav a:hover, .auth-nav .link-button:hover { color: var(--fg); text-decoration: none; }
    .auth-nav .nav-user { color: var(--fg); font-weight: 650; }
    main { flex: 1; padding: 1rem 0 1.5rem; }
    h1 { margin: 0 0 .35rem; font-size: 1.45rem; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
    h2 { margin: 1.4rem 0 .55rem; font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
    h3 { margin: 1.1rem 0 .5rem; font-size: 1rem; font-weight: 650; }
    h1, h2, h3 { text-wrap: balance; }
    p { margin: .35rem 0; }
    a { color: var(--accent-strong); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: .18em; }
    a:hover { text-decoration-color: currentColor; }
    nav, form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
    nav { color: var(--muted); }
    .primary-nav a { color: var(--muted); font-size: .92rem; font-weight: 550; text-decoration: none; }
    .primary-nav a:hover { color: var(--fg); }
    .brand { color: var(--fg); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; text-decoration: none; }
    svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .icon-link { font-weight: 600; }
    .muted { color: var(--muted); }
    code, pre { font-family: var(--mono); }
    label { display: block; margin: .7rem 0 .3rem; font-weight: 600; }
    label select, label textarea, label input:not([type=checkbox]):not([type=radio]) { display: block; margin-top: .35rem; font-weight: 400; }
    label:has(> input[type=checkbox]), label:has(> input[type=radio]) { display: flex; gap: .5rem; align-items: center; margin: .2rem 0; font-weight: 500; }
    input[type=checkbox], input[type=radio] { width: auto; margin: 0; padding: 0; }
    input, textarea, select, button { font: inherit; padding: .5rem .65rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field); color: var(--fg); }
    input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { width: min(100%, 28rem); }
    input[readonly] { width: min(100%, 32rem); color: var(--muted); }
    textarea { width: min(100%, 42rem); max-width: 100%; min-height: 9rem; resize: vertical; }
    button { cursor: pointer; background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); font-weight: 600; }
    button:hover { background: var(--accent); border-color: var(--accent); }
    button, a, .action-button, .star-button, .copy-button, .filters a, .tabs a { transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
    .link-button { padding: 0; border: 0; background: transparent; color: var(--accent-strong); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: .18em; }
    .link-button:hover { background: transparent; border-color: transparent; color: var(--accent-strong); text-decoration-color: currentColor; }
    .logout-form { display: inline; }
    .danger { background: transparent; border-color: var(--danger); color: var(--danger); }
    .danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
    .secondary { background: var(--field); border-color: var(--line-strong); color: var(--fg); }
    .secondary:hover { background: var(--accent-soft); border-color: var(--line-strong); color: var(--fg); }
    table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
    th, td { text-align: left; padding: .5rem .45rem; border-bottom: 1px solid var(--line); }
    th { color: var(--muted); font-size: .9rem; font-weight: 600; }
    pre { overflow: auto; padding: .85rem 1rem; border-radius: var(--radius); background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--line); }
    .manage { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; background: var(--panel); }
    summary { cursor: pointer; font-weight: 600; }
    .issue-new { display: inline-block; margin: 0; padding: 0; border: 0; background: transparent; }
    .issue-new > summary { list-style: none; }
    .issue-new > summary::-webkit-details-marker { display: none; }
    .issue-new[open] { display: block; padding: .85rem 1rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--fg); box-shadow: var(--shadow-pop); }
    .issue-new[open] > summary { padding: 0 0 .55rem; color: var(--fg); border-bottom: 1px solid var(--line); }
    .readme { margin: 1.75rem 0 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
    .readme-head { display: flex; align-items: center; gap: .55rem; padding: .7rem .95rem; border-bottom: 1px solid var(--line); background: var(--code-bg); font-weight: 650; font-size: .92rem; }
    .readme-head svg { width: 1rem; height: 1rem; color: var(--faint); }
    .readme-body { padding: 1.1rem 1.35rem 1.35rem; }
    .readme-body h1 { font-size: 1.25rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
    .repo-head { padding: 1rem 0 .85rem; margin: .2rem 0 .9rem; border-bottom: 1px solid var(--line-strong); }
    .repo-kicker { margin: 0 0 .2rem; color: var(--muted); font-size: .92rem; }
    .repo-kicker a { color: var(--fg); font-weight: 600; }
    .repo-kicker .muted { font-family: var(--mono); font-size: .82rem; color: var(--faint); }
    .ref-picker-wrap { display: inline-block; vertical-align: baseline; position: relative; }
    details.ref-picker { display: inline-block; border: 0; border-radius: 0; padding: 0; margin: 0; background: none; }
    .ref-picker-button { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none; font-family: var(--mono); font-size: .82rem; color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: .18rem .55rem; user-select: none; }
    .ref-picker-button::-webkit-details-marker { display: none; }
    .ref-picker-button:hover, details.ref-picker[open] .ref-picker-button { border-color: var(--accent); }
    .ref-picker-icon svg, .ref-picker-chevron svg { width: .85rem; height: .85rem; display: block; }
    .ref-picker-icon { color: var(--muted); }
    .ref-picker-chevron { color: var(--faint); }
    .ref-picker-current { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ref-picker-panel { position: absolute; z-index: 20; top: calc(100% + .3rem); left: 0; width: 18rem; max-width: 80vw; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: .5rem; }
    .ref-picker-search { width: 100%; box-sizing: border-box; margin-bottom: .4rem; }
    .ref-picker-tabs { display: flex; gap: .2rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line); }
    .ref-picker-tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: .3rem .2rem; font-size: .8rem; color: var(--muted); cursor: pointer; }
    .ref-picker-tab.active { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
    .ref-picker-list { list-style: none; margin: 0; padding: 0; max-height: 14rem; overflow-y: auto; }
    .ref-picker-item { display: block; padding: .3rem .4rem; border-radius: calc(var(--radius) - .1rem); font-family: var(--mono); font-size: .84rem; color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ref-picker-item:hover { background: var(--accent-soft); }
    .ref-picker-item.current { color: var(--accent-strong); font-weight: 600; }
    .ref-picker-empty { margin: .4rem .2rem; font-size: .82rem; color: var(--muted); }
    .ref-picker-manage { display: block; margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); text-decoration: none; }
    .ref-picker-manage:hover { color: var(--fg); }
    .branch-screen { display: grid; gap: 1.4rem; margin-top: 1.15rem; }
    .branch-section .section-head { margin-bottom: .55rem; align-items: center; }
    .branch-section .section-head h2 { display: inline-flex; align-items: center; gap: .45rem; }
    .branch-filter { display: flex; flex-wrap: nowrap; gap: .4rem; }
    .branch-filter input { flex: 0 1 15rem; width: 15rem; max-width: 100%; margin: 0; padding: .32rem .55rem; font-size: .85rem; }
    .branch-filter button { padding: .32rem .7rem; font-size: .82rem; background: var(--field); border-color: var(--line-strong); color: var(--accent-strong); }
    .branch-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
    .branch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1.1rem; align-items: center; padding: .6rem .85rem; border-bottom: 1px solid var(--line); }
    .branch-row:last-child { border-bottom: 0; }
    .branch-info { min-width: 0; }
    .branch-name-line { display: flex; align-items: center; gap: .45rem; min-width: 0; }
    .branch-icon { display: inline-flex; flex: 0 0 auto; color: var(--muted); }
    .branch-icon svg { width: .9rem; height: .9rem; display: block; }
    .branch-name { font-family: var(--mono); font-size: .88rem; font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .branch-copy { display: inline-flex; flex: 0 0 auto; align-items: center; padding: .1rem .25rem; border: 0; background: none; color: var(--faint); cursor: pointer; }
    .branch-copy:hover { color: var(--accent-strong); background: none; }
    .branch-copy svg { width: .8rem; height: .8rem; }
    .branch-tip { display: flex; align-items: baseline; gap: .45rem; margin: .18rem 0 0 1.35rem; min-width: 0; font-size: .82rem; color: var(--muted); }
    .branch-tip code { flex: 0 0 auto; font-size: .78rem; color: var(--accent-strong); }
    .branch-tip-subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
    .branch-tip .commit-time, .branch-tip-author { flex: 0 0 auto; }
    .commit-divergence { display: grid; grid-template-columns: 1fr 1fr; width: 11rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
    .divergence-behind, .divergence-ahead { display: grid; gap: .18rem; padding: 0 .5rem; }
    .divergence-behind { text-align: right; border-right: 1px solid var(--line-strong); }
    .divergence-behind .divergence-bar { justify-self: end; }
    .divergence-bar { display: block; height: .28rem; min-width: 2px; border-radius: 999px; background: var(--faint); }
    .divergence-ahead .divergence-bar { background: var(--accent); }
    .branch-middle:empty, .branch-actions:empty { display: none; }
    .branch-actions { display: flex; gap: .4rem; align-items: center; }
    .branch-actions button { padding: .28rem .6rem; font-size: .78rem; }
    .repo-title, .section-head, .issue-card, .repo-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
    .repo-headline { min-width: 0; }
    .repo-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
    .repo-name-row h1 { margin: 0; }
    .repo-title-icon { width: 2rem; height: 2rem; border-radius: .6rem; }
    .repo-desc { margin: .35rem 0 0; max-width: 60ch; }
    .repo-actions-top { display: flex; flex-wrap: wrap; gap: .45rem; flex-shrink: 0; justify-content: flex-end; }
    .repo-actions, .profile-facts, .profile-links { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; color: var(--muted); }
    .repo-actions { justify-content: space-between; margin-top: .55rem; }
    .star-button { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field); color: var(--fg); font-size: .85rem; font-weight: 600; }
    .star-button:hover { background: var(--accent-soft); border-color: var(--line-strong); color: var(--fg); }
    .star-button .star-glyph { color: var(--accent-strong); }
    .star-glyph { display: inline-flex; align-items: center; color: var(--accent-strong); }
    .star-glyph svg { width: .95rem; height: .95rem; fill: currentColor; stroke: none; }
    .star-button.static { color: var(--muted); }
    .count-pill, .tab-count { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .76rem; font-weight: 600; text-align: center; }
    .clone-line { display: flex; min-width: 0; max-width: 100%; gap: 0; align-items: stretch; margin: .7rem 0 0; }
    .clone-line > span { color: var(--muted); margin-right: .5rem; align-self: center; }
    .clone-proto { display: inline-flex; margin-right: .4rem; }
    .proto-button { padding: .32rem .55rem; border: 1px solid var(--line-strong); background: var(--field); color: var(--muted); font-size: .78rem; font-weight: 600; }
    .proto-button:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
    .proto-button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
    .proto-button.active { background: var(--accent-soft); color: var(--accent-strong); }
    .clone-url { display: inline-block; max-width: min(100%, 29rem); padding: .32rem .5rem; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--code-bg); color: var(--code-fg); font-family: var(--mono); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
    .clone-proto + .clone-url { border-radius: 0; }
    .copy-button { display: inline-flex; align-items: center; justify-content: center; padding: .32rem .55rem; border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--field); border-color: var(--line-strong); color: var(--accent-strong); text-decoration: none; }
    .copy-button:hover { background: var(--accent-soft); border-color: var(--line-strong); color: var(--accent-strong); text-decoration: none; }
    .copy-button.copied { background: color-mix(in srgb, #16a34a 20%, transparent); border-color: #16a34a; color: #16a34a; }
    .copy-button svg { width: .9rem; height: .9rem; }
    .action-button { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field); color: var(--accent-strong); font-size: .8rem; font-weight: 600; text-decoration: none; }
    .action-button:hover { background: var(--accent-soft); border-color: var(--line-strong); color: var(--accent-strong); text-decoration: none; }
    .action-button svg { display: block; flex: 0 0 auto; width: .9rem; height: .9rem; }
    .code-actions { margin: .5rem 0 0; }
    .star-form { display: inline-flex; }
    .inline-form { display: inline-flex; }
    .inline-form button { padding: .38rem .62rem; background: var(--field); border-color: var(--line-strong); color: var(--accent-strong); }
    .tabs { margin-top: .35rem; gap: .2rem; border-bottom: 1px solid var(--line-strong); }
    .tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .7rem; margin-bottom: -1px; color: var(--muted); font-size: .92rem; font-weight: 550; text-decoration: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; }
    .tabs a svg { width: .95rem; height: .95rem; color: var(--faint); }
    .tabs a:hover { color: var(--fg); }
    .tabs a:hover svg { color: var(--muted); }
    .tabs a.active { color: var(--fg); border-bottom-color: var(--accent); }
    .tabs a.active svg { color: var(--accent); }
    .profile-card { padding: 1.1rem 0 1rem; margin: .35rem 0 1.25rem; border-bottom: 1px solid var(--line-strong); }
    .profile-overview { display: flex; gap: 1rem; align-items: flex-start; }
    .profile-avatar, .account-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-family: var(--mono); font-weight: 800; object-fit: cover; }
    .profile-avatar { width: 4rem; height: 4rem; font-size: 1.5rem; }
    .account-avatar { width: 4.5rem; height: 4.5rem; font-size: 1.65rem; }
    .profile-title { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
    .profile-title h1 { margin-bottom: .15rem; }
    .profile-title .muted { font-family: var(--mono); font-size: .9rem; }
    .profile-links { margin-top: .5rem; }
    .profile-links div { display: contents; }
    .account-settings { margin: .35rem 0 1.5rem; }
    .admin-settings { margin: .35rem 0 1.5rem; }
    .account-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + .2rem); background: var(--panel); }
    .account-hero h1 { margin: 0; }
    .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
    .settings-panel { padding: 1rem; border: 1px solid var(--line); border-radius: calc(var(--radius) + .2rem); background: var(--panel); }
    .settings-panel-wide { grid-column: 1 / -1; }
    .settings-panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .8rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
    .settings-panel-head h2 { margin: 0; font-size: .95rem; }
    .settings-panel-head p { margin: .15rem 0 0; color: var(--muted); font-size: .86rem; }
    .settings-form { display: grid; gap: .75rem; }
    .settings-form button { justify-self: start; }
    .form-grid { display: grid; gap: .75rem; }
    .form-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .link-fieldset { margin: 0; }
    .settings-list { padding: 0; margin: .8rem 0 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
    .settings-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
    .settings-row:last-child { border-bottom: 0; }
    .compact-empty { margin: .8rem 0 0; padding: .75rem; }
    .repo-settings { max-width: 58rem; margin: .15rem auto 1.5rem; }
    .repo-settings-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .75rem 0 1rem; border-bottom: 1px solid var(--line-strong); }
    .repo-settings-title { display: flex; min-width: 0; gap: .85rem; align-items: center; }
    .repo-settings-title h1 { margin: 0; overflow-wrap: anywhere; }
    .repo-settings-kicker { margin: 0 0 .15rem; color: var(--faint); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .repo-settings-stack { display: grid; gap: .9rem; margin-top: .9rem; }
    .repo-settings-card { border: 1px solid var(--line); border-radius: calc(var(--radius) + .2rem); background: var(--panel); overflow: hidden; }
    .repo-settings-card-head { padding: .9rem 1.05rem; border-bottom: 1px solid var(--line); background: var(--code-bg); }
    .repo-settings-card-head h2 { margin: 0; font-size: .98rem; }
    .repo-settings-card-head p { margin: .15rem 0 0; color: var(--muted); font-size: .86rem; }
    .repo-settings-form { display: grid; gap: 0; padding: 0; }
    .repo-settings-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: 1.5rem; align-items: center; padding: 1rem 1.05rem; border-bottom: 1px solid var(--line); }
    .repo-basics-form > .repo-field { padding: 1rem 1.05rem; border-bottom: 1px solid var(--line); }
    .repo-settings-row:last-child, .repo-basics-form > .repo-field:last-child { border-bottom: 0; }
    .repo-settings-row-copy h3 { margin: 0 0 .2rem; font-size: .92rem; }
    .repo-settings-row-copy p { margin: 0; color: var(--muted); font-size: .88rem; }
    .repo-field { display: grid; gap: .35rem; margin: 0; font-weight: 650; }
    .repo-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .repo-field select { width: 100%; max-width: none; margin: 0; }
    .repo-inline-form .repo-field { padding: 1rem 1.05rem 0; }
    .repo-inline-form .repo-field input { width: min(100%, 32rem); }
    .repo-toggle { display: flex; gap: .55rem; align-items: flex-start; margin: 0; font-weight: 600; }
    .repo-toggle input { flex: 0 0 auto; width: auto; margin: .25rem 0 0; }
    .repo-toggle span { display: grid; gap: .1rem; }
    .repo-toggle small { color: var(--muted); font-size: .82rem; font-weight: 500; }
    .repo-settings-actions { display: flex; justify-content: flex-start; padding: 1rem 1.05rem; }
    .repo-settings-control { display: flex; gap: .5rem; align-items: center; }
    .repo-settings-control select, .repo-settings-control input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; }
    .repo-settings-control button { flex: 0 0 auto; }
    .repo-rule-body { display: grid; gap: .75rem; padding: 1rem 1.05rem; border-bottom: 1px solid var(--line); }
    .repo-rule-body h3 { margin: 0; font-size: .92rem; }
    .repo-rule-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
    .repo-rule-fields .repo-field { font-weight: 600; }
    .repo-rule-actions { display: flex; margin-top: .25rem; }
    .repo-settings-form button, .repo-collab-add button, .repo-danger-form button { width: auto; justify-self: start; }
    .repo-file-action { display: flex; gap: .65rem; align-items: center; }
    .repo-file-action input[type=file] { flex: 1 1 auto; min-width: 0; }
    .repo-file-action button { flex: 0 0 auto; }
    .repo-collab-add { border-bottom: 1px solid var(--line); }
    .repo-collab-body { display: grid; gap: .8rem; padding: 1rem 1.05rem; }
    .repo-collab-row { display: flex; gap: .5rem; align-items: flex-end; }
    .repo-collab-row .repo-field { flex: 1 1 auto; min-width: 0; }
    .repo-collab-row button { flex: 0 0 auto; }
    .repo-danger-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: 1.5rem; align-items: start; padding: 1rem 1.05rem; }
    .repo-danger-form { display: grid; gap: .65rem; align-self: start; }
    .repo-danger-form button { justify-self: start; }
    .repo-grant-list { padding: 0; margin: 0; list-style: none; }
    .repo-grant-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .75rem 1.05rem; border-bottom: 1px solid var(--line); }
    .repo-grant-row:last-child { border-bottom: 0; }
    .repo-grant-row:hover { background: var(--accent-soft); }
    .repo-grant-row form label { display: inline-flex; gap: .35rem; align-items: center; margin: 0; }
    .repo-danger-card { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
    .repo-danger-card .repo-settings-card-head { background: color-mix(in srgb, var(--danger) 8%, var(--code-bg)); }
    fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
    legend { padding: 0 .25rem; color: var(--muted); font-weight: 600; }
    .empty { color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; background: var(--panel); }
    .empty p { margin: 0; }
    .error-state { max-width: 34rem; margin: 5rem auto 3rem; padding: 0; border: 0; background: transparent; text-align: center; color: var(--fg); }
    .error-state h1 { margin: 0 0 .5rem; }
    .error-state p { color: var(--muted); }
    .error-state p + .action-button { margin-top: 1.1rem; }
    .error-code { margin: 0 0 .35rem; color: var(--faint); font-family: var(--mono); font-size: 2.4rem; font-weight: 650; letter-spacing: .06em; line-height: 1; }
    .repos, .commits, .issues-list, .tree-list, .string-list { padding: 0; list-style: none; }
    .section-head { align-items: baseline; margin: 1.4rem 0 .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
    .section-head h1 { font-size: 1.1rem; }
    .section-head h2 { margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
    .section-head .muted { font-family: var(--mono); font-size: .8rem; color: var(--faint); }
    .repos, .commits, .string-list, .issues-list, .activity-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); margin: .2rem 0 0; }
    .repo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .8rem; border: 0; background: transparent; overflow: visible; }
    .repo-card { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .75rem; align-items: start; padding: .9rem; border: 1px solid var(--line); border-radius: calc(var(--radius) + .2rem); background: var(--panel); transition: border-color .15s ease; }
    .repo-card:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
    .repo-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: .75rem; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-family: var(--mono); }
    img.repo-card-icon { object-fit: cover; background: var(--panel); }
    .repo-card-main { min-width: 0; }
    .repo-card-title { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
    .repo-card-description { margin-top: .25rem; min-height: 1.4rem; }
    .repo-card-meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; margin-top: .5rem; color: var(--faint); font-family: var(--mono); font-size: .78rem; }
    .repo-card-stars { display: inline-flex; align-items: center; gap: .25rem; justify-self: end; color: var(--muted); font-family: var(--mono); font-size: .82rem; font-weight: 700; }
    .repo-row { padding: .6rem .85rem; border-bottom: 1px solid var(--line); align-items: center; }
    .repo-row:last-child { border-bottom: 0; }
    .repo-link, .issue-title { color: var(--fg); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
    .repo-link:hover, .issue-title:hover { color: var(--accent-strong); }
    .commit-strip { margin: 1rem 0; }
    .commit-strip .section-head { margin-bottom: 0; }
    .commits li { padding: .6rem .85rem; border-bottom: 1px solid var(--line); }
    .commits li:last-child { border-bottom: 0; }
    .commit-date-divider { padding: .5rem .85rem; font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--field); border-bottom: 1px solid var(--line-strong); }
    .commit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .85rem; align-items: center; }
    .commit-main { min-width: 0; }
    .commit-avatar { width: 1.35rem; height: 1.35rem; border-radius: 50%; object-fit: cover; background: var(--accent-soft); }
    .commit-avatar-placeholder { display: inline-flex; align-items: center; justify-content: center; color: var(--accent-strong); font-family: var(--mono); font-size: .72rem; font-weight: 750; }
    .commit-subject { display: block; color: var(--fg); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .commit-subject:hover { text-decoration: underline; }
    .commit-description { margin: .15rem 0 0; color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .commit-meta { display: flex; align-items: center; gap: .35rem; margin-top: .3rem; min-width: 0; }
    .commit-hash { font-size: .82rem; color: var(--accent-strong); }
    .commit-author { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .commit-time { color: var(--muted); font-size: .85rem; }
    .commit-actions, .commit-ref { display: inline-flex; align-items: center; gap: .45rem; }
    .commit-copy { display: inline-flex; width: 1.65rem; height: 1.65rem; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--muted); cursor: pointer; }
    .commit-copy:hover, .commit-copy:focus-visible { background: var(--accent-soft); color: var(--accent-strong); }
    .commit-copy svg, .issue-comments svg, .pull-target svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
    .commit-detail { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
    .commit-detail-head { padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--code-bg); }
    .commit-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
    .commit-detail-heading h2 { margin: 0; }
    .commit-detail-heading code { color: var(--accent-strong); }
    .commit-detail-meta { margin: .35rem 0 0; }
    .commit-stat-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
    .signature-badge { display: inline-flex; align-items: center; padding: .08rem .42rem; border: 1px solid color-mix(in srgb, #ca8a04 55%, var(--line)); border-radius: 999px; background: color-mix(in srgb, #ca8a04 14%, transparent); color: #a16207; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
    .commit-message { margin: 0; padding: 1rem; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: var(--panel); white-space: pre-wrap; }
    .diff-panel { margin: 0; }
    .diff-panel pre.diff { margin: 0; padding: .85rem 1rem; border: 0; border-radius: 0; overflow-x: auto; }
    .diff-add { display: block; background: color-mix(in srgb, #16a34a 18%, transparent); }
    .diff-remove { display: block; background: color-mix(in srgb, #dc2626 18%, transparent); }
    .diff-hunk { display: block; color: var(--accent-strong); font-weight: 650; }
    .diff-meta { display: block; color: var(--faint); }
    .diff-context { display: block; }
    .issue-head { padding: 0 0 .9rem; margin: .2rem 0 1.1rem; border-bottom: 1px solid var(--line-strong); }
    .issue-head h2 { margin: 0 0 .5rem; }
    .issue-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
    .badge.state-open { color: #15803d; border-color: #15803d; background: color-mix(in srgb, #15803d 14%, transparent); }
    .badge.state-closed { color: var(--danger); border-color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
    .badge.state-merged { color: #7c3aed; border-color: #7c3aed; background: color-mix(in srgb, #7c3aed 14%, transparent); }
    .pull-patch { margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
    .pull-patch-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .55rem .9rem; border-bottom: 1px solid var(--line); background: var(--code-bg); }
    .pull-patch-head h3 { margin: 0; font-size: .92rem; }
    .pull-patch pre.diff { margin: 0; padding: .85rem 1rem; border: 0; border-radius: 0; overflow-x: auto; }
    .merge-form { margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
    .patch-file-field { font-weight: 600; }
    .patch-file-field input[type=file] { width: min(100%, 28rem); }
    .patch-howto { font-size: .88rem; }
    .patch-howto code { padding: .08rem .35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code-bg); font-size: .82rem; }
    .issue-thread { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
    .issue-properties { margin: 0 0 1.1rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code-bg); }
    .properties-form { display: grid; grid-template-columns: repeat(4, minmax(10rem, 1fr)) auto; gap: .75rem; align-items: end; margin: 0; }
    .properties-form label { display: flex; flex-direction: column; gap: .25rem; margin: 0; min-width: 0; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
    .properties-form input, .properties-form select { width: 100%; }
    .properties-save { min-width: 9rem; margin: 0; white-space: nowrap; }
    .thread-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
    .thread-item-head { display: flex; gap: .45rem; align-items: center; padding: .55rem .9rem; border-bottom: 1px solid var(--line); background: var(--code-bg); font-size: .88rem; }
    .thread-avatar { width: 1.65rem; height: 1.65rem; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .7rem; font-weight: 800; }
    .comment-actions { width: 1.9rem; height: 1.9rem; min-height: 0; margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--muted); }
    .comment-actions:hover, .comment-actions:focus-visible { background: var(--accent-soft); color: var(--accent-strong); }
    .comment-actions svg { width: 1rem; height: 1rem; }
    .comment-action-menu { position: fixed; inset: auto; min-width: 8rem; margin: 0; padding: .3rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--fg); box-shadow: var(--shadow-pop); }
    .comment-action-menu:popover-open { display: grid; gap: .15rem; }
    .comment-action-menu button { display: block; width: 100%; min-height: 2rem; padding: .3rem .55rem; border: 0; border-radius: calc(var(--radius) - .1rem); background: transparent; color: var(--fg); text-align: left; }
    .comment-action-menu button:hover, .comment-action-menu button:focus-visible { background: var(--accent-soft); }
    .comment-action-menu .comment-action-delete { color: var(--danger); }
    .comment-modal { width: min(100% - 2rem, 42rem); max-height: min(80vh, 42rem); margin: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + .2rem); background: var(--panel); color: var(--fg); box-shadow: var(--shadow-pop); }
    .comment-modal::backdrop { background: rgb(0 0 0 / 45%); }
    .comment-modal-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--code-bg); }
    .comment-modal-head h2 { margin: 0; font-size: 1rem; }
    .comment-modal-close { width: 2rem; height: 2rem; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 1.25rem; line-height: 1; }
    .comment-modal-close:hover { background: var(--accent-soft); color: var(--fg); }
    .comment-modal > form { display: block; margin: 0; padding: 1rem; }
    .comment-modal .md-editor, .comment-modal .md-input { width: 100%; }
    .comment-modal .md-input textarea { width: 100%; min-height: 12rem; }
    .comment-modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .75rem; }
    .comment-modal-actions button, .comment-delete-form button { width: auto; }
    .comment-delete-form { border-top: 1px solid var(--line); }
    .pull-reviews { display: grid; gap: .75rem; }
    .pull-reviews > h3, .pull-reviews > p { margin: 0; }
    .review-composer { max-width: 52rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
    .review-composer-head { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); background: var(--code-bg); font-size: .88rem; }
    .review-composer-head .muted { font-size: .82rem; }
    .review-form { display: grid; gap: 0; margin: 0; }
    .review-form textarea { width: 100%; min-height: 8rem; margin: 0; border: 0; border-radius: 0; resize: vertical; }
    .review-form-actions { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .55rem .65rem; border-top: 1px solid var(--line); background: var(--code-bg); }
    .review-verdict { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--muted); font-size: .82rem; font-weight: 650; }
    .review-verdict select { width: auto; margin: 0; }
    .review-form .form-action { width: auto; margin: 0; white-space: nowrap; }
    .review-composer > .muted { display: block; margin: 0; padding: .45rem .8rem; border-top: 1px solid var(--line); font-size: .82rem; }
    .review-request-form { display: flex; max-width: 52rem; gap: .55rem; align-items: center; margin: 0; }
    .review-request-form label { flex: 1; margin: 0; }
    .review-request-form input { width: 100%; margin: 0; }
    .review-request-form button { width: auto; white-space: nowrap; }
    .worklist-selector { margin: 0; }
    .issue-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
    .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .thread-item-body { padding: 1rem 1.1rem; }
    .thread-item-body :first-child { margin-top: 0; }
    .thread-item-body :last-child { margin-bottom: 0; }
    .issues-list { margin: 1rem 0; }
    .issues-list > li { padding: .65rem .85rem; border-bottom: 1px solid var(--line); }
    .issues-list > li:last-child { border-bottom: 0; }
    .issue-card { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
    .repo-row:hover, .issue-card:hover, .commits li:hover { background: var(--accent-soft); }
    .label-row { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
    .search { margin: 1rem 0 1.25rem; }
    .search form { display: block; }
    .search label { display: block; margin-bottom: .35rem; font-weight: 600; }
    .search-help { margin: 0 0 .45rem; color: var(--muted); font-size: .9rem; }
    .search-row { display: flex; gap: .5rem; align-items: center; }
    .search-row input { flex: 1; min-width: 12rem; }
    .search-row input, .search-row select, .search-row button { height: 2.65rem; min-height: 2.65rem; padding-top: 0; padding-bottom: 0; }
    .search-row select { width: auto; min-width: 8rem; }
    .search-row button, .icon-link { min-height: 2.5rem; }
    .search-row button { display: inline-flex; gap: .4rem; align-items: center; justify-content: center; white-space: nowrap; }
    .search-results { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
    .search-hit { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .65rem; background: var(--panel); }
    .search-hit code { font-family: var(--mono); }
    .search-snippet { margin: .35rem 0 0; padding: .35rem .5rem; background: var(--field); border-radius: var(--radius); font-family: var(--mono); font-size: .85rem; overflow-x: auto; white-space: pre; }
    .file-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 1rem 0 .75rem; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code-bg); }
    .file-breadcrumbs { margin: 1rem 0 .75rem; }
    .file-breadcrumbs .breadcrumbs { margin: 0; }
    .file-toolbar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; min-width: 0; color: var(--muted); font-size: .85rem; }
    .file-toolbar-name { font-family: var(--mono); color: var(--fg); font-weight: 600; overflow-wrap: anywhere; }
    .file-toolbar-actions { display: flex; gap: .4rem; flex-shrink: 0; }
    .code-view { margin: .75rem 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: var(--code-bg); }
    .blame-table, .blob-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; font-family: var(--mono); font-size: .86rem; line-height: 1.55; }
    .blame-table td, .blob-table td { padding: 0 .75rem; vertical-align: top; border-bottom: 0; white-space: nowrap; }
    .blame-table tr:hover, .blob-table tr:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
    .blame-table td.blame-code, .blob-table td.blame-code { white-space: pre; width: 100%; color: var(--code-fg); }
    .blame-table td.blame-code pre.highlight, .blame-table td.blame-code pre,
    .blob-table td.blame-code pre.highlight, .blob-table td.blame-code pre { margin: 0; padding: 0; display: inline; background: none; border: 0; border-radius: 0; line-height: inherit; }
    .blame-table td.blame-lineno, .blob-table td.blame-lineno { position: sticky; left: 0; min-width: 3.8rem; text-align: right; color: var(--faint); background: color-mix(in srgb, var(--code-bg) 88%, var(--panel)); border-right: 1px solid var(--line); user-select: none; }
    .blame-table td.blame-lineno a, .blob-table td.blame-lineno a { color: inherit; }
    .blame-table tr:target, .blob-table tr:target, .blob-table tr.highlighted { background: var(--accent-soft); }
    .tree-browser { margin: 1rem 0; }
    .tree-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
    .tree-panel .panel-head { padding: .65rem .85rem .5rem; border-bottom: 1px solid var(--line); background: var(--code-bg); }
    .tree-panel .panel-head .breadcrumbs { margin: 0 0 .5rem; }
    .tree-panel .panel-head .section-head { margin: 0; padding: 0; border: 0; }
    .tree-panel > .empty { margin: 0; border: 0; border-radius: 0; }
    .tree-list { margin: 0; border: 0; border-radius: 0; overflow: hidden; background: var(--panel); }
    .tree-row { display: grid; grid-template-columns: minmax(0, 1fr) 5rem 6rem; gap: .75rem; align-items: center; min-height: 2.1rem; padding: .45rem .85rem; border-bottom: 1px solid var(--line); }
    .tree-row:last-child { border-bottom: 0; }
    .tree-row:hover { background: var(--accent-soft); }
    .tree-name { display: inline-flex; align-items: center; min-width: 0; color: var(--fg); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tree-row:hover .tree-name { color: var(--accent-strong); }
    .tree-icon { display: inline-flex; flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-right: .55rem; color: var(--faint); }
    .tree-icon svg { width: 1.1rem; height: 1.1rem; }
    .tree-row:hover .tree-icon { color: var(--accent-strong); }
    .tree-size { color: var(--muted); font-family: var(--mono); font-size: .8rem; text-align: right; }
    .tree-date { text-align: right; font-size: .78rem; font-weight: 500; white-space: nowrap; }
    .age-fresh { color: var(--accent-strong); font-weight: 650; }
    .age-recent { color: var(--fg); }
    .age-old { color: var(--muted); }
    .age-ancient { color: var(--faint); }
    .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0 0 .6rem; color: var(--muted); font-family: var(--mono); font-size: .85rem; }
    .breadcrumbs .crumb { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); }
    .breadcrumbs a.crumb:hover { color: var(--accent-strong); }
    .breadcrumbs .crumb-root svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.4; }
    .breadcrumbs .crumb-current { font-weight: 700; color: var(--fg); }
    .breadcrumbs .crumb-sep { color: var(--faint); }
    .strings { margin: 1.25rem 0; }
    .string-row { padding: .65rem .85rem; border-bottom: 1px solid var(--line); }
    .string-row:last-child { border-bottom: 0; }
    .string-row:hover { background: var(--accent-soft); }
    .string-row a { color: var(--fg); font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
    .string-row a:hover { color: var(--accent-strong); }
    .string-row p { max-width: 72ch; }
    .string-detail pre { background: var(--panel); color: var(--fg); border: 1px solid var(--line); white-space: pre-wrap; }
    .activity-list { padding: 0; list-style: none; }
    .activity-item { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; padding: .75rem .9rem; border-bottom: 1px solid var(--line); }
    .activity-item:last-child { border-bottom: 0; }
    .activity-avatar { width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
    .activity-main a { font-weight: 650; text-decoration: none; }
    .activity-meta { margin: .15rem 0 0; color: var(--muted); font-size: .86rem; }
    .activity-body { margin: .35rem 0 0; color: var(--muted); max-width: 72ch; }
    .filters { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; margin: .9rem 0 1.2rem; }
    .filters .filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; color: var(--faint); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
    .filters a { display: inline-flex; align-items: center; padding: .28rem .65rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--field); color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: none; letter-spacing: normal; text-decoration: none; }
    .filters a:hover { color: var(--fg); background: var(--accent-soft); }
    .filters a.active { color: var(--on-accent); background: var(--accent-strong); border-color: var(--accent-strong); }
    .notice { color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin: 1rem 0; background: var(--code-bg); }
    .notice p { margin: 0; }
    .pager { display: flex; gap: 1rem; align-items: baseline; color: var(--muted); margin: 1rem 0; }
    .highlight { border: 1px solid var(--line); background: var(--code-bg); color: var(--code-fg); }
    .highlight a-k { color: #7c3aed; font-weight: 700; }
    .highlight a-f { color: #0369a1; font-weight: 650; }
    .highlight a-m { color: #0f766e; font-weight: 650; }
    .highlight a-s { color: #047857; }
    .highlight a-n, .highlight a-co { color: #c2410c; }
    .highlight a-c { color: #6b7280; font-style: italic; }
    .highlight a-t { color: #9a3412; }
    .highlight a-v { color: #475569; }
    .highlight a-p, .highlight a-o { color: #64748b; }
    .highlight a-pr { color: #0e7490; }
    .highlight a-at { color: #b45309; }
    .highlight a-tg { color: #be123c; }
    .highlight a-l { color: #4338ca; }
    .highlight a-ns { color: #475569; }
    .highlight a-cr { color: #a21caf; }
    .highlight a-tt { font-weight: 700; }
    .highlight a-st { font-weight: 700; }
    .highlight a-em { font-style: italic; }
    .highlight a-tu { color: #0369a1; text-decoration: underline; }
    .highlight a-tl { color: #047857; }
    .highlight a-tx { text-decoration: line-through; }
    .highlight a-da { background: color-mix(in srgb, #16a34a 18%, transparent); }
    .highlight a-dd { background: color-mix(in srgb, #dc2626 18%, transparent); }
    .highlight a-er { color: var(--danger); text-decoration: underline wavy; }
    .manage form, .profile-fields { align-items: stretch; flex-direction: column; }
    .manage form > button { align-self: flex-start; }
    .form-action { align-self: flex-start; }
    .comment-form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .3rem; }
    .comment-form-actions .form-action { align-self: auto; }
    .delete-issue { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
    .md-editor { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--panel); margin-top: .35rem; align-self: stretch; }
    .md-editor-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; padding: .35rem .5rem; border-bottom: 1px solid var(--line); background: var(--code-bg); }
    .md-tabs { display: flex; gap: .2rem; }
    .md-tab { padding: .3rem .7rem; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--muted); font-size: .85rem; font-weight: 600; }
    .md-tab:hover { background: transparent; border-color: transparent; color: var(--fg); }
    .md-tab.active { background: var(--panel); border-color: var(--line-strong); color: var(--fg); }
    .md-toolbar { display: flex; gap: .1rem; flex-wrap: wrap; }
    .md-tool { display: inline-flex; align-items: center; justify-content: center; width: 1.85rem; height: 1.85rem; padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--muted); font-size: .82rem; }
    .md-tool:hover { background: var(--panel); border-color: var(--line-strong); color: var(--fg); }
    .md-tool svg { width: .9rem; height: .9rem; }
    .md-input { display: block; width: 100%; max-width: none; border: 0; border-radius: 0; margin: 0; min-height: 8rem; }
    .md-input:focus-visible { outline: none; }
    .md-preview { padding: 1rem 1.1rem; min-height: 8rem; }
    .md-preview.empty { color: var(--muted); font-style: italic; }
    .md-toolbar[hidden], .md-input[hidden] { display: none; }
    .md-preview.empty p { margin: 0; }
    .auth-card { max-width: 23rem; margin: 3rem auto; padding: 1.6rem 1.5rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
    .auth-card.wide-card { max-width: 34rem; }
    .auth-card h1 { margin: 0 0 1rem; text-align: center; }
    .auth-card .empty { margin: 0 0 1rem; }
    .auth-form { flex-direction: column; align-items: stretch; gap: .3rem; }
    .auth-form label { font-weight: 600; margin-top: .4rem; }
    .auth-form button { margin-top: .9rem; }
    .auth-hint { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
    .auth-alt { margin: 1rem 0 0; text-align: center; color: var(--muted); }
    .badge { display: inline-block; padding: .12rem .5rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
    .error { color: var(--danger); font-weight: 600; }
    footer { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; font-size: .88rem; }
    footer code { background: var(--code-bg); border: 1px solid var(--line); padding: .1rem .4rem; border-radius: var(--radius); }
    .footer-version { color: var(--faint); font-family: var(--mono); }
    @media (prefers-color-scheme: dark) {
      :root { --bg: #0f1113; --fg: #e7e8e3; --muted: #aab3c2; --faint: #828893; --line: #262a2e; --line-strong: #353a40; --panel: #15171a; --field: #1c222b; --accent: #ef9f56; --accent-strong: #f3ad6b; --accent-soft: #2a1c12; --on-accent: #1c1206; --danger: #f97066; --code-bg: #181b1e; --code-fg: #dce3ec; }
      /* MathJax SVGs are opaque images with black default glyphs.  Invert
         only those transparent images for this dark palette; Mermaid keeps
         its authored background and is deliberately not affected. */
      .mathjax-diagram, .mathjax-inline { filter: invert(1); }
      .highlight a-k { color: #c4b5fd; }
      .highlight a-f { color: #7dd3fc; }
      .highlight a-m { color: #5eead4; }
      .highlight a-s { color: #86efac; }
      .highlight a-n, .highlight a-co { color: #fbbf24; }
      .highlight a-c { color: #94a3b8; }
      .highlight a-t { color: #f0a35a; }
      .highlight a-v { color: #cbd5e1; }
      .highlight a-p, .highlight a-o { color: #94a3b8; }
      .highlight a-pr { color: #67e8f9; }
      .highlight a-at { color: #fcd34d; }
      .highlight a-tg { color: #fda4af; }
      .highlight a-l { color: #a5b4fc; }
      .highlight a-ns { color: #cbd5e1; }
      .highlight a-cr { color: #e9a8fb; }
      .highlight a-tu { color: #7dd3fc; }
      .highlight a-tl { color: #86efac; }
      .badge.state-open { color: #4ade80; border-color: #4ade80; background: color-mix(in srgb, #4ade80 14%, transparent); }
      .badge.state-merged { color: #a78bfa; border-color: #a78bfa; background: color-mix(in srgb, #a78bfa 14%, transparent); }
    .signature-badge { color: #facc15; border-color: color-mix(in srgb, #facc15 50%, var(--line)); background: color-mix(in srgb, #ca8a04 18%, transparent); }
    .signature-verified { color: #16a34a; border-color: color-mix(in srgb, #16a34a 55%, var(--line)); background: color-mix(in srgb, #16a34a 14%, transparent); }
    }
    @media (prefers-reduced-motion: reduce) {
      *, ::before, ::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
      .repo-card:hover { transform: none; }
    }
    @media (max-width: 700px) { body { padding-inline: 1rem; } header, .repo-title, .issue-card, .repo-row, .settings-row, .repo-settings-head, .repo-grant-row { align-items: flex-start; flex-direction: column; } table { font-size: .9rem; } input:not([type=checkbox]):not([type=radio]), textarea, select, button { width: 100%; } .account-hero, .settings-grid, .form-grid.two-cols, .repo-settings-row, .repo-danger-body, .repo-rule-fields, .properties-form, .review-form { grid-template-columns: minmax(0, 1fr); } .pull-reviews > .inline-form { align-items: stretch; flex-direction: column; } .account-hero .action-button, .repo-settings-head .action-button, .repo-settings-form button, .repo-collab-add button, .repo-danger-form button { width: 100%; justify-content: center; } .repo-settings-control, .repo-collab-row { flex-direction: column; align-items: stretch; } .repo-file-action { flex-direction: column; align-items: stretch; } .repo-card { grid-template-columns: minmax(0, 1fr); } .repo-actions, .clone-line, .repo-actions-top { align-items: stretch; flex-direction: column; } .clone-url { max-width: 100%; border-right: 1px solid var(--line-strong); border-radius: var(--radius) var(--radius) 0 0; } .copy-button { border-left: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); } .commit-row { grid-template-columns: 1fr; gap: .1rem; } .commit-time { text-align: left; } .search-row { align-items: stretch; flex-direction: column; } .tree-row { grid-template-columns: minmax(0, 1fr) auto; } .tree-size { display: none; } .label-row { justify-content: flex-start; } .branch-row { grid-template-columns: minmax(0, 1fr); } .commit-divergence { display: none; } .branch-actions button, .branch-filter button, .branch-copy { width: auto; } .branch-filter { width: 100%; } .branch-filter input { flex: 1 1 auto; width: auto; } }

/* Shared controls: feature views compose these rather than inventing visual
   variants per route. */
.button { display: inline-flex; min-height: 2.5rem; align-items: center; justify-content: center; gap: .35rem; box-sizing: border-box; padding: .45rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field); color: var(--fg); cursor: pointer; font: inherit; font-weight: 650; line-height: 1; text-decoration: none; }
.button:hover { background: var(--accent-soft); color: var(--fg); text-decoration: none; }
.button--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.button--primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--on-accent); }
.button--danger { border-color: var(--danger); color: var(--danger); }
.button--secondary { background: var(--field); }
.button--quiet { min-height: 0; border: 0; background: transparent; border-radius: var(--radius); color: var(--fg); justify-content: flex-start; }
.menu__panel .button--quiet { width: 100%; }
.button--text { min-height: 0; padding: .35rem .15rem; border-color: transparent; background: transparent; color: var(--muted); }
.mermaid-diagram { display: block; width: auto; max-width: 100%; height: auto; max-height: 28rem; margin: .75rem auto; }
.mathjax-diagram { display: block; max-width: 100%; height: auto; margin: 1rem auto; }
.mathjax-inline { display: inline-block; max-width: 100%; height: 1.35em; vertical-align: -0.32em; }

/* Repository work lists share one dense command surface. */
.worklist-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 .65rem; }
.worklist-heading h2 { margin: 0; }
.worklist-toolbar { position: relative; display: flex; align-items: center; gap: .65rem; margin: 0; padding: .65rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.worklist-toolbar .issue-new { flex: 0 0 auto; margin: 0; padding: 0; border: 0; background: transparent; }
.worklist-toolbar .issue-new > summary { list-style: none; white-space: nowrap; }
.worklist-toolbar .issue-new > summary::-webkit-details-marker { display: none; }
.worklist-toolbar .issue-new[open] { position: absolute; right: 0; z-index: 4; width: min(42rem, 100%); padding: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-pop); }
.worklist-search { display: flex; flex: 1; gap: 0; }
.worklist-links { display: inline-flex; align-items: stretch; gap: 0; white-space: nowrap; }
.worklist-links a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .7rem; border: 1px solid var(--line-strong); color: var(--fg); font-size: .9rem; font-weight: 650; text-decoration: none; }
.worklist-links a:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.worklist-links a:last-child { margin-left: -1px; border-radius: 0 var(--radius) var(--radius) 0; }
.worklist-links a:hover { position: relative; border-color: var(--accent); background: var(--accent-soft); }
.worklist-search input { min-width: 0; flex: 1; border-radius: var(--radius) 0 0 var(--radius); }
.worklist-search .button { border-radius: 0 var(--radius) var(--radius) 0; }
.worklist-summary { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; }
.worklist-bulk-form { display: none; }
.worklist-bulk { display: contents; }
.worklist-select-all { display: inline-flex; order: 0; align-items: center; margin: 0; }
.worklist-bulk-actions { display: inline-flex; order: 2; align-items: center; gap: .4rem; }
.worklist-bulk .button { min-height: 2.25rem; padding: .35rem .55rem; }
.worklist-bulk .button:disabled { cursor: not-allowed; opacity: .55; }
.worklist-states { display: inline-flex; order: 1; flex: 0 0 auto; gap: 0; flex-wrap: nowrap; }
.worklist-state { display: inline-flex; gap: .25rem; align-items: center; min-height: 2.25rem; margin-left: -1px; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 0; color: var(--muted); text-decoration: none; white-space: nowrap; }
.worklist-state:first-child { margin-left: 0; border-radius: var(--radius) 0 0 var(--radius); }
.worklist-state:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.worklist-state.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.worklist-filter-bar { display: flex; order: 3; min-width: 0; margin-left: auto; gap: .35rem; flex-wrap: nowrap; }
.worklist-filter-bar label { flex: 0 0 auto; margin: 0; }
.worklist-filter-bar label select, .worklist-filter-bar label input:not([type=hidden]) { width: auto; min-width: 0; max-width: 9rem; min-height: 2.25rem; margin: 0; padding: .35rem .5rem; font-size: .86rem; }
.worklist-filter-bar label input[name=author] { width: 7rem; min-width: 7rem; }
.worklist-filter-bar .button { min-height: 2.25rem; padding: .35rem .55rem; white-space: nowrap; }
.issues-list { margin-top: 0; }
.issue-card { align-items: center; }
.issue-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; }
.work-item-leading { display: inline-flex; align-items: center; gap: .45rem; }
.work-item-state { display: inline-flex; width: 1rem; height: 1rem; align-items: center; justify-content: center; color: var(--muted); }
.work-item-state svg { width: 1rem; height: 1rem; stroke-width: 2; }
.work-item-state.state-open { color: #16803a; }
.work-item-state.state-closed { color: var(--danger); }
.work-item-state.state-merged { color: #7c3aed; }
.issue-row-avatar { display: inline-flex; width: 1.8rem; height: 1.8rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-family: var(--mono); font-size: .8rem; font-weight: 800; object-fit: cover; }
.issue-row-main { min-width: 0; }
.issue-title-row { display: flex; align-items: center; gap: .35rem; min-width: 0; flex-wrap: wrap; }
.issue-title-row .label-row { justify-content: flex-start; }
.work-item-type { color: var(--muted); }
.issue-comments, .pull-target { display: inline-flex; align-items: center; gap: .22rem; color: var(--muted); font-size: .86rem; white-space: nowrap; }
.issue-milestone { display: inline-block; margin-left: .3rem; color: var(--muted); }
.issue-card.worklist-selected { background: var(--accent-soft); }
.worklist-selector input { accent-color: var(--accent); }
@media (max-width: 980px) { .worklist-summary { align-items: stretch; flex-wrap: wrap; } .worklist-filter-bar { flex: 1 1 100%; margin-left: 0; overflow-x: auto; padding-bottom: .2rem; } }
@media (max-width: 700px) { .worklist-heading, .worklist-toolbar { align-items: stretch; flex-direction: column; } .worklist-filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } .worklist-filter-bar label select, .worklist-filter-bar label input:not([type=hidden]), .worklist-filter-bar label input[name=author] { width: 100%; max-width: none; } .worklist-filter-bar .button { grid-column: 1 / -1; width: 100%; } }
.button--icon { width: var(--nav-control-height); height: var(--nav-control-height); min-height: var(--nav-control-height); padding: 0; }
.button--icon svg { width: 1.05rem; height: 1.05rem; }
.menu { position: relative; margin: 0; padding: 0; border: 0; background: transparent; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: calc(100% + .45rem); z-index: 5; min-width: 10rem; padding: .35rem; border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + .2rem); background: var(--panel); box-shadow: var(--shadow-pop); }
.menu__panel a { display: block; padding: .45rem .6rem; border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.menu__panel a:hover { background: var(--accent-soft); }
.avatar { display: inline-flex; width: 1.65rem; height: 1.65rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-family: var(--mono); font-size: .78rem; font-weight: 800; object-fit: cover; }
.properties-form .properties-save { display: inline-flex; min-height: 2.25rem; align-self: end; align-items: center; justify-content: center; padding-block: 0; }
.property-picker { display: grid; gap: .35rem; min-width: 0; }
.property-picker-label { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.property-picker-trigger { display: flex; width: 100%; min-height: 2.25rem; align-items: center; justify-content: flex-start; padding: .35rem .5rem; background: var(--field); border-color: var(--line-strong); color: var(--fg); font-weight: 400; text-align: left; }
.property-picker-trigger:hover { background: var(--accent-soft); border-color: var(--accent); }
.property-picker-value { display: flex; flex-wrap: wrap; gap: .25rem; min-width: 0; }
.property-picker-placeholder { color: var(--muted); }
.property-chip { display: inline-flex; max-width: 100%; padding: .1rem .38rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property-picker-panel { width: min(22rem, calc(100vw - 2rem)); margin: 0; padding: .5rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--fg); box-shadow: var(--shadow-pop); }
.property-picker-panel:popover-open { display: grid; gap: .45rem; }
.property-picker-search { width: 100%; margin: 0; }
.property-picker-options { display: grid; max-height: 15rem; overflow: auto; gap: .15rem; }
.property-picker-option { width: 100%; padding: .42rem .5rem; border: 0; border-radius: calc(var(--radius) - .1rem); background: transparent; color: var(--fg); font-weight: 500; text-align: left; }
.property-picker-option:hover, .property-picker-option[aria-pressed=true] { background: var(--accent-soft); color: var(--fg); }
.pull-tabs { display: flex; gap: 0; margin: 0 0 1rem; border-bottom: 1px solid var(--line-strong); }
.pull-tabs a { padding: .55rem .85rem; color: var(--muted); font-weight: 650; text-decoration: none; border-bottom: 2px solid transparent; }
.pull-tabs a:hover { color: var(--fg); background: var(--accent-soft); }
.pull-tabs a.active { color: var(--fg); border-bottom-color: var(--accent); }
.pull-revision-picker { justify-content: flex-end; margin: 0 0 .85rem; }
.pull-revision-picker label { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .82rem; }
.pull-revision-picker label select { margin: 0; }
.pull-commits, .pull-files { margin: 0 0 1.2rem; }
.pull-commit { display: flex; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; border: 1px solid var(--line); border-bottom: 0; background: var(--panel); }
.pull-commit:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.pull-commit:last-of-type { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.pull-file-group { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.pull-file-group h4 { margin: 0; padding: .5rem .8rem; border-bottom: 1px solid var(--line); background: var(--code-bg); font-size: .84rem; }
.diff-file-head, .diff-hunk, .diff-line { font-family: var(--mono); font-size: .82rem; }
.diff-file-head, .diff-hunk { padding: .35rem .8rem; background: var(--code-bg); border-bottom: 1px solid var(--line); }
.diff-line { position: relative; display: grid; grid-template-columns: 4rem minmax(0, 1fr); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.diff-line-no { padding: .08rem .5rem; text-align: right; color: var(--faint); user-select: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; font: inherit; cursor: pointer; }
.diff-line-no:hover, .diff-line-no:focus-visible { color: var(--accent); background: var(--accent-soft); outline: 0; }
.diff-line.diff-line-selected { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.diff-line code { padding: .08rem .7rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-line > code:only-child { grid-column: 1 / -1; }
.inline-comment { grid-column: 2; margin: .35rem .7rem .6rem; padding: .5rem .65rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); font-family: ui-sans-serif, system-ui, sans-serif; }
.inline-comment.draft { border-style: dashed; background: var(--accent-soft); }
.inline-comment-compose { grid-column: 2; margin: 0 .7rem; font-family: ui-sans-serif, system-ui, sans-serif; }
.inline-comment-compose form:not([hidden]) { margin: .35rem 0 .6rem; }
.inline-comment-compose textarea { width: 100%; min-height: 4rem; }
.diff-range-actions { display: flex; align-items: center; gap: .45rem; margin: .35rem .7rem .6rem 4.7rem; padding: .45rem .55rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); font-family: ui-sans-serif, system-ui, sans-serif; }
.diff-range-actions button { width: auto; margin: 0; }
.inline-comment-range { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .78rem; font-weight: 600; }
.pull-inline-context { margin: 0 0 .65rem; font-size: .88rem; }
.pull-inline-context a { font-family: var(--mono); }
.review-draft-count { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--code-bg); }
@media (max-width: 1000px) { .properties-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .properties-form .properties-save { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 700px) { .pull-tabs { overflow-x: auto; flex-wrap: nowrap; } .pull-tabs a { white-space: nowrap; } .pull-revision-picker, .review-request-form { align-items: stretch; flex-direction: column; } .review-composer-head { align-items: flex-start; flex-direction: column; } .pull-commit { align-items: flex-start; flex-direction: column; } }

/* Keep each pull-request task in its own visual boundary. */
.pull-conversation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: 1.25rem; align-items: start; }
.pull-conversation-main { min-width: 0; }
.pull-sidebar { display: grid; gap: 1rem; min-width: 0; }
.pull-sidebar .issue-properties { margin: 0; }
.pull-sidebar .properties-form { grid-template-columns: minmax(0, 1fr); }
.pull-sidebar .properties-form .properties-save { grid-column: auto; justify-self: stretch; }
.pull-sidebar .review-request-form { max-width: none; align-items: stretch; flex-direction: column; }
.pull-sidebar .review-request-form button { width: 100%; }
.review-request-form .property-picker-trigger { min-height: 2.5rem; }
.pull-action-panel { margin: 1.25rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.discussion-composer-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--code-bg); }
.discussion-composer-head h3 { margin: 0; font-size: .95rem; }
.discussion-composer-head .muted { margin: 0; font-size: .82rem; }
.pull-action-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: .75rem .9rem; }
.pull-action-buttons form { margin: 0; }
.pull-action-buttons .merge-form { margin: 0; padding: 0; border: 0; }
.pull-revision-panel { margin: 1rem 0 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pull-revision-panel[open] > summary { padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.pull-revision-panel form { display: grid; gap: .65rem; margin: .7rem 0 0; }
.pull-revision-panel label { display: grid; gap: .35rem; margin: 0; }
.pull-revision-panel textarea { width: 100%; min-height: 12rem; margin: 0; }
.pull-revision-actions { display: flex; justify-content: flex-end; }
.pull-revision-actions .form-action { width: auto; margin: 0; white-space: nowrap; }
.discussion-composer { margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.discussion-composer form { display: grid; gap: .65rem; margin: 0; padding: .8rem .9rem; }
.discussion-composer .md-editor { margin: 0; }
.comment-form-actions { display: flex; justify-content: flex-end; }
.comment-form-actions .form-action { width: auto; margin: 0; }
.md-editor.image-drop-target { outline: 2px dashed var(--accent); outline-offset: 2px; }
.md-editor.image-drop-uploading { opacity: .6; }
.review-workflow { display: grid; gap: .55rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.review-workflow > h3 { margin: 0; font-size: 1rem; }
.review-workflow .review-composer { max-width: none; }
.review-workflow .review-form textarea { min-height: 10rem; }
@media (max-width: 850px) { .pull-conversation-layout { grid-template-columns: minmax(0, 1fr); } .pull-sidebar { grid-row: 1; } .pull-sidebar .properties-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pull-sidebar .properties-form .properties-save { grid-column: 1 / -1; } }
@media (max-width: 700px) { .discussion-composer-head { align-items: flex-start; flex-direction: column; } .pull-action-buttons, .comment-form-actions { align-items: stretch; flex-direction: column; } .pull-action-buttons form, .comment-form-actions .form-action, .pull-revision-actions .form-action { width: 100%; max-width: none; } }
