/* The homepage's client trial: the legacy client's new menu (ui/kit) rebuilt in HTML. Sizes, radii, spacing and
   durations are the client's own tokens (Dim, Radius, Space, Type, Motion); colours arrive as custom properties
   from menu.js, which derives them the way ThemeTokens and AccentTokens do. */
@font-face{font-family:SoarMiSans;src:url('../../preview/MiSans-preview.woff2') format('woff2');font-display:swap;font-weight:400}
@font-face{font-family:SoarMiSans;src:url('../../preview/MiSans-preview-medium.woff2') format('woff2');font-display:swap;font-weight:500 650}

.client-window{
  --k:1;--clear:.3;--blur:.7;--zoom:1;--ease:cubic-bezier(.2,.8,.2,1);
  --hover:color-mix(in srgb,var(--t1) 6.5%,transparent);--press-on:color-mix(in srgb,var(--t1) 12%,transparent);
  --hover-wash:color-mix(in srgb,var(--t1) 4%,transparent);--press-wash-on:color-mix(in srgb,var(--t1) 9%,transparent);
  --press:var(--press-on);--press-wash:var(--press-wash-on);
  --client-focus:var(--ink);
  /* 窗口大小 picks the window's size; 界面缩放 zooms everything in it. Under zoom a length in pixels is scaled and a
     percentage is not, so only the pixel sizes are divided by the zoom. */
  --win-w:980px;--win-h:600px;
  position:relative;isolation:isolate;container:cm/inline-size;display:flex;zoom:var(--zoom);width:min(calc(var(--win-w) / var(--zoom)),100%);height:calc(var(--win-h) / var(--zoom));overflow:hidden;
  border-radius:14px;box-shadow:0 40px 90px -30px var(--shadow),inset 0 0 0 1px var(--line2);
  -webkit-backdrop-filter:blur(calc(var(--blur)*24px));backdrop-filter:blur(calc(var(--blur)*24px));
  font:400 calc(13px*var(--k))/1.385 SoarMiSans,"Microsoft YaHei",sans-serif;color:var(--t1);text-align:left;
}
.client-window[data-size=compact]{--win-w:860px;--win-h:540px}
.client-window[data-size=roomy]{--win-w:1160px;--win-h:680px}
.client-window[data-size=full]{--win-w:100000px;--win-h:min(760px,calc(100svh - 96px))}
/* Ripples stand in for the press tint, as in the client; reduced motion keeps the tint. */
@media (prefers-reduced-motion:no-preference){.client-window:not([data-reduced=true]){--press:transparent;--press-wash:transparent}}
.client-window *,.client-window *::before,.client-window *::after{box-sizing:border-box}
.client-window :where(button,input){font:inherit;color:inherit;margin:0}
.client-window :where(button){border:0;background:none;padding:0;cursor:pointer;touch-action:manipulation;text-align:inherit}
.client-window :where(h3,h4,p){margin:0}
.client-window :where(h3,h4){font-family:inherit;letter-spacing:normal}
.client-window :where(a){text-decoration:none;color:inherit}
.client-window :focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.client-window svg.cm-i{display:block;flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.client-window svg.cm-i .f{fill:currentColor}
.client-window [hidden]{display:none!important}
.cm-ell{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cm-grow{flex:1;min-width:0}
.cm-t3{color:var(--t3)}
.cm-cap{font-size:calc(11px*var(--k));font-weight:500;line-height:1.28}
.cm-small{font-size:calc(12px*var(--k));line-height:1.34}
.client-window mark{background:none;color:var(--ink)}

/* ---- sidebar ---- */
.cm-side{position:relative;flex:none;display:flex;flex-direction:column;gap:2px;width:200px;padding:14px 10px 12px;overflow:hidden;background:var(--g-side);border-right:1px solid var(--line);transition:width .22s var(--ease)}
/* The sidebar slides between 200 and 60 wide while its content is laid out at the width it is heading for and clipped,
   so nothing is squeezed or re-centred on the way: entries keep their place and labels are revealed or cut off. */
.cm-side>:not(.cm-pill){width:180px}
.cm-brand{display:flex;align-items:flex-start;gap:10px;padding:0 0 14px 6px}
.cm-mark{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,var(--c1),var(--c2))}
.cm-mark img{width:20px;height:20px}
.cm-brand-words{display:flex;flex-direction:column;flex:1;min-width:0;white-space:nowrap}
.cm-brand-words strong{font-size:calc(15px*var(--k));font-weight:600;line-height:1.47}
.cm-brand-words span{font-size:calc(11px*var(--k));font-weight:500;color:var(--t3)}
.cm-nav{display:flex;flex-direction:column;gap:2px;flex:1;min-height:0}
.cm-nav-item{position:relative;display:flex;align-items:center;gap:10px;flex:none;height:34px;padding:0 12px;border-radius:8px;font-weight:500;color:var(--t2);white-space:nowrap;transition:color .2s var(--ease),background .1s}
.cm-nav-item:hover:not(.is-selected){background:var(--hover)}
.cm-nav-item:active:not(.is-selected){background:var(--press)}
.cm-nav-item.is-selected{color:var(--ink)}
.cm-nav-count{font-size:calc(11px*var(--k));color:var(--t3)}
.cm-nav-item.is-selected .cm-nav-count{color:color-mix(in srgb,var(--ink) 75%,transparent)}
.cm-nav-spacer{flex:1}
.cm-pill{position:absolute;left:0;top:0;width:180px;height:34px;border-radius:8px;background:var(--soft);pointer-events:none}
.cm-account{display:flex;align-items:center;gap:10px;flex:none;margin-top:2px;padding:8px 6px 2px;border-top:1px solid var(--line);white-space:nowrap}
.cm-account-words{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.cm-account-words strong{font-size:calc(12px*var(--k));font-weight:500;overflow:hidden;text-overflow:ellipsis}
.cm-account-status{display:flex;align-items:center;gap:5px;font-size:calc(11px*var(--k));font-weight:500;color:var(--t3)}
.cm-account-status i{flex:none;width:6px;height:6px;border-radius:50%;background:var(--t3)}
.cm-account[data-online=true] .cm-account-status i{background:var(--good)}
.client-avatar{display:block;flex:none;overflow:hidden;width:28px;height:28px;border-radius:7px;background:var(--s3) url('../../preview/steve.png') -28px -28px/224px auto;image-rendering:pixelated}
.client-avatar:not(:empty){background-image:none}
.client-avatar>*{display:block;width:100%;height:100%;border-radius:inherit;font-size:1em}
.client-window[data-collapsed=true] .cm-side{width:60px}
.client-window[data-collapsed=true] .cm-side>:not(.cm-pill){width:40px}
#preview-collapse>svg{grid-area:1/1;transition:opacity .22s var(--ease)}
#preview-collapse>svg+svg,.client-window[data-collapsed=true] #preview-collapse>svg{opacity:0}
.client-window[data-collapsed=true] #preview-collapse>svg+svg{opacity:1}
.client-window[data-collapsed=true] .cm-brand{flex-direction:column;align-items:center;padding:0 0 12px}
.client-window[data-collapsed=true] :is(.cm-brand-words,.cm-nav-label,.cm-nav-count,.cm-account-words){display:none}
.client-window[data-collapsed=true] :is(.cm-nav-item,.cm-account){justify-content:center;padding-left:0;padding-right:0}

/* ---- top bar and pages ---- */
.cm-main{position:relative;display:flex;flex-direction:column;flex:1;min-width:0;background:var(--g-win)}
.cm-main::before{content:"";position:absolute;inset:0 0 auto;height:160px;background:linear-gradient(var(--sheen),transparent);pointer-events:none}
.cm-top{position:relative;display:flex;align-items:center;gap:10px;flex:none;height:56px;padding:0 14px 0 22px;border-bottom:1px solid var(--line)}
.cm-title{display:flex;align-items:center;gap:10px;flex:1;min-width:0;white-space:nowrap}
.cm-title h3{flex:none}
.cm-title h3{font-size:calc(15px*var(--k));font-weight:600;line-height:1.47}
.cm-title span{font-size:calc(12px*var(--k));color:var(--t3);overflow:hidden;text-overflow:ellipsis}
.cm-field{display:flex;align-items:center;gap:6px;height:26px;padding:0 8px;border-radius:6px;background:var(--g-card);box-shadow:inset 0 0 0 1px var(--line);color:var(--t3);transition:box-shadow .1s}
.cm-field:focus-within{box-shadow:inset 0 0 0 1px var(--aline),0 0 0 3px var(--soft)}
.cm-field svg.cm-i{width:14px;height:14px}
.cm-field input{flex:1;min-width:0;width:100%;height:100%;padding:0;border:0;outline:0;background:none;color:var(--t1);font-size:calc(12px*var(--k))}
.cm-field input::placeholder{color:var(--t3);opacity:1}
.cm-field input:focus-visible{outline:0}
.cm-field input::-webkit-search-cancel-button{display:none}
.cm-search{flex:0 1 300px;min-width:0;height:32px;padding:0 4px 0 10px;border-radius:8px}
.cm-search input{font-size:calc(13px*var(--k))}
.cm-kbd{display:inline-flex;align-items:center;flex:none;height:17px;padding:0 5px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--line2);font-size:calc(11px*var(--k));font-weight:500;color:var(--t3);white-space:nowrap}
.cm-search .cm-kbd{margin-right:4px}
.cm-views{position:relative;flex:1;min-height:0;container:cmv/inline-size}
.cm-view{position:absolute;inset:0;display:flex;min-height:0}
.cm-view.is-entering{animation:cm-enter .32s var(--ease)}
.cm-title.is-entering{animation:cm-fade .32s var(--ease)}
@keyframes cm-enter{from{opacity:0;transform:translateY(6px)}}
/* Edge shades: --ft at the top once scrolled, --fb at the bottom while there is more (menu.js keeps them). */
@property --ft{syntax:"<number>";inherits:false;initial-value:0}
@property --fb{syntax:"<number>";inherits:false;initial-value:0}
.cm-scroll{--edge:min(20px,25%);flex:1;min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--s4) transparent;
  -webkit-mask-image:linear-gradient(rgb(0 0 0/calc(1 - var(--ft))),#000 var(--edge),#000 calc(100% - var(--edge)),rgb(0 0 0/calc(1 - var(--fb))));
  mask-image:linear-gradient(rgb(0 0 0/calc(1 - var(--ft))),#000 var(--edge),#000 calc(100% - var(--edge)),rgb(0 0 0/calc(1 - var(--fb))))}
.cm-fill,.cm-cos-empty{display:flex;flex:1;min-width:0;min-height:0}
.cm-pad{display:flex;flex-direction:column;gap:14px;padding:16px 20px 24px}

/* ---- controls ---- */
.cm-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;height:28px;padding:0 12px!important;border-radius:8px;font-size:calc(12px*var(--k));font-weight:500;white-space:nowrap;transition:background .1s}
.cm-btn svg.cm-i{width:14px;height:14px}
.cm-btn-lg{height:32px}
.cm-btn-secondary{background:var(--g-card)!important;box-shadow:inset 0 0 0 1px var(--line2)}
.cm-btn-secondary:hover,.cm-btn-ghost:hover{background-image:linear-gradient(var(--hover),var(--hover))}
.cm-btn-secondary:active,.cm-btn-ghost:active{background-image:linear-gradient(var(--press),var(--press))}
.cm-btn-primary{background:var(--fill)!important;color:var(--fg)!important}
.cm-btn-primary:hover{background-image:linear-gradient(color-mix(in srgb,var(--fg) 10%,transparent) 0 0)}
.cm-btn-primary:active{background-image:linear-gradient(color-mix(in srgb,var(--fg) 18%,transparent) 0 0)}
.cm-btn-danger{background:var(--danger)!important;color:var(--on-danger)!important}
.cm-btn-danger:hover{background-image:linear-gradient(color-mix(in srgb,var(--on-danger) 10%,transparent) 0 0)}
.cm-btn:disabled{opacity:.45;pointer-events:none}
.cm-iconbtn{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;color:var(--t2);transition:background .1s}
.cm-iconbtn-sm{width:24px;height:24px;border-radius:6px}
.cm-iconbtn-sm svg.cm-i{width:14px;height:14px}
.cm-iconbtn:hover{background:var(--hover)}
.cm-iconbtn:active{background:var(--press)}
.cm-link{display:inline-flex;align-items:center;gap:2px;border-radius:6px;font-size:calc(12px*var(--k));color:var(--t2)}
.cm-link svg.cm-i{width:14px;height:14px;color:var(--t3)}
.cm-link:hover{background:var(--hover)}
.cm-switch{position:relative;flex:none;width:34px;height:20px;border-radius:10px;background:var(--s4)!important;transition:background .14s var(--ease)}
.cm-switch::after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:var(--t2);transition:transform .14s var(--ease),background .14s var(--ease)}
.cm-switch[aria-checked=true]{background:var(--fill)!important}
.cm-switch[aria-checked=true]::after{background:var(--fg);transform:translateX(14px)}
.cm-switch-sm{width:28px;height:16px}
.cm-switch-sm::after{width:10px;height:10px}
.cm-switch-sm[aria-checked=true]::after{transform:translateX(12px)}
/* One line: chips that do not fit go behind "more" (menu.js fitChips). */
.cm-chips{display:flex;gap:6px;min-width:0;overflow:hidden;overflow:clip;overflow-clip-margin:4px}
.cm-chip{display:inline-flex;align-items:center;gap:6px;flex:none;height:28px;padding:0 11px!important;border-radius:8px;box-shadow:inset 0 0 0 1px var(--line);font-size:calc(12px*var(--k));color:var(--t2);white-space:nowrap;transition:background .14s var(--ease),color .14s var(--ease),box-shadow .14s var(--ease)}
.cm-chip svg.cm-i{width:14px;height:14px}
.cm-chip small{font-size:calc(11px*var(--k));font-weight:500;color:var(--t3)}
.cm-chip:hover{background:var(--hover)}
.cm-chip[aria-selected=true]{background:var(--t1);color:var(--s1o);box-shadow:none}
.cm-chip[aria-selected=true] small{color:color-mix(in srgb,var(--s1o) 60%,transparent)}
.cm-chip.is-empty:not([aria-selected=true]){opacity:.45}
.cm-chip[aria-pressed=true]{background:var(--soft);color:var(--ink);box-shadow:inset 0 0 0 1px var(--aline)}
.cm-select{display:inline-flex;align-items:center;gap:6px;flex:none;height:28px;padding:0 8px 0 10px!important;border-radius:8px;background:var(--g-card)!important;box-shadow:inset 0 0 0 1px var(--line);font-size:calc(12px*var(--k));white-space:nowrap}
.cm-select svg.cm-i{width:14px;height:14px;color:var(--t3)}
.cm-select:hover{background-image:linear-gradient(var(--hover),var(--hover))}
.cm-seg{display:inline-flex;gap:2px;flex:none;padding:2px;border-radius:8px;background:var(--g-ctl)}
.cm-seg button{display:grid;place-items:center;height:24px;padding:0 6px;border-radius:6px;font-size:calc(12px*var(--k));color:var(--t2);white-space:nowrap}
.cm-seg button svg.cm-i{width:14px;height:14px}
.cm-seg-text button{height:22px;padding:0 10px}
.cm-seg button:hover{background:var(--hover-wash)}
.cm-seg button[aria-pressed=true]{background:var(--s1o);color:var(--t1)}
.cm-seg.is-disabled{opacity:.45;pointer-events:none}
.cm-seg-col{flex-direction:column}
.cm-badge{display:inline-flex;align-items:center;gap:5px;flex:none;height:20px;padding:0 6px;border-radius:6px;background:var(--s3);font-size:calc(11px*var(--k));font-weight:500;color:var(--t2);white-space:nowrap}
.cm-badge i{width:5px;height:5px;border-radius:50%;background:var(--t2)}
.cm-tile{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:8px;background:var(--s3);color:var(--t2);transition:background .14s var(--ease),color .14s var(--ease)}
.cm-tile-lg{width:40px;height:40px;border-radius:10px}
.cm-tile-lg svg.cm-i{width:20px;height:20px}
.cm-tile-sm{width:28px;height:28px}
.cm-tile-xs{width:24px;height:24px;border-radius:6px}
.cm-tile-xs svg.cm-i{width:14px;height:14px}
.cm-tile.is-soft{background:var(--soft);color:var(--ink)}
[data-on=true]>.cm-tile-lit,[data-on=true]>*>.cm-tile-lit{background:var(--fill);color:var(--fg)}
.cm-star{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:6px;color:var(--t3)}
.cm-star svg.cm-i{width:14px;height:14px}
.cm-star:hover{background:var(--hover)}
.cm-star[aria-pressed=true]{color:var(--star)}
.cm-star[aria-pressed=true] svg.cm-i{fill:currentColor}
.cm-slider{-webkit-appearance:none;appearance:none;flex:none;width:112px;height:18px;margin:0;padding:0;border-radius:4px;background:none;cursor:pointer}
.cm-slider::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(var(--fill) 0 0) 0/var(--f,0%) 100% no-repeat var(--s4)}
.cm-slider::-moz-range-track{height:4px;border-radius:2px;background:linear-gradient(var(--fill) 0 0) 0/var(--f,0%) 100% no-repeat var(--s4)}
.cm-slider::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border:0;border-radius:50%;background:var(--t1);box-shadow:0 1px 1px rgb(0 0 0/.28)}
.cm-slider::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--t1);box-shadow:0 1px 1px rgb(0 0 0/.28)}
.cm-value{display:grid;place-items:center;flex:none;width:58px;height:24px;border-radius:6px;background:var(--g-card);box-shadow:inset 0 0 0 1px var(--line);font-size:calc(12px*var(--k))}
.cm-panel{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:10px;background:var(--g-card);box-shadow:inset 0 0 0 1px var(--line)}
.cm-panel-head{display:flex;align-items:center;gap:8px;min-height:22px}
.cm-panel-head strong{flex:1;min-width:0;font-weight:500}
.cm-empty{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;padding:40px 16px;text-align:center}
.cm-empty>svg.cm-i{width:28px;height:28px;color:var(--t3)}
.cm-empty strong{font-size:calc(15px*var(--k));font-weight:600}
.cm-empty p{max-width:360px;font-size:calc(12px*var(--k));color:var(--t3)}

/* ---- layers: menus, search results, toasts ---- */
.cm-layer{position:absolute;inset:0;z-index:30;pointer-events:none}
.cm-layer>*{pointer-events:auto}
.cm-menu{position:absolute;display:flex;flex-direction:column;min-width:200px;max-width:calc(100% - 16px);max-height:calc(100% - 16px);overflow:auto;padding:5px;border-radius:10px;background:var(--s2o);box-shadow:inset 0 0 0 1px var(--line2),0 18px 48px -12px var(--shadow);animation:cm-pop .14s var(--ease)}
@keyframes cm-pop{from{opacity:0;transform:translateY(-4px)}}
.cm-menu-item{display:flex;align-items:center;gap:10px;flex:none;height:32px;padding:0 10px!important;border-radius:8px;white-space:nowrap}
.cm-menu-item svg.cm-i{width:14px;height:14px;color:var(--t2)}
.cm-menu-label{flex:1;min-width:0}
.cm-menu-item small{font-size:calc(11px*var(--k));font-weight:500;color:var(--t3)}
.cm-menu-item:hover,.cm-menu-item.is-active{background:var(--s3)}
.cm-menu-item.is-danger,.cm-menu-item.is-danger svg.cm-i{color:var(--danger)}
.cm-menu-item:disabled{opacity:.4;pointer-events:none}
.cm-menu hr{flex:none;height:1px;margin:0 6px;border:0;background:var(--line)}
.cm-menu-title{flex:none;max-width:260px;height:24px;padding:0 10px;font-size:calc(11px*var(--k));font-weight:500;line-height:24px;color:var(--t3)}
/* Controls.confirm: next to what asked for it, Cancel first. */
.cm-confirm{position:absolute;display:flex;flex-direction:column;gap:8px;width:268px;max-width:calc(100% - 16px);padding:14px;border-radius:10px;background:var(--s2o);box-shadow:inset 0 0 0 1px var(--line2),0 18px 48px -12px var(--shadow);animation:cm-pop .14s var(--ease)}
.cm-confirm strong{font-weight:500}
.cm-confirm p{font-size:calc(12px*var(--k));color:var(--t2)}
.cm-confirm-actions{display:flex;justify-content:flex-end;gap:8px}
/* Dialogs (Layer.MODAL) over a scrim. */
.cm-scrim{position:absolute;inset:0;display:grid;place-items:center;padding:16px;background:var(--scrim);animation:cm-fade .16s var(--ease)}
@keyframes cm-fade{from{opacity:0}}
.cm-dialog{display:flex;flex-direction:column;gap:12px;width:min(380px,100%);max-height:100%;overflow:auto;padding:18px;border-radius:14px;background:var(--s2o);box-shadow:inset 0 0 0 1px var(--line2),0 24px 64px -16px var(--shadow);animation:cm-rise .18s var(--ease)}
@keyframes cm-rise{from{opacity:0;transform:translateY(8px) scale(.98)}}
.cm-dialog.is-wide{width:min(440px,100%);gap:16px}
.cm-dialog-title{font-size:calc(15px*var(--k));font-weight:600;line-height:1.47}
.cm-dialog-head{display:flex;align-items:center;gap:12px}
.cm-dialog-body{display:flex;flex-direction:column;gap:8px}
.cm-dialog-body.cm-form{gap:12px}
.cm-dialog-actions{display:flex;justify-content:flex-end;gap:8px}
.cm-field-lg{height:32px;padding:0 10px;border-radius:8px}
.cm-field-lg input{font-size:calc(13px*var(--k))}
.cm-field.is-locked{gap:8px;background:var(--g-ctl);box-shadow:none;color:var(--t2);cursor:default}
.cm-fieldblock{display:flex;flex-direction:column;gap:6px}
.cm-fieldblock>span{font-weight:500;color:var(--t2)}
.cm-problem{margin-top:-4px;color:var(--danger)}
.cm-what{display:flex;align-items:center;gap:12px}
.cm-what strong{font-weight:500}
.cm-tile-danger{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger)}
.cm-picons{display:flex;flex-wrap:wrap;gap:8px}
.cm-picon-pick{position:relative;width:36px;height:36px;border-radius:8px;opacity:.6;transition:opacity .14s var(--ease)}
.cm-picon-pick:hover{opacity:.85}
.cm-picon-pick[aria-checked=true]{opacity:1;outline:2px solid var(--ink);outline-offset:3px}
.cm-picon-pick img{display:block;width:100%;height:100%;border-radius:7px;image-rendering:pixelated}
/* Ripple: waves on the layer, clipped to the pressed control's shape. */
.cm-layer>.cm-ripple{position:absolute;overflow:hidden;pointer-events:none;--rc:var(--press-on)}
.cm-ripple.is-wash{--rc:var(--press-wash-on)}
.cm-ripple.is-accent{--rc:color-mix(in srgb,var(--fg) 18%,transparent)}
.cm-ripple.is-danger{--rc:color-mix(in srgb,var(--on-danger) 18%,transparent)}
.cm-ripple i{position:absolute;border-radius:50%;background:var(--rc)}
.cm-spinner{width:18px;height:18px;border-radius:50%;border:2px solid var(--s4);border-top-color:var(--t2);animation:cm-spin .8s linear infinite}
@keyframes cm-spin{to{transform:rotate(1turn)}}
.cm-results{width:360px;padding:6px;border-radius:12px}
.cm-results-head{padding:8px 8px 4px;font-size:calc(11px*var(--k));font-weight:500;color:var(--t3)}
.cm-result{height:36px;padding:0 8px!important}
.cm-result .cm-result-text{display:flex;align-items:baseline;gap:6px;flex:1;min-width:0}
.cm-result small{font-size:calc(12px*var(--k));font-weight:400}
.cm-results-foot{display:flex;align-items:center;gap:14px;margin-top:2px;padding:8px 8px 4px;border-top:1px solid var(--line)}
.cm-results-foot span{display:flex;align-items:center;gap:5px;font-size:calc(11px*var(--k));font-weight:500;color:var(--t3)}
.cm-toast{position:absolute;left:50%;bottom:18px;display:flex;align-items:center;gap:12px;max-width:calc(100% - 24px);padding:8px 14px;border-radius:10px;background:var(--t1);color:var(--s1o);font-size:calc(12px*var(--k));transform:translateX(-50%);animation:cm-toast .2s var(--ease)}
.cm-toast button{display:flex;align-items:center;gap:6px;height:24px;margin:-2px -6px -2px 0;padding:0 8px;border-radius:6px;font-weight:500;white-space:nowrap}
.cm-toast button:hover{background:rgb(127 127 127/.18)}
.cm-toast .cm-kbd{color:color-mix(in srgb,var(--s1o) 60%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--s1o) 60%,transparent)}
@keyframes cm-toast{from{opacity:0;transform:translate(-50%,8px)}}

/* ---- home ---- */
.cm-hello{position:relative;display:flex;align-items:center;gap:16px;padding:16px 18px;border-radius:14px;background:radial-gradient(circle min(320px,50%) at 40px 50%,color-mix(in srgb,var(--c1) 20%,transparent),transparent),radial-gradient(circle min(260px,40%) at calc(100% - 60px) 0,color-mix(in srgb,var(--c2) 14%,transparent),transparent),var(--g-card);box-shadow:inset 0 0 0 1px var(--line)}
.cm-hello .client-avatar{width:52px;height:52px;border-radius:10px;background-position:-52px -52px;background-size:416px auto}
.cm-hello h4{font-size:calc(20px*var(--k));font-weight:600;line-height:1.4}
.cm-hello p{margin-top:3px;font-size:calc(12px*var(--k));color:var(--t2)}
.cm-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cm-shortcut{display:flex;flex-direction:column;gap:12px;padding:14px!important;border-radius:10px;background:var(--g-card)!important;box-shadow:inset 0 0 0 1px var(--line);transition:background .1s}
.cm-shortcut:hover{background-image:linear-gradient(var(--hover),var(--hover))}
.cm-shortcut-head{display:flex;align-items:flex-start;justify-content:space-between}
.cm-shortcut-head>svg.cm-i{width:14px;height:14px;color:var(--t3)}
.cm-shortcut strong{display:block;font-size:calc(15px*var(--k));font-weight:600;line-height:1.47}
.cm-shortcut small{display:block;margin-top:1px;font-size:calc(11px*var(--k));font-weight:500;color:var(--t3)}
.cm-home-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:12px;align-items:start}
.cm-home-grid>div{display:flex;flex-direction:column;gap:12px;min-width:0}
.cm-quick{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.cm-quick-item{position:relative;display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:var(--g-well);box-shadow:inset 0 0 0 1px var(--line)}
.cm-quick-item:hover{background-image:linear-gradient(var(--hover-wash),var(--hover-wash))}
.cm-quick-item .cm-switch{position:relative}
.cm-change{display:flex;align-items:center;gap:8px;padding:7px 0;font-size:calc(12px*var(--k))}
.cm-change+.cm-change{border-top:1px solid var(--line)}
.cm-discord{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;background:var(--g-card);box-shadow:inset 0 0 0 1px var(--line)}
.cm-discord strong{display:block;font-weight:500}

/* ---- modules ---- */
.cm-mods{display:flex;flex-direction:column;flex:1;min-width:0;padding:16px 13px 0 20px}
.cm-toolbar{display:flex;align-items:center;gap:6px;padding:10px 7px 14px 0}
.cm-mod-scroll{padding:0 7px 24px 0;scrollbar-gutter:stable}
.cm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.cm-list{display:flex;flex-direction:column;gap:6px}
.cm-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:10px;background:var(--g-card);box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow .1s}
.cm-card::before{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle 140px at 28px 28px,color-mix(in srgb,var(--fill) 12%,transparent),transparent);opacity:0;transition:opacity .14s var(--ease);pointer-events:none}
.cm-card[data-on=true]::before{opacity:1}
.cm-card:hover{box-shadow:inset 0 0 0 1px var(--line2);background-image:linear-gradient(var(--hover-wash),var(--hover-wash))}
.cm-card.is-selected{box-shadow:inset 0 0 0 1px var(--aline)}
.cm-card-open{position:absolute;inset:0;border-radius:inherit}
.cm-card-open:active{background:var(--press-wash)}
.cm-card-head,.cm-card-foot{position:relative;display:flex;align-items:center;gap:10px;pointer-events:none}
.cm-card-head>button,.cm-card-row>button:not(.cm-card-open){pointer-events:auto}
.cm-card-name{flex:1;font-weight:500}
.cm-card-foot{gap:8px;min-height:20px}
.cm-card-desc{flex:1;font-size:calc(12px*var(--k));color:var(--t2)}
.cm-badges{display:flex;gap:4px;flex:none}
.cm-card .cm-star:not([aria-pressed=true]){opacity:0}
.cm-card:is(:hover,:focus-within) .cm-star{opacity:1}
.cm-card-row{flex-direction:row;align-items:center;gap:10px;padding:8px 12px;pointer-events:none}
.cm-card-row>*{position:relative}
.cm-card-row>.cm-card-open{position:absolute;pointer-events:auto}
.cm-card-row .cm-card-text{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.cm-card-row::before{background:radial-gradient(circle 140px at 28px 50%,color-mix(in srgb,var(--fill) 12%,transparent),transparent)}
.cm-inspector{flex:none;width:0;overflow:hidden;transition:width .2s var(--ease)}
.cm-inspector.is-open{width:340px}
.cm-inspector-inner{display:flex;flex-direction:column;width:340px;height:100%;border-left:1px solid var(--line)}
.cm-insp-head{display:flex;align-items:center;gap:10px;flex:none;padding:14px 12px 12px 16px;border-bottom:1px solid var(--line)}
.cm-insp-head h4{font-size:calc(15px*var(--k));font-weight:600;line-height:1.47}
.cm-insp-head .cm-star,.cm-insp-head .cm-iconbtn{margin-left:-6px}
.cm-insp-body{display:flex;flex-direction:column;gap:8px;padding:12px 16px 24px}
.cm-enable{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;background:var(--g-card);box-shadow:inset 0 0 0 1px var(--line)}
.cm-enable p{margin-top:2px}
.cm-hud-row{display:flex;align-items:center;gap:10px;padding:10px 12px!important;border-radius:10px;box-shadow:inset 0 0 0 1px var(--line2);font-size:calc(12px*var(--k));color:var(--t2)}
.cm-hud-row svg.cm-i{width:14px;height:14px}
.cm-hud-row:hover{background:var(--hover)}
.cm-note{display:flex;align-items:center;gap:8px;padding-top:8px;font-size:calc(12px*var(--k));color:var(--t3)}
.cm-note svg.cm-i{width:14px;height:14px}
.cm-set-title{padding-top:18px;color:var(--t3)}
.cm-set{display:flex;align-items:center;gap:8px;min-height:42px;padding:7px 0}
.cm-set+.cm-set{border-top:1px solid var(--line)}
.cm-set-name{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.cm-set-name i{flex:none;width:6px;height:6px;border-radius:50%;background:var(--t2)}
.cm-set:not([data-modified=true]) .cm-set-name i{display:none}
.cm-set-control{display:flex;align-items:center;gap:8px;flex:none}
.cm-reset{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:6px;color:var(--t2);opacity:0}
.cm-reset svg.cm-i{width:14px;height:14px}
.cm-reset:hover{background:var(--hover)}
.cm-set:not([data-modified=true]) .cm-reset{visibility:hidden}
.cm-set:is(:hover,:focus-within) .cm-reset{opacity:1}

/* ---- cosmetics ---- */
.cm-cos{display:flex;flex-direction:column;gap:12px;flex:1;min-width:0;padding:16px 20px 12px}
.cm-cos-top{display:flex;align-items:center;gap:12px}
.cm-cos-top .cm-field{flex:0 1 180px;min-width:110px}
.cm-cos-body{display:flex;gap:12px;flex:1;min-height:0}
.cm-cape-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;padding:0 6px 16px 0}
.cm-cape{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 6px!important;border-radius:10px;background:var(--g-card)!important;box-shadow:inset 0 0 0 1px var(--line);font-size:calc(12px*var(--k));font-weight:500;text-align:center}
.cm-cape:hover{background-image:linear-gradient(var(--hover-wash),var(--hover-wash))}
.cm-cape[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--aline)}
.cm-cape-art{display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;flex:none;width:70px;height:105px;color:var(--t3);font-size:calc(11px*var(--k));font-weight:400;line-height:1.3}
.cm-cape-art img{width:100%;height:100%;min-height:0;object-fit:contain;image-rendering:pixelated}
.cm-cape-art svg.cm-i{width:24px;height:24px}
.cm-cape-name{max-width:100%}
.cm-cape-mark{position:absolute;left:6px;top:6px;height:16px;padding:0 5px;border-radius:4px;background:linear-gradient(90deg,var(--c1),var(--c2));color:var(--fg);font-size:calc(11px*var(--k));line-height:16px}
.cm-cos-side{display:flex;flex-direction:column;gap:10px;flex:none;width:270px;padding:14px;border-radius:10px;background:var(--g-card);box-shadow:inset 0 0 0 1px var(--line)}
/* The stage: the 3D try-on, the front or the whole texture, sized from the room it has (a size container). */
.cm-stage{position:relative;container-type:size;display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;flex:1;min-height:96px;padding:10px;border-radius:10px;background:var(--g-well);color:var(--t3);font-size:calc(12px*var(--k));text-align:center;overflow:hidden}
.cm-front{display:grid;place-items:center;width:100%;height:100%;min-height:0}
.cm-front img{height:min(300px,100cqh);max-width:100%;aspect-ratio:10/17;object-fit:contain;image-rendering:pixelated}
.cm-front>svg.cm-i{width:28px;height:28px}
.cm-flat{display:grid;place-items:center;width:100%;height:100%}
.cm-flat img{width:min(100cqw - 4px,(100cqh - 4px)*2);aspect-ratio:2;border-radius:6px;background:var(--s1o);object-fit:contain;image-rendering:pixelated}
.cm-stage .player-model{--u:min(calc((100cqh - 4px) / 33),calc((100cqw - 4px) / 20));position:absolute;inset:0;width:100%;height:100%}
.cm-stage .player-floor{background:radial-gradient(closest-side,rgb(0 0 0/.28),transparent)}
.cm-viewswitch{position:absolute;top:8px;right:8px;z-index:1}
.cm-cos-side h4{font-size:calc(15px*var(--k));font-weight:600}
.cm-cos-side p{margin-top:4px;font-size:calc(12px*var(--k));color:var(--t3)}
.cm-wear{width:100%}
.cm-wear.is-worn{background:var(--soft)!important;color:var(--ink)!important;box-shadow:inset 0 0 0 1px var(--aline);pointer-events:none}

/* ---- profiles ---- */
.cm-profiles{display:flex;flex-direction:column;gap:12px;flex:1;min-width:0;padding:16px 0 12px}
.cm-phead,.cm-pfoot{display:flex;align-items:center;gap:8px;padding:0 20px}
.cm-ptabs{display:flex;gap:2px;flex:none;padding:3px;border-radius:10px;background:var(--g-ctl)}
.cm-ptab{display:flex;align-items:center;gap:6px;height:26px;padding:0 12px!important;border-radius:8px;font-size:calc(12px*var(--k));color:var(--t2);white-space:nowrap}
.cm-ptab svg.cm-i{width:14px;height:14px;color:var(--t3)}
.cm-ptab small{font-size:calc(11px*var(--k));font-weight:500;color:var(--t3)}
.cm-ptab:hover:not([aria-selected=true]){background:var(--hover)}
.cm-ptab[aria-selected=true]{background:var(--s1o);box-shadow:inset 0 0 0 1px var(--line);color:var(--t1);font-weight:500}
.cm-ptab[aria-selected=true] svg.cm-i{color:var(--ink)}
.cm-psearch{flex:1 1 240px;min-width:110px;max-width:240px;height:28px;padding-right:2px}
.cm-pactions{display:flex;align-items:center;gap:6px;flex:none}
.cm-pbody{display:flex;flex:1;min-height:0}
.cm-pbody>.cm-scroll{padding:0 12px 8px 20px;scrollbar-gutter:stable}
.cm-pcontent{display:flex;flex-direction:column;gap:12px}
.cm-hero{display:flex;flex-direction:column;gap:12px;padding:16px 16px 12px;border-radius:14px;background:radial-gradient(circle min(260px,60%) at 50px 46px,color-mix(in srgb,var(--c1) 16%,transparent),transparent),var(--g-card);box-shadow:inset 0 0 0 1px var(--line)}
.cm-hero hr{flex:none;height:1px;margin:0;border:0;background:var(--line)}
.cm-hero-top{display:flex;align-items:center;gap:16px}
.cm-hero-pic{flex:none;border-radius:10px}
.cm-hero-pic:hover img{filter:brightness(1.08)}
.cm-hero-words{display:flex;flex-direction:column;gap:6px}
.cm-hero-name{display:flex;align-items:center;gap:8px;min-width:0}
.cm-hero-name h4{font-size:calc(20px*var(--k));font-weight:600;line-height:1.4}
.cm-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;min-width:0}
.cm-meta-item{display:flex;align-items:center;gap:5px;min-width:0;font-size:calc(12px*var(--k));color:var(--t2)}
.cm-meta-item svg.cm-i,.cm-pstat svg.cm-i{width:13px;height:13px;color:var(--t3)}
.cm-pstats{display:flex;flex-wrap:wrap;gap:8px}
.cm-pstat{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:6px;background:var(--g-ctl);font-size:calc(11px*var(--k));font-weight:500}
.cm-pstat svg.cm-i{color:var(--ink)}
.cm-using{display:inline-flex;align-items:center;gap:6px;flex:none;height:32px;padding:0 12px;border-radius:8px;background:var(--soft);box-shadow:inset 0 0 0 1px var(--aline);color:var(--ink);font-size:calc(12px*var(--k));font-weight:500;white-space:nowrap}
.cm-using svg.cm-i{width:14px;height:14px}
.cm-hero-actions{display:flex;align-items:center;gap:2px;min-width:0;overflow:hidden;overflow:clip;overflow-clip-margin:4px}
.cm-hero-act.is-danger{color:var(--danger)}
.cm-hero-act.is-danger:hover{background:color-mix(in srgb,var(--danger) 10%,transparent)}
.cm-hero-actions.is-icons .cm-hero-act{width:30px;height:30px;padding:0!important}
.cm-hero-actions.is-icons .cm-hero-act span{display:none}
.cm-hero-actions.is-icons .cm-hero-act svg.cm-i{width:16px;height:16px}
.cm-psection{display:flex;align-items:baseline;gap:8px;padding:8px 0 0 2px}
.cm-psection strong{font-weight:500}
.cm-psection small{font-size:calc(12px*var(--k));color:var(--t3)}
.cm-pnone{padding:16px 0;text-align:center}
.cm-pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;padding-bottom:4px}
.cm-pcard{display:flex;align-items:center;gap:12px;height:62px;padding:0 12px!important;border-radius:10px;background:var(--g-card)!important;box-shadow:inset 0 0 0 1px var(--line);text-align:left}
.cm-pcard:hover{background-image:linear-gradient(var(--hover),var(--hover))}
.cm-pcard:active{background-image:linear-gradient(var(--press-wash),var(--press-wash))}
.cm-pcard.is-selected{box-shadow:inset 0 0 0 1px var(--aline),0 0 0 1px var(--aline)}
.cm-pcard-words{display:flex;flex-direction:column;gap:1px}
.cm-pcard-words strong{font-weight:500}
.cm-pcard-words small{font-size:calc(11px*var(--k));font-weight:500;color:var(--t3)}
.cm-pcard-new{justify-content:center;gap:8px;background:none!important;box-shadow:inset 0 0 0 1px var(--line2);font-size:calc(12px*var(--k));color:var(--t2)}
.cm-pcard-new svg.cm-i{color:var(--t3)}
.cm-badge-soft{background:var(--soft);color:var(--ink)}
.cm-pstar{display:grid;flex:none;color:var(--star)}
.cm-pstar svg.cm-i{width:14px;height:14px;fill:currentColor}
.cm-picon{display:block;flex:none;border-radius:6px;background:var(--s3);image-rendering:pixelated}
.cm-picon.is-lg{border-radius:10px}
.cm-pstate{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;flex:1;padding:40px 16px;text-align:center}
.cm-pstate>svg.cm-i{width:28px;height:28px;color:var(--t3)}
.cm-pstate p{max-width:320px;font-size:calc(12px*var(--k));color:var(--t2)}
.cm-pfoot{justify-content:space-between;min-height:24px}
.cm-pstatus{display:flex;align-items:center;gap:8px;min-width:0;font-size:calc(12px*var(--k));color:var(--t3)}
.cm-pstatus i{flex:none;width:6px;height:6px;margin:0 3px;border-radius:50%;background:var(--t3)}
.cm-pstatus i[data-tone=good]{background:var(--good)}
.cm-legacy{display:flex;align-items:center;gap:12px;padding-top:12px}

/* ---- settings ---- */
.cm-settings{display:flex;flex-direction:column;gap:4px;max-width:620px}
.cm-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}
.cm-tabs button{position:relative;height:34px;padding:0 12px;border-radius:6px;color:var(--t2);white-space:nowrap}
.cm-tabs button:hover{background:var(--hover-wash)}
.cm-tabs button[aria-selected=true]{color:var(--t1)}
.cm-tabs button[aria-selected=true]::after{content:"";position:absolute;inset:auto 0 0;height:2px;border-radius:1px;background:var(--t1)}
.cm-tab-body{display:flex;flex-direction:column;gap:12px;padding-top:12px}
.cm-themes{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.cm-theme{display:flex;flex-direction:column;gap:6px;min-width:0;border-radius:8px;font-size:calc(11px*var(--k));font-weight:500;color:var(--t3);text-align:center}
.cm-theme[aria-pressed=true]{color:var(--t1)}
.cm-theme-art{position:relative;display:block;height:46px;border-radius:8px;overflow:hidden;background:linear-gradient(90deg,var(--p-base) 28%,var(--p-s1) 0);box-shadow:inset 0 0 0 1px var(--p-line2)}
.cm-theme[aria-pressed=true] .cm-theme-art{outline:2px solid var(--ink);outline-offset:2px}
.cm-theme-art i{position:absolute;border-radius:2px}
.cm-theme-art i:nth-child(1){left:5px;top:7px;width:calc(28% - 10px);height:5px;background:var(--c1)}
.cm-theme-art i:nth-child(2){left:5px;top:17px;width:calc(28% - 12px);height:3px;background:var(--p-t3);box-shadow:0 8px var(--p-t3),0 16px var(--p-t3)}
.cm-theme-art i:nth-child(3),.cm-theme-art i:nth-child(4){top:8px;bottom:8px;width:calc(36% - 9px);border-radius:4px;background:linear-gradient(var(--p-t1) 0 0) 4px 5px/60% 3px no-repeat,linear-gradient(var(--p-t3) 0 0) 4px 11px/40% 3px no-repeat,var(--p-s2)}
.cm-theme-art i:nth-child(3){left:calc(28% + 6px)}
.cm-theme-art i:nth-child(4){right:6px}
.cm-accent-label{display:flex;justify-content:space-between;padding-top:8px}
.cm-accents{display:grid;grid-template-columns:repeat(auto-fill,minmax(28px,1fr));gap:8px;justify-items:center;padding:4px 0}
.cm-accent{width:22px;height:22px;border-radius:50%;background:linear-gradient(90deg,var(--a1),var(--a2))!important}
.cm-accent[aria-pressed=true]{outline:2px solid var(--t1);outline-offset:3px}
.cm-pref{display:flex;align-items:center;gap:12px;min-height:40px}
.cm-pref>div:first-child{flex:1;min-width:0}
.cm-pref .cm-slider{width:150px}
.cm-pref output{width:40px;font-size:calc(12px*var(--k));color:var(--t2);text-align:right}
.cm-pref-control{display:flex;align-items:center;gap:8px;flex:none}
.cm-langs{display:flex;flex-direction:column;gap:2px;padding-top:8px}
.cm-lang{display:flex;align-items:center;gap:12px;height:44px;padding:0 12px!important;border-radius:8px}
.cm-lang:hover{background:var(--hover)}
.cm-lang img{flex:none;width:30px;height:20px;border-radius:3px;object-fit:cover;background:var(--s3)}
.cm-lang svg.cm-i{width:14px;height:14px;color:var(--ink)}
.cm-lang[aria-pressed=true]{background:var(--g-card);box-shadow:inset 0 0 0 1px var(--aline)}
.cm-lang:not([aria-pressed=true]) svg.cm-i{visibility:hidden}
.cm-row-card{display:flex;align-items:center;gap:10px;padding:12px;border-radius:10px;background:var(--g-card);box-shadow:inset 0 0 0 1px var(--line)}
.cm-row-card>svg.cm-i{width:14px;height:14px;color:var(--t2)}

/* ---- narrow windows: the client's own compact rules, driven by the trial's width ---- */
@container cm (max-width:860px){
  .cm-title{flex:1 0 auto}
  .cm-title span{display:none}
  .cm-toolbar .cm-chip span{display:none}
  .cm-inspector{position:absolute;inset:0 0 0 auto;z-index:5;background:var(--s1o);box-shadow:-18px 0 48px -24px var(--shadow)}
  .cm-inspector.is-open,.cm-inspector-inner{width:min(340px,100cqw)}
}
@container cm (max-width:700px){
  .cm-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cm-home-grid{grid-template-columns:minmax(0,1fr)}
  .cm-cos-body{flex-direction:column}
  .cm-cos-side{flex-direction:row;align-items:center;width:auto;padding:10px}
  .cm-cos-side .cm-stage,.cm-cos-side p{display:none}
  .cm-cos-side>div{flex:1;min-width:0}
  .cm-wear{width:auto}
  .cm-themes{grid-template-columns:repeat(4,minmax(0,1fr))}
  .cm-results{width:min(360px,100cqw - 16px)}
  .cm-phead{flex-wrap:wrap}
  .cm-phead>.cm-grow{display:none}
  .cm-psearch{order:3;flex:1 1 100%;max-width:none}
  .cm-pactions{margin-left:auto}
}
@container cm (max-width:520px){
  .cm-top{padding:0 10px 0 14px}
  .cm-search .cm-kbd,#preview-edit-hud span{display:none}
  #preview-edit-hud{padding:0 9px!important}
  .cm-pad{padding:14px 12px 24px}
  .cm-mods{padding:14px 5px 0 12px}
  .cm-cos{padding:14px 12px 10px}
  .cm-cos-top{flex-direction:column;align-items:stretch;gap:8px}
  .cm-cos-top .cm-field{flex:none}
  .cm-pref{flex-wrap:wrap}
  .cm-pref .cm-slider{width:110px}
  .cm-set .cm-slider{width:84px}
  .cm-hello{padding:14px}
  .cm-hello h4{font-size:calc(17px*var(--k))}
  .cm-phead,.cm-pfoot{padding:0 12px}
  .cm-pbody>.cm-scroll{padding:0 6px 8px 12px}
  .cm-ptab{padding:0 9px!important}
  .cm-ptab span{display:none}
  .cm-ptab[aria-selected=true] span{display:inline}
  .cm-hero-top{flex-wrap:wrap}
  .cm-hero-top>.cm-btn,.cm-using{order:3;width:100%;justify-content:center}
  .cm-legacy{flex-direction:column;align-items:stretch}
}
.client-window[data-reduced=true] *,.client-window[data-reduced=true] *::before,.client-window[data-reduced=true] *::after{transition:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){.client-window *,.client-window *::before,.client-window *::after{transition:none!important;animation:none!important}}
