/* Compact settings: only the body scrolls; columns and footer never shrink. */
.ws-content{max-width:none;width:100%;min-width:0}.ws-layout,.ws-main{min-width:0}.ws-record-panel{width:100%;min-width:0}#record-grid{width:100%;max-width:100%;min-width:0;overflow:auto}
#record-grid .ws-custom-grid{min-width:100%}
.ws-floating-settings{max-height:calc(100dvh - 88px);height:min(680px,calc(100dvh - 88px))}
.ws-floating-settings .ws-floating-header,.ws-floating-settings .ws-floating-footer{flex:0 0 auto}
.ws-floating-settings .ws-floating-body{display:block!important;flex:1 1 auto;min-height:0;overflow-y:auto;padding:12px}
.jx-settings-group{display:block;flex:none;border:1px solid var(--jx-border);border-radius:9px;margin-bottom:8px;background:var(--jx-surface,#fff);overflow:hidden}
.jx-settings-group>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:12px;font-size:13px;font-weight:650;color:var(--jx-ink);user-select:none}
.jx-settings-group>summary::-webkit-details-marker{display:none}.jx-settings-group>summary::after{content:"＋";font-size:15px;color:var(--jx-muted)}.jx-settings-group[open]>summary::after{content:"−"}.jx-settings-group[open]>summary{border-bottom:1px solid var(--jx-border);background:var(--jx-surface-soft)}
.jx-settings-group-body{display:block;padding:10px 12px}.jx-settings-group-body .ws-setting-grid{margin-bottom:12px}
.ws-floating-body .ws-column-selector{display:grid;grid-template-columns:minmax(0,1fr);max-height:none;min-height:44px;height:auto;overflow:visible;padding:0;border:0;gap:6px}
.ws-column-selector .ws-toggle-row{min-height:36px;height:auto;white-space:normal;overflow-wrap:anywhere;flex-shrink:0}
.jx-style-field{padding:7px 0;gap:10px}.jx-style-field input:not([type=checkbox]),.jx-style-field select{width:145px;max-width:53%;min-height:32px}
.jx-grid-style-panel{display:flex;flex-direction:column;padding:0;max-height:calc(100dvh - 100px);width:min(370px,calc(100vw - 24px));overflow:hidden;background:var(--jx-surface)}
.jx-grid-style-header,.jx-grid-style-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 15px;flex:none}
.jx-grid-style-header{border-bottom:1px solid var(--jx-border)}.jx-grid-style-footer{border-top:1px solid var(--jx-border);font-size:11px;color:var(--jx-muted)}.jx-grid-style-body{overflow:auto;min-height:0;padding:12px}
/* User-defined rules replace all previous hardcoded grid selectors. */
#record-grid.jx-styled-grid .ws-custom-grid th,#record-grid.jx-styled-grid .ws-custom-grid td,.jx-styled-grid .sheet-table th,.jx-styled-grid .sheet-table td{border-right:var(--jx-grid-rule-x);border-bottom:var(--jx-grid-rule-y)}
#record-grid.jx-styled-grid .ws-custom-grid,.jx-styled-grid .sheet-table{border-left:var(--jx-grid-rule-x);border-top:var(--jx-grid-rule-y)}
/* Top-bar system appearance switch. */
.jx-appearance{position:relative;flex:none;z-index:120;font-size:12px;color:var(--jx-ink)}.jx-appearance>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;padding:8px 10px;border:1px solid var(--jx-border-strong);background:var(--jx-surface,#fff);border-radius:9px;white-space:nowrap;user-select:none}.jx-appearance>summary::-webkit-details-marker{display:none}
.jx-appearance-popup{position:absolute;right:0;top:calc(100% + 10px);width:300px;max-height:calc(100dvh - 100px);overflow:auto;background:var(--jx-surface,#fff);border:1px solid var(--jx-border);padding:14px;border-radius:13px;box-shadow:var(--jx-shadow-float);color:var(--jx-ink)}
.jx-appearance-popup>strong{display:block;font-size:13px;margin:0 0 12px 4px}.jx-appearance-popup button{display:flex;align-items:center;width:100%;gap:12px;text-align:left;padding:10px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--jx-ink);cursor:pointer;margin-bottom:5px}
.jx-appearance-popup button:hover{background:var(--jx-surface-soft)}.jx-appearance-popup button[aria-checked=true]{border-color:var(--jx-blue);background:var(--jx-blue-tint)}.jx-appearance-popup b{display:block;font-size:13px;font-weight:650}.jx-appearance-popup small{display:block;font-size:11px;color:var(--jx-muted);margin-top:4px;line-height:1.5}
.jx-theme-swatch{width:48px;height:36px;border:1px solid #8b9caf50;border-radius:6px;background:linear-gradient(90deg,#fff 28%,#f5f8fc 28%);position:relative;flex:none}.jx-theme-swatch::after{content:"";position:absolute;width:22px;height:5px;right:5px;top:8px;border-radius:2px;background:#2873e6;box-shadow:0 10px 0 #cddcef}

.jx-appearance-popup .jx-theme-reset{justify-content:center;border-top:1px solid var(--jx-border);border-radius:0;margin-top:10px;padding-top:14px;margin-bottom:0;font-size:12px;color:var(--jx-blue)}
.jx-appearance-dock{display:flex;justify-content:flex-end;max-width:1540px;margin:0 auto;padding:12px clamp(12px,3vw,44px) 0}

/* Mobile appearance studio: centered floating surface, never a bottom sheet.
   Reuses the SAME swatches, theme ownership controls and picker actions. */
.jx-appearance-sheet{
  position:fixed;inset:0;box-sizing:border-box;
  width:min(510px,calc(100vw - 30px));max-width:calc(100vw - 30px);
  max-height:min(720px,calc(100dvh - 40px));
  margin:auto;padding:0;overflow:hidden;
  border:1px solid var(--jx-border,#dce5ef);border-radius:22px;
  background:var(--jx-ui-surface,var(--jx-surface,#fff));
  color:var(--jx-ui-text,var(--jx-ink,#253750));
  box-shadow:0 24px 65px rgba(22,48,87,.18),0 6px 20px rgba(20,48,80,.08);
}
.jx-appearance-sheet[open]{display:flex;flex-direction:column;animation:jx-appearance-enter .26s cubic-bezier(.2,.78,.24,1) both;}
.jx-appearance-sheet::backdrop{background:rgba(15,29,51,.42);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:jx-appearance-backdrop .22s ease-out both;}
html:has(.jx-appearance-sheet[open]){overflow:hidden;}
.jx-appearance-sheet[open].is-closing{animation:jx-appearance-exit .17s ease-in both;}
.jx-appearance-sheet.is-closing::backdrop{animation:jx-appearance-backdrop-out .17s ease-in both;}
@keyframes jx-appearance-exit{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(7px) scale(.985)}}
@keyframes jx-appearance-backdrop-out{from{opacity:1}to{opacity:0}}
@keyframes jx-appearance-enter{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes jx-appearance-backdrop{from{opacity:0}to{opacity:1}}
.jx-appearance-sheet-heading{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px 15px;border-bottom:1px solid var(--jx-border,#dce5ef);background:linear-gradient(115deg,var(--jx-blue-tint,#edf4ff),var(--jx-ui-surface,var(--jx-surface,#fff)) 74%);}
.jx-appearance-sheet-title-group{display:flex;flex-direction:column;gap:5px;min-width:0;}
.jx-appearance-sheet-eyebrow{font-size:10px;font-weight:750;letter-spacing:.15em;color:var(--jx-blue,#2563c7);}
.jx-appearance-sheet-heading h2{font-size:19px;font-weight:750;line-height:1.25;margin:0;color:var(--jx-ink,#223b5a);}
.jx-appearance-sheet .jx-appearance-sheet-close{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--jx-border-strong,#d0dfef);border-radius:11px;background:var(--jx-surface,#fff);color:var(--jx-ink,#37536e);cursor:pointer;transition:background .16s ease,transform .16s ease;}
.jx-appearance-sheet .jx-appearance-sheet-close:hover{background:var(--jx-blue-tint,#edf4ff);transform:scale(1.04);}
.jx-appearance-sheet-actions{flex:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 18px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--jx-border,#dce5ef);background:var(--jx-ui-surface,var(--jx-surface,#fff));}
.jx-appearance-sheet :is(.jx-theme-market-link,.jx-theme-reset){box-sizing:border-box;display:flex;justify-content:center;align-items:center;min-height:42px;margin:0;padding:9px 10px;border:1px solid var(--jx-border-strong,#d0dfef);border-radius:11px;background:var(--jx-surface-soft,#f8fbff);color:var(--jx-blue,#286fe3);font:inherit;font-size:12px;font-weight:650;line-height:1.35;text-align:center;text-decoration:none;white-space:normal;cursor:pointer;}
.jx-appearance-sheet > .jx-appearance-popup{position:static;flex:1 1 auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;width:auto;max-height:none;min-height:0;margin:0;padding:12px 18px 17px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:0;border-radius:0;box-shadow:none;background:transparent;white-space:normal;}
.jx-appearance-sheet .jx-appearance-popup > strong{display:none;}
.jx-appearance-sheet .jx-appearance-section{grid-column:1/-1;min-width:0;padding:3px 2px 0;font-size:10px;font-weight:750;letter-spacing:.11em;color:var(--jx-muted,#718397);}
.jx-appearance-sheet [data-theme-choice]{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;min-width:0;min-height:116px;margin:0;padding:11px;text-align:left;white-space:normal;border:1px solid var(--jx-border,#dce5ef);border-radius:14px;background:var(--jx-surface,#fff);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;}
.jx-appearance-sheet [data-theme-choice]:hover{transform:translateY(-1px);border-color:var(--jx-border-strong,#d0dfef);background:var(--jx-surface-soft,#f8fbff);}
.jx-appearance-sheet [data-theme-choice][aria-checked="true"]{border-color:var(--jx-blue,#256bd7);background:var(--jx-blue-tint,#edf4ff);box-shadow:0 0 0 1px color-mix(in srgb,var(--jx-blue,#256bd7) 28%,transparent);}
.jx-appearance-sheet [data-theme-choice] .jx-theme-swatch{width:100%;height:38px;border-radius:9px;}
.jx-appearance-sheet [data-theme-choice] > span:last-child{min-width:0;overflow-wrap:anywhere;}
.jx-appearance-sheet [data-theme-choice] b{font-size:14px;line-height:1.3;}
.jx-appearance-sheet [data-theme-choice] small{display:block;margin-top:3px;font-size:11px;line-height:1.45;}
.jx-appearance-sheet [data-theme-choice][aria-checked="true"]::after{content:"✓";position:absolute;top:17px;right:17px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--jx-blue,#286fe3);color:#fff;font-size:12px;font-weight:800;}
.jx-appearance-sheet .jx-theme-locked[aria-checked="true"]::after{content:"🔒";}
.jx-appearance-sheet .jx-theme-store-note{grid-column:1/-1;margin:0;padding:2px;color:var(--jx-muted,#718397);font-size:11px;}
@media(max-width:350px){.jx-appearance-sheet{width:calc(100vw - 20px);max-width:calc(100vw - 20px);border-radius:18px;}.jx-appearance-sheet-heading{padding:13px 15px;}.jx-appearance-sheet > .jx-appearance-popup{gap:7px;padding:9px 11px;}.jx-appearance-sheet [data-theme-choice]{min-height:105px;padding:8px;gap:6px;}.jx-appearance-sheet [data-theme-choice] small{font-size:10px;}.jx-appearance-sheet-actions{padding:9px 11px calc(9px + env(safe-area-inset-bottom,0px));}}
@media(prefers-reduced-motion:reduce){.jx-appearance-sheet[open],.jx-appearance-sheet::backdrop{animation:none!important}.jx-appearance-sheet [data-theme-choice],.jx-appearance-sheet .jx-appearance-sheet-close{transition:none!important;}}

/* Table grid defaults: clear enough to guide the eye, never dark enough to dominate it. */
:root{--theme-table-grid-color:#e4e8ee}
/* Classic is intentionally unchanged. Other themes style every application surface. */



html[data-theme]:not([data-theme=classic]) body{background:var(--jx-bg);color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) :is(.ws-sidebar,.ws-header,.topbar,.sheet-top,.sheet-bar,.sheet-footer,.panel,.card,.worker-card,.form-paper,.ws-panel,.ws-stat,.ws-folder-card,.ws-module-card,.ws-record-toolbar,.ws-record-overview,.ws-selection-toolbar,.ws-table-bottom,.ws-modal,.ws-modal-header,.ws-modal-footer,.ws-form-sheet,.ws-form-sheet-header,.ws-form-sheet-footer,.ws-floating-settings,.ws-floating-header,.ws-floating-body,.ws-floating-footer,.jx-dialog,.jx-dialog-actions,.jx-select-popup,.jx-time-modal,.jx-wheel-modal,.jx-schema-dialog,.jx-logic-dialog,.jx-schema-head,.jx-logic-foot,.jx-grid-style-panel){background:var(--jx-surface);color:var(--jx-ink);border-color:var(--jx-border);box-shadow:var(--jx-shadow)}
html[data-theme]:not([data-theme=classic]) :is(.canvas-wrap,.ws-form-sheet-body,.form-group,.subtable-row,.layout-outer,.ws-hint,.sheet-notice,.ws-tree-search,.ws-detail-hero,.ws-edit-field-selector,.ws-search-chooser,.jx-constraint-card,.jx-logic-property-card,.jx-required-item){background:var(--jx-surface-soft);color:var(--jx-ink);border-color:var(--jx-border)}
html[data-theme]:not([data-theme=classic]) :is(h1,h2,h3,h4,.ws-title-row h1,.ws-panel-head h2,.ws-module-card b,.brand h1,.ws-nav-title,.ws-tree-label,.ws-brand-breadcrumb strong,.ws-sidebar-top strong,.sheet-top strong,.form-field>label,.prop-row label,.ws-field>label,.ws-detail-field-label,.ws-detail-field-value){color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) :is(.ws-title-row p,.ws-muted,.tiny,.ws-microcopy,.ws-field-help,.field-help,.ws-blank,.ws-tree-counter,.ws-brand-breadcrumb,.ws-sidebar-top span,.ws-demo-tag,.ws-eyebrow,.ws-record-detail small,.ws-table-bottom,.ws-pagination,.sheet-top small,.back){color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not(.sheet-input),textarea:not(.sheet-input),select:not(.sheet-input),.fake-input,.palette-button,.btn,.ws-secondary,.sheet-top .soft,.sheet-footer .soft,.jx-config-button,.ws-type-pick,.ws-detail-field,.jx-select-option,.ws-pagination button){background:var(--jx-surface-soft);color:var(--jx-ink);border-color:var(--jx-border-strong)}
html[data-theme]:not([data-theme=classic]) :is(.ws-primary,.btn.primary,.form-submit,.sheet-top button.primary,.ws-logo,.brand-mark,.jx-dialog-confirm){background:var(--jx-blue);border-color:var(--jx-blue);color:var(--jx-bg);box-shadow:none;filter:none}
html[data-theme]:not([data-theme=classic]) :is(.ws-primary,.btn.primary,.form-submit,.sheet-top button.primary):hover{filter:brightness(.93)}
html[data-theme]:not([data-theme=classic]) :is(.ws-tree-item.selected,.ws-folder-card:hover,.ws-module-card:hover,.palette-button:hover,.designer-node.selected,.ws-user-circle,.ws-module-symbol,.ws-nav-icon,.ws-choice-chip,.ws-search-chooser-item:hover,.jx-select-option:hover,.jx-select-option.focused,#sheet-stats){background:var(--jx-blue-tint);color:var(--jx-blue);border-color:var(--jx-border-strong)}
html[data-theme]:not([data-theme=classic]) :is(.ws-tree-icon,.ws-icon-btn,.ws-bottom-link,.ws-eyebrow,.jx-config-button svg){color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) :is(.ws-tree-item:hover,.ws-bottom-link:hover,.ws-icon-btn:hover,.option-label:has(input:checked)){background:var(--jx-surface-soft);color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) .sheet-grid{background:var(--theme-table-panel-bg,var(--jx-surface))}
html[data-theme]:not([data-theme=classic]) :is(.ws-grid-zebra .ws-custom-grid tbody tr:nth-child(even) td,.ws-custom-grid tbody tr:hover td,.ws-custom-grid tbody tr:nth-child(even):hover td){background:var(--jx-surface-soft)!important}
html[data-theme]:not([data-theme=classic]) :is(.sheet-table td.sheet-selected,.sheet-table td.sheet-selected .sheet-input:focus){background:var(--jx-blue-tint)!important;color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) .jx-styled-grid .sheet-input.dirty{background:var(--jx-blue-tint)}





@media(max-width:700px){.jx-appearance>summary{padding:7px}.jx-appearance-popup{width:min(300px,calc(100vw - 24px))}.ws-header{padding-left:12px;padding-right:12px}.ws-header-right{gap:6px}.ws-demo-tag{display:none}.jx-grid-style-panel{right:12px}.ws-floating-settings{height:calc(100dvh - 100px)}}
html[data-theme]:not([data-theme=classic]) :is(.jx-panel,.jx-user,.jx-time-panel,.jx-time-head,.jx-time-footer,.jx-schema-body,.jx-logic-side,.jx-functions,.jx-dialog-input-wrap){background:var(--jx-surface);color:var(--jx-ink);border-color:var(--jx-border)}
html[data-theme]:not([data-theme=classic]) :is(.jx-note,.jx-panel label,.jx-user small,.jx-time-head small,.jx-time-col-title,.jx-time-status,.jx-dialog-header p){color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) :is(.jx-panel button:not(.alt),.jx-time-confirm){background:var(--jx-blue);color:var(--jx-bg)}
html[data-theme]:not([data-theme=classic]) :is(.jx-time-preview,.jx-time-value.selected){color:var(--jx-blue)}
html[data-theme]:not([data-theme=classic]) :is(.jx-time-neutral,.jx-time-close,.jx-time-column:after,.jx-panel button.alt){background:var(--jx-surface-soft);border-color:var(--jx-border);color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) .jx-date-wheel-input{background:var(--jx-surface-soft)!important;color:var(--jx-ink)!important}
html[data-theme]:not([data-theme=classic]) .jx-select-option[aria-selected=true]{background:var(--jx-blue-tint);color:var(--jx-blue)}
.ws-grid-zebra.jx-styled-grid .ws-custom-grid tbody tr:nth-child(even) td{background:color-mix(in srgb,var(--jx-grid-cell-bg) 96%,var(--jx-blue))}
html[data-theme]:not([data-theme=classic]) .ws-grid-zebra.jx-styled-grid .ws-custom-grid tbody tr:nth-child(even) td{background:color-mix(in srgb,var(--jx-grid-cell-bg) 95%,var(--jx-blue))!important}
.ws-floating-settings{max-height:calc(100dvh - 88px)!important}
html[data-theme]:not([data-theme=classic]) .ws-nav-head .ws-icon-btn{background:var(--jx-surface-soft);color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) .ws-grid-sticky-first .ws-custom-grid .ws-grid-check{background:var(--jx-grid-cell-bg)}
html[data-theme]:not([data-theme=classic]) .ws-grid-sticky-first .ws-custom-grid thead .ws-grid-check{background:var(--jx-grid-header-bg)}
html[data-theme]:not([data-theme=classic]) :is(.ws-sidebar-top,.ws-nav-head,.ws-panel-head,.panel-head,.ws-sidebar-bottom,.ws-form-sheet-header,.jx-schema-head){border-color:var(--jx-border)}

/* V1.2.9: six more visual languages. Classic remains the system default. */






/* Fix module group headers, including nested labels, hover and selected states. */
html[data-theme]:not([data-theme=classic]) .ws-tree-item.ws-module-root{background:var(--jx-surface-soft);border-color:var(--jx-border);color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) .ws-tree-item.ws-module-root:hover,html[data-theme]:not([data-theme=classic]) .ws-tree-item.ws-module-root.selected{background:var(--jx-blue-tint);color:var(--jx-ink);border-color:var(--jx-border-strong)}
html[data-theme]:not([data-theme=classic]) .ws-tree-item.ws-module-root .ws-tree-label{color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) .ws-tree-item.ws-module-root .ws-tree-icon{color:var(--jx-blue)}
html[data-theme]:not([data-theme=classic]) :is(.ws-tree-counter,.ws-tree-item .chevron,.ws-key-hint,.ws-tree-more,.ws-stat span,.ws-stat small,.ws-folder-card small,.ws-module-card small,.ws-module-note,.ws-grid-actions button,.ws-table .ws-number,.ws-table .ws-row-index){color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) :is(.ws-grid-actions button,.ws-tree-more:hover,.ws-archive-row,.ws-context-list button,.jx-search-input,.ws-context-list button:hover){background:var(--jx-surface-soft);border-color:var(--jx-border);color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) :is(.jx-dialog-cancel,.jx-leave-card,.jx-leave-actions button,.jx-dialog-input-wrap input){background:var(--jx-surface-soft);color:var(--jx-ink);border-color:var(--jx-border-strong)}
html[data-theme]:not([data-theme=classic]) :is(.jx-dialog-header h2,.jx-leave-card h3,.ws-stat strong,.ws-folder-card b,.ws-module-card b){color:var(--jx-ink-strong)}
html[data-theme]:not([data-theme=classic]) :is(input,textarea)::placeholder{color:var(--jx-muted);opacity:1}
html[data-theme]:not([data-theme=classic]) :is(.ws-demo-tag,.ws-detail-tools,.ws-detail-field-label){color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) .ws-demo-tag{background:var(--jx-surface-soft);border-color:var(--jx-border)}
html[data-theme]:not([data-theme=classic]) .sheet-table .readonly{background:var(--jx-surface-soft);color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) .sheet-table :is(.row-index,.record-id){color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) .jx-styled-grid .sheet-input.invalid{background:#512c36;color:#fff0f0;border-color:#fa9d9d}
html[data-theme]:not([data-theme=classic]) #sheet-preview{color:var(--jx-ink)}
/* Visual language: the same shape rules reach cards, forms, menus and dialogs. */






























/* Theme-picker previews echo shape as well as palette. */






.jx-appearance-popup{max-height:min(720px,calc(100dvh - 100px));overscroll-behavior:contain;scrollbar-gutter:stable}

@media(prefers-reduced-motion:reduce){.ws-module-card,.ws-primary,.jx-appearance-popup button{transition:none!important}}
html[data-theme]:not([data-theme=classic]) :is(.ws-floating-footer span,.ws-live-tip,.ws-floating-close,.jx-grid-style-footer,.jx-grid-style-footer span,.ws-field-help,.field-help,.ws-module-meta){color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) .ws-tree-icon svg{stroke:currentColor}
html[data-theme]:not([data-theme=classic]) .ws-module-config{opacity:1;color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) .ws-module-go{color:var(--jx-muted)}
html[data-theme]:not([data-theme=classic]) .ws-module-item:hover .ws-module-config,html[data-theme]:not([data-theme=classic]) .ws-module-config:focus{background:var(--jx-surface-soft);border-color:var(--jx-border-strong);color:var(--jx-ink)}




html[data-theme]:not([data-theme=classic]) :focus-visible{outline-color:var(--jx-blue)}

.jx-theme-swatch.spring{background:linear-gradient(90deg,#eef7e8 32%,#fff2f5 32%)}.jx-theme-swatch.spring::after{background:#7ea75b;box-shadow:0 10px 0 #f3aeb9}
.jx-theme-swatch.winter{background:linear-gradient(90deg,#d7e7ff 32%,#f7fbff 32%)}.jx-theme-swatch.winter::after{background:#6c9acd;box-shadow:0 10px 0 #b6cce8}

.jx-appearance-popup .jx-theme-store-note{font-size:11px;color:var(--jx-muted);padding:7px 4px 0;border-top:1px solid var(--jx-border);line-height:1.55}.jx-appearance-popup .jx-theme-locked{opacity:.66}.jx-appearance-popup .jx-theme-locked::after{content:"🔒";margin-left:auto;font-size:12px}

/* Jupiter: warm cloud bands against a quiet deep-space workspace. */




/* 厦门：海水青、暖沙白、凤凰木的一点点暖色。 */




.jx-theme-market-link{display:block;margin:10px 0 5px;padding:10px;text-align:center;border:1px solid var(--jx-border-strong);border-radius:9px;color:var(--jx-blue);text-decoration:none;font-weight:650;background:var(--jx-surface-soft)}
.jx-theme-market-link:hover{text-decoration:none;filter:brightness(.97)}

/* GridPolish: a calm, consistent table rhythm in record and Excel views.
   All colors continue to come from the per-form, per-theme grid preferences. */
#record-grid.jx-styled-grid .ws-custom-grid,
.jx-styled-grid .sheet-table{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;border-spacing:0;}
#record-grid.jx-styled-grid .ws-custom-grid th,
#record-grid.jx-styled-grid .ws-custom-grid td{padding:8px 11px;line-height:1.4;vertical-align:middle;}
#record-grid.jx-styled-grid .ws-custom-grid thead th{height:max(40px,calc(var(--jx-grid-header-size,13px) * 2.8));letter-spacing:0;}
#record-grid.jx-styled-grid .ws-custom-grid .ws-resize-th{padding-right:21px;}
#record-grid.jx-styled-grid .ws-custom-grid tbody td:not(.ws-grid-check):not(.ws-grid-actions):not(.ws-row-index){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#record-grid.ws-grid-wrap.jx-styled-grid .ws-custom-grid tbody td:not(.ws-grid-check):not(.ws-grid-actions):not(.ws-row-index){white-space:normal;overflow-wrap:anywhere;}
#record-grid.jx-styled-grid .ws-custom-grid tbody tr:hover td{background:color-mix(in srgb,var(--jx-grid-cell-bg) 95%,var(--jx-ui-accent,#246bef))!important;}
#record-grid.jx-styled-grid .ws-custom-grid .ws-grid-check,
#record-grid.jx-styled-grid .ws-custom-grid .ws-row-index{padding-inline:6px;}
#record-grid.jx-styled-grid .ws-custom-grid .ws-grid-actions{padding-inline:8px;}
#record-grid.jx-styled-grid .ws-custom-grid .ws-sort-head{font-size:inherit;line-height:1.35;}
.jx-styled-grid .sheet-table th,.jx-styled-grid .sheet-table td{height:40px;}
.jx-styled-grid .sheet-table thead th{padding:9px 11px;line-height:1.35;}
.jx-styled-grid .sheet-table .sheet-input{height:39px;padding:7px 11px;}
.jx-styled-grid .sheet-table td:not(.row-index):not(.record-id),
.jx-styled-grid .sheet-table th:not(.row-index):not(.record-id){min-width:0;}
.jx-styled-grid .sheet-table td.readonly{padding:8px 11px;}

/* Semantic shifts: low-contrast day, stronger but still neutral night. */
#record-grid.jx-styled-grid .ws-shift-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:5px;min-height:24px;padding:3px 8px;white-space:nowrap;font-size:.92em;font-weight:500;line-height:1.15;}
#record-grid.jx-styled-grid .ws-shift-day{background:var(--jx-grid-header-bg);color:var(--jx-grid-text-color);}
#record-grid.jx-styled-grid .ws-shift-night{background:#4b5563;color:#fff;}

/* 2.8.0: deliberate theme crossfade. Old apply() remains synchronous for ERP callers. */
@keyframes jx-theme-old{from{opacity:1}to{opacity:.12}}
@keyframes jx-theme-new{from{opacity:.12}to{opacity:1}}
html.jx-theme-switching::view-transition-old(root){animation:jx-theme-old 165ms ease-in both!important}
html.jx-theme-switching::view-transition-new(root){animation:jx-theme-new 260ms cubic-bezier(.22,1,.36,1) both!important}
/* Fallback on WebKit and browsers without same-document View Transitions. */
html.jx-theme-switching :is(body,.ws-body,.ws-header,.ws-sidebar,.ws-panel,.ws-stat,.ws-module-card,.ws-folder-card,.ws-form-sheet,.ws-floating-settings,.ws-content,.ws-title-row,.jx-panel,.topbar,.ai-manage-sidebar,.ai-manage-main,.ai-setting-card,.jx-appearance-popup){
  transition-property:background-color,border-color,color,box-shadow!important;
  transition-duration:260ms!important;
  transition-timing-function:cubic-bezier(.22,1,.36,1)!important;
}
@media(prefers-reduced-motion:reduce){
  html.jx-theme-switching::view-transition-old(root),html.jx-theme-switching::view-transition-new(root){animation:none!important}
  html.jx-theme-switching :is(body,.ws-body,.ws-header,.ws-sidebar,.ws-panel,.ws-stat,.ws-module-card,.ws-folder-card,.ws-form-sheet,.ws-floating-settings,.ws-content,.ws-title-row,.jx-panel,.topbar,.ai-manage-sidebar,.ai-manage-main,.ai-setting-card,.jx-appearance-popup){transition:none!important}
}

@media (hover:hover) and (pointer:fine){
 html body,html body :is(button,a,summary,select,label,[role="button"],[role="tab"]){cursor:url('/web/unified_cursor.png') 2 1,auto}
}
/* Unselected themes are quiet in every palette; the current theme alone is outlined. */
html[data-theme] body .jx-appearance-popup button[data-theme-choice][aria-checked="false"]{background:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important}
html[data-theme] body .jx-appearance-popup button[data-theme-choice][aria-checked="false"]:hover{background:color-mix(in srgb,var(--jx-ui-accent,#1d5fbc) 6%,var(--jx-ui-surface,#fff))!important;border-color:transparent!important}
html[data-theme] body .jx-appearance-popup button[data-theme-choice][aria-checked="true"]{background:color-mix(in srgb,var(--jx-ui-accent,#1d5fbc) 10%,var(--jx-ui-surface,#fff))!important;border-color:var(--jx-ui-accent,#1d5fbc)!important;box-shadow:none!important}
html[data-theme] body .jx-appearance-popup button.jx-theme-reset{position:static;justify-content:center;margin:10px 0 0;padding:9px 12px;border:1px solid var(--jx-ui-border,#cddcef)!important;border-radius:9px!important;background:var(--jx-ui-surface,#fff)!important;color:var(--jx-ui-accent,#1d5fbc)!important;box-shadow:none!important;font-size:12px;font-weight:600}
html[data-theme] body .jx-appearance-popup button.jx-theme-reset:hover{background:color-mix(in srgb,var(--jx-ui-accent,#1d5fbc) 6%,var(--jx-ui-surface,#fff))!important}

/* Spring R5 preferences use the existing appearance popup and mobile sheet.
   Native radio/checkbox inputs keep keyboard and touch semantics. */
.jx-spring-settings[hidden]{display:none!important;}
html[data-theme="spring"] .jx-spring-settings{
 grid-column:1/-1;box-sizing:border-box;min-width:0;margin:12px 0 8px;padding:10px;
 border:1px solid var(--jx-spring-paper-border,#dce8d6);border-radius:12px;
 background:var(--jx-spring-paper,#fffef9);color:var(--jx-ink,#334835);
}
.jx-spring-settings legend{padding:0 5px;font-size:13px;font-weight:700;color:var(--jx-ui-accent,#457d45);}
.jx-spring-settings-modes,.jx-spring-settings-options{display:grid;gap:5px;}
.jx-spring-settings label{box-sizing:border-box;display:flex;align-items:center;gap:9px;min-width:0;padding:8px;border-radius:8px;cursor:pointer;line-height:1.4;}
.jx-spring-settings label:has(input:checked){background:var(--jx-blue-tint,#e4f2da);}
.jx-spring-settings label:has(input:disabled){opacity:.58;cursor:default;}
.jx-spring-settings input:is([type=radio],[type=checkbox]){flex:none;width:17px;height:17px;margin:0;accent-color:var(--jx-ui-accent,#457d45);}
.jx-spring-settings label span{min-width:0;overflow-wrap:anywhere;}
.jx-spring-settings-options{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:8px;padding-top:8px;border-top:1px solid var(--jx-spring-paper-border,#dce8d6);font-size:12px;}
.jx-spring-settings-note{font-size:11px;line-height:1.55;color:var(--jx-muted,#546b56);margin:9px 2px 0;}
.jx-appearance-sheet .jx-spring-settings{margin:3px 0;}
.jx-appearance-sheet .jx-spring-settings label{min-height:44px;}
@media(max-width:350px){.jx-spring-settings-options{grid-template-columns:minmax(0,1fr);}}

/* One bounded scroll viewport; header and actions occupy their own space. */
.jx-appearance[open]>.jx-appearance-popup{display:flex;flex-direction:column;box-sizing:border-box;max-height:min(720px,var(--jx-appearance-available,calc(100dvh - 100px)));padding:0;overflow:hidden;scrollbar-gutter:auto}
.jx-appearance-popup>strong{flex:none;margin:0;padding:12px 16px;border-bottom:1px solid var(--jx-border)}
.jx-appearance-scroll{flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px 12px 12px 14px;box-sizing:border-box}
.jx-appearance-footer{flex:none;display:grid;gap:6px;padding:10px 14px 12px;border-top:1px solid var(--jx-border);background:var(--jx-surface,#fff)}
.jx-appearance-footer .jx-theme-market-link{margin:0}
html[data-theme] body .jx-appearance-popup .jx-appearance-footer button.jx-theme-reset{margin:0;position:static;min-height:36px}
.jx-appearance-popup .jx-appearance-footer .jx-theme-store-note{border:0;margin:0;padding:0 2px;overflow-wrap:anywhere}
.jx-appearance-sheet>.jx-appearance-popup{display:flex;flex-direction:column;padding:0;overflow:hidden;scrollbar-gutter:auto;min-height:0;gap:0}
.jx-appearance-sheet .jx-appearance-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;padding:12px 18px 17px;-webkit-overflow-scrolling:touch}
.jx-appearance-sheet .jx-appearance-footer{display:none}
@media(max-width:350px){.jx-appearance-sheet .jx-appearance-scroll{gap:7px;padding:9px 11px}}
