/**
 * Version history panel (commit list → tree columns → detail).
 * Scoped under .wproj-commit-shell so it does not break the designer.
 */
 @import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

 :root {
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

 .wproj-commit-shell {
   box-sizing: border-box;
   width: 100%;
   min-height: 280px;
   max-height: min(790px, 80vh);
   background: var(--wrj-panel);
   /* border: 1px solid var(--wrj-bmd); */
   /* border-radius: 12px; */
   overflow: hidden;
   display: flex;
   flex-direction: column;
   font-family: "Geist", var(--font-ui);
   font-size: var(--fs-12px);
   color: var(--wrj-t1);
   -webkit-font-smoothing: antialiased;
   /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); */
   margin-top: 4px;
 }
 
 .wproj-commit-shell *,
 .wproj-commit-shell *::before,
 .wproj-commit-shell *::after {
   box-sizing: border-box;
 }
 
 /* ── HEADER ── */
 .wproj-commit-shell .wrj-ph {
   height: 40px;
   flex-shrink: 0;
   display: flex;
   align-items: center;
   gap: 6px;
   padding: 0 10px;
   border-bottom: 1px solid var(--wrj-b);
   background: var(--wrj-p2);
 }
 
 .wproj-commit-shell .wrj-ph-back {
   display: none;
   width: 24px;
   height: 24px;
   border-radius: 6px;
   border: 1px solid var(--wrj-bmd);
   background: var(--wrj-panel);
   cursor: pointer;
   align-items: center;
   justify-content: center;
   color: var(--wrj-t2);
   transition: all 0.12s;
   flex-shrink: 0;
   padding: 0;
 }
 
 .wproj-commit-shell .wrj-ph-back:hover {
   background: var(--wrj-bg);
   color: var(--wrj-t1);
 }
 
 .wproj-commit-shell .wrj-ph-back.wrj-show {
   display: flex;
 }
 
 .wproj-commit-shell .wrj-ph-title {
   font-size: var(--fs-12px);
   font-weight: 500;
   color: var(--wrj-t2);
   flex: 1;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }
 
 .wproj-commit-shell .wrj-ph-hash {
   display: none;
   font-family: "Geist Mono", var(--font-mono);
   font-size: var(--fs-10px);
   color: var(--wrj-t3);
   background: var(--wrj-bg);
   border-radius: 4px;
   padding: 2px 5px;
   border: 1px solid var(--wrj-b);
 }
 
 .wproj-commit-shell .wrj-ph-hash.wrj-show {
   display: block;
 }
 
 .wproj-commit-shell .wrj-hbtn {
   height: 22px;
   padding: 0 8px;
   border-radius: 5px;
   border: 1px solid var(--wrj-bmd);
   background: var(--wrj-panel);
   font-family: "Geist", var(--font-ui);
   font-size: var(--fs-10px);
   font-weight: 500;
   color: var(--wrj-t2);
   cursor: pointer;
   transition: all 0.12s;
   flex-shrink: 0;
 }
 
 .wproj-commit-shell .wrj-hbtn:hover {
   background: var(--wrj-bg);
   color: var(--wrj-t1);
 }
 
 .wproj-commit-shell .wrj-hbtn.wrj-on {
   background: var(--wrj-t1);
   color: #fff;
   border-color: var(--wrj-t1);
 }
 
 /* ── VIEWS ── */
 .wproj-commit-shell .wrj-view {
   display: none;
   flex: 1;
   flex-direction: column;
   overflow: hidden;
   min-height: 0;
 }
 
 .wproj-commit-shell .wrj-view.wrj-on {
   display: flex;
 }
 
 /* VIEW 1: commits */
 .wproj-commit-shell .wrj-clist {
   flex: 1;
   overflow-y: auto;
 }
 
 .wproj-commit-shell .wrj-clist::-webkit-scrollbar {
   width: 3px;
 }
 
 .wproj-commit-shell .wrj-clist::-webkit-scrollbar-thumb {
   background: var(--wrj-bmd);
   border-radius: 2px;
 }
 
 .wproj-commit-shell .wrj-commit {
   display: flex;
   padding: 0 8px;
   cursor: pointer;
   transition: background 0.1s;
 }
 
 .wproj-commit-shell .wrj-commit:hover {
   background: var(--wrj-p2);
 }
 
 .wproj-commit-shell .wrj-commit.wrj-disabled {
   opacity: 0.45;
   cursor: not-allowed;
 }
 
 .wproj-commit-shell .wrj-ct {
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 20px;
   flex-shrink: 0;
   padding-top: 12px;
 }
 
 .wproj-commit-shell .wrj-cdot {
   width: 7px;
   height: 7px;
   border-radius: 50%;
   background: var(--wrj-bmd);
   border: 2px solid var(--wrj-panel);
   box-shadow: 0 0 0 1px var(--wrj-bmd);
   transition: all 0.12s;
 }
 
 .wproj-commit-shell .wrj-commit:hover .wrj-cdot {
   background: var(--wrj-accent);
   box-shadow: 0 0 0 1px var(--wrj-accent);
 }
 
 .wproj-commit-shell .wrj-cline {
   width: 1px;
   flex: 1;
   background: var(--wrj-b);
   margin-top: 3px;
   min-height: 14px;
 }
 
 .wproj-commit-shell .wrj-commit:last-child .wrj-cline {
   background: transparent;
 }
 
 .wproj-commit-shell .wrj-cb {
   flex: 1;
   padding: 9px 0 9px 7px;
   border-bottom: 1px solid var(--wrj-b);
   min-width: 0;
 }
 
 .wproj-commit-shell .wrj-commit:last-child .wrj-cb {
   border-bottom: none;
 }
 
 .wproj-commit-shell .wrj-cmsg {
   font-size: var(--fs-12px);
   font-weight: 500;
   color: var(--wrj-t1);
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   margin-bottom: 3px;
 }
 
 .wproj-commit-shell .wrj-cmeta {
   display: flex;
   align-items: center;
   gap: 4px;
   flex-wrap: wrap;
 }
 
 .wproj-commit-shell .wrj-chash {
   font-family: "Geist Mono", var(--font-mono);
   font-size: var(--fs-9.5px);
   color: var(--wrj-t3);
   background: var(--wrj-p2);
   border-radius: 3px;
   padding: 0 3px;
 }
 
 .wproj-commit-shell .wrj-cdate {
   font-size: var(--fs-10px);
   color: var(--wrj-t3);
 }
 
 .wproj-commit-shell .wrj-cbadge {
   font-size: var(--fs-9.5px);
   font-weight: 500;
   padding: 1px 4px;
   border-radius: 100px;
 }
 
 .wproj-commit-shell .wrj-ba {
   background: var(--wrj-add-bg);
   color: var(--wrj-add);
 }
 
 .wproj-commit-shell .wrj-br {
   background: var(--wrj-rm-bg);
   color: var(--wrj-rm);
 }
 
 .wproj-commit-shell .wrj-bc {
   background: var(--wrj-ch-bg);
   color: var(--wrj-ch);
 }
 
 .wproj-commit-shell .wrj-cur {
   font-size: var(--fs-9px);
   font-weight: 600;
   color: var(--wrj-accent);
   background: #eff6ff;
   border-radius: 100px;
   padding: 1px 5px;
 }
 
 .wproj-commit-shell .wrj-row-actions {
   display: flex;
   align-items: center;
   gap: 4px;
   flex-shrink: 0;
   margin-left: 4px;
 }
 
 .wproj-commit-shell .wrj-icon-btn {
   width: 22px;
   height: 22px;
   border: none;
   background: transparent;
   border-radius: 4px;
   cursor: pointer;
   color: var(--wrj-t3);
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0;
 }
 
 .wproj-commit-shell .wrj-icon-btn:hover {
   background: rgba(0, 0, 0, 0.06);
   color: var(--wrj-t1);
 }
 
 .wproj-commit-shell .wrj-settings-pop {
   position: absolute;
   right: 0;
   top: 100%;
   margin-top: 2px;
   background: var(--wrj-panel);
   border: 1px solid var(--wrj-bmd);
   border-radius: 6px;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   z-index: 50;
   min-width: 120px;
   display: none;
 }
 
 .wproj-commit-shell .wrj-settings-pop.wrj-open {
   display: block;
 }
 
 .wproj-commit-shell .wrj-settings-item {
   padding: 8px 12px;
   font-size: var(--fs-11px);
   cursor: pointer;
 }
 
 .wproj-commit-shell .wrj-settings-item:hover {
   background: var(--wrj-p2);
 }
 
 .wproj-commit-shell .wrj-cb-top {
   display: flex;
   align-items: flex-start;
   gap: 4px;
   margin-bottom: 3px;
   position: relative;
 }
 
 /* VIEW 2: tree */
 .wproj-commit-shell .wrj-tree-bar {
   flex-shrink: 0;
   border-bottom: 1px solid var(--wrj-b);
   background: var(--wrj-p2);
 }
 
 .wproj-commit-shell .wrj-sum-row {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 7px 10px;
 }
 
 .wproj-commit-shell .wrj-sc {
   display: flex;
   align-items: center;
   gap: 3px;
   font-size: var(--fs-11px);
 }
 
 .wproj-commit-shell .wrj-sn {
   font-size: var(--fs-12px);
   font-weight: 600;
 }
 
 .wproj-commit-shell .wrj-ss {
   width: 1px;
   height: 12px;
   background: var(--wrj-b);
 }
 
 .wproj-commit-shell .wrj-restore-btn {
   margin-left: auto;
   height: 22px;
   padding: 0 8px;
   border-radius: 5px;
   border: 1px solid var(--wrj-bmd);
   background: var(--wrj-panel);
   font-family: "Geist", var(--font-ui);
   font-size: var(--fs-10px);
   font-weight: 500;
   color: var(--wrj-t2);
   cursor: pointer;
   transition: all 0.12s;
   display: flex;
   align-items: center;
   gap: 3px;
 }
 
 .wproj-commit-shell .wrj-restore-btn:hover {
   background: var(--wrj-bg);
   color: var(--wrj-t1);
 }
 
 .wproj-commit-shell .wrj-cols {
   flex: 1;
   display: flex;
   overflow-x: auto;
   overflow-y: hidden;
   scroll-behavior: smooth;
   min-height: 0;
   max-height: 320px;
 }
 
 .wproj-commit-shell .wrj-cols::-webkit-scrollbar {
   height: 3px;
 }
 
 .wproj-commit-shell .wrj-cols::-webkit-scrollbar-thumb {
   background: var(--wrj-bmd);
   border-radius: 2px;
 }
 
 .wproj-commit-shell .wrj-col {
   width: 100%;
   flex-shrink: 0;
   display: flex;
   flex-direction: column;
   border-right: 1px solid var(--wrj-b);
   overflow: hidden;
 }
 
 .wproj-commit-shell .wrj-col:last-child {
   border-right: none;
 }
 
 .wproj-commit-shell .wrj-col-head {
   height: 30px;
   flex-shrink: 0;
   display: flex;
   align-items: center;
   gap: 5px;
   padding: 0 8px;
   border-bottom: 1px solid var(--wrj-b);
   background: var(--wrj-p2);
 }
 
 .wproj-commit-shell .wrj-col-back {
   background: none;
   border: none;
   color: var(--wrj-t3);
   cursor: pointer;
   display: flex;
   align-items: center;
   padding: 2px;
   border-radius: 4px;
   transition: all 0.12s;
   flex-shrink: 0;
 }
 
 .wproj-commit-shell .wrj-col-back:hover {
   color: var(--wrj-t1);
   background: rgba(0, 0, 0, 0.06);
 }
 
 .wproj-commit-shell .wrj-col-title {
   font-size: var(--fs-11px);
   font-weight: 500;
   color: var(--wrj-t2);
   flex: 1;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }
 
 .wproj-commit-shell .wrj-col-list {
   flex: 1;
   overflow-y: auto;
   min-height: 0;
 }
 
 .wproj-commit-shell .wrj-col-list::-webkit-scrollbar {
   width: 3px;
 }
 
 .wproj-commit-shell .wrj-col-list::-webkit-scrollbar-thumb {
   background: var(--wrj-bmd);
   border-radius: 2px;
 }
 
 .wproj-commit-shell .wrj-cr {
   display: flex;
   align-items: center;
   gap: 6px;
   padding: 6px 8px;
   border-bottom: 1px solid var(--wrj-b);
   cursor: pointer;
   transition: background 0.1s;
   position: relative;
   min-width: 0;
 }
 
 .wproj-commit-shell .wrj-cr:last-child {
   border-bottom: none;
 }
 
 .wproj-commit-shell .wrj-cr:hover {
   background: var(--wrj-p2);
 }
 
 .wproj-commit-shell .wrj-cr::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   bottom: 0;
   width: 0;
   background: var(--wrj-accent);
   border-radius: 0 1px 1px 0;
   transition: width 0.1s;
 }
 
 .wproj-commit-shell .wrj-cr.wrj-act::before {
   width: 2px;
 }
 
 .wproj-commit-shell .wrj-cr.wrj-act {
   background: #eff6ff;
 }
 
 .wproj-commit-shell .wrj-rbadge {
   font-size: var(--fs-9px);
   font-weight: 700;
   letter-spacing: 0.03em;
   padding: 1px 5px;
   border-radius: 100px;
   text-transform: uppercase;
   flex-shrink: 0;
 }
 
 .wproj-commit-shell .wrj-rb-add {
   background: var(--wrj-add-bg);
   color: var(--wrj-add);
   border: 1px solid var(--wrj-add-bd);
 }
 
 .wproj-commit-shell .wrj-rb-ch {
   background: var(--wrj-ch-bg);
   color: var(--wrj-ch);
   border: 1px solid var(--wrj-ch-bd);
 }
 
 .wproj-commit-shell .wrj-rb-rm {
   background: var(--wrj-rm-bg);
   color: var(--wrj-rm);
   border: 1px solid var(--wrj-rm-bd);
 }
 
 .wproj-commit-shell .wrj-rb-grp {
   background: var(--wrj-p2);
   color: var(--wrj-t3);
   border: 1px solid var(--wrj-bmd);
 }
 
 .wproj-commit-shell .wrj-rname {
   font-size: var(--fs-11.5px);
   font-weight: 500;
   color: var(--wrj-t1);
   flex: 1;
   min-width: 0;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
 }
 
 .wproj-commit-shell .wrj-rkind {
   font-size: var(--fs-9.5px);
   color: var(--wrj-t3);
   font-family: "Geist Mono", var(--font-mono);
   flex-shrink: 0;
 }
 
 .wproj-commit-shell .wrj-rcnt {
   font-size: var(--fs-10px);
   color: var(--wrj-t3);
   flex-shrink: 0;
 }
 
 .wproj-commit-shell .wrj-rarr {
   color: var(--wrj-t3);
   flex-shrink: 0;
 }
 
 .wproj-commit-shell .wrj-cr:hover .wrj-rarr {
   color: var(--wrj-accent);
 }
 
 .wproj-commit-shell .wrj-show-btn {
   height: 18px;
   padding: 0 6px;
   border-radius: 4px;
   border: 1px solid var(--wrj-bmd);
   background: var(--wrj-panel);
   font-family: "Geist", var(--font-ui);
   font-size: var(--fs-9.5px);
   font-weight: 500;
   color: var(--wrj-t2);
   cursor: pointer;
   transition: all 0.12s;
   flex-shrink: 0;
   display: flex;
   align-items: center;
 }
 
 .wproj-commit-shell .wrj-show-btn:hover {
   background: var(--wrj-accent);
   color: #fff;
   border-color: var(--wrj-accent);
 }
 
 /* VIEW 3: detail */
 .wproj-commit-shell .wrj-det-bar {
   flex-shrink: 0;
   padding: 7px 10px;
   border-bottom: 1px solid var(--wrj-b);
   background: var(--wrj-p2);
 }
 
 .wproj-commit-shell .wrj-det-showbtn {
   height: 24px;
   padding: 0 10px;
   border-radius: 6px;
   border: 1px solid var(--wrj-bmd);
   background: var(--wrj-panel);
   font-family: "Geist", var(--font-ui);
   font-size: var(--fs-10.5px);
   font-weight: 500;
   color: var(--wrj-t2);
   cursor: pointer;
   transition: all 0.12s;
   display: flex;
   align-items: center;
   gap: 5px;
 }
 
 .wproj-commit-shell .wrj-det-showbtn:hover {
   background: var(--wrj-bg);
   color: var(--wrj-t1);
 }
 
 .wproj-commit-shell .wrj-det-scroll {
   flex: 1;
   overflow-y: auto;
   padding: 8px;
   display: flex;
   flex-direction: column;
   gap: 6px;
   min-height: 0;
   max-height: 360px;
 }
 
 .wproj-commit-shell .wrj-det-scroll::-webkit-scrollbar {
   width: 3px;
 }
 
 .wproj-commit-shell .wrj-det-scroll::-webkit-scrollbar-thumb {
   background: var(--wrj-bmd);
   border-radius: 2px;
 }
 
 .wproj-commit-shell .wrj-chrow {
   display: flex;
   align-items: flex-start;
   gap: 6px;
 }
 
 .wproj-commit-shell .wrj-chi {
   width: 16px;
   height: 16px;
   border-radius: 4px;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   margin-top: 1px;
 }
 
 .wproj-commit-shell .wrj-chi-ch {
   background: var(--wrj-ch-bg);
 }
 
 .wproj-commit-shell .wrj-chi-add {
   background: var(--wrj-add-bg);
 }
 
 .wproj-commit-shell .wrj-chi-rm {
   background: var(--wrj-rm-bg);
 }
 
 .wproj-commit-shell .wrj-chc {
   flex: 1;
   min-width: 0;
 }
 
 .wproj-commit-shell .wrj-chl {
   font-size: var(--fs-9.5px);
   font-weight: 500;
   color: var(--wrj-t3);
   margin-bottom: 1px;
 }
 
 .wproj-commit-shell .wrj-chh {
   font-size: var(--fs-11.5px);
   color: var(--wrj-t1);
   line-height: 1.4;
 }
 
 .wproj-commit-shell .wrj-chr {
   display: flex;
   align-items: baseline;
   gap: 4px;
   margin-top: 3px;
   flex-wrap: wrap;
 }
 
 .wproj-commit-shell .wrj-ro {
   font-family: "Geist Mono", var(--font-mono);
   font-size: var(--fs-10px);
   color: var(--wrj-rm);
   background: var(--wrj-rm-bg);
   padding: 1px 4px;
   border-radius: 3px;
   text-decoration: line-through;
 }
 
 .wproj-commit-shell .wrj-ra {
   font-size: var(--fs-9.5px);
   color: var(--wrj-t3);
 }
 
 .wproj-commit-shell .wrj-rn {
   font-family: "Geist Mono", var(--font-mono);
   font-size: var(--fs-10px);
   color: var(--wrj-add);
   background: var(--wrj-add-bg);
   padding: 1px 4px;
   border-radius: 3px;
 }
 
 .wproj-commit-shell .wrj-ry {
   font-family: "Geist Mono", var(--font-mono);
   font-size: var(--fs-10px);
   color: var(--wrj-t2);
   background: var(--wrj-p2);
   padding: 1px 4px;
   border-radius: 3px;
 }
 
 .wproj-commit-shell .wrj-muted {
   padding: 14px 8px;
   font-size: var(--fs-11px);
   color: var(--wrj-t3);
   text-align: center;
 }
 
 .wproj-commit-shell .wrj-err {
   color: var(--wrj-rm);
   font-size: var(--fs-10px);
   padding: 8px;
 }
 
 .wproj-commit-shell .wrj-swatch {
   display: inline-block;
   width: 8px;
   height: 8px;
   border-radius: 2px;
   vertical-align: middle;
   margin-right: 2px;
   border: 1px solid rgba(0, 0, 0, 0.12);
 }
 
 .wproj-commit-shell .wrj-tree-loading {
   padding: 24px;
   text-align: center;
   font-size: var(--fs-11px);
   color: var(--wrj-t3);
 }
 
 /* COLLOBORATE: REMOTE CURSORS */
 #g-remote-cursors-layer {
   position: fixed;
   inset: 0;
   pointer-events: none;
   z-index: 99999;
 }
 
 .g-remote-cursor {
   position: absolute;
   pointer-events: none;
   z-index: 1;
 }
 
 .g-remote-cursor__arrow {
   width: 32px;
   height: 32px;
   background-color: var(--rc-bg, #888);
   -webkit-mask-image: url("/static/cursor/remote-cursor.svg");
   mask-image: url("/static/cursor/remote-cursor.svg");
   -webkit-mask-size: contain;
   mask-size: contain;
   -webkit-mask-repeat: no-repeat;
   mask-repeat: no-repeat;
   /* filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); */
 }
 
 .g-remote-cursor__label {
   position: absolute;
   left: 25px;
   top: 25px;
   max-width: 160px;
   padding: 2px 8px;
   border-radius: 0px;
   background: var(--rc-bg, #888);
   color: #fff;
   font: 11px/1.25 system-ui, sans-serif;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   font-weight: 600;
   align-items: center;
   /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); */
   /* border: 1px solid rgba(255, 255, 255, 0.35); */
 }
 