/* Semantic colors at their source: theme all component states, including dynamic UI.
   No semantic overrides are defined for classic, preserving its original palette. */
html[data-theme]:not([data-theme=classic]){
 --jx-ui-surface:var(--jx-surface);--jx-ui-soft:var(--jx-surface-soft);--jx-ui-text:var(--jx-ink);--jx-ui-muted:var(--jx-muted);--jx-ui-border:var(--jx-border-strong);--jx-ui-accent:var(--jx-blue);--jx-ui-tint:var(--jx-blue-tint);--jx-ui-on-accent:var(--jx-bg);--jx-ui-toast:var(--jx-ink);
 --jx-ui-danger:#a22739;--jx-ui-danger-soft:#fce4e7;--jx-ui-success:#14613c;--jx-ui-success-soft:#e2f2e7;--jx-ui-warning:#80500b;--jx-ui-warning-soft:#f8edd4;
 --jx-ring:0 0 0 3px color-mix(in srgb,var(--jx-blue) 20%,transparent);
 --theme-panel-radius:var(--jx-radius,14px);--theme-control-radius:var(--jx-radius-control,10px);
}

/* All dynamically created work surfaces use the same shape and color vocabulary. */
html[data-theme]:not([data-theme=classic]) :where(.panel-head,.jx-title-editor,.ws-form-preview-content,.ws-edit-layout,.ws-edit-form-preview,.ws-structured-editor,.jx-related-choice,.jx-related-choices,.jx-relation-dialog,.jx-relation-card,.jx-related-settings,.jx-required-item,.jx-schema-body,.jx-schema-foot,.jx-logic-body,.jx-logic-side,.jx-logic-editor,.jx-logic-result,.jx-formula-editor,.jx-constraint-card,.jx-rule-card,.ws-detail-hero,.ws-detail-field,.ws-search-chooser-content,.ws-search-chooser-list,.ws-import-preview,.ws-trash-list,.modal,.modal-body,.mobile-shell,.properties,.jx-perm-card){color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) :where(.ws-form-preview-content,.ws-edit-form-preview,.jx-relation-dialog,.jx-relation-card,.modal,.mobile-shell,.jx-schema-dialog,.jx-logic-dialog,.jx-related-choices,.ws-detail-field,.ws-search-chooser,.ws-edit-field-selector,.ws-import-preview,.ws-trash-row){border-radius:var(--theme-panel-radius)}
html[data-theme]:not([data-theme=classic]) :where(.ws-form-small,.ws-form-icon,.jx-time-neutral,.jx-time-confirm,.layout-tab,.tabs-bar button,.option-label,.fake-input,.fake-check,.node-tools button,.jx-rule-field input,.jx-rule-field select,.prop-row input,.prop-row select,.prop-row textarea,.jx-related-choice,.jx-related-choices,.jx-required-item,.jx-constraint-card,.jx-rule-card){border-radius:var(--theme-control-radius)}
html[data-theme]:not([data-theme=classic]) :is(.ws-form-sheet-header strong,.panel-head h2,.jx-title-editor label,.palette-group,.palette-button span:first-child,.field-title,.layout-h,.subtable-row-header,.jx-schema-head h2,.jx-logic-result,.ws-form-small,.ws-form-icon){color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) :is(.option-label,.fake-check){background:var(--jx-surface-soft);color:var(--jx-ink);border-color:var(--jx-border-strong)}
html[data-theme]:not([data-theme=classic]) .option-label:has(input:checked){background:var(--jx-blue-tint);color:var(--jx-ink);border-color:var(--jx-blue)}
html[data-theme]:not([data-theme=classic]) .ws-form-preview-content{background:var(--jx-surface);color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) .panel-head{background:var(--jx-surface);color:var(--jx-ink);border-color:var(--jx-border)}
html[data-theme]:not([data-theme=classic]) .jx-title-editor{background:var(--jx-surface-soft);color:var(--jx-ink)}
html[data-theme]:not([data-theme=classic]) .designer-node:hover{background:var(--jx-surface-soft);border-color:var(--jx-border-strong)}
html[data-theme]:not([data-theme=classic]) .designer-node.selected{background:var(--jx-blue-tint);border-color:var(--jx-blue)}
html[data-theme]:not([data-theme=classic]) :is(.ws-form-small,.ws-form-icon){background:var(--jx-surface-soft);border-color:var(--jx-border-strong)}
html[data-theme]:not([data-theme=classic]) [fill=white]{fill:var(--jx-surface)}
html[data-theme]:not([data-theme=classic]) .ws-title-row{min-height:130px;padding:22px 24px;border:1px solid var(--jx-border);border-radius:var(--theme-panel-radius);background-color:var(--jx-surface-soft);background-image:var(--theme-hero-art,none);background-repeat:no-repeat;background-size:auto 160px;background-position:67% center;position:relative;overflow:hidden}
html[data-theme]:not([data-theme=classic]) .ws-title-row h1{letter-spacing:.3px}
html[data-theme]:not([data-theme=classic]) .ws-panel-head{border-top:2px solid var(--jx-blue)}
html[data-theme]:not([data-theme=classic]) .jx-canvas-toolbar{border-top:2px solid var(--jx-blue)}
html[data-theme]:not([data-theme=classic]) .ws-form-sheet-header{border-top:2px solid var(--jx-blue)}
html[data-theme]:not([data-theme=classic]) .canvas-wrap{background-image:var(--theme-hero-art,none);background-repeat:no-repeat;background-size:300px;background-position:right bottom}














@media(max-width:1100px){html[data-theme]:not([data-theme=classic]) .ws-title-row{background-position:80% center;background-size:auto 130px}.jx-canvas-actions{flex-wrap:wrap}}
@media(max-width:700px){html[data-theme]:not([data-theme=classic]) .ws-title-row{padding:18px;background-image:none;min-height:115px}.jx-appearance-popup{max-height:calc(100dvh - 110px)}}

html[data-theme=classic]{--jx-ui-muted:#586a80;--jx-muted:#586a80}
/* The illustration belongs to navigation and the hero, never behind data. */










html[data-theme]:not([data-theme=classic]) :is(.jx-config-button,.ws-form-small,.ws-form-icon,.layout-tab,.tabs-bar button,.node-tools button,.jx-time-confirm,.jx-time-neutral,.jx-schema-close,.jx-scan-dialog button){border-radius:var(--theme-control-radius)}
/* Keep classic blue, with readable small button and status text. */
html[data-theme=classic]{--jx-ui-accent:#1d5fbc;--jx-ui-warning:#80500b;--jx-ui-success:#14613c}
html[data-theme=classic] :is(.ws-primary,.btn.primary,.form-submit,.sheet-top button.primary,.brand-mark,.ws-logo){background:linear-gradient(145deg,#2467d1,#175ac5);color:#fff;border-color:#2467d1}
html[data-theme=classic] .status-pill{color:#1a6b42}
html[data-theme=classic] a:not(.btn){color:#1d5fbc}
/* The full input width and its picker icon share the same hit area. */
.ws-form-preview-content .form-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){max-width:none}
html[data-theme=classic]{--jx-ui-danger:#a22739}
@media(max-width:700px){.jx-appearance-popup{position:fixed;top:64px;right:12px;left:auto;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 84px);margin:0}.topbar .nav{min-width:0}.ws-form-sheet-header{flex-wrap:wrap}.ws-form-sheet-actions{flex-wrap:wrap;gap:6px}}
@media(max-width:700px){.sheet-footer-right{max-width:100%;flex-wrap:wrap;justify-content:flex-end;flex-shrink:1}.sheet-zoom{border-left:0;padding-left:0}}
/* V1.2.11: popover stacking, independent resets and movable style palette. */
.sheet-top{position:relative;z-index:40;isolation:isolate}.sheet-grid{position:relative;z-index:0}.jx-grid-style-panel{z-index:90;max-height:calc(100dvh - 24px);min-height:240px;min-width:min(320px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
.jx-grid-style-header{cursor:move;touch-action:none;user-select:none}.jx-grid-style-header button{cursor:pointer}.jx-grid-style-body{flex:1 1 auto;overflow:auto}
.jx-style-field{display:grid;grid-template-columns:minmax(65px,1fr) minmax(80px,140px) 28px;gap:8px;align-items:center}.jx-style-field input:not([type=checkbox]),.jx-style-field select{width:100%;max-width:100%}.jx-style-field input[type=checkbox]{justify-self:end}
.jx-style-reset-one{width:28px;height:28px;min-height:28px;padding:0;border:1px solid var(--jx-border);border-radius:50%;background:var(--jx-surface-soft);color:var(--jx-ink);font-size:16px;cursor:pointer}.jx-style-reset-group{display:block;margin:9px 0 2px auto;padding:6px 10px;border:1px solid var(--jx-border);border-radius:8px;background:var(--jx-surface-soft);color:var(--jx-ink);font-size:11px;cursor:pointer}
.jx-float-grip{position:absolute;z-index:5;touch-action:none}.jx-float-n,.jx-float-s{height:8px;left:12px;right:12px;cursor:ns-resize}.jx-float-n{top:0}.jx-float-s{bottom:0}.jx-float-e,.jx-float-w{width:8px;top:12px;bottom:12px;cursor:ew-resize}.jx-float-e{right:0}.jx-float-w{left:0}.jx-float-ne,.jx-float-nw,.jx-float-se,.jx-float-sw{width:14px;height:14px}.jx-float-ne{right:0;top:0;cursor:nesw-resize}.jx-float-nw{left:0;top:0;cursor:nwse-resize}.jx-float-se{right:0;bottom:0;cursor:nwse-resize}.jx-float-sw{left:0;bottom:0;cursor:nesw-resize}
/* Leave all theme illustrations empty for future user-generated assets. */
:root{--theme-hero-art:none}html[data-theme] .ws-title-row,html[data-theme] .canvas-wrap{background-image:none}html[data-theme] .ws-content::before{content:none;background-image:none}
html[data-theme=classic] .ws-title-row{min-height:130px;padding:22px 24px;border:1px solid var(--jx-border);border-radius:14px;background:var(--jx-surface,#fff)}
/* Aurora White: frosted surfaces with readable, quiet input wells. */











.sheet-top:has(#jx-appearance[open]){z-index:120}

/* ================================================================
   Classic Blue · 2026 refinement
   Restrained motion on navigation and interactive surfaces only.
   Isolated to classic: custom skin identities remain unchanged.
   ================================================================ */
html[data-theme=classic]{
 --classic-ease:cubic-bezier(.22,1,.36,1);
 --classic-border:#dee8f6;
 --classic-shadow:0 8px 24px rgba(26,66,133,.055),0 1px 3px rgba(26,66,133,.028);
}
html[data-theme=classic] .ws-body{
 background:radial-gradient(ellipse 85% 48% at 87% 0%,rgba(224,237,255,.42),transparent 75%),#f4f7fc;
}
html[data-theme=classic] .ws-header{
 background:rgba(255,255,255,.97);
 border-bottom-color:#e1eaf6;
 box-shadow:0 4px 18px rgba(34,75,132,.045);
}
@supports (backdrop-filter:blur(14px)){
 html[data-theme=classic] .ws-header{background:rgba(255,255,255,.90);backdrop-filter:blur(14px) saturate(1.14)}
}
html[data-theme=classic] .ws-sidebar{border-right-color:#e0e9f6;background:linear-gradient(180deg,#fff,#fbfdff)}
html[data-theme=classic] .ws-title-row{
 position:relative;isolation:isolate;border:1px solid #e1eafd;
 border-radius:18px;padding:24px 27px;
 background:linear-gradient(118deg,#fff 15%,#f5f9ff 69%,#eaf3ff 100%);
 box-shadow:var(--classic-shadow);
 overflow:hidden;
}
html[data-theme=classic] .ws-title-row::before{
 content:"";position:absolute;pointer-events:none;z-index:-1;
 top:-90px;right:-110px;width:380px;height:250px;border-radius:50%;
 background:radial-gradient(ellipse at center,rgba(83,153,255,.115),transparent 70%);
 animation:jx-classic-ambient 9s ease-in-out infinite alternate;
}
/* Removed decorative bottom line from classic folder hero; gradient remains. */
html[data-theme=classic] :is(.ws-panel,.ws-stat,.ws-folder-card,.ws-module-card){
 border-color:var(--classic-border);box-shadow:var(--classic-shadow);
 transition:border-color .3s ease,box-shadow .35s var(--classic-ease),transform .35s var(--classic-ease),background-color .3s ease;
}
html[data-theme=classic] :is(.ws-module-card,.ws-folder-card):hover{
 transform:translate3d(0,-3px,0);border-color:#b1cef6;
 box-shadow:0 16px 34px rgba(36,89,165,.105),0 2px 8px rgba(36,89,165,.035);
}
html[data-theme=classic] .ws-stat:hover{
 border-color:#cbdcf4;box-shadow:0 12px 27px rgba(36,89,165,.07);
}
html[data-theme=classic] .ws-tree-item{
 transition:background-color .18s ease,color .18s ease,box-shadow .22s ease;
}
html[data-theme=classic] .ws-tree-item:hover{background:#f2f7ff}
html[data-theme=classic] .ws-tree-item.selected{
 background:linear-gradient(90deg,#e9f2ff,#e6f0ff);
 box-shadow:inset 3px 0 0 #377de1;
}
html[data-theme=classic] .ws-tree-more{
 transition:opacity .18s ease,background-color .18s ease,color .18s ease,transform .22s var(--classic-ease);
}
html[data-theme=classic] .ws-tree-more:hover{transform:scale(1.07);background:#dceaff}
html[data-theme=classic] :is(.ws-primary,.btn.primary,.form-submit){
 background-image:linear-gradient(120deg,#1f60c5 0%,#3281ea 49%,#1e61c9 100%);
 background-size:180% 180%;
 box-shadow:0 5px 13px rgba(30,97,201,.16);
 transition:transform .24s var(--classic-ease),box-shadow .3s ease,background-position .48s ease,filter .25s ease;
}
html[data-theme=classic] :is(.ws-primary,.btn.primary,.form-submit):hover:not(:disabled){
 background-position:95% 50%;transform:translateY(-1px);filter:saturate(1.07);
 box-shadow:0 9px 20px rgba(30,97,201,.24);
}
html[data-theme=classic] :is(.ws-primary,.btn.primary,.form-submit):active:not(:disabled){
 transform:translateY(0);box-shadow:0 3px 9px rgba(30,97,201,.18);
}
html[data-theme=classic] :is(.ws-secondary,.ws-quiet,.ws-icon-btn,.ws-pagination button,.ws-form-small){
 transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .2s ease,transform .2s var(--classic-ease);
}
html[data-theme=classic] :is(.ws-secondary,.ws-icon-btn,.ws-form-small):hover:not(:disabled){
 box-shadow:0 4px 12px rgba(32,91,169,.075);
}
html[data-theme=classic] :is(.ws-tree-search,.ws-search,.ws-field input,.ws-field select){transition:border-color .22s ease,box-shadow .24s ease,background-color .24s ease}
html[data-theme=classic] :is(.ws-tree-search,.ws-search):focus-within{border-color:#9cc1f4;box-shadow:0 0 0 3px rgba(51,120,215,.095)}
html[data-theme=classic] :is(.ws-panel,.ws-stat,.ws-module-card,.ws-folder-card){animation:jx-classic-arrive .46s var(--classic-ease) backwards}
html[data-theme=classic] .ws-stats>.ws-stat:nth-child(2){animation-delay:.055s}
html[data-theme=classic] .ws-stats>.ws-stat:nth-child(3){animation-delay:.105s}
html[data-theme=classic] .ws-stats>.ws-stat:nth-child(4){animation-delay:.15s}
html[data-theme=classic] .ws-modal-layer.open .ws-modal{animation:jx-classic-dialog .23s var(--classic-ease) both}
html[data-theme=classic] .ws-modal-layer.open{animation:jx-classic-backdrop .18s ease both}
@keyframes jx-classic-ambient{from{transform:translate3d(-13px,6px,0);opacity:.56}to{transform:translate3d(17px,-7px,0);opacity:.95}}
@keyframes jx-classic-arrive{from{opacity:.65;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes jx-classic-dialog{from{opacity:.3;transform:translate(-50%,calc(-50% + 7px)) scale(.988)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes jx-classic-backdrop{from{opacity:.4}to{opacity:1}}
@media(max-width:800px){
 html[data-theme=classic] .ws-title-row{padding:17px 19px;border-radius:14px}
 html[data-theme=classic] .ws-title-row::before{width:240px;height:160px;right:-90px;top:-60px}
 html[data-theme=classic] :is(.ws-module-card,.ws-folder-card):hover{transform:none}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme=classic] .ws-title-row::before,
 html[data-theme=classic] :is(.ws-panel,.ws-stat,.ws-module-card,.ws-folder-card),
 html[data-theme=classic] .ws-modal-layer.open,
 html[data-theme=classic] .ws-modal-layer.open .ws-modal{animation:none!important}
 html[data-theme=classic] :is(.ws-panel,.ws-stat,.ws-module-card,.ws-folder-card,.ws-tree-item,.ws-tree-more,.ws-primary,.btn.primary,.form-submit,.ws-secondary,.ws-icon-btn,.ws-form-small){transition:none!important;transform:none!important}
}

/* After dragging/resizing, do not let the classic entrance animation override coordinates. */
html[data-theme=classic] .ws-modal-layer.open .ws-modal.ws-modal-moved{animation:none!important;}

/* Picker geometry is shared across skins; only the material/color is themed. */
html[data-theme]:not([data-theme=classic]) .jx-select-trigger{border-radius:12px}
