@layer components {
  .git-product-story:is([data-product-manual="commits"],[data-product-manual="changes"]) .gp-story-scene>[data-product-at] { display:none!important; }
  .git-product-story:is([data-product-manual="commits"],[data-product-manual="changes"]) .gp-story-static { display:inline!important; }
  /* 하나의 Git 창에서 검토 → 스테이지 → 커밋으로 이어지는 예시.
     숨겨진 장면도 레이아웃 높이를 유지하므로 재생 중 페이지가 뛰지 않는다. */
  .git-product-story { color: #234333; --gp-story-green: #14734b; --gp-story-line: #d8e7dd; }
  .git-product-story .gp-story-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-bottom: 15px; }
  .git-product-story .gp-story-scene { position: relative; flex: 1; height: 24px; min-width: 0; font: 500 12px/24px var(--sans, 'Segoe UI', sans-serif); color: #42634f; }
  .git-product-story .gp-story-scene > [data-product-at] { display: none; white-space: nowrap; }
  .git-product-story .gp-story-scene i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; background: #1c8d5e; }
  .git-product-story .gp-story-toggle { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 5px 10px; border: 1px solid #c8dbcf; border-radius: 8px; color: #40624e; background: #ffffffb0; font: 12px/1.5 var(--sans, 'Segoe UI', sans-serif); cursor: pointer; }
  .git-product-story .gp-story-toggle[hidden] { display: none; }
  .git-product-story .gp-story-toggle:hover { background: #fff; border-color: #83b294; }
  .git-product-story .gp-story-toggle:focus-visible { outline: 2px solid #14734b; outline-offset: 3px; }
  .git-product-story .gp-view-picker { gap: 6px; margin-bottom: 12px; }
  .git-product-story .gp-view-picker > button { min-height: 36px; padding-inline: 12px; font-size: 12px; }
  .git-product-story .gp-window { position: relative; --gp-bg: #15181d; --gp-chrome: #1b1f26; --gp-terminal: #0d1116; --gp-line: #ffffff1a; --gp-text: #e8ebef; --gp-muted: #9aa3ae; --gp-dim: #838c99; --gp-add: #7ee787; --gp-del: #ffa198; border: 1px solid #ffffff1a; border-radius: 13px; box-shadow: 0 18px 42px #132b242b; font-size: 13px; }
  .git-product-story .gp-caption { min-height: 33px; }
  .git-product-story .gp-caption-label { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 12px; min-width: 0; }
  .git-product-story .gp-caption-label strong { color: var(--gp-text); font-size: 12px; font-weight: 600; }
  .git-product-story .gp-caption-label > span { color: var(--gp-dim); font-size: 12px; }
  .git-product-story .gp-native-tab { min-width: 146px; padding-inline: 11px; font-size: 12px; }
  .git-product-story .gp-window-control { width: 30px; }
  .git-product-story .gp-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 47px; padding: 7px 9px; gap: 6px; }
  .git-product-story .gp-toolbar-start { flex-wrap: nowrap; gap: 5px; min-width: 0; }
  .git-product-story .gp-toolbar-end { display: none; }
  .git-product-story .gp-refresh, .git-product-story .gp-separator { display: none; }
  .git-product-story .gp-tool { min-height: 28px; gap: 5px; padding: 0 7px; font-size: 12px; background: var(--gp-chrome); }
  .git-product-story .gp-center { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 3px; }
  .git-product-story .gp-branch-pill { min-height: 28px; gap: 5px; padding-inline: 6px; font-size: 12px; }
  .git-product-story .gp-tracking { display: none; }
  .git-product-story .gp-body { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 420px; }
  .git-product-story .gp-sidebar { display: none; }
  .git-product-story .gp-main { position: relative; min-width: 0; }
  .git-product-story .gp-changes { display: grid; grid-template-columns: 192px minmax(0, 1fr); min-height: 420px; }
  .git-product-story .gp-file-lists { position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--gp-line); }
  .git-product-story .gp-change-section { position: relative; flex: none; min-height: 105px; padding-bottom: 8px; }
  .git-product-story .gp-staged-section { min-height: 147px; }
  .git-product-story .gp-section-head { min-height: 35px; padding: 7px 8px; gap: 5px; font-size: 12px; }
  .git-product-story .gp-small-tool { position: relative; min-height: 23px; padding: 2px 5px; font-size: 12px; }
  .git-product-story .gp-file-row { gap: 5px; min-height: 29px; padding: 4px 7px; margin-inline: 4px; font-size: 12px; }
  .git-product-story .gp-folder-row { display: flex; color: var(--gp-dim); min-height: 25px; padding-block: 2px; }
  .git-product-story .gp-tree-indent { padding-left: 20px; }
  .git-product-story .gp-tree-indent-deep { padding-left: 29px; }
  .git-product-story .gp-file-selected { background: var(--gp-terminal); color: var(--gp-text); box-shadow: inset 2px 0 0 #6f9dd6; }
  .git-product-story .gp-status-modified { color: #ff9f0a; background: #ff9f0a1a; border-color: #ff9f0a73; font-size: 12px; }
  .git-product-story .gp-empty-state { display: none; padding: 8px 13px; color: var(--gp-dim); font-size: 12px; }
  .git-product-story .gp-staged-home { display: none; color: var(--gp-text); background: var(--gp-terminal); }
  .git-product-story .gp-stage-check { margin-left: auto; color: var(--gp-add); }
  .git-product-story .gp-commit-box { position: relative; display: grid; order: initial; gap: 10px; padding: 11px 9px 12px; min-height: 160px; background: var(--gp-chrome); }
  .git-product-story .gp-commit-message { min-height: 79px; padding: 9px 8px; color: var(--gp-text); border-color: var(--gp-line); background: var(--gp-terminal); font: 12px/1.65 var(--gp-mono); }
  .git-product-story .gp-commit-placeholder { display: none; color: var(--gp-dim); font-family: var(--sans, 'Segoe UI', sans-serif); }
  .git-product-story .gp-typed-message { display: inline; }
  .git-product-story .gp-commit-footer { gap: 5px; font-size: 12px; }
  .git-product-story .gp-commit-footer > kbd { display: none; }
  .git-product-story .gp-primary { position: relative; min-height: 31px; padding: 0 16px; color: var(--gp-terminal); background: var(--gp-text); border-color: #e8ebef4d; font-size: 12px; }
  .git-product-story .gp-detail { order: initial; min-width: 0; border-top: 0; }
  .git-product-story .gp-detail-head { min-height: 54px; padding: 8px 10px; gap: 6px; background: var(--gp-chrome); }
  .git-product-story .gp-detail-head > strong { font-size: 13px; }
  .git-product-story .gp-detail-dir { display: none; }
  .git-product-story .gp-detail-actions { display: none; }
  .git-product-story .gp-diff { min-height: 0; font-size: 12px; line-height: 2; padding: 0 0 20px; background: var(--gp-terminal); }
  .git-product-story .gp-diff-hunk { padding: 9px 9px; color: var(--gp-dim); background: #e8ebef08; font-size: 12px; }
  .git-product-story .gp-diff-line { grid-template-columns: 20px 20px 10px minmax(0, 1fr); padding: 3px 5px; gap: 2px; color: var(--gp-muted); }
  .git-product-story .gp-diff-added { color: var(--gp-add); background: #7ee7871f; }
  .git-product-story .gp-diff-deleted { color: var(--gp-del); background: #ffa1981f; }
  .git-product-story .gp-diff-text { overflow-wrap: anywhere; white-space: pre-wrap; }
  .git-product-story .gp-delta { font-size: 12px; }
  .git-product-story .gp-commits { display: none; min-height: 420px; grid-template-rows: 191px auto; }
  .git-product-story .gp-history { background: #181c22; overflow: hidden; }
  .git-product-story .gp-history-head, .git-product-story .gp-history-row { grid-template-columns: 32px minmax(0, 1fr) 59px; align-items: center; gap: 7px; padding: 0 11px; font-size: 12px; }
  .git-product-story .gp-history-head { height: 31px; }
  .git-product-story .gp-history-row { min-height: 32px; height: 32px; }
  .git-product-story .gp-graph { display: block; width: 32px; height: 28px; }
  .git-product-story .gp-history-head > span:first-child { display: block; }
  .git-product-story .gp-author, .git-product-story .gp-date { display: none; }
  .git-product-story .gp-sha { display: block; font-size: 12px; }
  .git-product-story .gp-history-subject { flex-wrap: nowrap; white-space: nowrap; }
  .git-product-story .gp-history-subject > span:last-child { flex-basis: auto; overflow: hidden; text-overflow: ellipsis; }
  .git-product-story .gp-history-selected { background: var(--gp-terminal); }
  .git-product-story .gp-graph-node { fill: #181c22; }
  .git-product-story .gp-history-selected .gp-graph-node { fill: var(--gp-terminal); stroke: #6f9dd6; }
  .git-product-story .gp-lane-main { stroke: #6f9dd6; }
  .git-product-story .gp-lane-branch { stroke: #8fbf7f; }
  .git-product-story .gp-ref { color: #6f9dd6; border-color: #6f9dd673; background: transparent; font-size: 12px; }
  .git-product-story .gp-ref-head { background: transparent; color: var(--gp-text); border-color: #e8ebef73; }
  .git-product-story .gp-ref-branch { color: #8fbf7f; border-color: #8fbf7f73; }
  .git-product-story .gp-ref-tag { color: #c9a15f; border-color: #c9a15f73; }
  .git-product-story .gp-commit-files { grid-template-columns: 192px minmax(0, 1fr); }
  .git-product-story .gp-selected-files { border-right: 1px solid var(--gp-line); border-bottom: 0; background: var(--gp-bg); }
  .git-product-story .gp-selected-files .gp-delta { display: none; }
  .git-product-story .gp-detail-tabs { background: var(--gp-bg); }
  .git-product-story .gp-detail-tab-selected { color: var(--gp-text); box-shadow: inset 0 -2px 0 var(--gp-text); }
  .git-product-story .gp-commit-detail .gp-diff { font-size: 12px; line-height: 1.7; }
  .git-product-story .gp-status-line { min-height: 29px; padding: 5px 10px; font-size: 12px; }
  .git-product-story .gp-status-path { display: none; }
  .git-product-story > figcaption { margin-top: 13px; color: #67836e; font: 12px/1.65 var(--sans, 'Segoe UI', sans-serif); }
  .git-product-story .gp-commit-success { display: none; position: absolute; z-index: 4; left: 50%; bottom: 37px; align-items: center; gap: 10px; width: calc(100% - 34px); max-width: 369px; padding: 13px 15px; border: 1px solid #7ee78766; border-radius: 11px; background: var(--gp-chrome); box-shadow: 0 9px 26px #0005; transform: translateX(-50%); }
  .git-product-story .gp-commit-success > span:first-child { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 50%; color: var(--gp-add); background: #7ee78718; font-size: 17px; }
  .git-product-story .gp-commit-success > div { display: grid; gap: 2px; min-width: 0; }
  .git-product-story .gp-commit-success strong { font-size: 13px; color: var(--gp-text); font-weight: 600; }
  .git-product-story .gp-commit-success > div > span { font-size: 12px; color: var(--gp-muted); }
  .git-product-story .gp-success-sha { margin-left: auto; color: var(--gp-dim); font: 12px var(--gp-mono); }
  .git-product-story .gp-story-progress { display: none; height: 3px; background: #edf5f0; }
  .git-product-story .gp-story-progress > span { display: block; width: calc(var(--product-progress, 0) * 100%); height: 100%; background: #38a673; }
  .git-product-story .gp-click-cursor, .git-product-story .gp-click-ring, .git-product-story .gp-type-caret { display: none; }
  .git-product-story .gp-click-cursor { position: absolute; z-index: 5; pointer-events: none; top: 13px; right: 8px; width: 23px; height: 28px; }
  .git-product-story .gp-cursor-svg { width: 23px; height: 28px; filter: drop-shadow(1px 3px 2px #12331a22); }
  .git-product-story .gp-click-ring { position: absolute; z-index: 4; width: 30px; height: 30px; border: 2px solid #42aa77; border-radius: 50%; top: 0; right: 7px; pointer-events: none; }
  .git-product-story .gp-mode-changes { background: #ffffff1a; color: var(--gp-text); font-weight: 600; }
  .git-product-story .gp-count { margin-left: auto; min-width: 20px; padding: 0 5px; border-radius: 10px; background: #303640; color: #9fb8d1; font-size: 12px; text-align: center; }

  /* Razor는 정적 보기만 소유한다. 향상된 재생의 수동 선택은 JS가 따로 소유하므로
     늦은 Razor 렌더가 [재생]으로 해제한 수동 보기를 되살리지 않는다. */
  .git-product-story:not(.is-product-ready)[data-product-static-mode="commits"] .gp-changes { display: none; }
  .git-product-story:not(.is-product-ready)[data-product-static-mode="commits"] .gp-commits { display: grid; }
  .git-product-story:not(.is-product-ready)[data-product-static-mode="commits"] .gp-mode-changes { background: transparent; color: var(--gp-muted); font-weight: 400; }
  .git-product-story:not(.is-product-ready)[data-product-static-mode="commits"] .gp-mode-commits { background: #ffffff1a; color: var(--gp-text); font-weight: 600; }
  .git-product-story.is-product-ready[data-product-manual="commits"] .gp-changes { display: none; }
  .git-product-story.is-product-ready[data-product-manual="commits"] .gp-commits { display: grid; }
  .git-product-story.is-product-ready[data-product-manual="changes"] .gp-commits { display: none; }
  .git-product-story.is-product-ready[data-product-manual="commits"] .gp-mode-changes { background: transparent; color: var(--gp-muted); font-weight: 400; }
  .git-product-story.is-product-ready[data-product-manual="commits"] .gp-mode-commits { background: #ffffff1a; color: var(--gp-text); font-weight: 600; }
  .git-product-story.is-product-ready[data-product-manual="changes"] .gp-commit-placeholder { display: none !important; }
  .git-product-story.is-product-ready[data-product-manual="changes"] .gp-typed-message { opacity: 1 !important; clip-path: none !important; }

  .git-product-story.is-product-ready .gp-story-static { display: none; }
  .git-product-story.is-product-ready .gp-story-scene > [data-product-at] { display: block; position: absolute; inset: 0; opacity: 0; }
  .git-product-story.is-product-ready .gp-story-progress { display: block; }
  .git-product-story.is-product-ready:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-commit-success { display: flex; opacity: 0; }
  .git-product-story.is-product-ready:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-click-cursor { display: block; opacity: 0; }
  .git-product-story.is-product-ready .gp-cursor-svg { animation: gp-stage-cursor 16s linear infinite; animation-delay: var(--product-time-offset, 0ms); animation-play-state: var(--product-play-state, paused); }
  .git-product-story.is-product-ready .gp-commit-action .gp-cursor-svg { animation-name: gp-commit-cursor; }
  .git-product-story.is-product-ready:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-click-ring { display: block; opacity: 0; animation: gp-click-pulse 16s linear infinite; animation-delay: var(--product-time-offset, 0ms); animation-play-state: var(--product-play-state, paused); }
  .git-product-story.is-product-ready .gp-commit-ring { animation-name: gp-commit-pulse; }
  .git-product-story.is-product-ready:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-type-caret { display: inline-block; width: 1px; height: 13px; margin-left: 2px; vertical-align: -2px; background: #14734b; animation: gp-type-caret 16s linear infinite; animation-delay: var(--product-time-offset, 0ms); animation-play-state: var(--product-play-state, paused); }
  .git-product-story.is-product-ready[data-product-phase="0"]:not([data-product-manual="commits"]) .gp-commit-placeholder { display: inline; }
  .git-product-story.is-product-ready[data-product-phase="1"]:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-unstaged-file { display: none; }
  .git-product-story.is-product-ready[data-product-phase="1"]:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-unstaged-empty { display: block; }
  .git-product-story.is-product-ready[data-product-phase="1"]:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-staged-home { display: flex; animation: gp-staged-file 400ms cubic-bezier(.2,.8,.2,1) both; animation-play-state: var(--product-play-state, paused); }
  .git-product-story.is-product-ready[data-product-phase="2"]:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-changes { display: none; }
  .git-product-story.is-product-ready[data-product-phase="2"]:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-commits { display: grid; }
  .git-product-story.is-product-ready[data-product-phase="2"]:not([data-product-manual="changes"]):not([data-product-manual="commits"]) .gp-new-commit { animation: gp-new-commit 600ms cubic-bezier(.2,.8,.2,1) both; animation-play-state: var(--product-play-state, paused); }
  .git-product-story.is-product-ready[data-product-manual="commits"] .gp-new-commit,
  .git-product-story.is-product-ready[data-product-paused="true"] .gp-new-commit,
  .git-product-story.is-product-ready[data-product-paused="true"] .gp-staged-home { animation: none !important; opacity: 1 !important; transform: none !important; }
  .git-product-story.is-product-ready[data-product-phase="2"]:not([data-product-manual="changes"]) .gp-mode-changes { background: transparent; color: var(--gp-muted); font-weight: 400; }
  .git-product-story.is-product-ready[data-product-phase="2"]:not([data-product-manual="changes"]) .gp-mode-commits { background: #ffffff1a; color: var(--gp-text); font-weight: 600; }

  @keyframes gp-click-pulse { 0%, 29%, 33%, 100% { opacity: 0; transform: scale(.55); } 30% { opacity: .8; transform: scale(.6); } 32% { opacity: 0; transform: scale(1.75); } }
  @keyframes gp-commit-pulse { 0%, 59%, 63%, 100% { opacity: 0; transform: scale(.55); } 60% { opacity: .8; transform: scale(.6); } 62% { opacity: 0; transform: scale(1.75); } }
  @keyframes gp-stage-cursor { 0%, 26% { transform: translate(42px, 30px); } 29% { transform: translate(0, 0); } 30% { transform: translate(0, 0) scale(.88); } 31%, 100% { transform: translate(0, 0) scale(1); } }
  @keyframes gp-commit-cursor { 0%, 57% { transform: translate(42px, 24px); } 59.5% { transform: translate(0, 0); } 60% { transform: translate(0, 0) scale(.88); } 61%, 100% { transform: translate(0, 0) scale(1); } }
  @keyframes gp-type-caret { 0%, 37%, 63%, 100% { opacity: 0; } 38%, 40%, 44%, 48%, 52%, 56%, 60% { opacity: 1; } 42%, 46%, 50%, 54%, 58%, 62% { opacity: 0; } }
  @keyframes gp-staged-file { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes gp-new-commit { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

  @container git-preview (min-width: 980px) {
    .git-product-story .gp-caption { min-height: 39px; }
    .git-product-story .gp-caption-label { padding-inline: 13px; }
    .git-product-story .gp-caption-label strong { font-size: 13px; }
    .git-product-story .gp-window-control { width: 40px; }
    .git-product-story .gp-toolbar { grid-template-columns: max-content minmax(0, 1fr) max-content; min-height: 48px; padding: 8px 11px; gap: 10px; }
    .git-product-story .gp-toolbar-start { gap: 7px; }
    .git-product-story .gp-refresh, .git-product-story .gp-separator { display: inline-flex; }
    .git-product-story .gp-toolbar-end { display: flex; grid-column: 3; grid-row: 1; gap: 7px; }
    .git-product-story .gp-center { grid-column: 2; grid-row: 1; justify-content: center; gap: 10px; }
    .git-product-story .gp-tracking { display: inline; font-size: 12px; }
    .git-product-story .gp-tool { min-height: 31px; font-size: 13px; gap: 7px; padding-inline: 10px; }
    .git-product-story .gp-branch-pill { min-height: 31px; font-size: 13px; padding-inline: 10px; }
    .git-product-story .gp-body { grid-template-columns: 210px minmax(0, 1fr); min-height: 520px; }
    .git-product-story .gp-sidebar { display: block; padding: 8px; }
    .git-product-story .gp-mode { min-height: 36px; }
    .git-product-story .gp-filter { min-height: 32px; }
    .git-product-story .gp-group { margin-top: 10px; }
    .git-product-story .gp-group-title { background: #ffffff05; border-radius: 5px; }
    .git-product-story .gp-repo-row { min-height: 31px; }
    .git-product-story .gp-changes { grid-template-columns: 275px minmax(0, 1fr); min-height: 520px; }
    .git-product-story .gp-change-section { min-height: 150px; }
    .git-product-story .gp-staged-section { min-height: 185px; }
    .git-product-story .gp-section-head { min-height: 39px; padding: 8px 11px; font-size: 13px; }
    .git-product-story .gp-file-row { min-height: 30px; margin-inline: 5px; font-size: 13px; }
    .git-product-story .gp-small-tool { padding-inline: 7px; }
    .git-product-story .gp-commit-box { min-height: 165px; padding: 12px 11px; }
    .git-product-story .gp-commit-message { min-height: 87px; font-size: 13px; }
    .git-product-story .gp-commit-footer > kbd { display: inline; font-size: 12px; }
    .git-product-story .gp-detail-head { min-height: 39px; padding: 7px 11px; }
    .git-product-story .gp-detail-dir { display: inline; }
    .git-product-story .gp-detail-actions { display: flex; flex-basis: auto; }
    .git-product-story .gp-diff { font-size: 13px; line-height: 1.8; }
    .git-product-story .gp-diff-line { grid-template-columns: 28px 28px 12px minmax(0, 1fr); gap: 4px; padding: 2px 8px; }
    .git-product-story .gp-diff-hunk { padding: 6px 12px; }
    .git-product-story .gp-commits { min-height: 520px; grid-template-rows: 235px auto; }
    .git-product-story .gp-history-head, .git-product-story .gp-history-row { grid-template-columns: 40px minmax(0, 1fr) 80px 72px 136px; padding-inline: 12px; font-size: 13px; }
    .git-product-story .gp-history-row { min-height: 32px; height: 32px; }
    .git-product-story .gp-graph { width: 40px; height: 32px; }
    .git-product-story .gp-author, .git-product-story .gp-date { display: block; }
    .git-product-story .gp-commit-files { grid-template-columns: 275px minmax(0, 1fr); }
    .git-product-story .gp-selected-files .gp-delta { display: inline; }
    .git-product-story .gp-commit-detail .gp-diff { font-size: 13px; line-height: 1.8; }
    .git-product-story .gp-status-path { display: inline; }
  }

  @container git-preview (max-width: 590px) {
    .git-product-story .gp-changes, .git-product-story .gp-commit-files { grid-template-columns: 170px minmax(0, 1fr); }
    .git-product-story .gp-small-tool { font-size: 12px; padding-inline: 4px; }
    .git-product-story .gp-section-head { flex-wrap: wrap; min-height: 57px; }
    .git-product-story .gp-change-section { min-height: 127px; }
    .git-product-story .gp-staged-section { min-height: 161px; }
    .git-product-story .gp-body, .git-product-story .gp-changes, .git-product-story .gp-commits { min-height: 448px; }
    .git-product-story .gp-detail-head .gp-status-word { display: none; }
    .git-product-story .gp-commits { grid-template-rows: 200px auto; }
  }

  @container git-preview (max-width: 480px) {
    .git-product-story .gp-story-topline { gap: 8px; }
    .git-product-story .gp-story-scene { font-size: 12px; }
    .git-product-story .gp-story-toggle { padding-inline: 8px; }
    .git-product-story .gp-story-toggle [data-product-label] { display: none; }
    .git-product-story .gp-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .git-product-story .gp-tool { padding-inline: 6px; gap: 4px; }
    .git-product-story .gp-tool .gp-icon { display: none; }
    .git-product-story .gp-center { grid-column: 2; grid-row: 1; }
    .git-product-story .gp-body { min-height: 0; }
    .git-product-story .gp-changes { display: flex; flex-direction: column; min-height: 0; }
    .git-product-story .gp-file-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; }
    .git-product-story .gp-change-section { min-height: 115px; border-bottom: 1px solid var(--gp-line); }
    .git-product-story .gp-staged-section { border-top: 0; border-left: 1px solid var(--gp-line); }
    .git-product-story .gp-folder-row { display: none; }
    .git-product-story .gp-tree-indent, .git-product-story .gp-tree-indent-deep { padding-left: 8px; }
    .git-product-story .gp-section-head { padding-inline: 7px; gap: 4px; min-height: 65px; align-content: center; }
    .git-product-story .gp-file-row { margin-inline: 2px; padding-inline: 6px; gap: 4px; }
    .git-product-story .gp-file-row > .gp-icon { display: none; }
    .git-product-story .gp-row-menu { display: none; }
    .git-product-story .gp-commit-box { grid-column: 1 / -1; min-height: 116px; padding: 9px; order: 3; }
    .git-product-story .gp-commit-message { min-height: 44px; padding: 8px; }
    .git-product-story .gp-commit-footer > kbd { display: inline; font-size: 12px; }
    .git-product-story .gp-detail { border-top: 1px solid var(--gp-line); }
    .git-product-story .gp-detail-head { min-height: 43px; }
    .git-product-story .gp-diff { font-size: 12px; line-height: 1.8; padding-bottom: 10px; }
    .git-product-story .gp-diff-hunk { padding-block: 6px; }
    .git-product-story .gp-history-head, .git-product-story .gp-history-row { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; padding-inline: 9px; }
    .git-product-story .gp-sha { display: none; }
    .git-product-story .gp-history-row { height: 42px; }
    .git-product-story .gp-graph { height: 100%; }
    .git-product-story .gp-history-subject { flex-wrap: wrap; column-gap: 4px; row-gap: 0; white-space: normal; }
    .git-product-story .gp-history-subject > span:last-child { flex-basis: 100%; font-size: 12px; line-height: 1.35; }
    .git-product-story .gp-ref { min-height: 17px; font-size: 12px; line-height: 1.2; }
    .git-product-story .gp-commits { min-height: 0; grid-template-rows: 241px auto; }
    .git-product-story .gp-commit-files { grid-template-columns: minmax(0, 1fr); }
    .git-product-story .gp-selected-files { border-right: 0; border-bottom: 1px solid var(--gp-line); }
    .git-product-story .gp-selected-files .gp-folder-row { display: none; }
    .git-product-story .gp-selected-files .gp-delta { display: block; }
    .git-product-story .gp-file-totals { min-height: 29px; }
    .git-product-story .gp-commit-files .gp-detail { border-top: 0; }
    .git-product-story .gp-commit-success { padding: 11px 12px; }
    .git-product-story .gp-success-sha { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .git-product-story .gp-click-ring, .git-product-story .gp-type-caret, .git-product-story .gp-staged-home, .git-product-story .gp-new-commit, .git-product-story .gp-cursor-svg { animation: none !important; }
  }
}
