/* The client menu, one em = one design unit of the 834 x 522 panel (SettingsPanel / MenuControls in the client). */
@font-face { font-family: "Kyntrace UI"; src: url("/assets/menu-ui.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Kyntrace Nunito"; src: url("/assets/menu-nunito.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Kyntrace Icons"; src: url("/assets/menu-icons.woff") format("woff"); font-display: block; }

.km-host { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.km-host::-webkit-scrollbar { display: none; }
.km { --u: max(calc(100cqw / 834), .84px); font-size: var(--u); width: 834em; height: 522em; margin: 0 auto; color: #fff;
  font-family: "Kyntrace UI", var(--body); line-height: 1.2; opacity: 0; transition: opacity .6s var(--ease);
  user-select: none; text-align: left; }
.km.is-ready { opacity: 1; }
.km button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.km button:focus-visible { outline: 1px solid rgba(255, 255, 255, .6); outline-offset: 1px; }
.km-ic { font-family: "Kyntrace Icons"; font-style: normal; font-weight: 400; line-height: 1; display: inline-grid; place-items: center; width: 1em; height: 1em; -webkit-text-stroke: 0; }

/* panel: dark glass, a light sheen at the top, hairlines that fade at their ends */
.km-panel { position: relative; width: 100%; height: 100%; border-radius: 15em; background: rgba(11, 11, 11, .95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30em 80em -20em rgba(0, 0, 0, .8); overflow: hidden; }
.km-sheen { position: absolute; left: 0; right: 0; top: 0; height: 90em; background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, 0)); pointer-events: none; }
.km-topline { position: absolute; left: 40em; right: 40em; top: 1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15) 25%, rgba(255, 255, 255, .15) 75%, transparent); }
.km-vline { position: absolute; left: 180em; top: 8em; bottom: 8em; width: 1px; background: linear-gradient(transparent, #2b2b2b 18%, #2b2b2b 82%, transparent); }
.km-hline { position: absolute; left: 185em; right: 5em; top: 40em; height: 1px; background: linear-gradient(90deg, transparent, #444 18%, #444 82%, transparent); }

/* sidebar */
.km-side { position: absolute; left: 0; top: 0; bottom: 0; width: 180em; font-family: "Kyntrace Nunito", var(--body); }
.km-logo { position: absolute; left: 16em; top: 13em; display: flex; align-items: center; }
.km-logo img { width: 23em; height: 23em; }
.km-logo span { font-size: 16em; margin-left: .45em; }
.km-search { position: absolute; left: 10em; top: 43em; width: 160em; height: 21em; border-radius: 5em; cursor: text;
  display: flex; align-items: center; padding: 0 5em 0 23em; background: #101012;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .17); }
.km-search:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .44); }
.km-search .km-ic { position: absolute; left: calc(5.5 * var(--u)); top: 50%; transform: translateY(-50%);
  font-size: calc(12 * var(--u)); color: #a8a8ad; pointer-events: none; }
.km-search input { min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0;
  background: transparent; color: #fafafa; font: inherit; font-size: calc(10.5 * var(--u)); }
.km-search input::placeholder { color: #929296; opacity: 1; }
.km-list { position: absolute; left: 0; top: 0; width: 180em; height: 485em; clip-path: inset(69em 0 0 0); }
.km button.km-group, .km button.km-tab { position: absolute; left: 10em; top: 0; width: 160em; display: flex; align-items: center; }
.km button.km-group { height: calc(var(--groupHeader) * 1em); padding-left: 2em; color: #a8a8ad; transition: color .16s; }
.km-group span { font-size: 10.5em; }
.km button.km-group:hover, .km button.km-group.is-on { color: #f3f3f3; }
.km button.km-tab { height: calc(var(--tabHeight) * 1em); padding: 0 20em 0 calc(var(--textInset) * 1em);
  border-radius: 5em; color: #c9c9ce;
  transition: color .16s, background-color .18s, box-shadow .18s; }
.km button.km-tab:hover { color: #fafafa; background: rgba(255, 255, 255, .045); }
.km button.km-tab.is-on { color: #fafafa; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.km-tab::after { content: ""; position: absolute; right: 8.65em; top: 50%; width: 2.7em; height: 2.7em; transform: translateY(-50%);
  border-radius: 50%; background: #dedee7; opacity: 0; transition: opacity .18s; }
.km-tab.is-on::after { opacity: 1; }
.km-tab .km-ic { position: absolute; left: calc(var(--iconCenter) * var(--u)); top: 50%; transform: translate(-50%, -50%);
  font-size: calc(var(--iconSize) * var(--u)); }
.km-tab-name { min-width: 0; font-size: 10.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-profile { position: absolute; left: 8em; top: 489em; display: flex; align-items: flex-start; }
.km-profile::before { content: ""; position: absolute; left: 0; top: -4em; width: 164em; height: 1px; background: linear-gradient(90deg, transparent, #222 25%, #222 75%, transparent); }
.km-profile img { width: 24em; height: 24em; border-radius: 4em; image-rendering: pixelated; }
.km-profile div { margin-left: 4em; }
.km-profile b { display: block; font-weight: 400; font-size: 11em; margin-top: -.05em; }
.km-profile span { display: block; font-size: 10em; color: #9a9a9a; margin-top: .2em; }

/* path line */
.km-path { position: absolute; left: 180em; right: 0; top: 0; height: 40em; font-family: "Kyntrace Nunito", var(--body); }
.km-where { position: absolute; left: calc(11.5 * var(--u)); top: 50%; transform: translateY(-50%); font-size: 15em; color: #e8e8ea; }
.km-chev { position: absolute; left: 33.5em; top: 50%; width: 5em; height: 5em; border: solid #818186; border-width: 1px 1px 0 0; transform: translateY(-50%) rotate(45deg); }
.km-where-name { position: absolute; left: calc(46 * var(--u)); top: 50%; transform: translateY(-50%); font-size: 11em; color: #f5f5f5; white-space: nowrap; }
.km button.km-configs { position: absolute; right: 44em; top: 11em; height: 18em; display: flex; align-items: center; padding: 0 7em 0 3em; border-radius: 4em; color: #9a9a9a; transition: background .2s, color .2s; }
.km-configs .km-ic { font-size: 12em; }
.km-configs span:last-child { font-size: 11em; margin-left: .4em; }
.km button.km-configs:hover { color: #fff; background: #161616; }
.km button.km-configs.is-on { color: #fff; background: #262626; }
.km button.km-lang { position: absolute; right: 14em; top: 12em; width: 16em; height: 16em; color: #9a9a9a; display: grid; place-items: center; transition: color .2s; }
.km-lang .km-ic { font-size: 15em; }
.km button.km-lang:hover { color: #fff; }

/* content: module blocks in two columns */
.km-view { position: absolute; left: 181em; top: 43em; width: 653em; height: 471em; }
.km-scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.km-scroll::-webkit-scrollbar { display: none; }
.km-cols { display: grid; grid-template-columns: 300em 300em; column-gap: 24em; padding: 14em; align-items: start; }
.km-col { display: flex; flex-direction: column; gap: 12em; }
.km-block { position: relative; padding-bottom: 3em; }
.km-block::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #262626 20%, #262626 80%, transparent); }
.km-title { position: relative; height: 12em; display: flex; align-items: center; }
.km-title h4 { font-size: 11.5em; font-weight: 400; color: #ececec; margin: 0; letter-spacing: 0; line-height: 1; }
.km-switch { position: absolute; right: 0; top: 0; width: 22em; height: 12em; border-radius: 6em; background: #2b2b2b; transition: background .25s; }
.km-switch:hover { background: #343434; }
.km-switch::after { content: ""; position: absolute; left: 1.8em; top: 1.8em; width: 8.4em; height: 8.4em; border-radius: 50%; background: #9a9a9a;
  transition: transform .35s var(--ease), background .25s; }
.km-switch.is-on { background: #e8e8e8; }
.km-switch.is-on::after { transform: translateX(10em); background: #111; }
.km-help { font-size: 9.5em; color: #949498; margin: .45em 0 0; line-height: 1.22; }
.km-body { padding: 7em 0 0 12em; transition: opacity .3s; }
.km-body.is-off { opacity: .55; }
.km-row { position: relative; display: flex; align-items: center; min-height: 20em; }
.km-label { display: flex; align-items: center; color: #d6d6d6; flex: 1; min-width: 0; }
.km-label > span:first-child { font-size: 11em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-q { font-size: 10em; color: #7c7c7c; cursor: help; margin-left: .4em; flex: none; transition: color .2s; }
.km-q:hover { color: #fff; }
.km-row.km-check { cursor: pointer; }
button.km-check { position: relative; width: 13em; height: 13em; border-radius: 2em; background: #262626; box-shadow: inset 0 0 0 1px #3d3d3d; transition: background .2s; flex: none; }
.km-row:hover button.km-check { background: #303030; }
button.km-check svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #0b0b0b; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 10; stroke-dashoffset: 10; transition: stroke-dashoffset .3s var(--ease); }
button.km-check.is-on { background: #f0f0f0; box-shadow: none; }
button.km-check.is-on svg { stroke-dashoffset: 0; }
.km-slider { min-height: 30em; align-items: flex-start; padding-top: 1em; }
.km-num { font-size: 11em; color: #9a9a9a; }
.km-track { position: absolute; left: 0; right: 0; top: 18em; height: 3em; border-radius: 1.5em; background: #2a2a2a; }
.km-track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(6em + (100% - 12em) * var(--k, .5)); border-radius: 1.5em; background: #e8e8e8; }
.km-track b { position: absolute; left: calc(6em + (100% - 12em) * var(--k, .5)); top: 1.5em; width: 9em; height: 9em; margin: -4.5em 0 0 -4.5em; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1.4em #0b0b0b; transition: transform .2s, box-shadow .2s; }
.km-slider:hover .km-track b { transform: scale(1.15); }
.km-slider.is-drag .km-track b { box-shadow: 0 0 0 1.4em #0b0b0b, 0 0 0 4em rgba(255, 255, 255, .1); }
.km-slider input { position: absolute; left: 0; right: 0; top: 10em; height: 18em; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
.km-select, .km-bind, .km-color { min-height: 22em; padding-bottom: 2em; }
.km-field { position: relative; width: 90em; height: 16em; border-radius: 2em; background: #1a1a1a; box-shadow: inset 0 0 0 1px #262626; flex: none; transition: background .2s, box-shadow .2s; }
.km-field:hover { background: #222; box-shadow: inset 0 0 0 1px #333; }
.km-field span { position: absolute; left: .67em; top: .22em; right: 1.6em; font-size: 10.5em; color: #efefef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-down { position: absolute; right: 8em; top: 4.5em; width: 4.5em; height: 4.5em; border: solid #9a9a9a; border-width: 0 1.2px 1.2px 0; transform: rotate(45deg); }
.km-field.is-wait { box-shadow: inset 0 0 0 1px #8a8a8a; }
.km-hex { font-size: 10.5em; color: #9a9a9a; margin-right: .7em; }
.km-dot { width: 12em; height: 12em; border-radius: 50%; box-shadow: 0 0 0 1px #2c2c2c; flex: none; transition: transform .2s, background .3s; }
.km-dot:hover { transform: scale(1.08); }
.km-row.km-button { min-height: 22em; }
button.km-button { width: 100%; height: 18em; border-radius: 2em; background: #1a1a1a; box-shadow: inset 0 0 0 1px #262626; transition: background .2s; color: #d6d6d6; text-align: center; }
button.km-button:hover { background: #222; }
button.km-button:active { background: #2a2a2a; }
.km-button-text { font-size: 10.5em; }
.km-note { font-size: 9.5em; color: #7c7c7c; min-height: 0; padding: .3em 0 .6em; line-height: 1.25; display: block; }
.km-text input { width: calc(120 * var(--u)); height: calc(16 * var(--u)); border-radius: calc(2 * var(--u)); border: 0; outline: 0; background: #1a1a1a; box-shadow: inset 0 0 0 1px #262626; color: #efefef; font: inherit; font-size: calc(10.5 * var(--u)); padding: 0 calc(6 * var(--u)); }
.km-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 18em; border-radius: 2em; background: #1a1a1a; box-shadow: inset 0 0 0 1px #262626; margin-bottom: 4em; }
.km-seg i { position: absolute; top: 2em; bottom: 2em; left: 2em; width: calc(50% - 2em); border-radius: 1.5em; background: #2e2e2e; transform: translateX(calc(var(--n, 0) * 100%)); transition: transform .35s var(--ease); }
.km-seg button { position: relative; color: #9a9a9a; text-align: center; transition: color .2s; }
.km-seg button span { font-size: 10.5em; }
.km-seg button.is-on { color: #fff; }

/* dropdown list and tooltip */
.km-popup { position: absolute; z-index: 5; display: flex; flex-direction: column; padding: 3em; border-radius: 4em; background: #141414; box-shadow: inset 0 0 0 1px #2a2a2a, 0 8em 24em rgba(0, 0, 0, .6); }
.km-popup button { padding: 3em 14em 3em 6em; border-radius: 3em; color: #cfcfcf; white-space: nowrap; transition: background .15s, color .15s; }
.km-popup button span { font-size: 10.5em; }
.km-popup button:hover { background: #1e1e1e; color: #fff; }
.km-popup button.is-on { color: #fff; background: #222; }
.km-tip { position: absolute; z-index: 6; max-width: 200em; padding: 5em 7em; border-radius: 4em; background: #141414; box-shadow: inset 0 0 0 1px #2a2a2a; color: #d6d6d6;
  pointer-events: none; opacity: 0; transition: opacity .15s; }
.km-tip span { font-size: 9.5em; line-height: 1.25; display: block; }
.km-tip.is-on { opacity: 1; }

/* pages that are not module blocks */
.km-pane { padding: 14em; }
.km-pane h4 { font-size: 11.5em; font-weight: 400; margin: 0; color: #ececec; }
.km-line { display: flex; align-items: center; gap: 10em; height: 30em; border-bottom: 1px solid #1f1f1f; }
.km-line > span { font-size: 11em; color: #d6d6d6; flex: 1; }
.km-line em { font-size: 10em; font-style: normal; color: #7c7c7c; }
.km-line button.km-button { width: 70em; }
.km-empty { font-size: 11em; color: #7c7c7c; padding: 1.3em; margin: 0; }
.km-results { display: grid; gap: 4em; padding: 14em; }
.km button.km-result { display: flex; align-items: center; gap: 8em; min-height: 29em; padding: 0 9em;
  border-radius: 5em; color: #dddde0; transition: background-color .16s; }
.km button.km-result:hover { background: rgba(255, 255, 255, .06); }
.km-result .km-ic { font-size: 12em; color: #a8a8ad; }
.km-result b { font-size: 11em; font-weight: 400; }
.km-result > span:not(.km-ic) { font-size: 9.5em; color: #aaaab1; }
.km-result-arrow { margin-left: auto; width: 5em; height: 5em; border: solid #99999d; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.km-textures { display: grid; grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); gap: 12em; padding: 14em; }
.km-textures .km-pane { min-width: 0; padding: 0; }
.km-textures .km-pane > .km-help { margin-bottom: calc(10 * var(--u)); }
.km-textures .km-field { width: 126em; }
.km-file, .km button.km-texture-choice { display: flex; align-items: center; background: #19191d;
  border-radius: 4em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.km-file { position: relative; justify-content: center; min-height: 20em; cursor: pointer; overflow: hidden; }
.km-file:focus-within { outline: 1px solid #aaaab0; }
.km-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.km button.km-texture-choice { gap: 10em; min-height: 48em; width: 100%; margin-top: 10em; padding: 8em 10em; }
.km button.km-texture-choice:hover { background: #232328; }
.km-texture-icon { display: grid; place-items: center; width: 32em; height: 32em; border-radius: 4em; background: #28282e; flex: none; }
.km-texture-icon .km-ic { font-size: 15em; }
.km-texture-icon img { width: 25em; height: 25em; object-fit: contain; image-rendering: pixelated; }
.km-texture-choice > span:last-child { min-width: 0; font-size: 11em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
