.font-regular, .font-bold, .font-thin, .font-light {
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
}

html, body, #app {
    width: 100%;
    height: 100%;
    touch-action: none;
}

body {
    margin: 0;
    overflow: hidden;
    background-color: #171E20;
}

:root {
    --mobile-dock-height: 48px;
    --mobile-dock-width: 48px;
    --mobile-gap: 8px;
    --mobile-handle-hit-height: 44px;
    --mobile-handle-hit-width: 96px;
    --mobile-panel-height: clamp(300px, 48svh, 440px);
    --mobile-panel-width: clamp(320px, 42vw, 420px);
    --mobile-radius: 6px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
}

#app {
    display: flex;
}

#appInner {
    display: flex;
    width: 100%;
    height: 100%;
}

#main-view, #main-view-wrapper {
    display: flex;
    width: 100%;
}

#main-view {
    flex-direction: row-reverse;
}

#codePane {
    display: flex;
    margin: 8px;
    border-radius: 6px;
    overflow: hidden;
    min-width: 30%;
}

#appInner.mobile #codePane {
    display: none;
}

#codePane.multiple-files > .pcui-panel-content > section {
    height: calc(100% - 52px) !important;
}

#sideBar {
    background-color: #283437;
    min-width: 280px;
    max-width: 280px;
    margin: 8px;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity 500ms;
    opacity: 1;
}

#appInner.mobile #sideBar {
    margin: 0;
    position: fixed;
    left: calc(var(--mobile-gap) + var(--safe-area-left));
    right: calc(var(--mobile-gap) + var(--safe-area-right));
    bottom: calc(var(--mobile-dock-height) + var(--mobile-gap) + var(--mobile-gap) + var(--safe-area-bottom));
    z-index: 99999;
    width: auto;
    height: var(--mobile-panel-height);
    min-width: 0;
    max-width: none;
    max-height: none;
    border-radius: var(--mobile-radius);
    overflow: visible;
}

#appInner.mobile #sideBar .panel-toggle {
    display: none !important;
}

#appInner.desktop #sideBar > .pcui-container > .pcui-panel-header::before {
    display: none !important;
}

#sideBar > .pcui-panel > .pcui-panel-content {
    height: calc(100% - 32px);
    position: fixed;
    width: 280px;
    margin-top: 32px;
}

#sideBar-contents {
    height: calc(100% - 88px);
    overflow: auto;
    margin-top: 8px;
}

.sideBar-panel-toggle {
    left: 256px;
    top: 8px !important;
}

#appInner.mobile .sideBar-panel-toggle {
    display: none;
}
    

#sideBar.collapsed ~ .sideBar-panel-toggle {
    left: 8px;
        transform: rotateZ(90deg);
}

#appInner.mobile #sideBar > .pcui-panel-content {
    height: calc(100% - 32px);
    background-color: #283437;
    margin-top: 0px;
    border-radius: 0 0 var(--mobile-radius) var(--mobile-radius);
    overflow: hidden;
}

#appInner.mobile #sideBar {
    background-color: #283437;
}

#appInner.mobile #sideBar > .pcui-panel-header {
    border-radius: var(--mobile-radius) var(--mobile-radius) 0 0 !important;
}

#appInner.mobile #sideBar.pcui-collapsed > .pcui-panel-header {
    border-radius: var(--mobile-radius) !important;
}

#appInner.mobile #sideBar-contents {
    height: calc(100% - 56px);
    overflow-y: scroll;
    margin-top: 8px;
    position: static;
    width: 100%;
    max-height: none;
}

#appInner.mobile #sideBar {
    min-height: 0;
}

#appInner.mobile #sideBar.pcui-collapsed {
    min-height: 0;
}

#appInner.mobile #sideBar.visible {
    opacity: 1;
}

#appInner.mobile #sideBar.pcui-collapsed > .pcui-panel-content {
    display: none;
}

#sideBar .nav-item-text {
    color: #c7ced1 !important;
    user-select: none;
}

#sideBar.small-thumbnails .nav-item-text {
    margin-left: 47px;
}

#sideBar:not(.small-thumbnails) .small-thumbnail {
    display: none;
}

#sideBar.small-thumbnails .large-thumbnail {
    display: none;
}

#sideBar .nav-item-text a {
    text-decoration: none;
    color: #c7ced1 !important;
}

#sideBar .nav-item-text:hover {
    cursor: pointer;
    color: rgba(177, 184, 186, 0.75) !important;
}
#sideBar img {
    width: 100%;
    max-height: 158px;
    object-fit: cover;
}

#sideBar.small-thumbnails img {
    position: absolute;
    width: 47px;
    height: 100%;
}

#sideBar .pcui-label-group {
    margin: 12px;
}

#sideBar .pcui-label-group > .pcui-label {
    width: 112px;
    font-size: 14px;
}

#sideBar a {
    text-decoration: none;
}

#sideBar .categoryPanel {
    margin: 0 8px 8px 8px !important;
    background-color: #334044;
    border: 1px solid #4a5a5f;
    border-radius: 4px;
    overflow: hidden;
}

.categoryPanel:first-child {
    margin: 0 8px 0 8px !important;
}

#sideBar .categoryPanel.pcui-collapsed {
    margin-bottom: 8px;
}

/* Category panel header styling */
#sideBar .categoryPanel > .pcui-panel-header {
    background-color: #20292b;
}

.nav-item {
    margin: 12px;
    overflow: auto;
    border-radius: 4px;
    background-color: #2a3437;
    position: relative;
}

.nav-item:last-child {
    margin: 12px;
}

.nav-item.selected {
    background-color: #20292B;
}
#sideBar .nav-item.selected .nav-item-text {
    color: #F60 !important;
}

.nav-item:hover {
    background-color: #20292B;
}

.nav-item-text {
    font-size: 12px;
    padding: 10px 12px 12px 12px;
    font-weight: 600;
}

.category-nav {
    padding: 0px;
    margin: 0px;
}

#application-canvas {
    width: 100% !important;
    height: 100% !important;
}

#canvas-container {
    margin: 8px 0;
    border-radius: 6px;
    overflow: hidden;
    flex-grow: 1;
    position: relative;
}
#appInner.desktop #canvas-container {
    min-width: 445px;
}

#canvas-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    touch-action: none;
}

#exampleLoading {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    background-color: rgba(16, 21, 22, 0.88);
    color: #f2f2f2;
    text-align: center;
    pointer-events: none;
}

.example-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: min(320px, 100%);
}

.example-loading-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
}

.example-loading-message {
    max-width: 100%;
    color: #c8d0d2;
    font-size: 12px;
    line-height: 16px;
    overflow-wrap: anywhere;
}

#exampleLoading.error .example-loading-title {
    color: #ff6b6b;
}

#appInner.mobile #canvas-container {
    margin: calc(var(--mobile-gap) + var(--safe-area-top)) calc(var(--mobile-gap) + var(--safe-area-right)) calc(var(--mobile-gap) + var(--safe-area-bottom)) calc(var(--mobile-gap) + var(--safe-area-left));
    border-radius: var(--mobile-radius);
    height: calc(100dvh - var(--mobile-gap) - var(--mobile-gap) - var(--safe-area-top) - var(--safe-area-bottom));
    background-color: #171E20;
}

#appInner.mobile #canvas-container iframe {
    border-radius: var(--mobile-radius);
    height: calc(100dvh - var(--mobile-dock-height) - var(--mobile-gap) - var(--mobile-gap) - var(--mobile-gap) - var(--safe-area-top) - var(--safe-area-bottom));
}

#appInner.mobile #exampleLoading {
    border-radius: var(--mobile-radius);
    height: calc(100dvh - var(--mobile-dock-height) - var(--mobile-gap) - var(--mobile-gap) - var(--mobile-gap) - var(--safe-area-top) - var(--safe-area-bottom));
}

#appInner.mobile-landscape #canvas-container iframe,
#appInner.mobile-landscape #exampleLoading {
    width: calc(100vw - var(--mobile-dock-width) - var(--mobile-gap) - var(--mobile-gap) - var(--mobile-gap) - var(--safe-area-left) - var(--safe-area-right));
    height: calc(100dvh - var(--mobile-gap) - var(--mobile-gap) - var(--safe-area-top) - var(--safe-area-bottom));
}

#appInner.mobile-portrait #canvas-container.mobile-panel-open iframe {
    height: calc(100dvh - var(--mobile-dock-height) - var(--mobile-panel-height) - var(--mobile-gap) - var(--mobile-gap) - var(--mobile-gap) - var(--mobile-gap) - var(--safe-area-top) - var(--safe-area-bottom));
}

#appInner.mobile-portrait #canvas-container.mobile-panel-open #exampleLoading {
    height: calc(100dvh - var(--mobile-dock-height) - var(--mobile-panel-height) - var(--mobile-gap) - var(--mobile-gap) - var(--mobile-gap) - var(--mobile-gap) - var(--safe-area-top) - var(--safe-area-bottom));
}

#appInner.mobile-landscape #canvas-container.mobile-panel-open iframe,
#appInner.mobile-landscape #canvas-container.mobile-panel-open #exampleLoading {
    width: calc(100vw - var(--mobile-panel-width) - var(--mobile-dock-width) - var(--mobile-gap) - var(--mobile-gap) - var(--mobile-gap) - var(--mobile-gap) - var(--safe-area-left) - var(--safe-area-right));
    height: calc(100dvh - var(--mobile-gap) - var(--mobile-gap) - var(--safe-area-top) - var(--safe-area-bottom));
}

@keyframes animation-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#canvas-container > .pcui-spinner,
#appInner > .pcui-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

#errorContainer {
    position: absolute;
    top: 0;
    background-color: rgba(255, 255,255,0.75);
    width: 100%;
    height: 100%;
    padding: 40px;
    z-index: 9999;
}

#errorPane {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#errorPane .pcui-text-area-input {
    width: 500px;
    height: 500px;
}

#errorPane textarea {
    font-size: 10px;
}

#canvas-container.error #application-canvas {
    opacity: 50%;
}

#controlPanel {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 280px;
    z-index: 9999;
    background-color: rgba(54, 67, 70, 0.64);
    backdrop-filter: blur(32px);
    border-radius: 6px;
    transition: opacity 500ms;
    opacity: 1;
    max-height: calc(100% - 16px);
}

#controlPanel.empty {
    display: none;
}

#controlPanel.mobile {
    bottom: calc(var(--mobile-dock-height) + var(--mobile-gap));
    left: 0;
    right: 0;
    width: auto;
    top: inherit;
    display: flex;
    flex-direction: column;
    background-color: rgba(54, 67, 70, 0.64);
    backdrop-filter: blur(32px);
    min-height: 0;
    border-radius: var(--mobile-radius);
    overflow: visible;
}

#controlPanel.mobile.controls-sheet,
#controlPanel.mobile.code-sheet,
#controlPanel.mobile.description-sheet {
    height: var(--mobile-panel-height);
}

#appInner.mobile-landscape #controlPanel.mobile,
#appInner.mobile-landscape #sideBar.mobile-sheet {
    width: var(--mobile-panel-width);
    min-width: 0;
    max-width: var(--mobile-panel-width);
    max-height: none;
    height: auto;
    box-sizing: border-box;
    touch-action: none;
}

#appInner.mobile-landscape #controlPanel.mobile {
    top: 0;
    right: calc(var(--mobile-dock-width) + var(--mobile-gap));
    bottom: 0;
    left: auto;
}

#appInner.mobile-landscape #sideBar.mobile-sheet {
    top: calc(var(--mobile-gap) + var(--safe-area-top));
    right: calc(var(--mobile-dock-width) + var(--mobile-gap) + var(--mobile-gap) + var(--safe-area-right));
    bottom: calc(var(--mobile-gap) + var(--safe-area-bottom));
    left: auto;
}

#appInner.mobile-landscape #controlPanel.mobile.controls-sheet,
#appInner.mobile-landscape #controlPanel.mobile.code-sheet,
#appInner.mobile-landscape #controlPanel.mobile.description-sheet {
    height: auto;
}

#controlPanel.mobile > .pcui-panel-content {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 0 0 var(--mobile-radius) var(--mobile-radius);
}

#controlPanel.mobile > .pcui-panel-header {
    flex: 0 0 32px;
    height: 32px !important;
    line-height: 32px !important;
    border-radius: var(--mobile-radius) var(--mobile-radius) 0 0 !important;
}

#controlPanel.mobile.controls-sheet > .pcui-panel-content {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

#mobileControlsPanel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

#controlPanel.mobile > .pcui-panel-content > section {
    border-radius: var(--mobile-radius);
}

#controlPanel.mobile .pcui-label-group .pcui-label {
    font-size: 14px;
}

#controlPanel.mobile .pcui-slider .pcui-numeric-input {
    min-width: 47px;
}

#controlPanel > .pcui-panel-content > .pcui-panel:first-child {
    border-top: 1px solid #20292B;
}

#controlPanel .pcui-label-group > .pcui-label {
    font-size: 14px;
    max-width: 35%;
}

#controlPanel .pcui-label-group > .pcui-slider > .pcui-numeric-input {
    min-width: 46px;
}

#controlPanel > .pcui-panel-content {
    background-color: #364346;
}

/* Desktop: scroll only the example controls, not the device selector, so PCUI
   SelectInput dropdowns (position: absolute) are not clipped by overflow. */
#controlPanel.desktop {
    overflow: visible;
    max-height: min(calc(100% - 16px), calc(100vh - 48px));
}

#controlPanel.desktop > .pcui-panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: visible;
}

#controlPanel.desktop #deviceTypeSelectInput {
    flex-shrink: 0;
}

#controlPanel-scroll-region {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#descriptionPanel {
    /* center on the bottom of the page */
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    color: #f2f2f2;
    width: 50%;
    text-align: center;
}

#descriptionPanel.mobile {
    bottom: 100px;
    width: 90%;
}

#descriptionPanel a {
    color: #f2f2f2;
}

#appInner.mobile #sideBar-contents,
#appInner.mobile #controlPanel-scroll-region,
#appInner.mobile #controlPanel-controls,
#appInner.mobile #controlPanel.mobile > .pcui-panel-content,
#appInner.mobile .code-editor-mobile-files {
    touch-action: pan-y;
}

#appInner.mobile #menu,
#appInner.mobile #mobileDock,
#appInner.mobile #mobileDock .mobile-dock-button,
#appInner.mobile #controlPanel.mobile > .pcui-panel-header,
#appInner.mobile #sideBar.mobile-sheet > .pcui-panel-header {
    touch-action: none;
}

#appInner.mobile #controls-wrapper {
    position: absolute;
    width: 100%;
    height: calc(100% - 48px);
}

#appInner.mobile #controlPanel-controls {
    min-height: 0;
    overflow: auto;
}

#appInner.mobile #controlPanel.mobile.controls-sheet #controlPanel-scroll-region {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#appInner.mobile #controlPanel.mobile.code-sheet > .pcui-panel-content,
#appInner.mobile #controlPanel.mobile.description-sheet > .pcui-panel-content {
    overflow: auto;
}

#appInner.mobile .code-editor-mobile {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#appInner.mobile .code-editor-mobile-files {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    overflow-y: auto;
}

#appInner.mobile .code-editor-mobile-files .pcui-button {
    flex: 0 0 44px;
    margin: 0;
    padding: 0 12px;
    width: 100%;
    height: 44px;
    border: 0;
    border-bottom: 1px solid #4a5a5f;
    border-radius: 0;
    text-align: left;
    font-family: inconsolatamedium, Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace;
    font-size: 12px;
    background-color: transparent;
}

#appInner.mobile .code-editor-mobile-files .pcui-button:not(.pcui-disabled, .pcui-readonly):hover,
#appInner.mobile .code-editor-mobile-files .pcui-button:not(.pcui-disabled, .pcui-readonly):focus,
#appInner.mobile .code-editor-mobile-files .pcui-button:not(.pcui-disabled, .pcui-readonly):active {
    background-color: transparent;
    box-shadow: none;
}

#deviceTypeSelectInput {
    flex: 0 0 32px;
    height: 32px;
    margin: 8px;
    min-width: 200px;
}

#deviceTypeSelectInput > .pcui-select-input-container-value {
    height: 32px;
}

#deviceTypeSelectInput > .pcui-select-input-container-value > .pcui-select-input-value {
    height: 32px;
    border-radius: 4px;
    display: flex;
    text-align: center;
    align-items: center;
}

#deviceTypeSelectInput > .pcui-select-input-container-value > .pcui-select-input-icon {
    top: 4px;
}

#errorLabel {
    color: #f95555 !important;
    font-size: 14px;
    text-align: center;
    display: block;
}

.filter-container {
    position: relative !important;
    margin: 8px 8px 0px 8px !important;
    width: calc(100% - 16px);
}

.filter-container .filter-input {
    margin: 0 !important;
    width: 100%;
}

.filter-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 12px;
    line-height: 1;
    z-index: 1;
    user-select: none;
}

.filter-clear:hover {
    color: #fff;
}

.has-filter-text .pcui-input-element[placeholder]::after {
    display: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #20292b;
}
::-webkit-scrollbar-thumb {
    background: #5b7073;
}

.panel-toggle {
    width: 32px;
    height: 32px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1000;
    padding: 0;
    cursor: pointer;
}

.panel-toggle::before {
    font-family: 'pc-icon';
    content: '\E183';
    font-weight: 200;
    font-size: 14px;
    margin-right: 10px;
    text-align: center;
    color: #f60;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.panel-toggle:hover::before {
    color: white;
}

#sideBar.collapsed > .panel-toggle::before, #codePane.collapsed .panel-toggle::before {
    transform: translateY(-50%) translateX(-50%) rotateZ(90deg);
}

#sideBar.collapsed, #codePane.collapsed {
    width: 32px !important;
    min-width: 32px;
}

#sideBar.collapsed #sideBar-contents, #sideBar.collapsed .pcui-panel-content, #codePane.collapsed section {
    display: none !important;
}

#codePane.collapsed .pcui-panel-header {
    background-color: inherit;
    position: absolute;
    transform: rotate(90deg);
    margin-top: 18px;
    padding-top: 24px;
}

#codePane.collapsed .tabs-container, #codePane.collapsed .code-editor-menu-container {
    display: none;
}


#sideBar.collapsed .pcui-panel-header {
    background-color: inherit;
    position: absolute;
    transform: rotate(90deg);
    margin-top: 52px;
    margin-left: -21px;
    padding-top: 20px;
    width: 83px;
    height: 15px !important;
}

#codePane.collapsed .pcui-panel-header {
    left: 5px;
}

#codePane.pcui-resizable-resizing ~ #canvas-container {
    pointer-events: none;
}

#codePane-panel-toggle {
    margin-top: -32px;
}

#codePane.collapsed #codePane-panel-toggle {
    margin-top: 0px;
} 

#menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 16px;
    left: 8px;
    padding: 8px;
    background-color: rgba(54, 67, 70, 0.64);
    border-radius: 6px;
    z-index: 99999;
    transition: opacity 500ms;
    opacity: 1;
}

#menu img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
}

#menu .pcui-button {
    width: 32px;
    height: 32px;
    margin: 0 0 0 8px;
    position: relative;
}

#menu .pcui-button[data-icon]:before {
    position: absolute;
    left: 5px;
    top: 2px;
    font-size: 20px;
}

#menu #playcanvas-icon {
    cursor: pointer;
}

#menu #language-button {
    font-weight: 900;
    width: 36px;
}

#appInner.mobile #menu #play-button {
    display: none;
}

#appInner.mobile #menu #language-button {
    display: none;
}

#appInner.mobile #menu {
    top: calc(var(--mobile-gap) + var(--safe-area-top));
    margin-top: var(--mobile-gap);
    margin-left: calc(var(--mobile-gap) + var(--safe-area-left));
    background-color: rgba(54, 67, 70, 0.64);
}

#appInner.mobile #menu img {
    min-width: 32px;
}

#menu-buttons {
    display: flex;
}

#menu #menu-embed-container {
    display: flex;
    flex-direction: column;
}

#menu #menu-embed-container .pcui-label {
    font-size: 12px;
    margin-top: 8px;
    word-wrap: break-word;
    white-space: normal;
}

#menu #menu-embed-container .pcui-button {
    width: calc(100% - 12px);
}

#menu #menu-embed-container textarea {
    font-size: 10px;
}

#appInner.desktop #menu #menu-embed-container {
    max-width: 272px;
}

#menu #showMiniStatsButton.selected {
    color: white;
    background-color: #F60;
}

#mobileDock {
    display: none;
}

#mobileUi {
    display: contents;
}

body.mobile-panel-resizing {
    user-select: none;
}

body.mobile-panel-resizing-x {
    cursor: ew-resize;
}

body.mobile-panel-resizing-y {
    cursor: ns-resize;
}

body.mobile-panel-resizing #exampleIframe {
    pointer-events: none;
}

#appInner.mobile #controlPanel.mobile > .pcui-panel-header,
#appInner.mobile #sideBar.mobile-sheet > .pcui-panel-header {
    position: relative;
    cursor: ns-resize;
    touch-action: none;
    user-select: none;
    overflow: visible;
}

#appInner.mobile #controlPanel.mobile > .pcui-panel-header::before,
#appInner.mobile #sideBar.mobile-sheet > .pcui-panel-header::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: var(--mobile-handle-hit-width);
    height: var(--mobile-handle-hit-height);
    background: transparent;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

#appInner.mobile #controlPanel.mobile > .pcui-panel-header::after,
#appInner.mobile #sideBar.mobile-sheet > .pcui-panel-header::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background-color: #8da0a5;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.mobile-panel-resizing #appInner.mobile #controlPanel.mobile > .pcui-panel-header::after,
body.mobile-panel-resizing #appInner.mobile #sideBar.mobile-sheet > .pcui-panel-header::after {
    background-color: #fff;
}

#appInner.mobile-landscape #controlPanel.mobile > .pcui-panel-header,
#appInner.mobile-landscape #sideBar.mobile-sheet > .pcui-panel-header {
    cursor: default;
}

#appInner.mobile-landscape #controlPanel.mobile > .pcui-panel-header::before,
#appInner.mobile-landscape #sideBar.mobile-sheet > .pcui-panel-header::before,
#appInner.mobile-landscape #controlPanel.mobile > .pcui-panel-header::after,
#appInner.mobile-landscape #sideBar.mobile-sheet > .pcui-panel-header::after {
    display: none;
}

#appInner.mobile-landscape #controlPanel.mobile::before,
#appInner.mobile-landscape #sideBar.mobile-sheet::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--mobile-handle-hit-height);
    height: 100%;
    background: transparent;
    transform: translateX(-50%);
    cursor: ew-resize;
    pointer-events: auto;
    z-index: 2;
}

#appInner.mobile-landscape #controlPanel.mobile::after,
#appInner.mobile-landscape #sideBar.mobile-sheet::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 44px;
    border-radius: 999px;
    background-color: #8da0a5;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
}

body.mobile-panel-resizing #appInner.mobile-landscape #controlPanel.mobile::after,
body.mobile-panel-resizing #appInner.mobile-landscape #sideBar.mobile-sheet::after {
    background-color: #fff;
}

#appInner.mobile #mobileDock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 10vw, 42px);
    position: fixed;
    left: calc(var(--mobile-gap) + var(--safe-area-left));
    right: calc(var(--mobile-gap) + var(--safe-area-right));
    bottom: calc(var(--mobile-gap) + var(--safe-area-bottom));
    height: var(--mobile-dock-height);
    padding: 4px 8px;
    box-sizing: border-box;
    background-color: rgba(54, 67, 70, 0.64);
    backdrop-filter: blur(32px);
    border-radius: var(--mobile-radius);
    z-index: 100000;
    -webkit-tap-highlight-color: transparent;
}

#appInner.mobile-landscape #mobileDock {
    left: auto;
    right: calc(var(--mobile-gap) + var(--safe-area-right));
    top: calc(var(--mobile-gap) + var(--safe-area-top));
    bottom: calc(var(--mobile-gap) + var(--safe-area-bottom));
    width: var(--mobile-dock-width);
    height: auto;
    flex-direction: column;
    gap: clamp(16px, 5dvh, 28px);
    padding: 8px 4px;
}

#appInner.mobile #mobileDock .mobile-dock-button {
    --mobile-dock-icon-size: 22px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #b1b8ba;
    background: transparent;
    box-shadow: none !important;
    font-size: 0;
    outline: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    user-select: none;
}

#appInner.mobile #mobileDock .mobile-dock-button::before {
    content: '';
    display: block;
    width: var(--mobile-dock-icon-size);
    height: var(--mobile-dock-icon-size);
    background-color: currentColor;
    mask: var(--mobile-dock-icon) center / var(--mobile-dock-icon-size) var(--mobile-dock-icon-size) no-repeat;
    -webkit-mask: var(--mobile-dock-icon) center / var(--mobile-dock-icon-size) var(--mobile-dock-icon-size) no-repeat;
}

#appInner.mobile #mobileDock .mobile-dock-button:hover,
#appInner.mobile #mobileDock .mobile-dock-button:focus,
#appInner.mobile #mobileDock .mobile-dock-button.pcui-focus,
#appInner.mobile #mobileDock .mobile-dock-button:active {
    border: 0;
    color: #f2f2f2;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: 0;
}

#appInner.mobile #mobileDock .mobile-dock-button.pcui-disabled,
#appInner.mobile #mobileDock .mobile-dock-button.pcui-disabled:hover,
#appInner.mobile #mobileDock .mobile-dock-button.pcui-disabled:focus,
#appInner.mobile #mobileDock .mobile-dock-button.pcui-disabled.pcui-focus,
#appInner.mobile #mobileDock .mobile-dock-button.pcui-disabled:active {
    color: #b1b8ba;
    cursor: default;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

#appInner.mobile #mobileDock .mobile-dock-button.selected,
#appInner.mobile #mobileDock .mobile-dock-button.selected:hover,
#appInner.mobile #mobileDock .mobile-dock-button.selected:focus,
#appInner.mobile #mobileDock .mobile-dock-button.selected.pcui-focus,
#appInner.mobile #mobileDock .mobile-dock-button.selected:active {
    border: 0;
    color: #F60 !important;
    background: transparent !important;
    background-image: none !important;
}

#appInner.mobile #mobileDock .mobile-dock-button.selected::before {
    background-color: #F60;
}

#appInner.mobile #mobileDock .mobile-dock-examples {
    --mobile-dock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z'/%3E%3C/svg%3E");
}

#appInner.mobile #mobileDock .mobile-dock-code {
    --mobile-dock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 18 6-6-6-6M8 6l-6 6 6 6'/%3E%3C/svg%3E");
}

#appInner.mobile #mobileDock .mobile-dock-controls {
    --mobile-dock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h8M16 7h4M4 17h4M12 17h8'/%3E%3Ccircle cx='14' cy='7' r='2' fill='black'/%3E%3Ccircle cx='10' cy='17' r='2' fill='black'/%3E%3C/svg%3E");
}

#appInner.mobile #mobileDock .mobile-dock-description {
    --mobile-dock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/svg%3E");
}

#mobileDescriptionPanel {
    box-sizing: border-box;
    height: 100%;
    padding: 12px;
    color: #f2f2f2;
    line-height: 1.45;
}

#controlPanel.mobile.description-sheet,
#controlPanel.mobile.description-sheet > .pcui-panel-content,
#mobileDescriptionPanel,
#mobileDescriptionPanel *,
#mobileDescriptionPanel a {
    color: #f2f2f2;
}

.tabs-wrapper {
    display: flex;
}

.tabs-container, .code-editor-menu-container {
    padding: 4px;
    margin: 8px;
    display: flex;
    border-radius: 6px;
    background-color: rgba(32, 41, 43, 1);
}

.code-editor-menu-container {
    width: 110px;
    min-width: 110px;
    margin-right: 0px;
}

.tabs-container {
    flex-grow: 1;
}

.tabs-container > .pcui-button, .code-editor-menu-container > .pcui-button {
    width: 100%;
    margin: 0px;
    border-radius: 4px;
    background-color: rgba(32, 41, 43, 1);
    outline: none;
    box-shadow: none !important;
}

.code-editor-menu-container > .pcui-button {
    color: #fff;
    background-color: #2c393c;
    margin-right: 4px;
}

.code-editor-menu-container > .pcui-button:last-child {
    margin-right: 0px;
}

.tabs-container > .pcui-button.selected {
    color: #fff;
    background-color: #2c393c;
}

.tabs-container > .pcui-button:focus {
    outline: none;
    box-shadow: none !important;
}

#embed-button.selected {
    background-color: #f60;
    color: white;
}

#appInner.desktop #controlPanel-tabs {
    display: none;
}

#appInner.fullscreen #canvas-container {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 9998;
    margin: 0;
}

#appInner.fullscreen #canvas-container iframe {
    width: 100%;
    height: 100%;
}

#appInner.mobile.fullscreen #canvas-container iframe,
#appInner.mobile.fullscreen #canvas-container #exampleLoading {
    width: 100%;
    height: 100%;
}

#appInner.fullscreen #menu {
    opacity: 0;
}
#appInner.fullscreen.active #menu {
    opacity: 1;
}

#appInner.desktop.fullscreen #menu:hover {
    opacity: 1;
}

#appInner.fullscreen #menu {
    top: 8px;
    bottom: inherit;
}

#appInner.fullscreen #controlPanel, #appInner.fullscreen #sideBar {
    display: none;
}

#appInner.fullscreen #mobileDock {
    display: none;
}

#appInner.fullscreen #fullscreen-button {
    background-color: #F60;
    color: white;
}

.message {
    position: absolute;
    padding: 8px 16px;
    left: 20px;
    bottom: 20px;
    color: #ccc;
    background-color: rgba(0, 0, 0, .5);
    font-family: "Proxima Nova", Arial, sans-serif;
}

/* Prevent that number slider bar inputs are cropped */
.pcui-slider > .pcui-numeric-input {
    flex: 1.5 !important;
}
