/* jetpowered app mock — measured from the real app at 1x (colours from src/theme.rs and
   sampled from screenshots). Dark and light follow the app's own two schemes; .win draws
   the Windows build (Windows 11 caption buttons, Segoe UI, square-ish corners). */
.m-win {
  /* dark: as GNOME's own dark windows have it, lists darkest, strips and sidebar lighter */
  --chrome: #21252a;
  --pane: #15171b;
  --pane-off: #191b1f;
  --edge: #0f1114;
  --line: #323840;
  --rule: #262b31;
  --line-soft: #3b4046;
  --text: #dfe5eb;
  --dim: #b8bdc2;
  --muted: #8f9aa7;
  --faint: #5d6670;
  --teal: #5cd3c0;
  --teal-btn: #4fb5a4;
  --on-teal: #10201d;
  --sel: #223e42;
  --bar: #224a4e;
  --bar-on: #2c6064;
  --bar-go: #2c8f80;
  --btn: #2c3239;
  --hover: #24292f;
  --dialog: #262c33;
  --well: #1f242a;
  --well-line: #30373f;
  --field: #111316;
  --cmpbar: #1f3234;
  --lit: #1d3537;
  --img-bg: #101215;
  --folder: #e8b860;
  --orange: #eca448;
  --orange-row: #3b2f1f;
  --green: #7ec880;
  --red: #eb6f6f;
  --blue: #70acf4;
  --blue-sel: #24384f;
  --ghost-bg: #1a1d21;
  --ghost-tx: #5d646d;
  --winbtn: #2c3239;
  --admin-bg: #28554f; --admin-tx: #9be7da;
  --tag-t: #5cd3c0; --tag-t-bd: #3f8f84; --tag-t-bg: #1f3e3c;
  --tag-b: #8fb8f0; --tag-b-bd: #4a6f9e; --tag-b-bg: #22344a;
  --tag-o: #e8bb66; --tag-o-bd: #8a6a32; --tag-o-bg: #3a2f1d;
  --tag-p: #d7a6e8; --tag-p-bd: #7d548f; --tag-p-bg: #33263b;
  --kw: #b48ead; --str: #d08770; --cm: #65737e; --fld: #bf616a; --num: #d08770; --ty: #88c0d0;
  --add: #2e4632; --del: #4b2b31; --chg: #26364c; --chg-mark: #476c9a; --add-mark: #3f6b47; --del-mark: #7a3a42;
  --mark-top: #f3ead3; --mark-mid: #f5af19; --mark-low: #e0452b; --mark-off: #3a4048;
  --edge-glow: rgb(255 255 255 / .07);
  --font: "Noto Sans", "Ubuntu Sans", Cantarell, system-ui, sans-serif;
  --mono: "Noto Sans Mono", "DejaVu Sans Mono", ui-monospace, monospace;
  --corner: 12px;

  width: var(--w, 1200px);
  height: var(--h, 640px);
  font: 14px/1.4 var(--font);
  color: var(--text);
  background: var(--pane);
  border-radius: var(--corner);
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  position: relative;
  box-shadow: 0 0 0 1px var(--edge-glow), 0 2px 6px rgb(0 0 0 / .25), 0 24px 48px -16px rgb(4 8 40 / .55), 0 60px 110px -40px rgb(4 8 40 / .45);
  text-align: left;
  letter-spacing: 0;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
/* light: the same hues, darkened where they have to be read on white */
.m-win.light {
  --chrome: #f0f2f5;
  --pane: #fafbfc;
  --pane-off: #f4f6f8;
  --edge: #dce1e6;
  --line: #d4d9df;
  --rule: #e4e8ec;
  --line-soft: #c9cfd6;
  --text: #0e1014;
  --dim: #3c434d;
  --muted: #59616d;
  --faint: #9aa2ac;
  --teal: #007668;
  --teal-btn: #0b8b7b;
  --on-teal: #ffffff;
  --sel: #ceeae5;
  --bar: #d0eae6;
  --bar-on: #b3ddd5;
  --bar-go: #48b3a2;
  --btn: #e2e6eb;
  --hover: #eaedf1;
  --dialog: #ffffff;
  --well: #f4f6f8;
  --well-line: #dfe3e8;
  --field: #ffffff;
  --cmpbar: #dcf1ed;
  --lit: #d9efeb;
  --img-bg: #eceff2;
  --folder: #d49628;
  --orange: #b05a00;
  --orange-row: #fcf1de;
  --green: #18762a;
  --red: #b82424;
  --blue: #1458b8;
  --blue-sel: #dce8f8;
  --ghost-bg: #f1f3f5;
  --ghost-tx: #a6adb5;
  --winbtn: #e2e6eb;
  --admin-bg: #cdeee8; --admin-tx: #005b50;
  --tag-t: #006b5e; --tag-t-bd: #7cc7bb; --tag-t-bg: #e0f4f0;
  --tag-b: #1d58a8; --tag-b-bd: #9dbbe6; --tag-b-bg: #e4eefb;
  --tag-o: #8a5600; --tag-o-bd: #dcb46a; --tag-o-bg: #fbf0dc;
  --tag-p: #7c3d99; --tag-p-bd: #c9a2dc; --tag-p-bg: #f4e8f9;
  --kw: #8b3fa8; --str: #b0521a; --cm: #6a737d; --fld: #b0303a; --num: #b0521a; --ty: #1f6f8b;
  --add: #ddf2e0; --del: #f9e0e0; --chg: #e1eaf8; --chg-mark: #b8cdef; --add-mark: #b2e0ba; --del-mark: #f1b9b9;
  --mark-top: #1e2b4a; --mark-off: #d0d5db;
  --edge-glow: rgb(20 30 60 / .10);
}
/* Windows: Windows 11's typeface and its rounder-but-smaller window corners */
.m-win.win { --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", "Noto Sans", system-ui, sans-serif; --corner: 8px; }

.m-win * { box-sizing: border-box; }
.m-win svg { flex: none; display: block; }
.m-body { display: grid; min-height: 0; position: relative; }
.m-col { display: grid; grid-template-rows: 40px minmax(0, 1fr); min-width: 0; min-height: 0; }
.m-row .arw { padding: 0; justify-content: center; }
.m-row .arw b { width: 22px; height: 21px; border-radius: 4px; background: var(--bar-go); color: #fff; display: grid; place-items: center; }
.m-caretline { display: inline-block; width: 2px; height: 17px; background: var(--teal); vertical-align: -3px; margin-left: 1px; animation: m-blink 1s steps(1) infinite; }

/* title bar: the stripes, the sidebar toggle, tabs, layout and the window's buttons */
.m-top { background: var(--chrome); display: flex; align-items: stretch; min-width: 0; position: relative; }
.m-head0 { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.m-mark { display: block; }
.m-toggle { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; color: var(--text); }
.m-head0.rail { justify-content: center; padding: 0; flex: 1; }
.m-tabs { display: flex; align-items: flex-end; min-width: 0; padding: 6px 0 0 6px; gap: 2px; flex: 1; }
.m-tab { display: flex; align-items: center; gap: 9px; padding: 0 10px 0 12px; height: 34px; flex: 0 1 196px; min-width: 70px; color: var(--muted); white-space: nowrap; overflow: hidden; position: relative; border-radius: 8px 8px 0 0; }
.m-tab .lbl { overflow: hidden; text-overflow: ellipsis; min-width: 0; color: var(--dim); }
.m-tab .brn { margin-left: auto; font-size: 13px; color: var(--muted); flex: none; padding-left: 8px; }
.m-tab .x { flex: none; width: 18px; height: 18px; display: grid; place-items: center; color: var(--muted); border-radius: 4px; margin-left: 2px; }
.m-tab .brn + .x { margin-left: 4px; }
.m-tab:not(.on) .x { display: none; }
.m-tab.on { background: var(--pane-off); }
.m-tab.on .lbl { color: var(--text); }
.m-tab.on.focus { background: var(--pane); }
.m-tab .tp { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--teal); z-index: 1; transition: width .6s linear; }
.m-tab .badge { margin-left: auto; font-size: 13px; color: var(--teal); flex: none; }
.m-tab.xfer { flex-basis: 230px; }
.m-plus { display: flex; align-items: center; padding: 0 12px; color: var(--dim); font-size: 18px; flex: none; height: 34px; align-self: flex-end; }
.m-more { display: flex; align-items: center; gap: 2px; padding: 0 8px; color: var(--dim); font-size: 13.5px; flex: none; height: 34px; align-self: flex-end; }
.m-ctrl { position: absolute; right: 8px; top: 0; height: 40px; z-index: 4; display: flex; align-items: center; gap: 2px; }
.m-ctrl .i { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: var(--dim); }
.m-ctrl .dd { width: 14px; display: grid; place-items: center; color: var(--dim); margin: 0 6px 0 -2px; }
.m-ctrl .i.on { background: var(--sel); color: var(--teal); }
.m-ctrl .w { width: 26px; height: 26px; border-radius: 50%; background: var(--winbtn); display: grid; place-items: center; color: var(--text); margin-left: 10px; }
.m-ctrl .w + .w { margin-left: 8px; }
/* Windows 11 caption buttons: flat, the title bar's height, hard against the corner */
.m-win.win .m-ctrl { right: 0; }
.m-win.win .m-ctrl .w { width: 46px; height: 40px; border-radius: 0; background: none; margin: 0; color: var(--text); }
.m-win.win .m-ctrl .w:first-of-type { margin-left: 8px; }
.m-win.win .m-ctrl .w svg { width: 10px; height: 10px; }

/* sidebar */
.m-side { background: var(--chrome); padding: 2px 0 0; overflow: hidden; }
.m-side h6 { margin: 8px 6px 2px; padding: 0 8px 0 4px; height: 27px; font: 400 14px/1 var(--font); color: var(--text); display: flex; gap: 9px; align-items: center; }
.m-side h6::before { content: ""; border: 4px solid transparent; border-top: 5px solid var(--muted); border-bottom: 0; margin-top: 3px; }
.m-side h6.shut::before { border: 4px solid transparent; border-left: 5px solid var(--muted); border-right: 0; margin: 0 1px 0 2px; }
.m-side h6 .add { margin-left: auto; color: var(--muted); font-size: 17px; }
.m-side h6.sub { margin: 0 6px 0 20px; }
.m-place { display: flex; align-items: center; gap: 10px; height: 27px; margin: 0 6px; padding: 0 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.m-place > span:not(.end) { overflow: hidden; text-overflow: ellipsis; }
.m-place.ind { padding-left: 26px; }
.m-place svg { color: var(--dim); }
.m-place.off { color: var(--muted); }
.m-place.off svg { color: var(--muted); }
.m-place .end { margin-left: auto; color: var(--muted); flex: none; }
.m-place.on { background: var(--sel); color: var(--teal); }
.m-place.on svg { color: var(--teal); }
.m-sep { height: 1px; background: var(--line); margin: 6px 14px; }
.m-disk { margin: 1px 14px 0 34px; height: 3px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.m-disk i { display: block; height: 100%; background: var(--teal); }
.m-free { margin: 4px 14px 4px 34px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* panes */
.m-pane { display: grid; grid-template-rows: 36px 26px minmax(0, 1fr) 28px; min-width: 0; min-height: 0; background: var(--pane-off); border-left: 1px solid var(--edge); }
.m-pane.focus { background: var(--pane); }
.m-pane.cmp { grid-template-rows: 36px 34px 26px minmax(0, 1fr) 28px; }
.m-tool { display: flex; align-items: center; gap: 4px; padding: 0 10px; color: var(--dim); white-space: nowrap; overflow: hidden; border-bottom: 1px solid transparent; }
.m-pane.focus > .m-tool, .m-hist > .m-tool, .m-commit > .m-tool { border-bottom-color: var(--teal); }
.m-tool .nav { width: 26px; height: 26px; display: grid; place-items: center; }
.m-tool .nav.off { opacity: .45; }
.m-crumb { display: flex; align-items: center; gap: 8px; margin-left: 12px; color: var(--muted); overflow: hidden; }
.m-crumb b { color: var(--text); font-weight: 400; }
.m-crumb i { font-style: normal; font-size: 12px; opacity: .8; }
.m-tool .sp { flex: 1; }
.m-tool .ti { width: 30px; height: 26px; display: grid; place-items: center; }
.m-tool .dd { width: 14px; display: grid; place-items: center; opacity: .8; }
.m-tool .tb { padding: 4px 11px; border-radius: 6px; background: var(--btn); color: var(--text); margin-left: 6px; }
.m-tool .search { flex: 0 1 190px; height: 26px; border-radius: 6px; background: var(--field); border: 1px solid var(--line); color: var(--muted); padding: 2px 9px; overflow: hidden; margin-left: 8px; }

.m-head, .m-row { display: grid; grid-template-columns: var(--cols, minmax(0, 1fr) 150px 84px); align-items: center; }
.m-head { color: var(--text); font-size: 13.5px; border-bottom: 1px solid var(--rule); }
.m-head > span { padding: 0 10px; position: relative; white-space: nowrap; overflow: hidden; }
.m-head > span:first-child { padding-left: 12px; }
.m-head > span + span::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line-soft); }
.m-head .r { text-align: right; }
.m-list { overflow: hidden; padding-top: 2px; }
.m-row { height: 24px; white-space: nowrap; position: relative; }
.m-row > span { overflow: hidden; text-overflow: ellipsis; padding: 0 10px; display: flex; align-items: center; gap: 9px; height: 100%; }
.m-row > span:first-child { padding-left: 12px; }
.m-row .nm { overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 48px; }
.m-row .br { margin-left: auto; color: var(--muted); font-size: 13px; display: flex; gap: 5px; align-items: center; flex: 0 1 auto; min-width: 0; overflow: hidden; padding-left: 10px; }
.m-row .br svg { flex: none; }
.m-row .gs { margin-left: auto; font-size: 13px; color: var(--muted); padding-left: 10px; }
.m-row.sel { background: var(--sel); border-radius: 4px; margin: 0 6px 0 2px; }
.m-row.sel::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--teal); }
.m-row .size { justify-content: flex-end; position: relative; padding-right: 8px; }
.m-row .size i { position: absolute; right: 0; top: 2px; bottom: 2px; background: var(--bar); min-width: 2px; border-radius: 3px; transition: width .45s ease; }
.m-row.sel .size i { background: var(--bar-on); }
.m-row .size em { position: relative; font-style: normal; }
.m-row .meta { color: var(--muted); }
.m-row.g-u .nm { color: var(--green); }
.m-row.g-m .nm { color: var(--orange); }
.m-row.g-d .nm { color: var(--red); }
.m-row.ghost > span { color: var(--ghost-tx); }
.m-row.ghost { background: var(--ghost-bg); }
.m-row.ghost svg { opacity: 0; }
.m-row.newer { background: var(--orange-row); }
.m-row.newer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--orange); }
.m-row.pick { background: var(--blue-sel); }
.m-row.pick::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--blue); }
.m-row.incoming .nm { color: var(--dim); }
.m-row .prog { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--teal); transition: width .6s linear; }
.m-row .tw { width: 12px; display: grid; place-items: center; color: var(--muted); flex: none; margin-right: -3px; }
.m-row.kid > span:first-child { padding-left: 32px; }
.m-row.kid2 > span:first-child { padding-left: 52px; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, 112px); gap: 8px 10px; padding: 12px 14px; align-content: start; overflow: hidden; }
.m-grid div { text-align: center; padding: 5px; border-radius: 6px; }
.m-grid div.sel { background: var(--sel); }
.m-grid img { width: 100%; aspect-ratio: 10/7; object-fit: cover; display: block; border-radius: 3px; }
.m-grid span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.m-grid small { display: block; color: var(--muted); font-size: 12.5px; }

/* the pane's foot: its count on the left; git's controls, then the branch, on the right */
.m-status { display: flex; align-items: center; gap: 14px; padding: 0 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.m-status.selnote > .cnt { color: var(--teal); }
.m-status .gitc { display: flex; gap: 16px; align-items: center; }
.m-status .div { width: 1px; height: 14px; background: var(--line-soft); margin: 0 -2px; }
.m-status .r { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.m-status .up { color: var(--green); }
.m-status .chg { color: var(--orange); display: flex; gap: 6px; align-items: center; }
.m-status .chg::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.m-status .wt { color: var(--text); display: flex; gap: 6px; align-items: center; }
.m-status .brn { color: var(--text); display: flex; gap: 5px; align-items: center; }
.m-status .brn small { font-size: 10px; color: var(--muted); }

/* compare bar spans both panes */
.m-cmpbar { position: absolute; z-index: 3; top: 40px; height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--cmpbar); color: var(--teal); white-space: nowrap; }
.m-cmpbar .sp { flex: 1; }
.m-cmpbar b { font-weight: 400; color: var(--text); padding: 4px 10px; border-radius: 6px; }
.m-cmpbar b.dark { background: var(--btn); }

/* preview column */
.m-prev { display: grid; grid-template-rows: 36px minmax(0, 1fr); background: var(--pane-off); border-left: 1px solid var(--edge); min-width: 0; min-height: 0; }
.m-prev.code { grid-template-rows: 36px minmax(0, 1fr) 26px; }
.m-prev.diff { grid-template-rows: 36px 32px minmax(0, 1fr); }
.m-ph { display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; white-space: nowrap; overflow: hidden; }
.m-ph .t { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.m-ph .info { color: var(--muted); font-size: 13.5px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.m-ph .sp { flex: 1; }
.m-ph .b { padding: 4px 11px; border-radius: 6px; background: var(--btn); color: var(--text); flex: none; }
.m-ph .b.off { color: var(--faint); }
.m-ph .b.admin { background: var(--admin-bg); color: var(--admin-tx); }
.m-ph .b.seg { background: transparent; }
.m-ph .b.seg.on { background: var(--btn); }
.m-ph .ic { color: var(--dim); width: 24px; display: grid; place-items: center; flex: none; }
.m-empty { display: grid; place-items: center; color: var(--muted); }
.m-prev.look { grid-template-rows: 36px 34px minmax(0, 1fr); position: relative; }
.m-img { display: grid; place-items: center; padding: 18px; background: var(--img-bg); min-height: 0; }
.m-img .pic { position: relative; display: block; max-width: 100%; max-height: 100%; }
.m-img img { max-width: 100%; max-height: 100%; display: block; box-shadow: 0 2px 10px rgb(0 0 0 / .3); }
/* The tools under the heading, as in the app. */
.m-lt { display: flex; align-items: center; gap: 4px; padding: 0 8px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); white-space: nowrap; overflow: hidden; color: var(--text); }
.m-lt .ti { width: 28px; height: 26px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.m-lt .ti.on { background: var(--lit); color: var(--teal); }
.m-lt .dd { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 13.5px; color: var(--text); flex: none; }
.m-lt .dd svg { color: var(--muted); }
.m-lt .dd.on { background: var(--lit); color: var(--teal); }
.m-lt .bar { width: 1px; height: 18px; background: var(--line); margin: 0 6px; flex: none; }
.m-lt .info { color: var(--muted); font-size: 13.5px; margin-left: 4px; }
.m-lt .sp { flex: 1; }
.m-lt .pg { width: 20px; text-align: center; font-size: 17px; }
.m-lt .pg.off { color: var(--faint); }
.m-lt .pgn { min-width: 38px; padding: 2px 10px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; }
.m-lt .of { color: var(--muted); font-size: 13.5px; margin: 0 4px; }
.m-lt .b { padding: 4px 11px; border-radius: 6px; flex: none; font-size: 14px; }
.m-lt .b.plain { color: var(--muted); }
.m-lt .b.go { background: var(--teal-btn); color: var(--on-teal); }
/* Cropping: the rest of the picture dimmed, a frame in thirds, handles. */
.m-crop { position: absolute; border: 1px solid #f2f4f6; box-shadow: 0 0 0 999px rgb(10 12 14 / .55); transition: left .5s ease, top .5s ease, width .5s ease, height .5s ease; background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgb(255 255 255 / .55) calc(33.33% - .5px), rgb(255 255 255 / .55) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgb(255 255 255 / .55) calc(66.66% - .5px), rgb(255 255 255 / .55) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(transparent calc(33.33% - .5px), rgb(255 255 255 / .55) calc(33.33% - .5px), rgb(255 255 255 / .55) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgb(255 255 255 / .55) calc(66.66% - .5px), rgb(255 255 255 / .55) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.m-img.cropping .pic { overflow: hidden; }
.m-crop b { position: absolute; width: 8px; height: 8px; background: #f2f4f6; margin: -4px 0 0 -4px; }
.m-crop b:nth-child(1) { left: 0; top: 0; } .m-crop b:nth-child(2) { left: 50%; top: 0; } .m-crop b:nth-child(3) { left: 100%; top: 0; }
.m-crop b:nth-child(4) { left: 0; top: 50%; } .m-crop b:nth-child(5) { left: 100%; top: 50%; }
.m-crop b:nth-child(6) { left: 0; top: 100%; } .m-crop b:nth-child(7) { left: 50%; top: 100%; } .m-crop b:nth-child(8) { left: 100%; top: 100%; }
.m-shapes { position: absolute; left: 40px; top: 72px; z-index: 2; min-width: 170px; padding: 5px; background: var(--dialog); border: 1px solid var(--well-line); border-radius: 8px; box-shadow: 0 8px 24px rgb(0 0 0 / .3); }
.m-shapes div { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 5px; color: var(--text); }
.m-shapes div span { width: 12px; display: grid; place-items: center; color: var(--text); }
.m-pdf { overflow: hidden; background: var(--img-bg); padding: 18px 0; display: grid; justify-content: center; align-content: start; gap: 14px; }
.m-pdf .page { width: 330px; height: 440px; background: #fbfaf7; border-radius: 2px; box-shadow: 0 3px 14px rgb(0 0 0 / .3); padding: 30px 30px; color: #222; font: 9px/1.5 Georgia, serif; }
.m-pdf .page h4 { font: 700 17px/1.2 Georgia, serif; margin: 0 0 4px; }
.m-pdf .page .sub { color: #777; margin-bottom: 14px; }
.m-pdf .page .ln { height: 5px; background: #d8d6d0; margin: 6px 0; border-radius: 2px; }
.m-pdf .page .chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin: 18px 0; border-bottom: 1px solid #ccc; }
.m-pdf .page .chart i { flex: 1; background: #1d34c9; }
.m-pdf .page .chart i:nth-child(even) { background: #e2401f; }

.m-code { font: 13.5px/26px var(--mono); overflow: hidden; padding: 8px 0; color: var(--text); }
.m-code .l { display: grid; grid-template-columns: 44px 1fr; white-space: pre; }
.m-code .l .n { color: var(--faint); text-align: right; padding-right: 12px; }
.m-code .l.cur { background: var(--hover); }
.m-code .l.mod .n { color: var(--orange); }
.m-code .caret { display: inline-block; width: 2px; height: 17px; background: var(--teal); vertical-align: -3px; animation: m-blink 1s steps(1) infinite; }
@keyframes m-blink { 50% { opacity: 0; } }
.m-codefoot { display: flex; align-items: center; padding: 0 14px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--rule); white-space: nowrap; }
.m-win .k { color: var(--kw); } .m-win .s { color: var(--str); } .m-win .c { color: var(--cm); } .m-win .f { color: var(--fld); } .m-win .y { color: var(--ty); }

.m-csv { overflow: hidden; font-size: 14px; }
.m-csv table { border-collapse: collapse; width: max-content; }
.m-csv th { background: var(--lit); color: var(--text); font-weight: 500; text-align: left; padding: 5px 12px; height: 28px; border-right: 1px solid var(--rule); }
.m-csv th:first-child, .m-csv td:first-child { text-align: right; color: var(--faint); background: var(--chrome); width: 40px; padding: 0 8px; font-weight: 400; }
.m-csv th:nth-child(2), .m-csv td:nth-child(2) { text-align: left; }
.m-csv td { text-align: right; padding: 0 12px; height: 26px; border-right: 1px solid var(--rule); }
.m-csv tr.sr td:not(:first-child) { background: var(--sel); }
.m-csv tr.sr td:first-child { color: var(--teal); }
.m-csv tr.sr td:nth-child(2) { box-shadow: inset 1.5px 0 0 var(--teal); }
.m-csv tr.sr1 td:not(:first-child) { box-shadow: inset 0 1.5px 0 var(--teal); }
.m-csv tr.sr1 td:nth-child(2) { box-shadow: inset 1.5px 1.5px 0 var(--teal); }
.m-csv tr.sr5 td:not(:first-child) { box-shadow: inset 0 -1.5px 0 var(--teal); }
.m-csv tr.sr5 td:nth-child(2) { box-shadow: inset 1.5px -1.5px 0 var(--teal); }
.m-csv td.chg { background: var(--chg); }
.m-csv td.chg mark { background: var(--chg-mark); color: inherit; padding: 0 2px; border-radius: 2px; }
.m-csv td.gone { background: var(--del); color: var(--muted); text-decoration: line-through; }
.m-sheets { display: flex; gap: 2px; padding: 0 10px; border-top: 1px solid var(--rule); align-items: center; color: var(--muted); font-size: 13.5px; }
.m-sheets span { padding: 4px 12px; border-radius: 0 0 6px 6px; }
.m-sheets span.on { background: var(--pane); color: var(--text); box-shadow: inset 0 2px 0 var(--teal); }

.m-diffbar { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.m-diffbar .sp { flex: 1; }
.m-diffbar .nb { width: 26px; height: 24px; border-radius: 5px; background: var(--btn); display: grid; place-items: center; color: var(--text); }
.m-diffbar .nb.on { background: var(--sel); color: var(--teal); }
.m-udiff { font: 13.5px/24px var(--mono); overflow: hidden; padding: 4px 0; }
.m-udiff .l { display: grid; grid-template-columns: 34px 34px 18px 1fr 40px; white-space: pre; }
.m-udiff .l > span:nth-child(-n+3) { color: var(--faint); text-align: right; padding-right: 8px; }
.m-udiff .l > span:nth-child(3) { text-align: center; padding: 0; }
.m-udiff .l.a > span:nth-child(4) { background: var(--add); }
.m-udiff .l.d > span:nth-child(4) { background: var(--del); }
.m-udiff .l .ar { color: var(--dim); text-align: center; }
.m-udiff mark { background: var(--chg-mark); color: inherit; }
.m-udiff .l.a mark { background: var(--add-mark); }
.m-udiff .l.d mark { background: var(--del-mark); }
.m-udiff.prose { font: 14px/24px var(--font); }
.m-sbs { display: grid; grid-template-columns: 1fr 36px 1fr; font: 13.5px/24px var(--mono); overflow: hidden; padding: 6px 0; align-content: start; }
.m-sbs .side .l { display: grid; grid-template-columns: 40px 1fr; white-space: pre; overflow: hidden; }
.m-sbs .side .l > span:first-child { color: var(--faint); text-align: right; padding-right: 12px; }
.m-sbs .side .l.x > span:last-child { background: var(--chg); }
.m-sbs .side .l.a > span:last-child { background: var(--add); }
.m-sbs .side .l.d > span:last-child { background: var(--del); }
.m-sbs .side .l.gap > span:last-child { background: var(--ghost-bg); }
.m-sbs mark { background: var(--chg-mark); color: inherit; }
.m-sbs .mid .l { height: 24px; color: var(--dim); text-align: center; }
.m-sbs.prose { font: 14px/24px var(--font); }
.m-sbs.prose .side .l { white-space: normal; }

/* git history pane */
.m-hist { display: grid; grid-template-rows: 36px 26px minmax(0, 1fr) auto; min-height: 0; background: var(--pane); border-left: 1px solid var(--edge); }
.m-hrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px 80px; align-items: center; height: 26px; white-space: nowrap; }
.m-hrow > span { overflow: hidden; text-overflow: ellipsis; padding: 0 8px; display: flex; align-items: center; gap: 7px; }
.m-hrow .d, .m-hrow .id { color: var(--muted); }
.m-hrow .id { font: 13px var(--mono); }
.m-hrow.sel { background: var(--sel); }
.m-hrow.sel .msg { color: var(--teal); }
.m-tag { padding: 0 6px; border-radius: 4px; font-size: 13px; line-height: 19px; border: 1px solid; flex: none; }
.m-tag.t { color: var(--tag-t); border-color: var(--tag-t-bd); background: var(--tag-t-bg); }
.m-tag.b { color: var(--tag-b); border-color: var(--tag-b-bd); background: var(--tag-b-bg); }
.m-tag.o { color: var(--tag-o); border-color: var(--tag-o-bd); background: var(--tag-o-bg); }
.m-tag.p { color: var(--tag-p); border-color: var(--tag-p-bd); background: var(--tag-p-bg); }
.m-hgraph { position: absolute; left: 0; top: 0; }
.m-hdet { border-top: 1px solid var(--rule); padding: 10px 12px; display: grid; gap: 6px; }
.m-hdet .meta { display: flex; gap: 12px; color: var(--muted); font-size: 13.5px; }
.m-hdet .meta .id { color: var(--teal); font-family: var(--mono); }
.m-hdet .f { display: flex; gap: 10px; align-items: center; color: var(--text); }
.m-hdet .f.sel { background: var(--sel); margin: 0 -12px; padding: 2px 12px; }

/* commit pane */
.m-commit { display: grid; grid-template-rows: 36px 26px minmax(0, 1fr) auto; min-height: 0; background: var(--pane); border-left: 1px solid var(--edge); }
.m-chk { width: 15px; height: 15px; border-radius: 3px; border: 1.5px solid var(--faint); display: grid; place-items: center; flex: none; }
.m-chk.y { background: var(--teal-btn); border-color: var(--teal-btn); color: var(--on-teal); }
.m-cbox { border-top: 1px solid var(--rule); padding: 10px 12px; display: grid; gap: 9px; }
.m-cbox .msg { height: 92px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); padding: 7px 10px; color: var(--text); }
.m-cbox .opts { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 13.5px; }
.m-cbox .btns { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.m-cbox .btns .hint { margin-right: auto; color: var(--muted); font-size: 13px; }
.m-cbox .b { padding: 6px 14px; border-radius: 6px; background: var(--btn); }
.m-cbox .b.p { background: var(--teal-btn); color: var(--on-teal); }

/* a passing note, low in the middle of the window */
.m-toast { position: absolute; z-index: 6; left: 50%; bottom: 40px; transform: translateX(-50%); padding: 7px 16px; border-radius: 99px; background: var(--dialog); border: 1px solid var(--well-line); color: var(--text); font-size: 13.5px; white-space: nowrap; box-shadow: 0 6px 20px rgb(0 0 0 / .25); display: flex; gap: 8px; align-items: center; }
.m-toast .ok { color: var(--teal); }
.m-toast .muted { color: var(--muted); }

/* a card: a menu or what a drop will do */
.m-card { position: absolute; z-index: 6; background: var(--dialog); border: 1px solid var(--well-line); border-radius: 10px; box-shadow: 0 14px 40px rgb(0 0 0 / .35); padding: 6px; min-width: 220px; }
.m-card .hd { padding: 8px 10px 6px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.m-card .hd b { color: var(--text); font-weight: 500; }
.m-card .it { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; color: var(--text); white-space: nowrap; }
.m-card .it svg { color: var(--dim); }
.m-card .it.on { background: var(--sel); color: var(--teal); }
.m-card .it.on svg { color: var(--teal); }
.m-card .it .k { margin-left: auto; color: var(--muted); font-size: 13px; padding-left: 18px; }
.m-card .sep { height: 1px; background: var(--well-line); margin: 5px 6px; }

/* activity dialog */
.m-dialog { position: absolute; z-index: 5; background: var(--dialog); border: 1px solid var(--well-line); border-radius: 10px; box-shadow: 0 20px 50px rgb(0 0 0 / .4); padding: 18px 18px 16px; display: grid; gap: 12px; }
.m-dialog h5 { margin: 0; font: 500 15px/1.3 var(--font); color: var(--text); }
.m-dialog .job { display: flex; align-items: baseline; gap: 10px; }
.m-dialog .job b { font-weight: 500; font-size: 15px; }
.m-dialog .job .b { margin-left: auto; padding: 4px 12px; border-radius: 6px; background: var(--btn); font-size: 14px; }
.m-dialog .sub { color: var(--muted); font-size: 13.5px; margin-top: -8px; }
.m-dialog .stats { display: grid; grid-template-columns: 110px 1fr 1fr 1fr; align-items: end; }
.m-dialog .pct { font-size: 34px; line-height: 1; color: #e8a849; }
.m-dialog .stats small { display: block; color: var(--muted); font-size: 13px; }
.m-dialog .blocks { display: flex; gap: 3px; height: 8px; }
.m-dialog .blocks i { border-radius: 2px; background: var(--line-soft); }
.m-dialog .legend { display: flex; gap: 16px; color: var(--muted); font-size: 13px; }
.m-dialog .legend .r { margin-left: auto; }
.m-dialog .chart { background: var(--well); border: 1px solid var(--well-line); border-radius: 8px; padding: 8px 10px; }
.m-dialog .chart .h { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.m-dialog .thr { display: grid; grid-template-columns: 34px 1fr 140px; gap: 10px; align-items: center; background: var(--well); border: 1px solid var(--well-line); border-radius: 7px; padding: 7px 10px; }
.m-dialog .thr .tag { font-size: 12.5px; text-align: center; border-radius: 3px; padding: 1px 0; color: #12161a; }
.m-dialog .thr .bar { height: 3px; background: var(--line-soft); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.m-dialog .thr .bar i { display: block; height: 100%; transition: width .6s linear; }
.m-dialog .thr .amt { color: var(--muted); font-size: 13px; text-align: right; }
.m-dialog .foot { display: flex; justify-content: flex-end; gap: 8px; }
.m-dialog .foot span { padding: 6px 14px; border-radius: 6px; background: var(--btn); }
.m-dialog .foot span.p { background: var(--teal-btn); color: var(--on-teal); }
.m-dialog .foot span.warn { background: var(--red); color: #fff; }
.m-dialog p { margin: 0; color: var(--dim); line-height: 1.5; }

/* scaling wrapper */
.m-fit, .fit { position: relative; }
.m-fit > .m-win, .fit > .m-win { transform-origin: top left; }
@media (prefers-reduced-motion: reduce) { .m-win *, .m-win { transition: none !important; animation: none !important; } }

.m-plan .modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-plan .mode { border: 1px solid var(--well-line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 3px; background: var(--well); }
.m-plan .mode span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.m-plan .mode.on { border-color: var(--teal); background: var(--lit); }
.m-plan .mode.on b { color: var(--teal); }
.m-plan .mode b { font-weight: 500; }
.m-row .size i.xp { background: var(--bar-go); }
.m-row .size em.wait { color: var(--muted); }

/* sync preview strip, across the panes being compared */
.m-syncbar { position: absolute; z-index: 3; top: 74px; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--well); border-bottom: 1px solid var(--rule); color: var(--text); white-space: nowrap; }
.m-syncbar .dir { display: flex; align-items: center; gap: 8px; padding: 3px 10px; border-radius: 6px; background: var(--lit); color: var(--teal); }
.m-syncbar .seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.m-syncbar .seg span { padding: 3px 10px; color: var(--dim); }
.m-syncbar .seg span.on { background: var(--sel); color: var(--teal); }
.m-syncbar .sp { flex: 1; }
.m-syncbar .sum { color: var(--muted); font-size: 13.5px; }
.m-syncbar .go { padding: 4px 12px; border-radius: 6px; background: var(--teal-btn); color: var(--on-teal); }
.m-row .mk { position: absolute; right: 6px; top: 3px; height: 18px; padding: 0 7px; border-radius: 9px; font-size: 12px; line-height: 18px; z-index: 2; }
.m-row .mk.cp { background: var(--lit); color: var(--teal); }
.m-row .mk.rm { background: var(--del); color: var(--red); }
.m-row .mk.skip { background: var(--ghost-bg); color: var(--muted); border: 1px dashed var(--line-soft); }
.m-row.excl > span { opacity: .5; }

/* folded sidebar: the rail */
.m-rail { background: var(--chrome); padding: 4px; display: grid; gap: 2px; align-content: start; }
.m-rail-item { height: 40px; border-radius: 6px; display: grid; place-items: center; color: var(--dim); }
.m-rail-item svg { width: 18px; height: 18px; }
/* tabs give way to the layout and window buttons on the last column */
.m-top.ctl .m-tabs { padding-right: 250px; }
.m-win.win .m-top.ctl .m-tabs { padding-right: 300px; }

/* ---------- the File Explorer look ----------
   Measured from the app's captures at 1x: business*.png (on Linux) and win-explorer-*.png
   (on Windows). explorer() in mock.js sets the columns, and where each part sits in them. */
.m-win .m-ex {
  --ex-title: var(--edge); --ex-panel: var(--pane-off); --ex-addr: var(--pane); --ex-line: var(--well-line);
  --ex-acc: var(--teal); --ex-sel: var(--sel);
  position: absolute; inset: 0; z-index: 10;
  display: grid; grid-template-rows: 42px 40px 41px minmax(0, 1fr);
  background: var(--ex-panel); color: var(--text);
}
.m-win.light .m-ex { --ex-title: var(--chrome); --ex-panel: var(--pane); --ex-addr: var(--field); --ex-line: var(--line); }
/* Windows draws its accent and its selection in the system's blue */
.m-win .m-ex.win { --ex-acc: var(--blue); --ex-sel: var(--blue-sel); }
/* the drive-letter story is always on Linux, whatever the visitor's computer */
.m-win .m-ex.lin { font-family: "Noto Sans", "Ubuntu Sans", Cantarell, system-ui, sans-serif; }
.m-win .m-ex svg { flex: none; display: block; }

/* title row: the stripes, each pane's tabs, the window's buttons */
.m-win .m-x-title { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: subgrid; background: var(--ex-title); position: relative; min-width: 0; }
.m-win .m-x-tabs { display: flex; align-items: flex-end; gap: 2px; min-width: 0; }
.m-win .m-x-tabs.end { padding-right: 130px; }
.m-win .m-ex.win .m-x-tabs.end { padding-right: 150px; }
.m-win .m-ex.two .m-x-title .gap { grid-column: 3; }
.m-win .m-x-tabs.p1 { padding-left: 6px; }
.m-win .m-x-tabs .mk { width: 52px; height: 42px; display: grid; place-items: center; flex: none; align-self: stretch; }
.m-win .m-x-tab { height: 38px; flex: 0 1 198px; min-width: 80px; display: flex; align-items: center; gap: 9px; padding: 0 8px 0 14px; border-radius: 8px 8px 0 0; color: var(--dim); white-space: nowrap; overflow: hidden; }
.m-win .m-x-tab > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.m-win .m-x-tab i { width: 18px; height: 18px; display: grid; place-items: center; color: var(--muted); flex: none; }
.m-win .m-x-tab.on { background: var(--ex-panel); color: var(--text); }
.m-win .m-x-plus { width: 36px; height: 38px; display: grid; place-items: center; color: var(--dim); font-size: 18px; flex: none; }
.m-win .m-x-cap { position: absolute; right: 7px; top: 0; height: 42px; display: flex; align-items: center; gap: 6px; }
.m-win .m-x-cap span { width: 26px; height: 26px; border-radius: 50%; background: var(--winbtn); display: grid; place-items: center; color: var(--text); }
.m-win .m-x-cap.win { right: 0; gap: 0; }
.m-win .m-x-cap.win span { width: 46px; height: 42px; border-radius: 0; background: none; }

/* each pane's bar: back, forward, up, the path (or the path being typed), search */
.m-win .m-x-addr { grid-row: 2; display: flex; align-items: center; gap: 1px; padding: 0 6px; background: var(--ex-addr); border-bottom: 1px solid var(--ex-line); min-width: 0; white-space: nowrap; }
.m-win .m-x-g1, .m-win .m-x-g2 { background: var(--ex-title); }
.m-win .m-x-g1 { grid-row: 2; grid-column: 3; }
.m-win .m-x-g2 { grid-row: 4; grid-column: 3; }
.m-win .m-x-addr .nav { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text); flex: none; }
.m-win .m-x-addr .nav.off { color: var(--faint); }
.m-win .m-x-crumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin-left: 12px; color: var(--muted); overflow: hidden; }
.m-win .m-x-crumb .ic { color: var(--dim); display: grid; }
.m-win .m-x-crumb i { color: var(--muted); display: grid; }
.m-win .m-x-crumb .last { color: var(--text); }
.m-win .m-x-field { flex: 1; min-width: 0; height: 30px; margin: 0 6px 0 10px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--teal); border-radius: 7px; background: var(--field); color: var(--text); }

/* the command bar, across the window, acting on the pane in use */
.m-win .m-x-cmd { grid-row: 3; display: flex; align-items: center; gap: 1px; padding: 0 8px; background: var(--ex-panel); border-bottom: 1px solid var(--ex-line); white-space: nowrap; overflow: hidden; min-width: 0; }
.m-win .m-x-cmd .cb { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-radius: 6px; color: var(--text); flex: none; }
.m-win .m-x-cmd .cb > svg:last-child:not(:first-child) { color: var(--muted); margin-left: -2px; }
.m-win .m-x-cmd .cb.i { width: 38px; padding: 0; justify-content: center; }
.m-win .m-x-cmd .cb.off { color: var(--faint); }
.m-win .m-x-cmd .cb.new > svg:first-child { color: var(--ex-acc); }
.m-win .m-x-cmd .bar { width: 1px; height: 22px; background: var(--ex-line); margin: 0 8px; flex: none; }
.m-win .m-x-cmd .sp { flex: 1; }
.m-win .m-x-cmd .cb.dd { width: 18px; padding: 0; justify-content: center; color: var(--muted); }
.m-win .m-x-cmd .cb.lit { background: var(--ex-sel); color: var(--ex-acc); }

/* the sidebar: places, then the shared drives, then this computer */
.m-win .m-x-side { grid-row: 4; grid-column: 1; background: var(--ex-panel); border-right: 1px solid var(--ex-line); padding-top: 5px; overflow: hidden; }
.m-win .m-x-pl { display: flex; align-items: center; gap: 10px; height: 27px; margin: 0 6px; padding: 0 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.m-win .m-x-pl > span { overflow: hidden; text-overflow: ellipsis; }
.m-win .m-x-pl svg { color: var(--dim); }
.m-win .m-x-pl.off { color: var(--muted); }
.m-win .m-x-pl em { margin-left: auto; font-style: normal; color: var(--muted); display: grid; }
.m-win .m-x-pl.kid { padding-left: 24px; }
.m-win .m-x-pl.on { background: var(--ex-sel); color: var(--ex-acc); }
.m-win .m-x-pl.on svg { color: var(--ex-acc); }
.m-win .m-x-side .sep { height: 1px; background: var(--ex-line); margin: 7px 14px; }
.m-win .m-x-side h6 { margin: 16px 6px 0; height: 27px; padding: 0 8px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; line-height: 1; color: var(--text); }
.m-win .m-x-side h6 + .m-x-pl, .m-win .m-x-side .m-x-pl + h6 { margin-top: 0; }
.m-win .m-x-side h6 svg { color: var(--muted); }
.m-win .m-x-side h6 .add { margin-left: auto; color: var(--dim); font-size: 18px; }

/* a pane's list: File Explorer's columns, dates written out, no size bars */
.m-win .m-x-pane { grid-row: 4; display: grid; grid-template-rows: 30px minmax(0, 1fr) 32px; min-width: 0; min-height: 0; background: var(--ex-panel); }
.m-win .m-ex.two .m-x-pane.on .m-x-head { box-shadow: inset 0 1px 0 var(--ex-acc); }
.m-win .m-x-head, .m-win .m-x-row { display: grid; align-items: center; }
.m-win .m-x-head { border-bottom: 1px solid var(--ex-line); color: var(--dim); font-size: 13.5px; }
.m-win .m-x-head > span { padding: 0 11px; height: 100%; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.m-win .m-x-head > span + span { border-left: 1px solid var(--ex-line); }
.m-win .m-x-head > span:first-child { padding-left: 13px; }
.m-win .m-x-head > span:last-child { justify-content: flex-end; border-right: 1px solid var(--ex-line); }
.m-win .m-x-head b { font-weight: 400; color: var(--muted); }
.m-win .m-x-rows { overflow: hidden; }
.m-win .m-x-row { height: 30px; margin-left: 4px; width: max-content; position: relative; white-space: nowrap; }
.m-win .m-x-row > span { padding: 0 11px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.m-win .m-x-row > span:first-child { padding-left: 18px; display: flex; align-items: center; gap: 10px; color: var(--text); }
.m-win .m-x-row > span:last-child { text-align: right; padding-right: 9px; color: var(--text); }
.m-win .m-x-row .nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.m-win .m-x-row.sel { background: var(--ex-sel); border-radius: 4px; }
.m-win .m-x-row.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: var(--ex-acc); }
.m-win .m-x-foot { display: flex; align-items: center; gap: 22px; padding: 0 11px; border-top: 1px solid var(--ex-line); color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.m-win .m-x-foot .sel { color: var(--ex-acc); }

/* the preview, down the right from under the title row, past the end of the command bar */
.m-win .m-x-g3 { grid-row: 2 / -1; background: var(--ex-title); }
.m-win .m-x-prev { grid-row: 2 / -1; display: grid; min-width: 0; min-height: 0; }
.m-win .m-x-prev .m-prev { border-left: 0; background: var(--ex-panel); }
