@evotecit/canopyx 0.3.6 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CanopyX.Html/Assets/canopyx-calendar.js +4 -3
  2. package/CanopyX.Html/Assets/canopyx-changes.css +240 -0
  3. package/CanopyX.Html/Assets/canopyx-changes.js +224 -0
  4. package/CanopyX.Html/Assets/canopyx-detail-rows.js +2 -2
  5. package/CanopyX.Html/Assets/canopyx-filter-editor.js +2 -1
  6. package/CanopyX.Html/Assets/canopyx-formatting.js +7 -6
  7. package/CanopyX.Html/Assets/canopyx-grid-module.mjs +71 -44
  8. package/CanopyX.Html/Assets/canopyx-grid.css +24 -0
  9. package/CanopyX.Html/Assets/canopyx-grid.js +71 -44
  10. package/CanopyX.Html/Assets/canopyx-interactive.js +6 -6
  11. package/CanopyX.Html/Assets/canopyx-labels-de.js +76 -2
  12. package/CanopyX.Html/Assets/canopyx-labels-es.js +76 -2
  13. package/CanopyX.Html/Assets/canopyx-labels-fr.js +76 -2
  14. package/CanopyX.Html/Assets/canopyx-labels-it.js +76 -2
  15. package/CanopyX.Html/Assets/canopyx-labels-pl.js +76 -2
  16. package/CanopyX.Html/Assets/canopyx-live.js +4 -3
  17. package/CanopyX.Html/Assets/canopyx-matrix.css +16 -3
  18. package/CanopyX.Html/Assets/canopyx-matrix.js +22 -14
  19. package/CanopyX.Html/Assets/canopyx-module.mjs +6 -6
  20. package/CanopyX.Html/Assets/canopyx-reporting-module.mjs +73 -46
  21. package/CanopyX.Html/Assets/canopyx-reporting.css +24 -0
  22. package/CanopyX.Html/Assets/canopyx-reporting.js +73 -46
  23. package/CanopyX.Html/Assets/canopyx-tree-tools.js +7 -6
  24. package/CanopyX.Html/Assets/canopyx.js +6 -6
  25. package/JavaScript/changes.d.ts +252 -0
  26. package/JavaScript/grid.d.ts +15 -5
  27. package/JavaScript/locales/de.mjs +76 -2
  28. package/JavaScript/locales/es.mjs +76 -2
  29. package/JavaScript/locales/fr.mjs +76 -2
  30. package/JavaScript/locales/it.mjs +76 -2
  31. package/JavaScript/locales/pl.mjs +76 -2
  32. package/JavaScript/matrix.d.ts +2 -0
  33. package/JavaScript/protocol.d.ts +1 -1
  34. package/README.md +7 -2
  35. package/package.json +5 -1
@@ -1,4 +1,4 @@
1
- (function(global){"use strict";const installed=new WeakSet();const part={version:"2f44e057443bc649",install(context){if(installed.has(context.DataGrid.prototype))return;const{DataGrid,h,setText,fill,plural,gridButton,gridIcon,gridFreeze,cellText,cellValue,isCellObject,gridQuery,gridQueryRows,gridResultShape,gridPresenterTone,validateGridRows,validateGridPage,validateGridCursorPage,validStructuralCount,checkDocument,numberFormat,HostCellContext,disposeHostSlot,loadPart,PROTOCOL}=context;const CALENDAR_LABELS={calendarToday:"Today",calendarPrevious:"Previous period",calendarNext:"Next period",calendarViews:"Calendar view",calendarMonth:"Month",calendarWeek:"Week",calendarDay:"Day",calendarDays:"{count} days",calendarAgenda:"Agenda",calendarYear:"Year",calendarTimeline:"Timeline",calendarGoTo:"Go to date",calendarAllDay:"All day",calendarMore:"+{count} more",calendarMoreLabel:"Show {count} more events on {date}",calendarDayEvents:"Events on {date}",calendarNoEvents:"No events in this period",calendarEvents:"[one]{count} event[other]{count} events",calendarShowing:"{view}, {range}",calendarRepeats:"Repeats",calendarTruncated:"Showing the first {count} events. Narrow the period or the filters to see the rest.",calendarLoading:"Loading events…",calendarLoadError:"Could not load events: {error}",calendarNow:"Now",calendarZoom:"Zoom",calendarZoomHour:"Hours",calendarZoomDay:"Days",calendarZoomWeek:"Weeks",calendarZoomMonth:"Months",calendarZoomQuarter:"Quarters",calendarResources:"Resources",calendarCapacity:"Concurrent events",calendarCapacityAt:"{count} at once",calendarBusy:"{hours} h busy",calendarOverlaps:"[one]{count} overlap[other]{count} overlaps",calendarUnavailable:"Unavailable",calendarOutsideHours:"Outside working hours",calendarConflict:"Overlaps {title}",calendarNotAllowed:"{resource} cannot take this event",calendarMoved:"{title} moved to {time}",calendarResized:"{title} now ends {time}",calendarSeriesMoved:"Every occurrence of {title} moved",calendarSeriesTime:"Only the time of a whole series can be moved here.",calendarMoveHelp:"Arrow keys move, Shift with arrow keys changes the end, Alt with Up or Down changes the resource, Enter saves, Escape cancels.",calendarEdit:"Move or resize {title}",calendarSaveFailed:"{title} was not saved: {error}",calendarExport:"iCalendar (.ics)",calendarTimeRange:"{start} – {end}",calendarSelected:"Selected {range}",calendarLane:"{resource}, {events}",calendarHighlighted:"[one]{count} event highlighted[other]{count} events highlighted",calendarMini:"Mini month",calendarWeekList:"Week list",calendarDayList:"Day list",calendarMonths:"Months",calendarWeekNumber:"Week {number}",calendarWeekShort:"W{number}",calendarNewEvent:"New event",calendarEventTitle:"Title",calendarCreate:"Add",calendarCancel:"Cancel",calendarCreated:"{title} added on {time}",calendarReceived:"{title} scheduled on {time}",calendarOccurrenceTitle:"Change a repeating event",calendarOccurrenceReadOnly:"This part of the series cannot be saved because some values are read-only.",calendarThisEvent:"This event",calendarThisAndFollowing:"This and following events",calendarAllEvents:"All events",calendarSources:"Calendars",calendarImportFailed:"Could not read {source}: {error}",calendarActions:"Actions for {title}",calendarOpen:"Open",calendarMove:"Move",calendarNewHere:"New event here",calendarOutsideRange:"Outside the dates this calendar shows",calendarClose:"Close",calendarDetailsOf:"Details of {title}"};function calLabelsFor(labels){const out={...CALENDAR_LABELS};for(const name of Object.keys(CALENDAR_LABELS))if(Object.hasOwn(labels,name))out[name]=labels[name];return Object.freeze(out)}
1
+ (function(global){"use strict";const installed=new WeakSet();const part={version:"762f4b4b62ecb4d8",install(context){if(installed.has(context.DataGrid.prototype))return;const{DataGrid,h,setText,fill,plural,gridButton,gridIcon,gridFreeze,cellText,cellValue,isCellObject,gridQuery,gridQueryRows,gridResultShape,gridPresenterTone,validateGridRows,validateGridPage,validateGridCursorPage,validStructuralCount,checkDocument,numberFormat,HostCellContext,disposeHostSlot,loadPart,PROTOCOL}=context;const CALENDAR_LABELS={calendarToday:"Today",calendarPrevious:"Previous period",calendarNext:"Next period",calendarViews:"Calendar view",calendarMonth:"Month",calendarWeek:"Week",calendarDay:"Day",calendarDays:"{count} days",calendarAgenda:"Agenda",calendarYear:"Year",calendarTimeline:"Timeline",calendarGoTo:"Go to date",calendarAllDay:"All day",calendarMore:"+{count} more",calendarMoreLabel:"Show {count} more events on {date}",calendarDayEvents:"Events on {date}",calendarNoEvents:"No events in this period",calendarEvents:"[one]{count} event[other]{count} events",calendarShowing:"{view}, {range}",calendarRepeats:"Repeats",calendarTruncated:"Showing the first {count} events. Narrow the period or the filters to see the rest.",calendarLoading:"Loading events…",calendarLoadError:"Could not load events: {error}",calendarNow:"Now",calendarZoom:"Zoom",calendarZoomHour:"Hours",calendarZoomDay:"Days",calendarZoomWeek:"Weeks",calendarZoomMonth:"Months",calendarZoomQuarter:"Quarters",calendarResources:"Resources",calendarCapacity:"Concurrent events",calendarCapacityAt:"{count} at once",calendarBusy:"{hours} h busy",calendarOverlaps:"[one]{count} overlap[other]{count} overlaps",calendarUnavailable:"Unavailable",calendarOutsideHours:"Outside working hours",calendarConflict:"Overlaps {title}",calendarNotAllowed:"{resource} cannot take this event",calendarMoved:"{title} moved to {time}",calendarResized:"{title} now ends {time}",calendarSeriesMoved:"Every occurrence of {title} moved",calendarSeriesTime:"Only the time of a whole series can be moved here.",calendarMoveHelp:"Arrow keys move, Shift with arrow keys changes the end, Alt with Up or Down changes the resource, Enter saves, Escape cancels.",calendarEdit:"Move or resize {title}",calendarSaveFailed:"{title} was not saved: {error}",calendarExport:"iCalendar (.ics)",calendarTimeRange:"{start} – {end}",calendarSelected:"Selected {range}",calendarLane:"{resource}, {events}",calendarHighlighted:"[one]{count} event highlighted[other]{count} events highlighted",calendarMini:"Mini month",calendarWeekList:"Week list",calendarDayList:"Day list",calendarMonths:"Months",calendarWeekNumber:"Week {number}",calendarWeekShort:"W{number}",calendarNewEvent:"New event",calendarEventTitle:"Title",calendarCreate:"Add",calendarCancel:"Cancel",calendarCreated:"{title} added on {time}",calendarReceived:"{title} scheduled on {time}",calendarOccurrenceTitle:"Change a repeating event",calendarOccurrenceReadOnly:"This part of the series cannot be saved because some values are read-only.",calendarThisEvent:"This event",calendarThisAndFollowing:"This and following events",calendarAllEvents:"All events",calendarSources:"Calendars",calendarImportFailed:"Could not read {source}: {error}",calendarActions:"Actions for {title}",calendarOpen:"Open",calendarMove:"Move",calendarNewHere:"New event here",calendarOutsideRange:"Outside the dates this calendar shows",calendarClose:"Close",calendarDetailsOf:"Details of {title}"};function calLabelsFor(labels){const out={...CALENDAR_LABELS};for(const name of Object.keys(CALENDAR_LABELS))if(Object.hasOwn(labels,name))out[name]=labels[name];return Object.freeze(out)}
2
2
  function calCount(grid,template,count,values){return fill(plural(template,count,grid.lang),{...values,count:numberFormat(grid.lang).format(count)})}
3
3
  const CAL_DAY=86400000,CAL_MINUTE=60000,CAL_HOUR=3600000;const calZones=new Map();function calDayNumber(y,m,d){return Math.floor(Date.UTC(y,m-1,d)/ CAL_DAY); }
4
4
  function calDayParts(day){const date=new Date(day*CAL_DAY);return{y:date.getUTCFullYear(),m:date.getUTCMonth()+ 1,d:date.getUTCDate(),dow:date.getUTCDay()}}
@@ -288,8 +288,9 @@ for(const[id,starts]of calOverrideMetadata(this,batch,this.calEdited(support.row
288
288
  return{...answer,rows:withheld.size?rows.filter(row=>!withheld.has(row.id)):rows,overrides,truncated:answer.truncated||withheld.size>0}}});Object.assign(DataGrid.prototype,{calParts(){const input=this.view.calendar||{},ranges=Array.isArray(input.ranges)?input.ranges:[],sources=Array.isArray(input.sources)?input.sources:[];const ics=sources.some(source=>source&&source.ics!==undefined),needs=[];if(input.recurrence!==undefined||ics||ranges.some(range=>range&&range.recurrence!==undefined))needs.push("calendar-recurrence");if(input.editable||input.create||input.drop)needs.push("calendar-edit");if(ics)needs.push("calendar-ics");return Promise.all(needs.map(name=>this.calLoadPart(name)))},calLoadPart(name){return loadPart(DataGrid.prototype.parts[name])},calExportFormat(){const grid=this;const write=this.calIcsFormatWriter=async(capture,context)=>{await grid.calLoadPart("calendar-ics");return grid.calIcsWrite(capture,context)};return{id:"ics",label:this.calLabels.calendarExport,extension:"ics",mime:"text/calendar",write}},calIcsExportColumns(explicit){const mapped=new Set(Object.values(this.cal)),columns=this.columns.filter(column=>mapped.has(column));if(columns.some(column=>column.exportable===false))throw new Error("CanopyX: iCalendar export needs every mapped calendar column to allow export.");const ids=columns.map(column=>column.id);if(explicit!==undefined&&(!Array.isArray(explicit)||ids.some(id=>!explicit.includes(id))))
289
289
  throw new Error("CanopyX: iCalendar export needs all mapped calendar columns; include their ids in the export columns.");return ids},calPrepareIcsExport(options){const columns=this.calIcsExportColumns(options.columns);return this.prepareExport({...options,columns:options.columns===undefined?columns:options.columns,values:"raw"})},async exportCalendar(options={}){await this.calLoadPart("calendar-ics");return this.calIcsExport(options)}});Object.assign(DataGrid.prototype,{startCalendar(){if(this.cal)return;this.cal=calSettings(this);this.calVersion=1;this.calEpoch=0;this.calRuleErrors=new Set();this.calEvents=[];this.calRanges=[];this.calLabels=calLabelsFor(this.labels);this.calZone=calZone(this.cal.zoneName);this.calFmt=calFormats(this.lang,this.calZone);this.calSeriesZone=calZone(this.cal.zoneFixed&&this.cal.zoneName!=="local"?this.cal.zoneName:"utc");this.calMinSegment=Math.max(15,this.cal.slotMinutes*0.75);this.calView=this.cal.view;this.calZoom=this.cal.zoom;this.calDate=this.calClampDay(this.cal.date??this.calZone.day(Date.now()));this.calCollapsed=new Set();this.defaultState.calendar={view:this.cal.view,date:null,zoom:this.cal.zoom};const signal=this.lifetime.signal,host=this.host;host.classList.add("cx-calendar");if(this.cal.toolbar===false)host.classList.add("cx-cal-bare");else if(this.cal.toolbar!==true){for(const item of CAL_TOOLBAR)if(!this.cal.toolbar.has(item))host.classList.add("cx-cal-no-"+item);if(!this.cal.toolbar.has("more")&&this.overflow){this.placeMenus?.(false);this.overflow.details.remove();this.overflow=null}}
290
290
  host.setAttribute("data-cx-event-style",this.cal.eventStyle);const root=this.calRoot=h("div","cx-cal");root.setAttribute("role","region");root.setAttribute("aria-label",this.view.label);this.calNoticeElement=h("div","cx-cal-notice");this.calNoticeElement.hidden=true;this.calNoticeElement.setAttribute("role","status");this.calBody=h("div","cx-cal-body");this.calLive=h("div","cx-live cx-sr-only");this.calLive.setAttribute("aria-live","polite");root.append(...[this.calBuildBar(),this.calBuildLegend(),this.calNoticeElement,this.calBody,this.calLive].filter(Boolean));this.grid.before(root);this.calRtl=getComputedStyle(host).direction==="rtl";host.classList.toggle("cx-cal-rtl",this.calRtl);this.calPhone=host.clientWidth>0&&host.clientWidth<=640;if(this.calPhone&&!this.initialState?.calendar)this.calView=this.cal.phone||(this.cal.views.includes("agenda")?"agenda":this.calView);this.calBody.addEventListener("keydown",event=>this.calKey(event),{signal});this.calBody.addEventListener("click",event=>this.calClick(event),{signal});this.calBody.addEventListener("focusin",event=>this.calFocusIn(event),{signal});this.calBody.addEventListener("pointerover",event=>this.calHoverOver(event),{signal});this.calBody.addEventListener("pointerout",event=>this.calHoverOut(event),{signal});for(const type of["pointerdown","keydown","wheel"])this.calBody.addEventListener(type,()=>this.calHideHover(),{signal,passive:true});this.calMenuStart();host.addEventListener("canopyx:query",()=>{const shape=gridResultShape(this.acceptedQuery||{}),same=this.calQueryShape===shape;this.calQueryShape=shape;this.calCache?.clear();this.calReload(same?{keep:true}:{})},{signal});host.addEventListener("canopyx:rowsChanged",()=>{this.calCache?.clear();this.calVersion++;this.calReload({keep:true})},{signal});host.addEventListener("canopyx:commit",()=>{this.calCache?.clear();this.calVersion++;this.calReload({keep:true})},{signal});host.addEventListener("canopyx:cellValueChanged",()=>{this.calVersion++;this.calReload({keep:true})},{signal});if(this.cal.editable||this.cal.create||this.cal.drop){host.setAttribute("data-cx-calendar-editable","true");this.calEditStart?.();this.calBody.addEventListener("pointerdown",event=>this.calDragStart(event),{signal});this.calBody.addEventListener("pointermove",event=>this.calDragMove(event),{signal});this.calBody.addEventListener("pointerup",event=>this.calDragEnd(event,false),{signal});this.calBody.addEventListener("pointercancel",event=>this.calDragEnd(event,true),{signal});this.calBody.addEventListener("lostpointercapture",event=>{if(this.calDrag?.id===event.pointerId&&!this.calDrag.started)this.calDrag=null},{signal})}
291
- let width=0,height=0;const observer=new ResizeObserver(()=>requestAnimationFrame(()=>{if(this.destroyed||!root.clientWidth)return;this.updateGridPhone();const phone=host.clientWidth<=640,changed=phone!==this.calPhone||Math.abs(root.clientWidth-width)>1||Math.abs(this.calBody.clientHeight-height)>1;width=root.clientWidth;height=this.calBody.clientHeight;const switched=phone!==this.calPhone;if(switched){this.calPhone=phone;host.classList.toggle("cx-cal-phone",phone);this.calSyncBar(false)}
292
- if(!changed||!this.calRange)return;if(switched||this.calView==="month")this.calPaint({keep:true,resize:true});else if(this.calView==="timeline")this.tlPaintLanes?.();else if(this.calScroller?.isConnected)this.calGrid.querySelector(".cx-cal-thead").style.paddingInlineEnd=Math.max(0,this.calScroller.offsetWidth-this.calScroller.clientWidth)+ "px"}));observer.observe(root);host.classList.toggle("cx-cal-phone",this.calPhone);const timer=setInterval(()=>{if(!this.destroyed&&this.cal.now)this.calTick?.()},60000);const print=on=>{if(this.destroyed||!this.calRange)return;this.calPrinting=on;host.classList.toggle("cx-cal-printing",on);this.tlPrint?.(on);if(this.calView!=="timeline")this.calPaint({keep:true,resize:true})};global.addEventListener("beforeprint",()=>print(true),{signal});global.addEventListener("afterprint",()=>print(false),{signal});signal.addEventListener("abort",()=>{observer.disconnect();clearInterval(timer);clearTimeout(this.calAnnounceTimer);this.calPrevLifetime?.abort();this.calCancelGesture?.();this.calDragEnd?.(null,true);this.calStopMoving?.();if(this.calDropDrag)this.calDropClear?.();this.calDisposeEventRenderers();root.remove();host.classList.remove("cx-calendar","cx-cal-phone","cx-cal-bare","cx-cal-rtl",...CAL_TOOLBAR.map(item=>"cx-cal-no-"+item));this.calHideHover();this.calCloseDetails(false);this.calCloseMenu(false);this.calCloseCreate?.(false);this.calCloseAsk?.(null);clearTimeout(this.calPressTimer);host.removeAttribute("data-cx-event-style");host.removeAttribute("data-cx-calendar-ready")},{once:true});calWrapHighlight();const plugin={name:"calendar-export",exportFormats:[this.calExportFormat()]};this.plugins=[...this.plugins,plugin];this.opts={...this.opts,plugins:[...this.opts.plugins||[],plugin]};this.calRange=this.calRangeOf(this.calView,this.calDate);this.calSyncBar(false);if(this.cal.resources||this.calView==="timeline")return this.calLoadTimeline()},calRangeOf(view,date){const cal=this.cal;if(view==="month"||view==="mini"){const month=calMonthStart(date),end=calAddMonths(month,1)- 1,first=calWeekStart(month,cal.firstDay);return{firstDay:first,lastDay:view==="mini"||cal.fixedWeeks?first+41:calWeekStart(end,cal.firstDay)+ 6,month}}
291
+ let width=0,height=0,resizeFrame=0;const resize=()=>{resizeFrame=0;if(this.destroyed||!root.clientWidth)return;if(root.querySelector(":active")){resizeFrame=requestAnimationFrame(resize);return}
292
+ this.updateGridPhone();const phone=host.clientWidth<=640,changed=phone!==this.calPhone||Math.abs(root.clientWidth-width)>1||Math.abs(this.calBody.clientHeight-height)>1;width=root.clientWidth;height=this.calBody.clientHeight;const switched=phone!==this.calPhone;if(switched){this.calPhone=phone;host.classList.toggle("cx-cal-phone",phone);this.calSyncBar(false)}
293
+ if(!changed||!this.calRange)return;if(switched||this.calView==="month")this.calPaint({keep:true,resize:true});else if(this.calView==="timeline")this.tlPaintLanes?.();else if(this.calScroller?.isConnected)this.calGrid.querySelector(".cx-cal-thead").style.paddingInlineEnd=Math.max(0,this.calScroller.offsetWidth-this.calScroller.clientWidth)+ "px"};const observer=new ResizeObserver(()=>{if(!resizeFrame)resizeFrame=requestAnimationFrame(resize)});observer.observe(root);host.classList.toggle("cx-cal-phone",this.calPhone);const timer=setInterval(()=>{if(!this.destroyed&&this.cal.now)this.calTick?.()},60000);const print=on=>{if(this.destroyed||!this.calRange)return;this.calPrinting=on;host.classList.toggle("cx-cal-printing",on);this.tlPrint?.(on);if(this.calView!=="timeline")this.calPaint({keep:true,resize:true})};global.addEventListener("beforeprint",()=>print(true),{signal});global.addEventListener("afterprint",()=>print(false),{signal});signal.addEventListener("abort",()=>{observer.disconnect();cancelAnimationFrame(resizeFrame);clearInterval(timer);clearTimeout(this.calAnnounceTimer);this.calPrevLifetime?.abort();this.calCancelGesture?.();this.calDragEnd?.(null,true);this.calStopMoving?.();if(this.calDropDrag)this.calDropClear?.();this.calDisposeEventRenderers();root.remove();host.classList.remove("cx-calendar","cx-cal-phone","cx-cal-bare","cx-cal-rtl",...CAL_TOOLBAR.map(item=>"cx-cal-no-"+item));this.calHideHover();this.calCloseDetails(false);this.calCloseMenu(false);this.calCloseCreate?.(false);this.calCloseAsk?.(null);clearTimeout(this.calPressTimer);host.removeAttribute("data-cx-event-style");host.removeAttribute("data-cx-calendar-ready")},{once:true});calWrapHighlight();const plugin={name:"calendar-export",exportFormats:[this.calExportFormat()]};this.plugins=[...this.plugins,plugin];this.opts={...this.opts,plugins:[...this.opts.plugins||[],plugin]};this.calRange=this.calRangeOf(this.calView,this.calDate);this.calSyncBar(false);if(this.cal.resources||this.calView==="timeline")return this.calLoadTimeline()},calRangeOf(view,date){const cal=this.cal;if(view==="month"||view==="mini"){const month=calMonthStart(date),end=calAddMonths(month,1)- 1,first=calWeekStart(month,cal.firstDay);return{firstDay:first,lastDay:view==="mini"||cal.fixedWeeks?first+41:calWeekStart(end,cal.firstDay)+ 6,month}}
293
294
  if(view==="months"){const month=calMonthStart(date);return{firstDay:month,lastDay:calAddMonths(month,cal.months)- 1,month}}
294
295
  if(view==="week"||view==="weekList"){const first=calWeekStart(date,cal.firstDay);return{firstDay:first,lastDay:first+6}}
295
296
  if(view==="day"||view==="dayList")return{firstDay:date,lastDay:date};if(view==="days"){let last=date;for(let shown=0;shown<this.calDaysCount();last++)if(!cal.hidden.has(calDow(last)))shown++;return{firstDay:date,lastDay:last-1}}
@@ -0,0 +1,240 @@
1
+ /* The change views: a text diff,a change list and a propagation view (docs/changes.md). Tones mark what changed,and each change also
2
+ has a sign,a badge or a symbol,so none relies on colour alone. */
3
+ .cx-diff,.cx-changes,.cx-prop{--cx-size-112px:112px;--cx-size-150px:150px;--cx-chg-tint:9%;--cx-chg-strong:28%;min-width:0;color:var(--cx-text);font:var(--cx-font-size)/1.4 var(--cx-font);}
4
+ @media screen{.cx-host[data-cx-theme="dark"] :is(.cx-diff,.cx-changes,.cx-prop){--cx-chg-tint:15%;--cx-chg-strong:36%;}}
5
+ @media screen and (prefers-color-scheme:dark){.cx-host[data-cx-theme="auto"] :is(.cx-diff,.cx-changes,.cx-prop){--cx-chg-tint:15%;--cx-chg-strong:36%;}}
6
+ .cx-change-host:is([data-cx-height],[style*="height"]) > :is(.cx-diff,.cx-changes,.cx-prop){height:100%;overflow:auto;}
7
+ :is(.cx-diff,.cx-changes,.cx-prop) [hidden]{display:none !important;}
8
+ .cx-chg-ico{width:var(--cx-size-16px);height:var(--cx-size-16px);flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;}
9
+ .cx-diff-btn,.cx-chg-action,.cx-chg-more{display:inline-flex;align-items:center;justify-content:center;gap:var(--cx-size-6px);box-sizing:border-box;min-width:var(--cx-size-30px);min-height:var(--cx-size-30px);
10
+ padding:0 var(--cx-size-8px);font:inherit;font-size:var(--cx-size-13px);color:var(--cx-text);background:var(--cx-surface);border:var(--cx-size-1px) solid var(--cx-control-border);border-radius:var(--cx-radius-sm);cursor:pointer;}
11
+ :is(.cx-diff-btn,.cx-chg-action,.cx-chg-more,.cx-chg-kind,.cx-chg-toggle,.cx-chg-hashbtn):hover{background:var(--cx-hover-bg);}
12
+ :is(.cx-diff-btn,.cx-chg-action,.cx-chg-more,.cx-chg-kind,.cx-chg-toggle,.cx-chg-hashbtn,.cx-diff-segbtn,.cx-diff-expand):focus-visible{outline:var(--cx-size-2px) solid var(--cx-accent);outline-offset:var(--cx-size-1px);}
13
+ .cx-diff-btn.cx-diff-done{border-color:var(--cx-tone-success);color:var(--cx-tone-success);}
14
+ .cx-diff{position:relative;display:flex;flex-direction:column;gap:var(--cx-size-8px);max-height:100%;}
15
+ .cx-diff-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--cx-size-8px) var(--cx-size-12px);}
16
+ .cx-diff-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--cx-size-4px) var(--cx-size-10px);min-width:0;flex:1 1 var(--cx-size-240px);}
17
+ .cx-diff-path{font-family:var(--cx-font-mono);font-size:var(--cx-size-13px);font-weight:600;overflow-wrap:anywhere;}
18
+ .cx-diff-stats{display:inline-flex;gap:var(--cx-size-6px);font-family:var(--cx-font-mono);font-size:var(--cx-size-12px);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;}
19
+ .cx-diff-plus{color:var(--cx-tone-success);}
20
+ .cx-diff-minus{color:var(--cx-tone-danger);}
21
+ .cx-diff-tools{display:flex;flex-wrap:wrap;align-items:center;gap:var(--cx-size-6px);}
22
+ .cx-diff-seg{display:inline-flex;border:var(--cx-size-1px) solid var(--cx-control-border);border-radius:var(--cx-radius-sm);overflow:hidden;}
23
+ .cx-diff-segbtn{min-height:var(--cx-size-30px);padding:0 var(--cx-size-10px);font:inherit;font-size:var(--cx-size-13px);color:var(--cx-text);background:var(--cx-surface);border:0;cursor:pointer;}
24
+ .cx-diff-segbtn + .cx-diff-segbtn{border-inline-start:var(--cx-size-1px) solid var(--cx-control-border);}
25
+ .cx-diff-segbtn[aria-checked="true"]{background:var(--cx-accent-soft);color:var(--cx-accent-text);font-weight:600;}
26
+ .cx-diff-notes{display:grid;gap:var(--cx-size-4px);}
27
+ .cx-diff-note{padding:var(--cx-size-6px) var(--cx-size-10px);font-size:var(--cx-size-13px);color:var(--cx-text);background:var(--cx-hover-bg);border-inline-start:var(--cx-size-3px) solid var(--cx-line-strong);border-radius:var(--cx-radius-sm);}
28
+ .cx-diff-note:is(.cx-tone-info,.cx-tone-warning,.cx-tone-danger,.cx-tone-success){border-inline-start-color:var(--cx-chg-note);}
29
+ .cx-diff-note.cx-tone-info{--cx-chg-note:var(--cx-tone-info);}
30
+ .cx-diff-note.cx-tone-warning{--cx-chg-note:var(--cx-tone-warning);}
31
+ .cx-diff-note.cx-tone-danger{--cx-chg-note:var(--cx-tone-danger);}
32
+ .cx-diff-note.cx-tone-success{--cx-chg-note:var(--cx-tone-success);}
33
+ .cx-diff-state{padding:var(--cx-size-16px);color:var(--cx-muted);text-align:center;border:var(--cx-size-1px) dashed var(--cx-line-strong);border-radius:var(--cx-radius);}
34
+ .cx-diff-scroll{position:relative;flex:0 1 auto;min-height:0;max-height:var(--cx-diff-max-height,70vh);overflow:auto;background:var(--cx-surface);border:var(--cx-size-1px) solid var(--cx-line);
35
+ border-radius:var(--cx-radius);font-family:var(--cx-font-mono);font-size:var(--cx-size-12px);overscroll-behavior:contain;}
36
+ .cx-change-host:is([data-cx-height],[style*="height"]) .cx-diff-scroll{flex:1 1 auto;max-height:none;}
37
+ .cx-diff-frame{position:relative;display:flex;flex-direction:column;flex:0 1 auto;min-height:0;}
38
+ .cx-change-host:is([data-cx-height],[style*="height"]) .cx-diff-frame{flex:1 1 auto;}
39
+ .cx-diff-edge{position:absolute;top:calc(var(--cx-size-1px) + var(--cx-diff-head,0px));bottom:calc(var(--cx-size-1px) + var(--cx-diff-bar-x,0px));width:var(--cx-size-32px);z-index:3;pointer-events:none;
40
+ --cx-diff-shade:color-mix(in srgb,var(--cx-text) 26%,transparent);--cx-diff-line:color-mix(in srgb,var(--cx-accent) 70%,transparent);}
41
+ .cx-diff-edge-start{inset-inline-start:var(--cx-size-1px);background:linear-gradient(to right,var(--cx-diff-shade),transparent);border-inline-start:var(--cx-size-2px) solid var(--cx-diff-line);}
42
+ .cx-diff-edge-end{inset-inline-end:calc(var(--cx-size-1px) + var(--cx-diff-bar-y,0px));background:linear-gradient(to left,var(--cx-diff-shade),transparent);border-inline-end:var(--cx-size-2px) solid var(--cx-diff-line);}
43
+ .cx-diff-edge-start:dir(rtl){background:linear-gradient(to left,var(--cx-diff-shade),transparent);}
44
+ .cx-diff-edge-end:dir(rtl){background:linear-gradient(to right,var(--cx-diff-shade),transparent);}
45
+ :is(.cx-diff,.cx-changes) [data-cx-tip]{position:relative;}
46
+ :is(.cx-diff,.cx-changes) [data-cx-tip]:not([data-cx-tip-off]):focus-visible::after{content:attr(data-cx-tip);position:absolute;bottom:calc(100% + var(--cx-size-6px));inset-inline-end:0;z-index:6;padding:var(--cx-size-2px) var(--cx-size-8px);
47
+ font-size:var(--cx-size-12px);font-weight:400;line-height:1.4;white-space:nowrap;color:var(--cx-surface);background:var(--cx-text);border-radius:var(--cx-radius-sm);pointer-events:none;}
48
+ @media (hover:hover){
49
+ :is(.cx-diff,.cx-changes) [data-cx-tip]:not([data-cx-tip-off]):hover::after{content:attr(data-cx-tip);position:absolute;bottom:calc(100% + var(--cx-size-6px));inset-inline-end:0;z-index:6;padding:var(--cx-size-2px) var(--cx-size-8px);
50
+ font-size:var(--cx-size-12px);font-weight:400;line-height:1.4;white-space:nowrap;color:var(--cx-surface);background:var(--cx-text);border-radius:var(--cx-radius-sm);pointer-events:none;}
51
+ }
52
+ .cx-diff-tools [data-cx-tip]::after{bottom:auto !important;top:calc(100% + var(--cx-size-6px));}
53
+ .cx-diff-scroll:focus-visible{outline:var(--cx-size-2px) solid var(--cx-accent);outline-offset:calc(var(--cx-size-2px) * -1);}
54
+ .cx-diff-columns{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:1fr 1fr;background:var(--cx-head-bg);border-bottom:var(--cx-size-1px) solid var(--cx-line);
55
+ font-family:var(--cx-font);font-size:var(--cx-size-12px);font-weight:600;color:var(--cx-muted);}
56
+ .cx-diff-colhead{padding:var(--cx-size-4px) var(--cx-size-10px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
57
+ .cx-diff-colhead + .cx-diff-colhead{border-inline-start:var(--cx-size-1px) solid var(--cx-line);}
58
+ .cx-diff-canvas{position:relative;}
59
+ .cx-diff-row{position:absolute;top:0;inset-inline-start:0;width:100%;height:20px;display:grid;grid-template-columns:var(--cx-diff-num) var(--cx-diff-num) 2ch minmax(0,1fr);line-height:20px;contain:layout style;}
60
+ .cx-diff-split .cx-diff-pairrow{grid-template-columns:var(--cx-diff-num) minmax(0,1fr) var(--cx-diff-num) minmax(0,1fr);}
61
+ .cx-diff-num{padding:0 var(--cx-size-8px);text-align:end;color:var(--cx-muted);font-variant-numeric:tabular-nums;user-select:none;}
62
+ .cx-diff-pairrow .cx-diff-num:nth-child(3){border-inline-start:var(--cx-size-1px) solid var(--cx-line);}
63
+ .cx-diff-sign{text-align:center;color:var(--cx-muted);user-select:none;}
64
+ .cx-diff-code{padding-inline:var(--cx-size-6px) var(--cx-size-16px);white-space:pre;overflow:hidden;tab-size:4;}
65
+ .cx-diff-del{--cx-chg-diff:var(--cx-tone-danger);}
66
+ .cx-diff-add{--cx-chg-diff:var(--cx-tone-success);}
67
+ .cx-diff-row:is(.cx-diff-del,.cx-diff-add),.cx-diff-pairrow .cx-diff-code:is(.cx-diff-del,.cx-diff-add){background:color-mix(in srgb,var(--cx-chg-diff) var(--cx-chg-tint),var(--cx-surface));}
68
+ .cx-diff-row:is(.cx-diff-del,.cx-diff-add) :is(.cx-diff-num,.cx-diff-sign),.cx-diff-pairrow .cx-diff-num:is(.cx-diff-del,.cx-diff-add){
69
+ color:color-mix(in srgb,var(--cx-chg-diff) 70%,var(--cx-text));background:color-mix(in srgb,var(--cx-chg-diff) calc(var(--cx-chg-tint) * 1.8),var(--cx-surface));}
70
+ .cx-diff-mark{color:inherit;text-decoration:none;border-radius:var(--cx-size-2px);background:color-mix(in srgb,var(--cx-chg-diff) var(--cx-chg-strong),var(--cx-surface));}
71
+ .cx-diff-blank{background:repeating-linear-gradient(135deg,transparent 0 var(--cx-size-5px),color-mix(in srgb,var(--cx-line) 55%,transparent) var(--cx-size-5px) var(--cx-size-6px));}
72
+ .cx-diff-gaprow{background:var(--cx-head-bg);color:var(--cx-muted);}
73
+ .cx-diff-gap{grid-column:1 / -1;display:flex;align-items:center;gap:var(--cx-size-6px);padding:0 var(--cx-size-10px);font-family:var(--cx-font);font-size:var(--cx-size-12px);}
74
+ .cx-diff-expand{min-height:20px;padding:0 var(--cx-size-4px);font:inherit;color:var(--cx-accent-text);background:none;border:0;border-radius:var(--cx-radius-sm);cursor:pointer;}
75
+ .cx-diff-expand::before{content:"\22EF ";color:var(--cx-muted);}
76
+ .cx-diff-expand:hover{text-decoration:underline;}
77
+ .cx-diff-current{box-shadow:inset var(--cx-size-3px) 0 0 var(--cx-accent);}
78
+ .cx-diff-current:dir(rtl){box-shadow:inset calc(var(--cx-size-3px) * -1) 0 0 var(--cx-accent);}
79
+ .cx-diff-probe{position:absolute;visibility:hidden;pointer-events:none;font-family:var(--cx-font-mono);font-size:var(--cx-size-12px);white-space:pre;}
80
+ .cx-diff-print{display:none;}
81
+ .cx-changes{container-type:inline-size;display:flex;flex-direction:column;gap:var(--cx-size-8px);}
82
+ .cx-chg-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--cx-size-8px) var(--cx-size-12px);}
83
+ .cx-chg-kinds{display:flex;flex-wrap:wrap;gap:var(--cx-size-6px);}
84
+ .cx-chg-kind{display:inline-flex;align-items:center;gap:var(--cx-size-6px);min-height:var(--cx-size-30px);padding:0 var(--cx-size-8px) 0 var(--cx-size-4px);font:inherit;color:var(--cx-text);
85
+ background:var(--cx-surface);border:var(--cx-size-1px) solid var(--cx-line-strong);border-radius:var(--cx-size-999px);cursor:pointer;}
86
+ .cx-chg-kind[aria-pressed="true"]{border-color:var(--cx-accent);background:var(--cx-accent-soft);}
87
+ .cx-chg-count{font-size:var(--cx-size-13px);font-weight:600;font-variant-numeric:tabular-nums;}
88
+ .cx-chg-switch{display:inline-flex;align-items:center;gap:var(--cx-size-6px);min-height:var(--cx-size-30px);font-size:var(--cx-size-13px);cursor:pointer;}
89
+ .cx-chg-switch input{width:var(--cx-size-16px);height:var(--cx-size-16px);margin:0;accent-color:var(--cx-accent);}
90
+ .cx-chg-summary{margin-inline-start:auto;font-size:var(--cx-size-13px);color:var(--cx-muted);font-variant-numeric:tabular-nums;}
91
+ .cx-chg-printnote{display:none;}
92
+ .cx-chg-tools{display:flex;flex-wrap:wrap;gap:var(--cx-size-6px);}
93
+ .cx-chg-summary:empty ~ .cx-chg-tools{margin-inline-start:auto;}
94
+ a.cx-chg-action{text-decoration:none;}
95
+ .cx-chg-panel{display:grid;gap:var(--cx-size-6px);max-width:var(--cx-size-640px);margin:0 var(--cx-size-12px) var(--cx-size-10px) calc(var(--cx-size-30px) + var(--cx-size-16px));padding:var(--cx-size-10px) var(--cx-size-12px);
96
+ background:var(--cx-head-bg);border:var(--cx-size-1px) solid var(--cx-line);border-radius:var(--cx-radius);}
97
+ .cx-chg-barpanel > .cx-chg-panel{margin:var(--cx-size-8px) 0 0;}
98
+ .cx-chg-asklabel{font-size:var(--cx-size-13px);font-weight:600;}
99
+ .cx-chg-reasonbox{box-sizing:border-box;width:100%;min-height:var(--cx-size-56px);padding:var(--cx-size-6px) var(--cx-size-8px);font:inherit;font-size:var(--cx-size-13px);color:var(--cx-text);background:var(--cx-surface);
100
+ border:var(--cx-size-1px) solid var(--cx-control-border);border-radius:var(--cx-radius-sm);resize:vertical;}
101
+ .cx-chg-reasonbox:focus-visible{outline:var(--cx-size-2px) solid var(--cx-accent);outline-offset:var(--cx-size-1px);}
102
+ .cx-chg-reasonbox[aria-invalid="true"]{border-color:var(--cx-tone-danger);}
103
+ .cx-chg-hint{font-size:var(--cx-size-12px);color:var(--cx-muted);}
104
+ .cx-chg-askerror{font-size:var(--cx-size-12px);font-weight:600;color:var(--cx-tone-danger);}
105
+ .cx-chg-askerror:empty{display:none;}
106
+ .cx-chg-askbtns{display:flex;flex-wrap:wrap;gap:var(--cx-size-6px);}
107
+ .cx-chg-action.cx-chg-primary{color:var(--cx-on-accent);background:var(--cx-accent);border-color:var(--cx-accent);}
108
+ .cx-chg-note{margin:0;font-size:var(--cx-size-13px);}
109
+ .cx-chg-badge{display:inline-flex;align-items:center;box-sizing:border-box;max-width:100%;min-height:var(--cx-size-22px);padding:0 var(--cx-size-8px);overflow:hidden;font-size:var(--cx-size-12px);font-weight:600;
110
+ white-space:nowrap;text-overflow:ellipsis;color:var(--cx-muted);border:var(--cx-size-1px) solid currentColor;border-radius:var(--cx-size-999px);}
111
+ .cx-chg-badge.cx-tone-success{color:var(--cx-tone-success);}
112
+ .cx-chg-badge.cx-tone-danger{color:var(--cx-tone-danger);}
113
+ .cx-chg-badge.cx-tone-info{color:var(--cx-tone-info);}
114
+ .cx-chg-badge.cx-tone-warning{color:var(--cx-tone-warning);}
115
+ .cx-chg-badge.cx-toned{color:var(--cx-t);}
116
+ .cx-chg-list,.cx-chg-sublist,.cx-chg-reasons{list-style:none;margin:0;padding:0;}
117
+ .cx-chg-list{border:var(--cx-size-1px) solid var(--cx-line);border-radius:var(--cx-radius);background:var(--cx-surface);}
118
+ .cx-chg-folder{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--cx-size-6px);padding:var(--cx-size-6px) var(--cx-size-12px);background:var(--cx-head-bg);border-bottom:var(--cx-size-1px) solid var(--cx-line);}
119
+ .cx-chg-group + .cx-chg-group .cx-chg-folder{border-top:var(--cx-size-1px) solid var(--cx-line);}
120
+ .cx-chg-foldername{font-family:var(--cx-font-mono);font-size:var(--cx-size-12px);font-weight:600;overflow-wrap:anywhere;}
121
+ .cx-chg-foldercount{font-size:var(--cx-size-12px);color:var(--cx-muted);}
122
+ .cx-chg-item + .cx-chg-item{border-top:var(--cx-size-1px) solid var(--cx-line);}
123
+ .cx-chg-row{display:grid;grid-template-columns:var(--cx-size-30px) var(--cx-size-112px) minmax(0,1fr) auto auto;grid-template-areas:"toggle badge main meta actions";align-items:center;
124
+ column-gap:var(--cx-size-10px);row-gap:var(--cx-size-4px);padding:var(--cx-size-6px) var(--cx-size-12px) var(--cx-size-6px) var(--cx-size-6px);}
125
+ .cx-chg-toggle{grid-area:toggle;display:inline-flex;align-items:center;justify-content:center;width:var(--cx-size-30px);height:var(--cx-size-30px);padding:0;color:var(--cx-muted);background:none;border:0;border-radius:var(--cx-radius-sm);cursor:pointer;}
126
+ .cx-chg-toggle .cx-chg-ico{transition:transform .12s;}
127
+ .cx-chg-toggle[aria-expanded="true"] .cx-chg-ico{transform:rotate(90deg);}
128
+ .cx-chg-toggle:dir(rtl) .cx-chg-ico{transform:scaleX(-1);}
129
+ .cx-chg-toggle:dir(rtl)[aria-expanded="true"] .cx-chg-ico{transform:rotate(90deg);}
130
+ .cx-chg-row > .cx-chg-badge{grid-area:badge;justify-self:start;}
131
+ .cx-chg-main{grid-area:main;min-width:0;display:grid;gap:var(--cx-size-2px);}
132
+ .cx-chg-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--cx-size-2px) var(--cx-size-8px);min-width:0;}
133
+ .cx-chg-name{font-family:var(--cx-font-mono);font-size:var(--cx-size-13px);font-weight:600;overflow-wrap:anywhere;}
134
+ .cx-chg-from,.cx-chg-sub{font-size:var(--cx-size-12px);color:var(--cx-muted);overflow-wrap:anywhere;}
135
+ .cx-chg-flags{display:flex;flex-wrap:wrap;gap:var(--cx-size-4px);}
136
+ .cx-chg-flag{display:inline-flex;align-items:center;gap:var(--cx-size-4px);padding:var(--cx-size-1px) var(--cx-size-8px) var(--cx-size-1px) var(--cx-size-6px);font-size:var(--cx-size-12px);font-weight:600;
137
+ color:var(--cx-chg-flag,var(--cx-text));background:color-mix(in srgb,var(--cx-chg-flag,var(--cx-text)) 12%,var(--cx-surface));border-radius:var(--cx-radius-sm);}
138
+ .cx-chg-flag .cx-chg-ico{width:var(--cx-size-12px);height:var(--cx-size-12px);}
139
+ .cx-chg-flag.cx-tone-warning,.cx-chg-reason.cx-tone-warning{--cx-chg-flag:var(--cx-tone-warning);}
140
+ .cx-chg-flag.cx-tone-danger,.cx-chg-reason.cx-tone-danger{--cx-chg-flag:var(--cx-tone-danger);}
141
+ .cx-chg-flag.cx-tone-info,.cx-chg-reason.cx-tone-info{--cx-chg-flag:var(--cx-tone-info);}
142
+ .cx-chg-flag.cx-toned,.cx-chg-reason.cx-toned{--cx-chg-flag:var(--cx-t);}
143
+ .cx-chg-meta{grid-area:meta;display:grid;grid-template-columns:var(--cx-size-150px) auto;align-items:center;column-gap:var(--cx-size-12px);font-size:var(--cx-size-12px);}
144
+ .cx-chg-size{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--cx-text-2);}
145
+ .cx-chg-hash{display:inline-flex;align-items:center;gap:var(--cx-size-2px);min-width:calc(var(--cx-size-150px) + var(--cx-size-56px));white-space:nowrap;}
146
+ .cx-chg-hashbtn{padding:var(--cx-size-1px) var(--cx-size-4px);font-family:var(--cx-font-mono);font-size:var(--cx-size-12px);color:var(--cx-text-2);background:none;border:0;border-radius:var(--cx-radius-sm);cursor:copy;}
147
+ .cx-chg-arrow{color:var(--cx-muted);}
148
+ .cx-chg-actions{grid-area:actions;display:flex;gap:var(--cx-size-4px);justify-content:flex-end;}
149
+ .cx-chg-action:not(.cx-chg-textaction){padding:0;width:var(--cx-size-30px);}
150
+ .cx-chg-detail{display:grid;gap:var(--cx-size-10px);padding:var(--cx-size-4px) var(--cx-size-12px) var(--cx-size-12px) calc(var(--cx-size-30px) + var(--cx-size-16px));}
151
+ .cx-chg-dhead{font-size:var(--cx-size-12px);font-weight:600;color:var(--cx-muted);text-transform:uppercase;letter-spacing:var(--cx-size-d04em);}
152
+ .cx-chg-reasons{display:grid;gap:var(--cx-size-4px);font-size:var(--cx-size-13px);}
153
+ .cx-chg-reason{color:var(--cx-chg-flag,var(--cx-text));}
154
+ .cx-chg-facts{border-collapse:collapse;font-size:var(--cx-size-13px);width:100%;max-width:var(--cx-size-640px);}
155
+ .cx-chg-facts :is(th,td){padding:var(--cx-size-4px) var(--cx-size-10px);text-align:start;vertical-align:top;border-bottom:var(--cx-size-1px) solid var(--cx-line);}
156
+ .cx-chg-facts thead th{font-size:var(--cx-size-12px);color:var(--cx-muted);font-weight:600;background:var(--cx-head-bg);}
157
+ .cx-chg-facts tbody th{font-weight:400;color:var(--cx-muted);white-space:nowrap;}
158
+ .cx-chg-mono{font-family:var(--cx-font-mono);font-size:var(--cx-size-12px);overflow-wrap:anywhere;}
159
+ .cx-chg-changed{font-weight:600;}
160
+ .cx-chg-factnote{margin-top:var(--cx-size-2px);font-family:var(--cx-font);font-size:var(--cx-size-12px);font-weight:400;color:var(--cx-muted);}
161
+ .cx-chg-facts.cx-chg-onevalue :is(th,td):first-child{width:28%;}
162
+ .cx-chg-facts td.cx-tone-warning{color:var(--cx-tone-warning);}
163
+ .cx-chg-facts td.cx-tone-danger{color:var(--cx-tone-danger);}
164
+ .cx-chg-facts td.cx-tone-success{color:var(--cx-tone-success);}
165
+ .cx-chg-diff{--cx-diff-max-height:var(--cx-size-480px);min-width:0;}
166
+ .cx-chg-empty{padding:var(--cx-size-16px);text-align:center;color:var(--cx-muted);border:var(--cx-size-1px) dashed var(--cx-line);border-radius:var(--cx-radius);}
167
+ .cx-chg-more{align-self:flex-start;}
168
+ @container (max-width:700px){
169
+ .cx-chg-row{grid-template-columns:var(--cx-size-30px) minmax(0,1fr) auto;grid-template-areas:"toggle badge actions" ". main main" ". meta meta";}
170
+ .cx-chg-meta{display:flex;flex-wrap:wrap;gap:var(--cx-size-2px) var(--cx-size-12px);}
171
+ .cx-chg-size{text-align:start;}
172
+ .cx-chg-hash{min-width:0;}
173
+ .cx-chg-detail{padding-inline-start:var(--cx-size-12px);}
174
+ }
175
+ .cx-prop{container-type:inline-size;display:flex;flex-direction:column;gap:var(--cx-size-10px);}
176
+ .cx-prop-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--cx-size-6px) var(--cx-size-10px);}
177
+ .cx-prop-summary{font-size:var(--cx-size-14px);}
178
+ :is(.cx-prop-state,.cx-prop-key,.cx-prop-badge){display:inline-flex;align-items:center;gap:var(--cx-size-4px);font-weight:600;color:var(--cx-chg-state,var(--cx-muted));}
179
+ .cx-prop-state{padding:var(--cx-size-2px) var(--cx-size-8px) var(--cx-size-2px) var(--cx-size-6px);border-radius:var(--cx-radius-sm);background:color-mix(in srgb,var(--cx-chg-state,var(--cx-text)) 10%,var(--cx-surface));}
180
+ .cx-prop-badge.cx-prop-attn{padding:0 var(--cx-size-6px) 0 var(--cx-size-4px);border-radius:var(--cx-radius-sm);background:color-mix(in srgb,var(--cx-chg-state) 12%,var(--cx-surface));}
181
+ :is(.cx-prop-state,.cx-prop-key,.cx-prop-badge,.cx-prop-fill).cx-tone-success{--cx-chg-state:var(--cx-tone-success);}
182
+ :is(.cx-prop-state,.cx-prop-key,.cx-prop-badge,.cx-prop-fill).cx-tone-warning{--cx-chg-state:var(--cx-tone-warning);}
183
+ :is(.cx-prop-state,.cx-prop-key,.cx-prop-badge,.cx-prop-fill).cx-tone-danger{--cx-chg-state:var(--cx-tone-danger);}
184
+ :is(.cx-prop-state,.cx-prop-key,.cx-prop-badge,.cx-prop-fill).cx-tone-muted{--cx-chg-state:var(--cx-muted);}
185
+ .cx-prop-counts{display:flex;flex-wrap:wrap;gap:var(--cx-size-4px) var(--cx-size-16px);margin:0;padding:0;list-style:none;font-size:var(--cx-size-13px);}
186
+ .cx-prop-count{display:inline-flex;align-items:center;gap:var(--cx-size-6px);}
187
+ .cx-prop-key{font-weight:400;color:var(--cx-text);}
188
+ .cx-prop-key .cx-chg-ico{color:var(--cx-chg-state);}
189
+ .cx-prop-number{font-weight:600;font-variant-numeric:tabular-nums;}
190
+ .cx-prop-table{width:100%;border-collapse:collapse;font-size:var(--cx-size-13px);background:var(--cx-surface);border:var(--cx-size-1px) solid var(--cx-line);border-radius:var(--cx-radius);}
191
+ .cx-prop-table :is(th,td){padding:var(--cx-size-6px) var(--cx-size-10px);text-align:start;vertical-align:top;border-bottom:var(--cx-size-1px) solid var(--cx-line);}
192
+ .cx-prop-table thead th{font-size:var(--cx-size-12px);font-weight:600;color:var(--cx-muted);background:var(--cx-head-bg);white-space:nowrap;}
193
+ .cx-prop-table tbody th{font-weight:600;}
194
+ .cx-prop-group th{font-size:var(--cx-size-12px);font-weight:600;background:var(--cx-group-bg);}
195
+ .cx-prop-groupcount{font-weight:400;color:var(--cx-muted);}
196
+ .cx-prop-name{margin-inline-end:var(--cx-size-6px);}
197
+ .cx-prop-source{display:inline-block;padding:0 var(--cx-size-6px);font-size:var(--cx-size-11px);font-weight:600;color:var(--cx-muted);border:var(--cx-size-1px) solid var(--cx-line-strong);border-radius:var(--cx-size-999px);}
198
+ .cx-prop-sub,.cx-prop-delay,.cx-prop-none{display:block;font-size:var(--cx-size-12px);font-weight:400;color:var(--cx-muted);}
199
+ .cx-prop-first,.cx-prop-last{white-space:nowrap;font-variant-numeric:tabular-nums;}
200
+ .cx-prop-lanecell{width:var(--cx-size-160px);vertical-align:middle !important;}
201
+ .cx-prop-lane{position:relative;height:var(--cx-size-8px);min-width:var(--cx-size-92px);background:var(--cx-hover-bg);border-radius:var(--cx-size-999px);overflow:hidden;}
202
+ .cx-prop-fill{height:100%;background:color-mix(in srgb,var(--cx-chg-state,var(--cx-muted)) 70%,var(--cx-surface));border-radius:inherit;}
203
+ .cx-prop-fill.cx-prop-open{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--cx-chg-state) 55%,var(--cx-surface)) 0 var(--cx-size-4px),transparent var(--cx-size-4px) var(--cx-size-8px));}
204
+ @container (max-width:560px){
205
+ .cx-prop-table thead{display:none;}
206
+ .cx-prop-table,.cx-prop-table tbody{display:block;}
207
+ .cx-prop-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name state" "first last" "lane lane";column-gap:var(--cx-size-10px);padding:var(--cx-size-8px) var(--cx-size-10px);border-bottom:var(--cx-size-1px) solid var(--cx-line);}
208
+ .cx-prop-table tr.cx-prop-group{display:block;padding:var(--cx-size-6px) var(--cx-size-10px);background:var(--cx-group-bg);}
209
+ .cx-prop-table :is(th,td){display:block;padding:0;border:0;}
210
+ .cx-prop-row > th{grid-area:name;}
211
+ .cx-prop-statecell{grid-area:state;text-align:end;}
212
+ .cx-prop-first{grid-area:first;margin-top:var(--cx-size-4px);}
213
+ .cx-prop-last{grid-area:last;margin-top:var(--cx-size-4px);text-align:end;color:var(--cx-muted);}
214
+ .cx-prop-lanecell{grid-area:lane;width:auto;margin-top:var(--cx-size-6px);}
215
+ }
216
+ @media print{
217
+ [data-cx-tip]::after{display:none !important;}
218
+ .cx-diff .cx-diff-tools,.cx-diff .cx-diff-scroll,.cx-diff-edge,.cx-chg-kinds,.cx-chg-switch,.cx-chg-tools,.cx-chg-barpanel,.cx-chg-panel,.cx-chg-actions,.cx-chg-toggle,.cx-chg-more{display:none !important;}
219
+ .cx-chg-printnote{display:inline;}
220
+ .cx-chg-summary{margin-inline-start:0;}
221
+ .cx-diff .cx-diff-print{display:block;}
222
+ .cx-diff,.cx-changes,.cx-prop{-webkit-print-color-adjust:exact;print-color-adjust:exact;}
223
+ .cx-diff-printtable{width:100%;border-collapse:collapse;font-family:var(--cx-font-mono);font-size:var(--cx-size-11px);}
224
+ .cx-diff-printtable td{padding:0 var(--cx-size-4px);vertical-align:top;}
225
+ .cx-diff-printtable :is(.cx-diff-num,.cx-diff-sign){width:1%;white-space:nowrap;text-align:end;color:var(--cx-muted);}
226
+ .cx-diff-printtable .cx-diff-code{white-space:pre-wrap;word-break:break-all;}
227
+ .cx-diff-printtable tr:is(.cx-diff-del,.cx-diff-add){background:color-mix(in srgb,var(--cx-chg-diff) 12%,#fff);}
228
+ .cx-chg-row{grid-template-columns:var(--cx-size-112px) minmax(0,1fr) auto;grid-template-areas:"badge main meta";}
229
+ .cx-chg-facts{table-layout:fixed;max-width:none;}
230
+ .cx-chg-facts thead th:first-child{width:28%;}
231
+ .cx-chg-facts :is(th,td){overflow-wrap:anywhere;}
232
+ .cx-chg-facts tbody th{white-space:normal;}
233
+ }
234
+ @media (forced-colors:active){
235
+ [data-cx-tip]::after{color:Canvas;background:CanvasText;}
236
+ .cx-diff-mark{outline:var(--cx-size-1px) solid CanvasText;}
237
+ .cx-diff-current{outline:var(--cx-size-2px) solid Highlight;}
238
+ .cx-prop-fill{background:CanvasText;}
239
+ }
240
+ @media (prefers-reduced-motion:reduce){.cx-chg-toggle .cx-chg-ico{transition:none;}}