:root {
  color-scheme: light;
  --ink: #282a30;
  --muted: #666974;
  --line: #e7e8ec;
  --canvas: #f8f9fb;
  --sidebar: #f5f5f7;
  --accent: #5b55c8;
  --accent-soft: #ecebf6;
  --accent-hover: #4944ae;
  --control-hover: #f2f2f6;
  --task-hover-bg: white;
  --task-hover-border: var(--accent);
  --stage-planned: #6e5a9b;
  --stage-ready: #327b91;
  --stage-closed: #39704b;
  --graph-complete-ink: #032a13;
  --task-planned-surface: #f7f4fc;
  --task-ready-surface: #f0f7f9;
  --task-in-progress-surface: #f5f6fc;
  --task-blocked-surface: #fdf6f7;
  --task-review-surface: #fbf8f0;
  --task-triage-surface: #fbf8f0;
  --task-closed-surface: #edf6f0;
  --scroll-thumb: #898d99;
  --scroll-thumb-hover: #666974;
  --resolved-ink: #39704b;
  --resolved-bg: #edf6f0;
  --resolved-line: #cde5d6;
  --danger: #af4050;
  --warning: #83631e;
  --radius: 6px;
  --font-meta: .75rem;
  --font-body: .8125rem;
  --font-card-title: .875rem;
  --font-section: .875rem;
  --font-title: 1.25rem;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: white;
  font-synthesis: none;
}
* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
@supports not (scrollbar-color: auto) {
  @media (forced-colors: none) {
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid transparent; background-clip: padding-box; border-radius: 8px; }
    ::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
    ::-webkit-scrollbar-button { display: none; }
  }
}
@media (forced-colors: active) {
  * { scrollbar-width: auto; scrollbar-color: auto; }
}
body { margin: 0; font-size: var(--font-body); line-height: 1.5; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { touch-action: manipulation; }
button, .button-link, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--radius); background: white; font-weight: 500; cursor: pointer; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
button:hover, .button-link:hover { background: #f2f2f6; border-color: #cecfd8; text-decoration: none; }
button:active { background: #e9e8f1; }
button:disabled { color: var(--muted); background: #f5f5f7; cursor: default; }
button:disabled:hover { border-color: var(--line); }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: #e3e0fa; color: #302951; }
input { caret-color: var(--accent); }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon.small { width: 13px; height: 13px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: -10000px; }
.skip-link:focus { top: 8px; left: 12px; z-index: 60; padding: 10px; background: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, p { margin: 0; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.muted { color: var(--muted); }
.app-shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.sidebar { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 18px 10px 12px; border-right: 1px solid var(--line); background: var(--sidebar); }
.brand { display: flex; gap: 8px; align-items: center; color: var(--ink); padding: 0 8px; }
.brand:hover { text-decoration: none; }
.brand-wordmark { display: block; width: 74px; height: auto; flex-shrink: 0; }
.brand-caption { color: var(--muted); font-size: 12px; }
.repository { display: flex; align-items: center; gap: 8px; padding: 0 8px; margin: 26px 0 16px; }
.repository > .icon { color: var(--muted); }
.repository div { min-width: 0; }
.repository strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.repository span { display: block; color: var(--muted); font-size: 12px; }
.page-nav, #stage-nav { display: grid; gap: 3px; }
.nav-item { width: 100%; justify-content: flex-start; padding: 6px 9px; min-height: 32px; background: transparent; border-color: transparent; color: #575a65; font-size: 13px; }
.nav-item:hover { background: #ececef; border-color: transparent; }
.nav-item.active { color: #36304e; background: var(--accent-soft); }
.nav-item.active > .icon { color: var(--accent); }
.nav-item > span:not(.nav-count) { min-width: 0; }
.nav-count { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.nav-divider { height: 1px; background: var(--line); margin: 14px 8px; }
.stage-icon { display: inline-block; width: 15px; height: 15px; color: #777a87; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.stage-icon.planned { color: var(--stage-planned); }
.stage-icon.ready { color: var(--stage-ready); }
.stage-icon.in-progress { color: #6476c3; }
.stage-icon.blocked { color: #b24958; }
.stage-icon.review { color: #9a7829; }
.stage-icon.closed { color: var(--stage-closed); }
.stage-icon.triage { color: #8b6c27; }
.sidebar-footer { margin-top: auto; padding: 22px 8px 0; display: grid; gap: 4px; }
.sidebar-footer a { display: flex; align-items: center; gap: 7px; color: var(--muted); min-height: 30px; font-size: 12px; }
.sidebar-footer a .small { margin-left: auto; }
main { min-width: 0; min-height: 0; outline: none; display: flex; flex-direction: column; position: relative; }
.topbar { height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12px; }
#breadcrumb-repo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.separator { color: var(--muted); }
.topbar-actions, .account-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.sync-time { color: var(--muted); font-size: 12px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.icon-button { width: 28px; min-height: 28px; padding: 5px; background: transparent; border-color: transparent; }
.source-button, .account-button { min-height: 28px; padding: 4px 7px; background: transparent; border-color: transparent; font-size: 12px; }
.source-button .small { transform: rotate(90deg); }
.source-button[aria-expanded=true] .small { transform: rotate(-90deg); }
.connection-dot { width: 5px; height: 5px; border-radius: 50%; background: #438260; }
.source-button.offline .connection-dot { background: #9a7829; }
.source-button.error .connection-dot { background: var(--danger); }
.account-button { max-width: 150px; }
.account-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popover-panel { position: absolute; z-index: 20; top: 48px; right: 16px; width: min(350px, calc(100% - 24px)); padding: 16px; background: white; border-radius: 8px; box-shadow: 0 8px 32px #22233326, 0 1px 6px #22233314; }
.popover-panel h2 { font-size: 13px; font-weight: 600; }
.popover-panel p { margin: 8px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.source-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-notice { display: flex; align-items: center; gap: 6px; padding: 5px 20px; color: #7d5f21; background: #faf5e9; font-size: 12px; flex-shrink: 0; }
.demo-notice .icon { width: 14px; height: 14px; }
.error-banner { margin: 10px 20px; padding: 9px 12px; background: #fff2f4; color: #8d3343; border-radius: 6px; font-size: 12px; line-height: 1.7; flex-shrink: 0; }
.error-banner .icon { vertical-align: middle; }
.tasks-page { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.view-heading { display: flex; align-items: center; gap: 8px; padding: 16px 20px 10px; flex-shrink: 0; }
.view-heading h1 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.heading-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.view-switch { display: flex; gap: 2px; margin-left: auto; }
.view-switch button { min-height: 28px; background: transparent; border-color: transparent; padding: 4px 7px; color: var(--muted); font-size: 12px; }
.view-switch button[aria-pressed=true] { color: var(--ink); background: #eeeeF3; }
.filterbar { display: flex; align-items: center; gap: 6px; padding: 0 20px 8px; flex-shrink: 0; }
.filterbar label { min-width: 0; }
#milestone-filter-label { width: 174px; flex: 0 0 174px; }
.filterbar select { width: 100%; max-width: 174px; min-height: 28px; padding: 4px 30px 4px 8px; appearance: none; background-color: white; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23666974' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; border: 1px solid var(--line); border-radius: 5px; color: #595c67; font-size: 12px; cursor: pointer; }
@supports (appearance: base-select) {
  @media (forced-colors: none) {
    .filterbar select { appearance: base-select; background-image: none; padding-right: 10px; height: 28px; white-space: nowrap; }
    .filterbar select > button { display: flex; width: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; gap: 0; font: inherit; color: inherit; }
    .filterbar selectedcontent { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .filterbar select::picker-icon { color: var(--muted); margin-left: auto; padding-left: 10px; font-size: 10px; flex-shrink: 0; }
    .filterbar select:open { border-color: #b7b5cc; }
    .filterbar select::picker(select) { appearance: base-select; min-width: anchor-size(width); max-width: min(360px, calc(100vw - 24px)); max-height: min(320px, calc(100dvh - 80px)); overflow: auto; padding: 4px; margin-top: 5px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 5px 18px #282a301a; font: inherit; color: var(--ink); }
    .filterbar option { min-height: 30px; padding: 6px 9px; border-radius: 4px; display: flex; align-items: center; gap: 12px; white-space: normal; overflow-wrap: anywhere; font-size: 12px; cursor: pointer; }
    .filterbar option:hover, .filterbar option:focus-visible { background: var(--control-hover); outline: none; }
    .filterbar option:checked { background: var(--accent-soft); color: var(--accent-hover); font-weight: 500; }
    .filterbar option::checkmark { order: 1; margin-left: auto; color: var(--accent); }
  }
}
.filterbar select:has(option:checked:not([value=""])) { color: var(--ink); }
.filterbar .sort-control { margin-left: auto; }
#toggle-closed { min-height: 28px; font-size: 12px; background: transparent; color: var(--muted); white-space: nowrap; }
#toggle-closed[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.results-line { display: flex; align-items: center; gap: 10px; padding: 0 20px 9px; min-height: 26px; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.active-filter { color: var(--accent); }
.text-button { border: 0; background: transparent; padding: 2px 0; min-height: 24px; font-size: 12px; color: var(--accent); }
.text-button:hover { background: transparent; text-decoration: underline; }
.triage-hint { margin-left: auto; border: 0; background: transparent; padding: 2px 0; min-height: 24px; color: var(--warning); font-size: 12px; }
.workspace { flex: 1; min-height: 0; border-top: 1px solid var(--line); background: var(--canvas); }
#tasks-region { height: 100%; min-width: 0; }
#tasks { height: 100%; overflow: auto; }
.board { display: flex; gap: 16px; padding: 16px 20px 28px; align-items: flex-start; }
.board-column { min-width: 272px; flex: 1 0 272px; max-width: 304px; }
.column-heading { display: flex; align-items: center; gap: 7px; margin: 0 1px 12px; }
.column-heading h2 { font-size: 13px; font-weight: 600; }
.column-heading .count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.column-cards { display: grid; gap: 9px; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 12px; padding: 16px 20px 28px; }
.task-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; text-align: left; width: 100%; background: white; padding: 12px 13px; border: 1px solid #e2e3e9; border-radius: 7px; min-width: 0; }
.card-main { min-width: 0; margin-bottom: 11px; }
.task-card:hover { background: var(--task-hover-bg); border-color: var(--task-hover-border); }
.task-card.selected { border-color: var(--accent); background: #fcfbff; }
.card-top { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.task-number { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.priority { display: inline-flex; align-items: center; margin-left: auto; font-size: 11px; font-weight: 550; border-radius: 4px; padding: 1px 5px; line-height: 1.55; color: #636775; background: #eff0f4; white-space: nowrap; }
.priority.Urgent, .priority.High { color: #a33748; background: #fbecef; }
.priority.Medium { color: #7d601d; background: #faf1db; }
.priority.Low { color: #486488; background: #edf2f9; }
.task-card h3 { font-size: 14px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.card-labels, .row-labels, .detail-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.card-labels { margin-top: 9px; }
.label-chip { display: inline-flex; align-items: center; padding: 1px 5px; border-radius: 4px; font-size: 11px; line-height: 1.6; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.area-client { color: #436586; background: #eef3f8; }
.area-backend { color: #3d6c60; background: #edf4f0; }
.area-teaching { color: #7c602d; background: #faf3e8; }
.area-platform { color: #66578b; background: #f1eef7; }
.area-tooling, .area-other, .type-task, .type-other, .raw-label { color: #636775; background: #eff0f4; }
.type-bug { color: #a33748; background: #fbecef; }
.type-feature { color: #3b6a71; background: #eef5f6; }
.card-warning { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; font-size: 11px; color: var(--warning); line-height: 1.6; }
.card-warning .icon { margin-top: 2px; width: 12px; height: 12px; }
.card-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: auto; padding-top: 9px; border-top: .5px solid #eff0f4; color: var(--muted); font-size: 11px; }
.card-progress, .card-owner { display: inline-flex; gap: 9px; align-items: center; min-width: 0; }
.card-owner { margin-left: auto; flex-shrink: 0; gap: 7px; }
.card-owner .avatar { width: 20px; height: 20px; }
.card-footer .assignee-name { display: none; }
.card-footer .unassigned { font-size: 11px; }
.card-updated, .row-updated { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-summary, .criteria-summary { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.pr-summary .icon, .criteria-summary .icon { width: 13px; height: 13px; }
.assignee { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.assignee-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.avatar { position: relative; overflow: hidden; width: 22px; height: 22px; border-radius: 50%; background: #efedf5; color: #655e83; display: grid; place-items: center; font-size: 10px; font-weight: 500; flex-shrink: 0; }
.avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-stack { display: inline-flex; flex-shrink: 0; }
.avatar-stack .avatar + .avatar { margin-left: -6px; border: 1px solid white; }
.person { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; overflow-wrap: anywhere; }
.person > span:last-child { min-width: 0; }
.empty-column { padding: 20px 10px; text-align: center; color: var(--muted); font-size: 12px; }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; max-width: 440px; margin: 36px auto; padding: 24px; }
.empty-state > .icon { width: 24px; height: 24px; color: var(--muted); margin-bottom: 12px; }
.empty-state h2 { font-size: 15px; font-weight: 600; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 9px 0 16px; }
.skeleton-column { flex: 1 0 260px; max-width: 304px; }
.skeleton-heading { width: 76px; height: 12px; background: #e6e7ed; margin-bottom: 14px; border-radius: 3px; }
.skeleton-card { height: 128px; background: white; border: 1px solid var(--line); border-radius: 7px; padding: 14px; }
.skeleton-card span { display: block; height: 10px; width: 90%; background: #f0f0f4; border-radius: 3px; margin-bottom: 13px; }
.skeleton-card span:first-child { width: 32%; }
.skeleton-card span:last-child { width: 65%; }
.task-table { background: white; }
.list-header, .task-row { display: grid; grid-template-columns: 50px minmax(230px, 1fr) 120px 72px 140px 72px 70px 70px; min-width: 1010px; gap: 10px; align-items: center; }
.list-header { position: sticky; top: 0; z-index: 1; background: #fbfbfc; border-bottom: 1px solid var(--line); padding: 9px 20px; font-size: 11px; color: var(--muted); }
.task-row { padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 12px; }
.task-row:hover { background: #f8f8fb; }
.task-row.selected { background: var(--accent-soft); }
.row-title { min-width: 0; }
.row-open { display: block; min-height: 0; max-width: 100%; padding: 0; border: 0; background: transparent; text-align: left; border-radius: 2px; font-size: 13px; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.row-open:hover { background: transparent; color: var(--accent); }
.row-labels { margin-top: 5px; }
.row-stage { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.row-priority .priority { margin: 0; }
.row-assignee, .row-updated { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row-prs { display: flex; flex-wrap: wrap; gap: 4px; }
.row-prs a { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; }
.row-prs .icon { width: 12px; height: 12px; }
.row-criteria { border: 0; background: transparent; color: var(--muted); padding: 0; min-height: 24px; justify-content: flex-start; font-size: 12px; font-variant-numeric: tabular-nums; }
.row-criteria:hover { color: var(--accent); background: transparent; }
.row-warning { display: block; color: var(--warning); font-size: 11px; margin-top: 4px; }
.detail-backdrop { position: fixed; inset: 0; z-index: 30; background: #22222b33; }
.task-detail { position: fixed; z-index: 40; inset: 0 0 0 auto; width: min(900px, calc(100vw - 120px)); height: 100dvh; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; overscroll-behavior: contain; background: white; padding: 0 28px 32px; box-shadow: -12px 0 40px #1b1c2b26; }
body.detail-open { overflow: hidden; }
.detail-toolbar { position: sticky; top: 0; z-index: 2; background: white; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.detail-toolbar button { background: transparent; border-color: transparent; width: 30px; min-height: 30px; padding: 5px; }
.detail-location { display: flex; align-items: center; gap: 12px; min-width: 0; }
.detail-location > span { white-space: nowrap; }
.detail-path-divider { height: 14px; width: 1px; background: var(--line); }
.detail-toolbar #back-detail { width: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; white-space: nowrap; padding: 5px 7px 5px 3px; }
.detail-toolbar #back-detail:hover { background: var(--control-hover); }
.detail-content { max-width: 720px; width: 100%; margin-inline: auto; }
#detail-heading:focus { outline: none; }
.detail-title { padding: 22px 0 20px; }
.detail-title h2 { font-size: 21px; font-weight: 600; line-height: 1.55; letter-spacing: -.02em; overflow-wrap: anywhere; text-wrap: pretty; }
.stage-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.stage-line .priority { margin-left: 4px; }
.detail-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); gap: 24px; }
.detail-properties { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 12px; margin: 0 0 18px; font-size: 13px; line-height: 1.6; align-items: center; }
.detail-properties dt { color: var(--muted); font-size: 12px; }
.detail-properties dd { margin: 0; overflow-wrap: anywhere; }
.detail-assignees { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.detail-extra, .relation-help { font-size: 12px; color: var(--muted); }
.detail-extra { margin: 0 0 14px; }
.detail-extra summary, .relation-help summary { cursor: pointer; min-height: 30px; padding: 6px 0; }
.detail-extra .detail-properties { margin-top: 10px; color: var(--ink); }
.criteria-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.criteria-jump { min-height: 26px; padding: 1px 5px; margin-left: -5px; border-color: transparent; background: transparent; color: var(--accent); font-size: 13px; }
.detail-warning { padding: 10px 12px; border-radius: 6px; background: #faf4e7; color: #775a1c; font-size: 12px; line-height: 1.75; margin: 14px 0; }
.detail-warning strong { display: block; margin-bottom: 3px; }
.closed-note, .relation-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 10px 0; }
.detail-next { padding: 14px 16px; background: #f7f7fa; border-radius: 6px; margin: 0 0 20px; }
.detail-next h3 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.detail-next .markdown { margin: 0; font-size: 14px; }
.detail-next .markdown > :first-child { margin-top: 0; }
.detail-next .markdown > :last-child { margin-bottom: 0; }
.detail-prs { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.detail-prs h3, .detail-body > h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.section-count { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.pr-row { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pr-row a { display: flex; align-items: flex-start; gap: 6px; color: var(--ink); line-height: 1.6; }
.pr-row .icon { margin-top: 2px; color: #73778c; }
.pr-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; padding-left: 22px; color: var(--muted); font-size: 11px; }
.pr-facts time { white-space: nowrap; }
.pr-state { padding: 1px 5px; border-radius: 4px; }
.pr-state.draft, .pr-state.closed { color: #636775; background: #eff0f4; }
.pr-state.ready { color: #436586; background: #eef3f8; }
.pr-state.merged { color: #66578b; background: #f1eef7; }
.ambiguous { color: var(--warning); }
.pr-empty { color: var(--muted); font-size: 12px; line-height: 1.7; }
.relation-help { line-height: 1.7; margin-top: 7px; }
.relation-help p { padding: 6px 0 10px; max-width: 70ch; }
.detail-body { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.markdown { max-width: 75ch; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 { font-size: 15px; margin: 24px 0 9px; font-weight: 600; line-height: 1.6; }
.markdown h1, .markdown h2 { font-size: 16px; }
.markdown p { margin: 10px 0; }
.markdown ul, .markdown ol { padding-left: 21px; margin: 9px 0; }
.markdown li { margin: 4px 0; }
.markdown li.check-item { list-style: none; }
.markdown input[type=checkbox] { margin: 0 6px 0 -19px; accent-color: var(--accent); vertical-align: middle; }
.markdown pre { max-width: 100%; overflow-x: auto; white-space: pre; background: #f5f5f8; padding: 12px; font-size: 12px; border-radius: 5px; margin: 10px 0; }
.markdown code { background: #f0f0f5; padding: 1px 4px; border-radius: 3px; font-size: 12px; }
.markdown pre code { background: transparent; padding: 0; }
.markdown blockquote { padding: 2px 14px; margin: 10px 0; border-left: 1px solid #c8c6d5; color: var(--muted); }
.markdown a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.markdown .panel-issue-link:hover { color: var(--accent-hover); }
.markdown img { max-width: 100%; height: auto; border-radius: 5px; }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.markdown-table { width: 100%; max-width: 100%; overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 5px; }
.markdown table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: normal; }
.markdown th, .markdown td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; min-width: 110px; }
.markdown th { background: #f7f7fa; font-weight: 550; }
.markdown tr:last-child td { border-bottom: 0; }
#issue-criteria { scroll-margin-top: 60px; }
#issue-criteria:focus { outline: none; color: var(--accent); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 10px 14px; max-width: calc(100vw - 28px); background: #353343; color: white; font-size: 12px; border-radius: 7px; box-shadow: 0 5px 20px #22233320; z-index: 60; }
.login-panel { min-height: 100dvh; display: grid; place-items: center; padding: 28px 22px; background: #fafafb; }
.login-content { width: min(360px, 100%); }
.login-content .brand { justify-content: center; padding: 0; margin-bottom: 34px; }
.login-content .brand-wordmark { width: min(180px, 100%); }
.login-content h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.5; }
.login-content > p { margin: 8px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-content form { display: grid; gap: 10px; }
.login-content form label { font-size: 12px; }
.login-content input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 11px; font-size: 16px; background: white; }
.primary-button { color: white; background: var(--accent); border-color: var(--accent); }
.primary-button:hover, .primary-button:active { color: white; background: #4944ae; border-color: #4944ae; text-decoration: none; }
.primary-button:disabled { color: var(--muted); background: #efedf6; border-color: var(--line); }
.github-login { width: 100%; min-height: 40px; }
.login-content #login-help { margin: 16px 0; font-size: 12px; line-height: 1.75; }
.login-content .login-error { color: var(--danger); font-size: 12px; margin: 12px 0; }
.login-links { display: flex; align-items: center; gap: 18px; margin-top: 18px; font-size: 12px; }
.assignment-editor { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; padding: 16px 0; }
.assignment-editor h3 { font-size: 14px; font-weight: 600; }
.assignment-editor p { font-size: 12px; line-height: 1.75; color: var(--muted); margin: 8px 0; }
.assignment-candidates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 10px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 8px; margin: 12px 0; }
.assignment-candidates label, .handover-label { display: flex; align-items: center; gap: 7px; padding: 6px 4px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.assignment-candidates input, .handover-label input { width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; }
.assignment-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.assignment-editor .assignment-error { color: var(--danger); }
.assignment-editor .assignment-change { color: var(--ink); }
@media (max-width: 1160px) {
  .app-shell { grid-template-columns: 192px minmax(0, 1fr); }
  .filterbar { flex-wrap: wrap; }
  .task-detail { width: min(900px, calc(100vw - 80px)); }
}
@media (max-width: 960px) {
  .detail-summary { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .app-shell { display: flex; flex-direction: column; }
  .sidebar { overflow: visible; flex-shrink: 0; padding: 10px 12px 0; border-right: 0; border-bottom: 1px solid var(--line); background: var(--sidebar); }
  .brand { padding: 0; }
  .brand-caption { display: none; }
  .repository { position: absolute; top: 12px; right: 12px; margin: 0; padding: 0; }
  .repository span { display: none; }
  .repository strong { max-width: 150px; }
  .page-nav { display: flex; gap: 5px; margin-top: 7px; }
  .nav-item { width: auto; flex-shrink: 0; min-height: 36px; padding: 6px 9px; }
  .nav-count { margin-left: 2px; }
  #stage-nav { display: flex; gap: 4px; overflow-x: auto; margin: 5px -12px 0; padding: 0 12px 7px; }
  .nav-divider, .sidebar-footer { display: none; }
  main { flex: 1; }
  .topbar { height: 42px; padding: 0 12px; gap: 4px; }
  .breadcrumb { gap: 6px; max-width: 132px; }
  .sync-time { display: none; }
  .topbar-actions { gap: 2px; }
  .icon-button { width: 32px; min-height: 32px; }
  .source-button { padding: 4px 5px; min-height: 32px; }
  .source-button .small { display: none; }
  .account-button { min-height: 32px; width: 32px; padding: 6px; }
  .account-button span { display: none; }
  .popover-panel { right: 8px; top: 46px; }
  .popover-panel button { min-height: 36px; }
  .demo-notice { padding: 4px 12px; }
  .view-heading { padding: 12px 12px 8px; }
  .view-heading h1 { font-size: 15px; }
  .view-switch button { min-height: 32px; }
  .view-switch button span { display: none; }
  .filterbar { padding: 0 12px 7px; gap: 5px; flex-wrap: nowrap; overflow-x: auto; }
  .filterbar label { flex-shrink: 0; }
  #milestone-filter-label { width: 140px; flex-basis: 140px; }
  .filterbar select { min-height: 32px; max-width: 140px; padding: 5px 30px 5px 7px; }
  .filterbar select { height: 32px; }
  @supports (appearance: base-select) {
    @media (forced-colors: none) { .filterbar select { padding-right: 10px; } }
  }
  .filterbar .sort-control { margin-left: 0; }
  #toggle-closed { min-height: 32px; flex-shrink: 0; }
  .results-line { padding: 0 12px 7px; gap: 7px; }
  .results-line .triage-hint { max-width: 160px; }
  .results-line .triage-hint span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .error-banner { margin: 8px 12px; }
  .board { padding: 14px 12px 22px; gap: 12px; }
  .board-column { min-width: 270px; flex-basis: 270px; max-width: 310px; }
  .task-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 9px; }
  .task-card h3 { font-size: 14px; }
  .list-header { display: none; }
  .task-row { grid-template-columns: 44px minmax(0, 1fr) auto; min-width: 0; position: relative; padding: 13px 12px; gap: 8px 7px; }
  .task-row > .task-number { align-self: start; padding-top: 1px; font-size: 11px; }
  .row-title { grid-column: 2 / 4; grid-row: 1; }
  .row-open { font-size: 14px; }
  .row-stage { grid-column: 2; grid-row: 2; font-size: 11px; }
  .row-priority { grid-column: 3; grid-row: 2; justify-self: end; }
  .row-assignee { grid-column: 2; grid-row: 3; }
  .row-updated { grid-column: 3; grid-row: 3; text-align: right; }
  .row-prs { grid-column: 2; grid-row: 4; }
  .row-criteria { grid-column: 3; grid-row: 4; justify-self: end; }
  .empty-state { margin: 24px auto; padding: 20px; }
  .task-detail { width: 100%; padding: 0 18px 28px; box-shadow: none; }
  .detail-toolbar { height: 48px; }
  .detail-toolbar button { width: 36px; min-height: 36px; }
  .detail-location { gap: 8px; }
  .detail-toolbar #back-detail { min-height: 36px; }
  .detail-title { padding: 18px 0 14px; }
  .detail-title h2 { font-size: 20px; }
  .detail-properties { grid-template-columns: 80px minmax(0, 1fr); gap: 10px 12px; font-size: 13px; }
  .detail-summary { grid-template-columns: minmax(0, 1fr); }
  .detail-actions button, .detail-actions a { min-height: 36px; }
  .criteria-jump { min-height: 32px; }
  .detail-extra summary, .relation-help summary { min-height: 36px; }
  .detail-next { padding: 12px 13px; }
  .pr-facts { padding-left: 0; }
  .pr-facts time { flex-basis: 100%; }
  .markdown { font-size: 14px; }
  .markdown th, .markdown td { min-width: 120px; }
  .assignment-candidates { grid-template-columns: 1fr; }
  .assignment-candidates label { min-height: 36px; }
  .assignment-actions button { min-height: 36px; }
}
@media (forced-colors: active) {
  .filterbar select { appearance: auto; background-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.card-dependencies { display: flex; gap: 7px; align-items: flex-start; color: var(--muted); font-size: 11px; margin-top: 8px; }
.dependency-caption { flex-shrink: 0; line-height: 22px; }
.dependency-summary { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; min-width: 0; }
.dependency-ref, .dependency-more { display: inline-flex; gap: 3px; align-items: center; min-height: 22px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: #f8f9fb; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.6; overflow-wrap: anywhere; }
.dependency-ref .icon { width: 11px; height: 11px; }
button.dependency-more { min-height: 24px; color: var(--accent); background: white; }
button.dependency-more:hover { background: var(--accent-soft); }
.dependency-unknown { color: var(--muted); font-size: 11px; }
.dependency-link { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 24px; border: 0; padding: 0; background: transparent; font-size: 12px; color: var(--accent); line-height: 1.6; text-align: left; overflow-wrap: anywhere; }
.dependency-link:hover { background: transparent; text-decoration: underline; }
.resolved { color: var(--resolved-ink); }
.dependency-ref.resolved { color: var(--resolved-ink); background: var(--resolved-bg); border-color: var(--resolved-line); }
.row-dependencies { display: flex; gap: 4px; flex-wrap: wrap; }
.row-dependency-label { display: none; color: var(--muted); font-size: 11px; }
.row-dependencies .dependency-link { font-size: 11px; }
.row-dependencies .dependency-chip { min-height: 24px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: white; gap: 3px; }
.row-dependencies .dependency-chip:hover { background: var(--accent-soft); text-decoration: none; }
.row-dependencies .dependency-chip.resolved { color: var(--resolved-ink); background: var(--resolved-bg); border-color: var(--resolved-line); }
.row-dependencies .dependency-chip .icon { width: 11px; height: 11px; }
.list-header, .task-row { grid-template-columns: 48px minmax(210px, 1fr) 112px 66px 120px 140px 66px 68px 70px; min-width: 1136px; }
.detail-dependencies { margin: 8px 0 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-dependencies h3 { font-size: 13px; font-weight: 600; }
.dependency-source { font-size: 11px; color: var(--muted); margin: 5px 0 10px; }
.dependency-group { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; margin-top: 6px; font-size: 12px; }
.dependency-group > span { color: var(--muted); padding-top: 3px; }
.dependency-group > div { display: grid; justify-items: start; }
@media (max-width:760px) {
  .task-row { grid-template-columns: 44px minmax(0, 1fr) auto; min-width: 0; }
  .row-dependencies { grid-column: 2 / 4; grid-row: 5; }
  .dependency-group { grid-template-columns: 80px minmax(0, 1fr); }
}

.row-facts { display: contents; }
.row-criteria-label { display: none; }
@media (max-width: 760px) {
  .task-row { padding: 10px 12px; gap: 4px 7px; }
  .row-facts { display: flex; grid-column: 2 / 4; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
  .row-facts > * { min-height: 24px; display: inline-flex; align-items: center; }
  .row-stage { order: 1; font-size: 12px; }
  .row-priority { order: 2; }
  .row-assignee { order: 3; max-width: 125px; }
  .row-assignee .assignee-names { max-width: 97px; }
  .row-updated { order: 4; margin-left: auto; }
  .row-prs { order: 5; }
  .row-criteria { order: 6; gap: 3px; }
  .row-criteria-label { display: inline; }
  .row-dependencies { order: 7; flex-wrap: wrap; flex-basis: 100%; gap: 5px; }
  .row-dependency-label { display: inline; }
  .row-prs:has(> .muted:only-child), .row-dependencies:empty, span.row-criteria { display: none; }
}
