html.android-editor {
  --android-control: 44px;
  --touch-shell: #18232b;
  --touch-panel: #223039;
  --touch-border: #3b4d57;
  --touch-ink: #e1ebee;
  --touch-muted: #a9bbc4;
  --touch-accent: #91dfbb;
}
.android-editor,
.android-editor body,
.android-editor #viewport { border-radius: 0; }
.android-editor button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.android-editor .workspace {
  --android-left-width: min(calc(100vmin - 58px), var(--android-left-content-width, 100vmin));
  --android-right-width: 44.444vmin;
  --android-side-left: 0px;
  --android-side-right: 0px;
  --android-sidebar-bottom: 53px;
  --android-control-space: calc(100% - var(--android-side-left) - var(--android-side-right));
  --android-control-center: calc(var(--android-side-left) + var(--android-control-space) / 2);
  --android-handle-width: 44px;
  --android-grip-width: 13px;
  grid-template-columns: minmax(0, 1fr) !important;
  position: relative;
}
.android-editor .workspace.android-left-open { --android-side-left: var(--android-left-width); }
.android-editor body.planet-overview .workspace.android-left-open > .layers { z-index: 23; }
.android-editor body.planet-overview .workspace.android-left-open > #androidLayers { z-index: 24; }
@media (orientation: portrait) {
  .android-editor body.planet-overview .workspace.android-left-open .planet-toolbar { visibility: hidden; }
}
.android-editor .workspace.android-right-open { --android-side-right: var(--android-right-width); }
.android-editor body.planet-overview .workspace { --android-sidebar-bottom: 0px; }
@media (orientation: landscape) {
  .android-editor .workspace { --android-right-width: min(86vmin, 48vw); }
}
.android-editor .workspace > main { grid-column: 1; min-width: 0; }
.android-editor .workspace > :is(.layers, .inspector) {
  position: absolute;
  z-index: 12;
  top: 0;
  bottom: var(--android-sidebar-bottom);
  height: auto;
  box-shadow: 0 5px 24px #0006;
}
.android-editor body .workspace > .layers {
  left: 0;
  width: var(--android-left-width);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-top: 8px;
  background: var(--touch-shell);
}
.android-editor .workspace > .layers > :is(.panel-title, .layer-actions, .aside-footer) { display: none; }
.android-editor body .layers > #layerSearch {
  display: block;
  grid-row: 1;
  width: auto;
  min-height: 40px;
  margin: 0 8px 8px;
  padding-inline: 10px;
  font-size: 14px;
  border-radius: 7px;
}
.android-editor body .layers #layerList {
  padding-inline: 6px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  user-select: none;
}
.android-editor body .layers .layer {
  min-height: 44px;
  padding-inline: 6px 2px;
  border-radius: 5px;
}
.android-editor body .layers .layer-name {
  font-size: 13px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.android-editor body .layers .layer-group { min-height: 42px; padding-block: 0; }
.android-editor body .layers .layer-group > span:first-child { font-size: 12px; }
.android-editor body .layers .swatch.text { color: var(--touch-muted); }
.android-editor body .layers .layer-index { display: none; }
.android-editor body .layers :is(.layer, .layer-group) {
  padding-inline: 8px 4px;
  gap: 0;
}
.android-editor body .layers :is(.layer-name, .layer-group > span:first-child) {
  flex: 1 1 auto;
  min-width: 0;
}
.android-editor body .layers .swatch { margin-inline-end: 6px; }
.android-editor body .layers .layer-group-actions { gap: 0; margin: 0; padding: 0; }
.android-editor body .layers .layer-group-actions::before { display: none; }
.android-editor body .layers :is(.layer, .layer-group-actions) > button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 40px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 9px;
  line-height: 1;
}
.android-editor body .layers :is(.layer, .layer-group-actions) > button svg { width: 15px; height: 15px; }
.android-editor body .layers .layer-group { border: 0; color: #a6cfc4; }
.android-editor body .layers .layer-section {
  border: 0;
  margin-bottom: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid #34454d;
}
.android-editor body .layers .expand-types { min-height: 40px; font-size: 12px; }
.android-editor .workspace.android-left-open #viewport > .scale { visibility: hidden; }
.android-editor .workspace > .inspector {
  right: 0;
  width: var(--android-right-width);
  overscroll-behavior: contain;
}
.android-editor body .workspace:not(.android-left-open) > .layers,
.android-editor body .workspace:not(.android-right-open) > .inspector { display: none; }
.android-editor body .workspace.android-right-open > .inspector:not([hidden]) { display: flex; }
@media (max-height: 210px) {
  .android-editor body .workspace.android-left-open > .layers { top: 0; bottom: 0; z-index: 40; }
  .android-editor .workspace.android-left-open > #androidLayers { z-index: 41; top: 50%; }
  .android-editor body .workspace.android-left-open :is(.canvas-bar, #engineeringOptions, .planet-toolbar) { visibility: hidden; }
}
.android-editor button.android-edge-handle {
  position: absolute;
  z-index: 15;
  top: calc((100% + var(--android-canvas-top, 0px) - var(--android-sidebar-bottom)) * .5);
  transform: translateY(-50%);
  width: var(--android-handle-width);
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.android-edge-handle.left { left: 0; }
.android-edge-handle.right { right: 0; }
.android-edge-handle.left[aria-expanded="true"] { left: calc(var(--android-left-width) - 7px); }
.android-edge-handle.right[aria-expanded="true"] { right: calc(var(--android-right-width) - 7px); }
.android-edge-handle::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: var(--android-grip-width);
  background: #28343d;
  box-shadow: 0 1px 5px #0005;
  pointer-events: none;
}
.android-edge-handle svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--android-grip-width);
  height: 22px;
  color: #c1d0da;
  pointer-events: none;
}
.android-edge-handle.left svg, .android-edge-handle.left::before { left: 0; }
.android-edge-handle.right svg, .android-edge-handle.right::before { right: 0; }
.android-edge-handle.left[aria-expanded="true"] svg,
.android-edge-handle.left[aria-expanded="true"]::before { left: calc(7px - var(--android-grip-width) * .5); }
.android-edge-handle.right[aria-expanded="true"] svg,
.android-edge-handle.right[aria-expanded="true"]::before { right: calc(7px - var(--android-grip-width) * .5); }
.android-edge-handle:active::before { background: #48636b; }
.android-editor body.planet-overview:not(.planet-reference-editing) #androidInspector { display: none; }
.android-editor #hint, .android-editor .canvas-help,
.android-editor body > header,
.android-editor .active-layer-badge,
.android-editor .map-caption,
.android-editor #viewport > .zoom,
.android-editor main > footer,
.android-editor .aside-footer,
.android-editor .popup-menu button > kbd:empty,
.android-editor label:has([name="showShortcutHints"], #showShortcutHints) { display: none !important; }
.android-editor .popup-menu { max-height: calc(100dvh - 56px); overflow: auto; }
.android-editor body dialog.floating-dialog {
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 10px 14px;
}
.android-editor body dialog.floating-dialog:not(:has(form)) { overflow-y: auto; }
.android-editor body dialog.floating-dialog.editor-dialog form { max-height: calc(100dvh - 88px); }
.android-editor body dialog.floating-dialog .dialog-heading {
  min-height: 44px;
  margin: 0 0 4px;
}
.android-editor body dialog.floating-dialog .dialog-heading h2 { font-size: 17px; margin: 0; }
.android-editor body dialog.floating-dialog .dialog-heading button { width: 44px; height: 40px; }
.android-editor body dialog.floating-dialog .dialog-actions { padding-top: 4px; margin-top: 3px; }
.android-editor body dialog.floating-dialog .dialog-actions button { min-height: 36px; margin-top: 0; }
.android-editor body dialog.floating-dialog :is(#confirmImport, #confirmExport) { min-height: 44px; }
@media (max-height: 184px) {
  .android-editor body dialog.floating-dialog { padding: 4px 8px; }
  .android-editor body dialog.floating-dialog .dialog-heading { min-height: 32px; }
  .android-editor body dialog.floating-dialog .dialog-heading button { height: 32px; }
  .android-editor body dialog.floating-dialog.editor-dialog form { max-height: calc(100dvh - 66px); }
}
.android-editor body dialog:is(#projectSettings,.android-settings-page) {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--touch-ink);
  background: var(--touch-shell);
}
.android-editor dialog:is(#projectSettings,.android-settings-page)[open] { display: flex; flex-direction: column; }
.android-editor :is(#projectSettings,.android-settings-page) .dialog-heading {
  display: flex;
  flex: 0 0 49px;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0 8px;
  border-bottom: 1px solid var(--touch-border);
  background: var(--touch-shell);
}
.android-editor :is(#projectSettings,.android-settings-page) .dialog-heading h2 { font-size: 17px; margin: 0; }
.android-editor :is(#projectSettings,.android-settings-page) .dialog-heading .dialog-close {
  position: static;
  width: 44px;
  height: 44px;
  padding: 11px;
  margin: 0;
  background: transparent;
  color: var(--touch-ink);
}
.android-editor :is(#projectSettings,.android-settings-page) form { flex: 1; max-height: none; min-height: 0; }
.android-editor :is(#projectSettings,.android-settings-page) .form-scroll {
  flex: 1;
  display: grid;
  grid-template-columns: clamp(120px, 22vw, 190px) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  scrollbar-gutter: auto;
}
.android-editor :is(#projectSettings,.android-settings-page) .form-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  background: #1d2a33;
  border-right: 1px solid var(--touch-border);
}
.android-editor :is(#projectSettings,.android-settings-page) .form-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 6px 10px;
  color: var(--touch-muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  text-align: start;
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: normal;
}
.android-editor :is(#projectSettings,.android-settings-page) .form-tabs button.active {
  background: #2c4843;
  color: var(--touch-accent);
}
.android-editor :is(#projectSettings,.android-settings-page) .form-tab-panel {
  padding: 9px clamp(12px, 2.5vw, 24px) 14px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.android-editor :is(#projectSettings,.android-settings-page) .dialog-actions { margin: 0; padding: 6px 12px; }
.android-editor :is(#projectSettings,.android-settings-page) .form-error:empty { display: none; }
.android-editor body .workspace > .inspector { --inspector-field-width: clamp(96px, 55%, 146px); }
.android-editor .popup-menu button { min-height: 42px; }
.android-editor #viewport { touch-action: none; }
.android-editor body #toast {
  top: 60px;
  bottom: auto;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}
.android-editor body.planet-overview:has(.planet-toolbar[data-mobile-open]) #toast { top: 116px; }
.android-drawing-bar {
  position: absolute;
  z-index: 9;
  inset-inline-start: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 12px);
  padding: 3px 5px;
  border: 1px solid var(--touch-border);
  border-radius: 12px;
  background: var(--touch-shell);
  box-shadow: 0 4px 16px #08141878;
}
.android-drawing-bar[hidden] { display: none; }
.android-drawing-modes, .android-drawing-actions { display: flex; align-items: stretch; gap: 3px; }
.android-drawing-actions { padding-inline-start: 7px; }
.android-drawing-modes[hidden], .android-drawing-bar button[hidden] { display: none; }
.android-drawing-modes[hidden] + .android-drawing-actions { border: 0; padding: 0; }
.android-drawing-bar button {
  display: grid;
  place-items: center;
  width: var(--android-control);
  height: var(--android-control);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--touch-ink);
}
.android-drawing-bar button svg { width: 22px; height: 22px; pointer-events: none; }
.android-drawing-bar button[aria-pressed=true] { color: var(--touch-accent); background: #2b4b45; }
#androidFinish:not(:disabled) { background: var(--touch-accent); color: #17372f; }
#androidCancel { color: #f1b8b2; }
.android-drawing-bar button:disabled { opacity: .4; }
.android-editor body .workspace > main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.android-editor body #viewport { flex: 1 1 0; min-height: 0; }
.android-editor body .canvas-bar {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  padding: 4px 6px;
  border-top: 1px solid var(--touch-border);
  background: var(--touch-shell);
}
.android-editor .android-parked-tools { display: none !important; }
.android-editor body .workspace #viewport > .scale {
  top: auto;
  bottom: 10px;
  left: 10px;
  pointer-events: none;
}
.android-editor body:has(.android-selection-bar:not([hidden]), .android-drawing-bar:not([hidden])) #viewport > .scale {
  bottom: 65px;
}
.android-editor body.planet-overview .canvas-bar { display: none; }
.android-editor body .canvas-bar > .android-primary-tools {
  display: flex;
  gap: 1px;
  align-items: center;
  width: 100%;
}
.android-tool-end { display: flex; gap: 1px; margin-inline-start: auto; }
.android-editor body .android-primary-tools button,
.android-editor .android-floating-tools button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(34px, 11vw, 46px);
  height: 44px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--touch-ink);
}
.android-primary-tools button svg, .android-floating-tools button svg,
.android-home button svg { width: 22px; height: 22px; pointer-events: none; }
.android-editor :is(.android-primary-tools, .android-floating-tools) button:is(.active,[aria-pressed=true],[aria-expanded=true]) {
  background: #2d5048;
  color: var(--touch-accent);
}
.android-editor :is(.android-primary-tools, .android-floating-tools) button:disabled { opacity: .36; }
.android-editor :is(.android-floating-tools, .android-floating-tools button, .android-primary-tools button, .android-selection-bar > div)[hidden] {
  display: none !important;
}
.android-floating-tools {
  border: 1px solid #58717b88;
  border-radius: 14px;
  background: #182832ec;
  box-shadow: 0 3px 14px #09172145;
  touch-action: manipulation;
}
.android-map-actions, .android-home-back {
  position: absolute;
  z-index: 16;
  top: 8px;
}
.android-map-actions {
  right: calc(var(--android-side-right) + 8px);
  max-width: max(0px, calc(var(--android-control-space) - 66px));
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
  display: flex;
  gap: 1px;
  padding: 2px;
}
.android-tool-divider { align-self: center; flex: 0 0 2px; height: 17px; margin-inline: 2px; border-radius: 2px; background: #91aab4; }
.android-editor body button.android-home-back {
  left: calc(var(--android-side-left) + 8px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  color: var(--touch-ink);
  background: #182832ec;
}
.android-home-back svg { width: 21px; height: 21px; }
.android-tool-sheet, .android-selection-bar {
  position: absolute;
  z-index: 17;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 12px);
  padding: 3px;
}
.android-tool-sheet, .android-selection-bar > div { display: flex; gap: 1px; }
.android-selection-bar { overflow-x: auto; touch-action: pan-x; }
.android-editor .android-selection-bar button { width: clamp(34px, 10vw, 44px); }
.android-editor body .planet-toolbar {
  position: absolute;
  z-index: 18;
  inset: 60px calc(var(--android-side-right) + 8px) auto auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  width: max-content;
  max-width: calc(var(--android-control-space) - 16px);
  padding: 5px;
  border: 1px solid #58717b88;
  border-radius: 14px;
  color: var(--touch-ink);
  background: #182832ec;
  box-shadow: 0 3px 14px #09172145;
}
.android-editor body .planet-toolbar:not([data-mobile-open]) { display: none; }
.android-editor body .planet-toolbar :is(button,select) {
  min-height: 41px;
  padding-inline: 8px;
  border-radius: 8px;
  font-size: 12px;
}
.android-editor body .planet-toolbar .planet-toolbar-toggle { display: none; }
.android-editor body .planet-prompt {
  inset: auto;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  pointer-events: none;
}
.android-editor #viewport > .planet-prompt-actions {
  position: absolute;
  z-index: 26;
  inset: auto auto 9px var(--android-control-center);
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  padding: 3px;
}
.android-editor #viewport .planet-prompt-actions button { width: 44px; }
.android-editor #androidPlanetCancel { color: #f1b8b2; }
.android-editor #androidPlanetConfirm:not(:disabled) { background: var(--touch-accent); color: #17372f; }
.android-editor #viewport:has(> .planet-prompt-actions:not([hidden])) > .scale { visibility: hidden; }
.android-editor .workspace :is(.android-drawing-bar, .android-selection-bar) {
  left: var(--android-control-center);
  max-width: calc(var(--android-control-space) - 12px);
  overflow-x: auto;
  touch-action: pan-x;
}
@media (max-width: 500px) and (orientation: portrait) {
  .android-editor .android-left-open .android-map-actions { visibility: hidden; }
  .android-editor .android-right-open .android-map-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(148px, calc(var(--android-control-space) - 66px));
    overflow: hidden;
  }
  .android-editor .android-right-open .android-map-actions button { width: 100%; height: 38px; }
  .android-editor .android-right-open .android-map-actions .android-tool-divider { display: none; }
}
.android-editor .popup-menu {
  background: #182832ed;
  border: 1px solid #58717b88;
  border-radius: 12px;
  box-shadow: 0 6px 20px #0c151d55;
  backdrop-filter: blur(10px);
}
.android-editor :is(#projectSettings,.android-settings-page) .form-tab-panel { container-type: inline-size; }
.android-editor :is(#projectSettings,.android-settings-page) .form-tab-panel > :is(button, label) { min-height: 40px; }

.android-editor .start-screen.android-home {
  position: fixed;
  inset: 0;
  display: block;
  overflow: auto;
  background: #14212a;
  color: #e9f0f1;
  border: 0;
}
.android-editor .start-screen.android-home[hidden] { display: none; }
.android-editor .android-home-content {
  width: min(100%, 850px);
  margin: auto;
  padding: clamp(14px, 4vh, 34px) clamp(14px, 4vw, 28px);
}
.android-editor .android-home header { border: 0; padding: 0; background: none; }
.android-home-controls {
  position: absolute;
  inset-block-start: clamp(12px, 3vh, 24px);
  inset-inline-end: clamp(12px, 3vw, 24px);
  display: flex;
  gap: 6px;
}
.android-editor .android-home-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  color: #e9f0f1;
  background: #20343de8;
  border: 1px solid #57717c;
}
.android-home[data-loading] .android-home-controls { display: none; }
.android-home header img { display: block; width: 62px; height: 62px; object-fit: contain; margin: 0 auto 20px; }
.android-home-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.android-editor .android-home-actions button {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 76px;
  padding: 10px 4px;
  margin: 0;
  border: 1px solid #425861;
  border-radius: 18px;
  background: #233741;
  color: #e8f4f2;
  font-size: 13px;
}
.android-editor .android-home-actions button:first-child {
  background: #a8e2ca;
  border-color: transparent;
  color: #142f2a;
  font-weight: 650;
}
.android-home h2 { margin: 24px 0 12px; font-size: 19px; font-weight: 650; }
.android-home-library { display: grid; gap: 7px; }
.android-home-library article {
  display: grid;
  grid-template-columns: minmax(54px, 21%) minmax(0, 1fr) repeat(3, clamp(28px, 8vw, 38px));
  gap: 4px;
  align-items: center;
  padding: 7px;
  border: 1px solid #344b57;
  border-radius: 16px;
  background: #20323d;
}
.android-editor .android-home-library article button[id^=androidDelete] { color: #f1b5a6; }
.android-editor .start-screen.android-home::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -28px;
  pointer-events: none;
  background: linear-gradient(180deg, #10232ab0, #101d25ed 78%),
    url("../../assets/welcome/map-1.png") 55% 43% / cover;
  filter: blur(13px);
}
.android-editor .android-home-library article { background: #20343de8; }
.android-home-library article > :is(button, div) { min-width: 0; }
.android-editor .android-home-library article button {
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d9e7ea;
}
.android-editor .android-home-library article .android-project-thumbnail {
  height: 58px;
  overflow: hidden;
  border-radius: 7px;
  background: #b3cdca;
  color: #324e50;
}
.android-project-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.android-editor .android-home-library article input {
  width: 100%;
  padding: 4px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: inherit;
}
.android-home-library time { display: block; margin-inline: 5px; font-size: 12px; color: #a8bdc6; }
.android-home-status, .android-home-empty { color: #b4c8cd; font-size: 13px; }
.android-home[data-loading] :is(.android-home-actions, h2, .android-home-library) { display: none; }
.android-home[data-loading] .android-home-status { text-align: center; }
@media (min-width: 720px) {
  .android-home-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.android-editor body .workspace > .inspector {
  background: #18252e;
  border-inline-start: 1px solid #415765;
}
.android-editor .workspace .inspector :is(input:not([type=checkbox]), select, textarea) {
  border-radius: 8px;
}
.android-home[data-busy] .android-home-library { opacity: .7; }

@media (orientation: portrait) {
  .android-editor .workspace.android-right-open #viewport > .scale { visibility: hidden; }
  .android-editor :is(#projectSettings,.android-settings-page) .form-scroll {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr);
  }
  .android-editor :is(#projectSettings,.android-settings-page) .form-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--touch-border);
  }
  .android-editor :is(#projectSettings,.android-settings-page) .form-tabs button {
    padding-inline: 4px;
    white-space: normal;
    text-align: center;
  }
  html.android-editor[data-locale='en'] body dialog:is(#projectSettings,.android-settings-page) .form-tabs button {
    min-width: 0;
    padding-inline: 4px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}
@media (max-width: 340px) {
  .android-editor body .android-primary-tools button,
  .android-editor .android-map-actions button { width: 10.5vw; }
  .android-editor .android-selection-bar button { width: 10vw; min-width: 31px; }
}
/* Touch surfaces share a tint so the map stays visible behind the controls. */
.android-editor {
  --mobile-glass: rgb(19 33 42 / .84);
  --mobile-glass-edge: rgb(142 184 185 / .27);
  --mobile-motion: 170ms cubic-bezier(.2,.72,.24,1);
}
.android-editor body .workspace > :is(.layers, .inspector) {
  background: var(--mobile-glass);
  backdrop-filter: blur(15px) saturate(125%);
  border: 1px solid var(--mobile-glass-edge);
  box-shadow: 0 6px 25px #08121e38;
  transition: opacity var(--mobile-motion), transform var(--mobile-motion), display var(--mobile-motion) allow-discrete;
}
.android-editor body .workspace > .layers { border-radius: 0 17px 17px 0; }
.android-editor body .workspace > .inspector { border-radius: 17px 0 0 17px; }
.android-editor body .workspace:not(.android-left-open) > .layers { opacity: 0; transform: translateX(-18px); }
.android-editor body .workspace:not(.android-right-open) > .inspector { opacity: 0; transform: translateX(18px); }
@starting-style {
  .android-editor body .workspace.android-left-open > .layers { opacity: 0; transform: translateX(-18px); }
  .android-editor body .workspace.android-right-open > .inspector { opacity: 0; transform: translateX(18px); }
}
.android-editor body .layers :is(.layer, .layer-group-actions) > button {
  width: 29px;
  flex-basis: 29px;
}
.android-editor body .layers .layer-name { font-size: 12px; }
.android-editor body .workspace > .inspector { --inspector-field-width: 48%; }
.android-editor body .workspace > .inspector > #properties { padding-inline: 9px; }
.android-editor body .workspace > .inspector > #properties > .property-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 6px -3px 10px;
  padding: 4px;
  background: #14252e;
  border: 1px solid var(--mobile-glass-edge);
  border-radius: 11px;
}
.android-editor body .workspace > .inspector > #properties > .property-tabs button {
  flex: 1 0 auto;
  min-width: 0;
  min-height: 33px;
  padding: 3px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #aabfc5;
  font-size: 12px;
  line-height: 1.25;
}
.android-editor body .workspace > .inspector > #properties > .property-tabs button.active {
  color: #dcfaec;
  background: #31594e;
  box-shadow: 0 1px 3px #091a1a70;
}
.android-editor body .workspace > .inspector .engineering-editor label {
  min-width: 0;
  gap: 6px;
}
.android-editor .android-edge-handle { transition: left var(--mobile-motion), right var(--mobile-motion); }

.android-editor .android-floating-tools,
.android-editor body button.android-home-back,
.android-editor body .planet-toolbar {
  background: var(--mobile-glass);
  border-color: var(--mobile-glass-edge);
  backdrop-filter: blur(14px) saturate(135%);
  box-shadow: 0 4px 16px #07131f36;
}
.android-editor :is(.android-tool-sheet, .android-selection-bar, .android-drawing-bar, #engineeringOptions, .planet-toolbar, .planet-prompt-actions) {
  transition: opacity var(--mobile-motion), translate var(--mobile-motion), display var(--mobile-motion) allow-discrete;
}
.android-editor :is(.android-tool-sheet, .android-selection-bar, .android-drawing-bar, #engineeringOptions, .planet-toolbar, .planet-prompt-actions)[hidden] {
  opacity: 0;
  translate: 0 8px;
}
@starting-style {
  .android-editor :is(.android-tool-sheet, .android-selection-bar, .android-drawing-bar, #engineeringOptions, .planet-toolbar, .planet-prompt-actions):not([hidden]) {
    opacity: 0;
    translate: 0 8px;
  }
}
.android-editor .android-tool-sheet { z-index: 21; gap: 5px; padding: 5px; }
.android-editor body:has(.android-tool-sheet:not([hidden])) :is(.android-selection-bar, .android-drawing-bar, #engineeringOptions, .android-tool-options) {
  opacity: 0;
  pointer-events: none;
  translate: 0 8px;
}
.android-editor body:has(.android-tool-sheet:not([hidden])) #viewport > .scale { visibility: hidden; }
.android-editor .android-tool-sheet > button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: clamp(72px, 22vw, 106px);
  height: 63px;
  background: #b0e2d210;
  font-size: 12px;
  white-space: normal;
  line-height: 1.15;
  text-align: center;
  transition: color 110ms ease, background-color 110ms ease;
}
.android-editor .android-tool-sheet > button:is(.android-slide-target,.active) {
  background: #325a50;
  color: #c6f4df;
}
.android-editor .android-primary-tools > button[id^=androidGroup-] { touch-action: none; user-select: none; }
.android-editor .android-drawing-bar { z-index: 20; gap: 3px; }
.android-editor .android-drawing-bar button { width: clamp(30px, 10vw, 44px); }
.android-editor .android-drawing-actions { gap: 2px; padding-inline-start: 3px; }
.android-editor .android-drawing-modes { gap: 1px; }

.android-editor body .android-exit-actions > .android-delete-confirm { color: #ffc0ae; background: #59333a; }
.android-layer-columns {
  display: grid;
  grid-row: 2;
  grid-template-columns: fit-content(30%) minmax(0, 1fr);
  min-height: 0;
}
.android-editor[lang=en] .android-layer-columns {
  grid-template-columns: clamp(72px, 20vmin, 82px) minmax(0, 1fr);
}
.android-editor[lang=en] body .android-layer-columns .android-layer-categories button {
  min-width: 0;
  padding-inline: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
}
.android-layer-categories {
  display: block;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border-right: 1px solid var(--mobile-glass-edge);
  padding: 5px 4px 3px;
}
.android-editor body .android-layer-categories button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-block: 3px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--touch-muted);
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.android-editor body .android-layer-categories button[aria-pressed=true] { background: #31594e; color: #dcfaec; }
.android-editor .android-layer-columns #layerList {
  overflow: hidden auto;
  scrollbar-width: thin;
  min-width: 0;
  padding-inline: 4px;
}
.android-layer-columns .layer-section[hidden] { display: none; }
.android-editor body .android-layer-columns .layer > .layer-name {
  display: block;
  flex: 0 1 38%;
  max-width: 38%;
  min-width: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.android-editor body .android-layer-columns :is(.layer,.layer-group) > :is(button,.layer-group-actions button) { width: 23px; flex-basis: 23px; }
.android-editor body .android-layer-columns .layer-group > span:first-child { white-space: nowrap; }
.android-editor body .android-layer-columns :is(.layer,.layer-group) { padding-inline-end: 2px; }
.android-editor body .android-layer-columns .layer-group-actions { gap: 1px; }
.android-editor body .android-layer-columns .layer:not(.layer-group) { gap: 5px; min-height: 48px; }
.android-editor body .android-layer-columns .layer:not(.layer-group) > button {
  width: 30px;
  min-width: 30px;
  flex-basis: 30px;
  height: 38px;
}
.android-editor body .android-layer-columns .layer:not(.layer-group) > button svg { width: 17px; height: 17px; }
.android-editor .android-category-settings-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) max-content;
  align-items: center;
  min-height: 42px;
  padding-inline: 4px 1px;
  border-bottom: 1px solid #69828c55;
  color: #a8d7c8;
  font-size: 12px;
  font-weight: 600;
}
.android-editor .android-category-heading {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.android-editor body:not(.planet-overview) .android-layer-columns {
  --layer-action-width: clamp(20px, 6.4vmin, 30px);
  --layer-action-gap: clamp(2px, 1vmin, 5px);
}
.android-editor body:not(.planet-overview) .android-layer-columns .layer[data-category] {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) repeat(5, var(--layer-action-width));
  gap: var(--layer-action-gap);
  padding-inline-end: 2px;
}
.android-editor body:not(.planet-overview) .android-layer-columns .layer[data-category] > .layer-name {
  max-width: none;
  min-width: 0;
}
.android-editor body:not(.planet-overview) .android-layer-columns .layer[data-category] > .swatch {
  max-width: 12px;
  margin: 0;
}
.android-editor body:not(.planet-overview) .android-layer-columns .android-category-settings-row {
  padding-inline-end: 2px;
}
.android-editor body:not(.planet-overview) .android-category-settings-row .android-layer-header-actions {
  display: grid;
  grid-template-columns: repeat(5, var(--layer-action-width));
  gap: var(--layer-action-gap);
}
.android-editor body:not(.planet-overview) .android-layer-columns :is(.layer[data-category], .android-category-settings-row .android-layer-header-actions) > button {
  width: var(--layer-action-width);
  min-width: 0;
  height: 38px;
  margin: 0;
  justify-self: center;
}
.android-editor body:not(.planet-overview) .android-layer-target .layer[data-category] {
  grid-template-columns: 12px minmax(0, 1fr);
}
@media (orientation: portrait) {
  .android-editor .workspace.android-left-open #viewport > .android-selection-bar {
    visibility: hidden;
  }
}
.android-editor body .android-layer-columns .layer-group { display: none; }
.android-editor .android-layer-list-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) max-content;
  align-items: center;
  min-height: 35px;
  padding-inline: 4px 3px;
  color: var(--touch-muted);
  font-size: 12px;
}
.android-editor .android-layer-header-actions { display: flex; align-items: center; gap: 1px; }
.android-editor .android-layer-header-actions button,
.android-editor .android-category-settings-row button {
  display: grid;
  place-items: center;
  width: 20px;
  min-width: 20px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94abb7;
}
.android-editor .android-category-settings-row .android-layer-header-actions { gap: 0; }
.android-editor .android-category-settings-row .android-layer-header-actions button { width: 21px; min-width: 21px; }
.android-editor .android-category-settings-row .android-layer-header-actions svg { width: 16px; height: 16px; }
.android-editor .android-layer-header-actions svg,
.android-editor .android-category-settings-row svg { width: 15px; height: 15px; }
@media (orientation: portrait) {
  .android-editor .android-layer-columns { grid-template-columns: fit-content(31%) minmax(0,1fr); }
  .android-editor body .android-layer-columns .android-layer-categories button {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-inline: 6px;
  }
  .android-editor body .android-layer-columns .layer {
    padding-inline: 4px 2px;
    gap: 5px;
  }
  .android-editor body .android-layer-columns .layer > .layer-name {
    flex-basis: 34%;
    max-width: 34%;
  }
  .android-editor body .android-layer-columns .layer > .swatch {
    width: 10px;
    flex-basis: 10px;
    margin-inline-end: 3px;
  }
  .android-editor body .android-layer-columns .layer-section { margin-bottom: 0; }
  .android-editor body .android-layer-columns .layer-section .layer > :is(button,.layer-group-actions button) {
    width: 30px;
    min-width: 30px;
    flex-basis: 30px;
    height: 38px;
  }
}

.android-editor body.planet-overview .android-layer-columns {
  display: block;
  overflow: hidden auto;
}
.android-editor body.planet-overview .android-layer-columns > .android-layer-categories { display: none; }
.android-editor body.planet-overview .android-layer-columns > #layerList {
  display: block;
  height: 100%;
  overflow: auto;
  padding-inline: 6px;
}
.android-editor body.planet-overview .android-layer-columns .layer-section[hidden] { display: block; }
.android-editor body.planet-overview .android-layer-columns .layer-group {
  display: flex;
  min-height: 42px;
  padding-inline: 6px 1px;
  gap: 0;
}
.android-editor body.planet-overview .android-layer-columns .layer-group > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.android-editor body.planet-overview .android-layer-columns .layer-group-actions { gap: 0; }
.android-editor body.planet-overview .android-layer-columns .layer-group-actions button,
.android-editor body.planet-overview .android-layer-columns .layer[data-planet-reference] > button {
  width: 30px;
  min-width: 30px;
  flex-basis: 30px;
  height: 38px;
}
.android-editor body.planet-overview .android-layer-columns .layer[data-planet-reference] > .layer-name {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.android-editor .start-screen:not(.android-home) { display: none; }
.android-editor body dialog.android-exit-dialog {
  position: fixed;
  inset: auto 0 max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(calc(100% - 24px), 385px);
  max-height: calc(100% - 24px);
  margin: 0 auto;
  padding: 17px;
  overflow: auto;
  color: var(--touch-ink);
  background: #1b3039;
  border: 1px solid #41615f;
  border-radius: 21px;
  box-shadow: 0 18px 56px #081214a6;
}
.android-exit-dialog::backdrop { background: #0913189c; backdrop-filter: blur(4px); }
.android-exit-dialog[open] { animation: android-exit-enter var(--mobile-motion); }
@keyframes android-exit-enter { from { opacity: 0; transform: translateY(16px); } }
.android-exit-heading {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 11px;
  height: auto;
  margin-bottom: 15px;
  padding: 0;
  border: 0;
}
.android-exit-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 13px;
  color: #abecd0;
  background: #2d5048;
}
.android-exit-mark svg, .android-exit-actions svg { width: 19px; height: 19px; }
.android-exit-heading h2 { margin: 0; font-size: 17px; }
.android-exit-heading p { margin: 4px 0 0; color: #b4c9ce; font-size: 13px; }
.android-exit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.android-editor body .android-exit-actions > button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border: 1px solid #3e5b62;
  border-radius: 11px;
  background: #263f48;
  color: #d4e4e5;
  font-size: 13px;
}
.android-editor body .android-exit-actions > button.primary {
  grid-column: 1 / -1;
  background: #91dfbb;
  border-color: #abebcf;
  color: #143c32;
  font-weight: 700;
}
.android-editor body .android-exit-actions > button:nth-child(2) { color: #f2bcaa; }
@media (prefers-reduced-motion: reduce) {
  .android-exit-dialog[open] { animation: none; }
}

.android-editor :is(#projectSettings,.android-settings-page) .form-tab-panel {
  padding: 12px;
  align-content: start;
}
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-commands:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 10px;
}
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-card {
  min-width: 0;
  margin: 0 0 10px;
  padding: 9px;
  border: 1px solid #344a55;
  border-radius: 14px;
  background: #21313b;
}
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-card h3 {
  margin: 1px 4px 8px;
  padding: 0;
  border: 0;
  color: #a8d7c8;
  font-size: 13px;
}
.android-settings-name { margin: 0 4px 9px; font-size: 14px; overflow-wrap: anywhere; }
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows { display: grid; gap: 3px; }
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows > :is(label,button) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  width: 100%;
  margin: 0;
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  background: #293c46;
  color: #dce8ea;
  font-size: 13px;
  text-align: start;
}
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows > button { justify-content: start; }
.android-settings-rows > button:is(:hover,:active) { background: #35505a; }
.android-settings-rows > :is(button, label) > :is(svg, i) { flex: 0 0 19px; width: 19px; height: 19px; }
.android-settings-swatch { border-radius: 5px; background: linear-gradient(140deg, var(--ground) 48%, var(--road) 49% 63%, var(--water) 64%); }
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows label > span { min-width: 0; flex: 1; }
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows label {
  --settings-field-width: max(68px, 44%);
  --settings-swatch-space: 27px;
}
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows label > :is(input:not([type=checkbox]),select,textarea) {
  flex: 0 0 var(--settings-field-width);
  width: var(--settings-field-width);
}
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows label > :is(input:not([type=checkbox]),select,textarea),
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows label > :is(.paint-color-control,.style-color-input) > input {
  box-sizing: border-box;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--ui-field-border);
  border-radius: 7px;
  background: var(--ui-field-bg);
}
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows label > :is(input,select,textarea):focus,
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows label > :is(.paint-color-control,.style-color-input) > input:focus {
  border-color: #71b999;
}
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows label > input[type=checkbox] {
  order: 1;
  appearance: none;
  flex: 0 0 33px;
  width: 33px;
  height: 19px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 9px 50%, #d9e4e5 4px, transparent 5px), #53636c;
}
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows label > input[type=checkbox]:checked {
  background: radial-gradient(circle at 24px 50%, #143b30 4px, transparent 5px), #9cddc3;
}
.android-settings-rows button[aria-pressed]::after {
  content: "";
  width: 33px;
  height: 19px;
  flex: 0 0 33px;
  margin-inline-start: auto;
  border-radius: 12px;
  background: radial-gradient(circle at 9px 50%, #d9e4e5 4px, transparent 5px), #53636c;
}
.android-settings-rows button[aria-pressed=true]::after {
  background: radial-gradient(circle at 24px 50%, #143b30 4px, transparent 5px), #9cddc3;
}
.android-editor :is(#projectSettings,.android-settings-page):has(.android-settings-commands:not([hidden])) .dialog-actions { display: none; }
.android-editor :is(#projectSettings,.android-settings-page) .android-settings-rows > [hidden] { display: none; }
.android-editor dialog.android-option-picker {
  position: fixed;
  inset: auto 0 9px;
  width: min(440px, calc(100% - 20px));
  max-height: min(76dvh, 520px);
  padding: 8px 11px 11px;
  border: 1px solid #4e6874;
  border-radius: 20px;
  background: #223741;
  color: var(--touch-ink);
  overflow: hidden;
}
.android-editor dialog.android-option-picker[open] { display: flex; flex-direction: column; }
.android-option-picker::backdrop { background: #08101777; }
.android-editor .android-option-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 8px;
  padding: 1px 4px 7px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
}
.android-option-list { display: grid; gap: 3px; overflow: auto; }
.android-editor .android-option-picker button { border: 0; border-radius: 10px; }
.android-editor .android-option-picker header button { min-height: 40px; padding: 6px 10px; background: transparent; }
.android-editor .android-option-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 6px 10px;
  text-align: start;
  background: #2d4550;
  color: var(--touch-ink);
}
.android-editor .android-option-list button[aria-selected=true] { background: #315b53; color: #c8f5e1; }
.android-option-picker button svg { width: 18px; height: 18px; vertical-align: middle; }
@media (orientation: portrait) {
  .android-editor :is(#projectSettings,.android-settings-page) .android-settings-commands:not([hidden]) { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .android-editor { --mobile-motion: 0ms; }
}

/* Mobile sheets keep actions within thumb reach and scroll only their fields. */
.android-editor body dialog.android-sheet {
  position: fixed;
  color: var(--touch-ink);
  background: #1b3039;
  overflow: auto;
}
.android-editor body dialog.android-sheet::backdrop { background: #07141894; backdrop-filter: blur(4px); }
.android-editor body dialog.android-sheet .dialog-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px 0 10px;
  background: #1b3039;
  border-bottom: 1px solid #3b585e;
}
.android-editor body dialog.android-sheet :is(.dialog-actions,.form-scroll) { min-width: 0; }
.android-editor body dialog.android-sheet .dialog-actions button { min-height: 44px; }
.android-editor body dialog.android-sheet .form-scroll > label {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0, 48%);
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #223b45;
}
.android-editor body dialog.android-sheet .form-scroll > label > :is(input,select) { min-width: 0; max-width: 100%; }
.android-editor body #advancedPanel {
  inset: auto 0 0;
  width: min(100%, 580px);
  max-height: 82dvh;
  height: min(70dvh, 560px);
  margin: auto;
  color: var(--touch-ink);
  background: #1b3039;
  border: 1px solid #41615f;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 36px #07151b88;
}
.android-editor body #advancedPanel .advanced-tabs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: 6px 10px 10px;
}
.android-editor body #advancedPanel .advanced-tabs button {
  min-width: 0;
  padding: 4px;
  min-height: 42px;
  border-radius: 9px;
  white-space: normal;
}
.android-editor body #advancedPanel .advanced-tabs button.active { background: #31594e; color: #dcfaec; }
.android-editor body #advancedContent { padding: 12px; min-height: 0; }
.android-editor body #advancedContent button { min-height: 39px; }
.android-editor body #advancedContent .snapshot-list article { padding: 10px; border-radius: 12px; }
.android-editor body #advancedContent .name-generator-options { grid-template-columns: repeat(auto-fit,minmax(min(100%,130px),1fr)); }

.android-editor .popup-menu { max-height: min(72dvh, calc(100dvh - 20px)); overflow: auto; }
.android-editor .popup-menu button > svg { width: 20px; height: 20px; flex: 0 0 20px; margin-inline-end: 8px; }
.android-editor .popup-menu button:has(> svg) > span { flex: 1; text-align: start; }
.android-editor .inspector .side-range-controls { display: none; }

/* The main tool surfaces share the drawing bar's footprint and buttons. */
.android-editor #viewport > :is(#engineeringOptions,.android-tool-options) {
  position: absolute;
  z-index: 20;
  left: var(--android-control-center);
  bottom: 9px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: max-content;
  max-width: calc(var(--android-control-space) - 12px);
  padding: 3px 5px;
  border-radius: 12px;
  box-sizing: border-box;
}
.android-editor #viewport > :is(#engineeringOptions,.android-tool-options)[hidden] { display: none; }
.android-editor #viewport:has(:is(#engineeringOptions,.android-tool-options):not([hidden])) > .scale { visibility: hidden; }
.android-editor #viewport:has(> :is(#engineeringOptions,.android-tool-options):not([hidden])) > .android-selection-bar {
  visibility: hidden;
  pointer-events: none;
}
.android-editor #viewport:has(> .android-drawing-bar:not([hidden])) > .android-tool-options { bottom: 64px; }
.android-editor #viewport > #engineeringOptions {
  flex-wrap: wrap;
  max-height: none;
  overflow: visible;
  --engineering-button-width: clamp(28px, 9.5vw, 44px);
}
.android-editor #engineeringOptions #engineeringPhase { display: none; }
.android-editor #engineeringOptions #engineeringCancel { display: grid; }
.android-editor #engineeringStatus {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.android-editor #engineeringOptions :is(.android-engineering-guides,.engineering-actions) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1px;
  margin: 0;
}
.android-editor #engineeringOptions :is(.android-engineering-guides,.engineering-actions) > button {
  width: var(--engineering-button-width);
}
.android-editor #engineeringOptions .engineering-actions > #engineeringCancel {
  width: var(--engineering-button-width);
  min-width: var(--engineering-button-width);
  flex: 0 0 var(--engineering-button-width);
  margin-inline-start: 4px;
  color: var(--touch-muted);
}
.android-editor #engineeringOptions button[data-engineering-guide].active { color: var(--touch-accent); background: #2b4b45; }
.android-editor #engineeringOptions button[data-engineering-guide=path]:not(.active) { background: var(--touch-accent); color: #17372f; }
.android-editor #androidToolSettings { color: var(--touch-muted); margin-inline-start: 2px; }
.android-editor .android-tool-options .android-option-content {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.android-editor .android-tool-options .android-option-content > :not(form,[data-android-compact]),
.android-editor .android-tool-options form > :not([data-android-compact]),
.android-editor .android-tool-options .geometry-tool-fields > :not(.deviation-slider,:has(> select)),
.android-editor .android-tool-options .geometry-tool-fields > :is(.deviation-slider,:has(> select)) ~ :is(.deviation-slider,:has(> select)),
.android-editor .android-tool-options .android-compact-caption { display: none; }
.android-editor .android-tool-options :is(form,.geometry-tool-fields) { display: contents; }
.android-editor .android-tool-options #smoothDialog .smooth-simplification-settings { display: none; }
.android-editor [data-slide-picked] { background: #2c544c; color: #d9f7e9; }
.android-editor :is(#androidLayers,#androidSelectionMore,#androidNodeMore,#androidImageMore) { touch-action: none; }
.android-editor .android-tool-options :is(.button-row,.fill-subtabs,.railway-side-options,.platform-mode-controls) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
}
.android-editor .android-tool-options :is(.button-row,.fill-subtabs,.railway-side-options,.platform-mode-controls):not(:has(button:not([hidden]))) { display: none; }
.android-editor #viewport .android-tool-options button,
.android-editor #viewport .android-tool-options #platformDraw {
  flex: 0 0 auto;
  width: clamp(32px, 9vw, 44px);
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.android-editor .android-tool-options :is(button.active, button[aria-selected=true], button[aria-pressed=true]) {
  color: var(--touch-accent);
  background: #2b4b45;
}
.android-editor .android-tool-options [data-compact-icon=finish]:not(:disabled) { background: var(--touch-accent); color: #17372f; }
.android-editor #viewport .android-tool-options [data-compact-icon=finish]:disabled { background: transparent; border: 0; }
.android-editor .android-tool-options [data-compact-icon=close] { color: #f1b8b2; }
.android-editor .android-tool-options label:not(.deviation-slider) {
  display: flex;
  align-items: center;
  gap: 0;
  width: auto;
  font-size: 0;
  min-width: 0;
  margin: 0;
}
.android-editor .android-tool-options label:not(.deviation-slider) > span { display: none; }
.android-editor .android-tool-options :is(input[type=number],select) {
  margin: 0;
  min-width: 0;
  height: 34px;
  padding-inline: 7px;
  color: var(--touch-ink);
  background: #1b333d;
  border: 1px solid var(--mobile-glass-edge);
  border-radius: 7px;
  font-size: 12px;
}
.android-editor .android-tool-options input[type=number] { width: 62px; text-align: center; }
.android-editor .android-tool-options .android-option-content label > select {
  width: clamp(74px, 25vw, 128px);
  min-width: 0;
  max-width: none;
  text-overflow: ellipsis;
}
.android-editor .android-tool-options .deviation-slider { width: clamp(106px, 37vw, 184px); }

.android-editor .android-slider-input { display: none !important; }
.android-editor :is(.android-tool-settings,.android-tool-options) :is(.deviation-slider,.fill-building-fit:has(input[type=range])):not([hidden]) {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 6px;
  min-width: 0;
  font-size: 0;
}
.android-editor :is(.android-tool-settings,.android-tool-options) :is(.deviation-slider,.fill-building-fit) input[type=range] {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  order: -1;
  height: 40px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.android-editor :is(.android-tool-settings,.android-tool-options) input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--touch-accent) var(--opacity-value, 0%), #587078 var(--opacity-value, 0%));
}
.android-editor :is(.android-tool-settings,.android-tool-options) input[type=range]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 1px solid #244f44;
  border-radius: 50%;
  background: var(--touch-accent);
  appearance: none;
  -webkit-appearance: none;
}
.android-editor :is(.android-tool-settings,.android-tool-options) :is(.android-slider-value,[data-fill-row-value],[data-fill-fit-value]) {
  flex: 0 0 auto;
  min-width: 3ch;
  text-align: end;
  font: 600 12px/1.2 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #d5f3e7;
}
.android-editor .android-tool-settings :is(.fill-building-fit > span:not([data-fill-row-value],[data-fill-fit-value]),.fill-building-fit > small) { display: none; }

.android-editor body .android-tool-settings {
  inset: auto 0 0;
  width: min(100%, 460px);
  max-width: 100%;
  max-height: min(76dvh, 560px);
  margin: 0 auto;
  padding: 7px 14px 14px;
  color: var(--touch-ink);
  background: #1b3039;
  border: 1px solid #41615f;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 10px 42px #07151bb3;
  box-sizing: border-box;
  overflow: auto;
}
.android-editor .android-tool-settings::backdrop { background: #0714187b; backdrop-filter: blur(3px); }
.android-editor .android-tool-settings-body { padding: 3px 0 0; }
.android-editor .android-tool-settings :is(.android-option-content,.android-engineering-modes) { display: block; }
.android-editor .android-tool-settings .android-option-content > :is(h3,p:not([role=alert],.engineering-error)),
.android-editor .android-tool-settings .android-compact-caption + svg { display: none; }
.android-editor .android-tool-settings :is(.android-option-content,.android-engineering-modes) label:not(.deviation-slider,.fill-building-fit,[hidden]) {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,47%);
  align-items: center;
  min-height: 38px;
  gap: 8px;
  margin-block: 2px;
  overflow-wrap: anywhere;
}
.android-editor .android-tool-settings .android-engineering-modes label:not(:has(select:not([hidden]))) { display: none; }
.android-editor .android-tool-settings label > :is(input:not([type=checkbox],[type=range]),select) {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 34px;
  padding-inline: 7px;
  margin: 0;
  border-radius: 7px;
  color: var(--touch-ink);
  background: #152730;
  border: 1px solid #47626a;
  box-sizing: border-box;
}
.android-editor .android-tool-settings label > input[type=checkbox] { justify-self: end; }
.android-editor .android-tool-settings .engineering-output-layer { display: flex; align-items: center; gap: 7px; }
.android-editor .android-tool-settings .engineering-output-layer svg { width: 18px; height: 18px; }
@media (orientation: portrait) {
  .android-editor .workspace:is(.android-left-open,.android-right-open) #viewport > :is(#engineeringOptions,.android-tool-options) {
    visibility: hidden;
  }
}

.android-editor #viewport > #androidEngineeringExtra {
  position: absolute;
  bottom: 66px;
  left: var(--android-control-center);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 21;
  padding: 4px 6px;
}
.android-editor #androidEngineeringExtra:not(:has(:is(select, .engineering-radius-prompt, .android-quick-actions):not([hidden]))) {
  display: none;
}
.android-editor #androidEngineeringExtra label { margin: 0; }
.android-editor #androidEngineeringExtra select {
  min-width: 122px;
  padding: 0 26px 0 10px;
  color: var(--touch-ink);
  background-color: #192f39;
  border: 1px solid var(--mobile-glass-edge);
  border-radius: 7px;
}
.android-editor #androidEngineeringExtra label:has(> select[hidden]) { display: none; }
.android-editor #androidEngineeringExtra :is(select, .engineering-radius-prompt input) {
  min-height: 38px;
  margin: 0;
}
.android-editor #androidEngineeringExtra .engineering-radius-prompt {
  position: static;
  transform: none;
  padding: 0;
}
.android-editor #androidEngineeringExtra .android-quick-actions {
  position: static;
  flex: 0 1 auto;
  max-width: none;
  padding: 0;
  transform: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.android-editor #viewport:not(:has(#engineeringOptions:not([hidden]) :is([data-engineering-guide=circle], [data-engineering-guide=arc], [data-engineering-guide=quick]).active)) > #androidEngineeringExtra {
  display: none;
}
.android-editor #androidEngineeringExtra .engineering-radius-prompt input {
  min-width: 64px;
  padding-inline: 4px;
  pointer-events: auto;
}
.android-editor #engineeringOptions .engineering-actions > button[data-engineering-guide]:not(:disabled) {
  color: #18382d;
  background: var(--touch-accent);
}
.android-editor #engineeringOptions .engineering-actions > button[data-engineering-guide].active {
  background: #b6eed6;
}
.android-editor #viewport .android-tool-options :is(.platform-shape-controls, .platform-lock-actions[data-android-compact]) {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}
.android-editor #viewport .android-tool-options #platformDraw { order: 1; }
.android-editor #viewport .android-tool-options .platform-lock-actions { order: 2; border: 0; padding: 0; }
.android-editor #viewport .android-tool-options .platform-lock-actions button { flex: none; }

.android-editor .android-tool-options [data-panel=fill]:has([data-fill-type=land][aria-selected=true]) .button-row:has([data-fill-regenerate]) {
  display: none;
}
.android-editor .android-tool-options :is([data-panel=fill], [data-panel=railway]) {
  flex-wrap: nowrap;
  justify-content: center;
}

.android-editor .android-tool-options label.android-junction-radius {
  display: flex;
  width: clamp(118px, 40vw, 230px);
}
.android-editor .android-tool-settings [data-android-compact]:not(.geometry-tool-fields),
.android-editor .android-tool-settings .geometry-tool-fields > .deviation-slider {
  display: none !important;
}
.android-editor .android-tool-settings #smoothDialog .geometry-tool-fields > label:has(select) ~ label:has(select) {
  display: grid;
}
.android-editor #exportDialog .export-dialog-fields {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 2px;
}
.android-editor #androidRename .name-generator-inline {
  position: static;
  width: auto;
  max-width: none;
  padding: 0;
  margin-top: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.android-editor #androidRename .name-generator-inline .name-generator-heading { display: none; }
.android-editor #androidRename .name-generator-inline .name-generator-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 6px;
}
.android-editor #androidRename .name-generator-inline .name-generator-options label[hidden] { display: none; }
.android-editor #androidRename .name-generator-inline .name-generator-results {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
}

.android-editor .android-tool-settings [data-panel=fill]:has([data-fill-type=land][aria-selected=true]) .button-row:has([data-fill-regenerate]) {
  display: flex !important;
}
.android-editor .android-tool-settings #areaDialog .geometry-tool-fields > label:has(#areaOperation) {
  display: none;
}
.android-editor .android-tool-options [data-panel=fill] [data-compact-icon=refresh]:disabled {
  background: transparent;
}
.android-editor body #androidRename.android-sheet { overflow: hidden; }
.android-editor #androidRename .name-generator-options label { grid-column: auto; }
.android-editor #androidRename .name-generator-options select { width: 100%; min-width: 0; }
.android-editor .android-tool-settings .android-option-content label > :is(input:not([type=checkbox],[type=range]), select) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.android-editor #androidEngineeringExtra .engineering-radius-prompt {
  height: auto;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.android-editor #androidEngineeringExtra .engineering-radius-prompt input {
  background: #192f39;
  border: 1px solid var(--mobile-glass-edge);
  border-radius: 7px;
}

/* Android pages fill the viewport. Short actions and pickers enter from its bottom edge. */
.android-editor body dialog:is(.android-sheet, .android-exit-dialog, .android-tool-settings, .android-option-picker) {
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: min(60dvh, 560px);
  margin: 0;
  padding: 10px clamp(12px, 4vw, 24px) max(12px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 26px #07151b7a;
}
.android-editor body dialog:is(.android-page,#projectSettings,.android-settings-page)[open],
.android-editor body #advancedPanel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.android-editor body dialog.android-page[open] {
  display: flex;
  flex-direction: column;
  padding-block: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-bottom));
  overflow: auto;
}
.android-editor body dialog.android-page > :is(.dialog-heading, .dialog-actions, #confirmExport, #confirmImport) { flex: none; }
.android-editor body dialog.android-page > form {
  flex: 1;
  max-height: none;
  min-height: 0;
}
.android-editor body dialog.android-page .form-scroll {
  flex: 1;
  overscroll-behavior: contain;
}
.android-editor body dialog.android-page .dialog-heading { position: static; }
.android-editor #exportDialog .export-dialog-fields { flex: 1; min-height: 0; }
.android-editor #exportDialog .export-layers { max-height: none; }
.android-editor #exportDialog .android-export-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  flex: none;
  gap: 8px;
  padding-block-start: 8px;
}
.android-editor body #exportDialog .android-export-actions button {
  height: 46px;
  margin: 0;
}
.android-editor #exportDialog .android-export-actions button:disabled { opacity: .45; }
.android-editor body .workspace.android-left-open .planet-toolbar { visibility: hidden; }
.android-editor body dialog.android-page .dialog-actions:has(> .cancel-settings + .primary:last-child),
.android-editor body dialog.android-compact-form .dialog-actions:has(> .cancel-settings + .primary:last-child),
.android-editor body dialog.android-settings-page .dialog-actions:has(> .cancel-settings + .primary:last-child) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  border: 0;
  background: transparent;
}
.android-editor body dialog .dialog-actions:has(> .cancel-settings + .primary:last-child) > button {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  margin: 0;
}
.android-editor body #androidRename.android-page { overflow: hidden; }
.android-editor #androidRename .name-generator-inline .name-generator-results {
  max-height: none;
  overflow: visible;
}
.android-editor #androidRename .name-generator-inline .name-generator-options label { text-align: start; }
.android-editor #androidRename .name-generator-inline .name-generator-heading > span {
  overflow-wrap: anywhere;
  text-align: end;
}
.android-editor body .android-tool-settings[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.android-editor .android-tool-settings-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }

.android-editor #viewport > .android-tool-options:has([data-panel=fill], #turnoutNumber) {
  --compact-tool-width: clamp(28px, 8vw, 40px);
  gap: 2px;
}
.android-editor #viewport .android-tool-options:has([data-panel=fill], #turnoutNumber) button {
  width: var(--compact-tool-width);
}
.android-editor .android-tool-options :is([data-panel=fill], [data-panel=railway]:has(#turnoutNumber)) {
  gap: 2px;
}
.android-editor .android-tool-options [data-panel=fill] label > select,
.android-editor .android-tool-options #turnoutNumber {
  width: clamp(53px, 19vw, 126px);
  max-width: 100%;
}
.android-editor .android-tool-options #turnoutRadius {
  width: clamp(43px, 14vw, 76px);
  max-width: 100%;
  appearance: textfield;
}
.android-editor .android-tool-options #turnoutRadius::-webkit-inner-spin-button { appearance: none; }
.android-editor .android-tool-options [data-panel=fill] label,
.android-editor .android-tool-options [data-panel=railway]:has(#turnoutNumber) label {
  flex: 0 1 auto;
}

.android-editor .android-tool-options label[data-android-summary] { position: relative; }
.android-editor .android-tool-options label[data-android-summary]::before {
  content: attr(data-android-summary);
  position: absolute;
  inset-inline: 7px 20px;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.2;
  color: var(--touch-ink);
  pointer-events: none;
}
.android-editor .android-tool-options label[data-android-summary]::after {
  content: '';
  position: absolute;
  inset-inline-end: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: solid var(--touch-ink);
  border-width: 0 1px 1px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.android-editor .android-tool-options label[data-android-summary] > select {
  appearance: none;
  color: transparent;
}
.android-editor #viewport .android-tool-options :is(.platform-lock-actions button,[data-compact-icon=refresh]):disabled {
  opacity: 1;
  background: transparent;
  color: var(--touch-muted);
}
.android-editor .android-tool-options :is(.platform-lock-actions button,[data-compact-icon=refresh]):disabled svg {
  background: transparent;
  opacity: 1;
}
.android-editor .android-tool-settings hr {
  border: 0;
  border-top: 1px solid var(--mobile-glass-edge);
}

@media (orientation: landscape) {
  .android-editor #exportDialog .export-dialog-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    column-gap: 18px;
    align-content: start;
  }
  .android-editor #exportDialog .export-dialog-fields > :not(label) { grid-column: 1 / -1; }
  .android-editor #exportDialog .export-dialog-fields > label { margin-block: 4px; }
  .android-editor #androidRename .name-generator-inline {
    display: grid;
    grid-template-columns: minmax(150px, 2fr) minmax(0, 3fr);
    column-gap: 12px;
  }
  .android-editor #androidRename .name-generator-inline .name-generator-heading { grid-column: 1 / -1; }
  .android-editor #androidRename .name-generator-inline .name-generator-options {
    grid-column: 1;
    grid-row: 2 / span 2;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  .android-editor #androidRename .name-generator-inline .name-generator-results-head {
    grid-column: 2;
    grid-row: 2;
  }
  .android-editor #androidRename .name-generator-inline .name-generator-results {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }
}

/* The mobile transform interface has its own controls and layout. */
.android-editor #viewport > .android-transform-bar:not([hidden]) {
  position: absolute;
  z-index: 20;
  inset: auto auto 9px var(--android-control-center);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(var(--android-control-space) - 12px);
  color: #edf8f4;
  background: #1d333eda;
  backdrop-filter: blur(14px) saturate(135%);
  border: 1px solid #4b6872;
  border-radius: 14px;
  box-shadow: 0 6px 18px #08182050;
  padding: 6px;
}
.android-editor #viewport:has(> :is(.android-transform-bar:not([hidden]), .android-selection-transform)) > :is(.android-selection-bar,.scale) { visibility: hidden; }
.android-transform-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.android-transform-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.android-transform-fields:has(label:not([hidden]):only-of-type) { grid-template-columns: minmax(0, 1fr); }
.android-transform-fields label {
  display: grid;
  min-width: 0;
  gap: 3px;
  margin: 0;
  color: #a9c3cb;
  font: 11px/1.2 system-ui,sans-serif;
}
.android-transform-fields label > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline: 4px;
}
.android-transform-number {
  display: flex;
  align-items: center;
  width: clamp(58px, 17vw, 110px);
  max-width: 100%;
  gap: 3px;
  padding-inline: 5px;
  background: #263f4a;
  border: 1px solid #486875;
  border-radius: 8px;
}
.android-transform-number:focus-within { border-color: #99e0c2; }
.android-transform-number input {
  appearance: textfield;
  min-width: 0;
  height: 35px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #eef8f5;
  background: transparent;
  font: 600 13px/1.2 system-ui,sans-serif;
  outline: none;
}
.android-transform-number input::-webkit-inner-spin-button { appearance: none; }
.android-transform-controls { display: flex; align-items: center; gap: 3px; }
.android-transform-view button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 33px;
  height: 42px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c7dde2;
}
.android-transform-view button[aria-pressed=true] { background: #345a50; color: #c2f4df; }
.android-transform-controls .android-transform-apply, .android-transform-fields button { background: #93deb9; color: #14362a; }
.android-transform-view button:disabled { opacity: 1; color: #77999d; background: transparent; }
.android-transform-view button svg { width: 18px; height: 18px; fill: none; pointer-events: none; }
.android-transform-controls .counterclockwise svg { transform: scaleX(-1); }
.android-transform-validation { grid-column: 1 / -1; color: #f1b8b2; font-size: 11px; }
.android-transform-validation:empty { display: none; }
.android-editor #androidRename .name-generator-options { padding-block: 0 5px; }
.android-editor #androidRename .name-generator-options label { margin-block: 0; }
@media (orientation: landscape) {
  .android-editor #androidRename .name-generator-inline .name-generator-options { grid-row: 1 / span 2; }
  .android-editor #androidRename .name-generator-inline .name-generator-results-head { grid-row: 1; }
  .android-editor #androidRename .name-generator-inline .name-generator-results { grid-row: 2; }
}

.android-editor :is(.android-drawing-actions, .android-tool-options .fill-subtabs,
  .android-tool-options .platform-shape-controls) { position: relative; }
.android-editor .android-tool-options .fill-subtabs { padding-inline-end: 6px; }
.android-editor .android-tool-options .platform-shape-controls { padding-inline: 6px; }
.android-editor :is(.android-drawing-modes:not([hidden]) + .android-drawing-actions,
  .android-tool-options .platform-shape-controls)::before,
.android-editor :is(.android-tool-options .fill-subtabs, .android-tool-options .platform-shape-controls)::after {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 17px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: #91aab4;
  content: '';
  pointer-events: none;
}
.android-editor :is(.android-drawing-actions, .android-tool-options .platform-shape-controls)::before { inset-inline-start: 0; }
.android-editor :is(.android-tool-options .fill-subtabs, .android-tool-options .platform-shape-controls)::after { inset-inline-end: 0; }
.android-editor .android-tool-settings :is(.android-option-content, form) > hr:first-of-type { display: none; }
.android-editor .android-tool-settings .fill-boundaries { border-block-start: 0; }

.android-editor #androidRename .name-generator-inline .name-generator-options {
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  padding: 0;
  border: 0;
}
.android-editor #androidRename .name-generator-inline .name-generator-options label:not([hidden]) {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(66px, 29%) minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 0;
  min-height: 32px;
  font-size: 12px;
}
.android-editor #androidRename .name-generator-inline .name-generator-options label > span { grid-area: 1 / 1; }
.android-editor #androidRename .name-generator-inline .name-generator-options select { grid-area: 1 / 2; margin: 0; }
.android-editor #androidRename .name-generator-results-head { padding-inline: 0; }
.android-editor #androidRename .name-generator-inline .name-generator-results { padding: 0; gap: 4px; }
.android-editor #androidRename .name-generator-result {
  padding: 4px 8px;
  min-height: 32px;
  background: #25404b;
  border-radius: 6px;
}
.android-editor[lang=en] #androidRename .name-generator-result {
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.android-editor #androidRename .name-generator-result:focus-visible,
.android-editor #androidRename .name-generator-result:hover { background: #315a52; }
@media (orientation: landscape) {
  .android-editor #androidRename .name-generator-inline .name-generator-results {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 76px), 1fr));
  }
}
.android-transform-fields > [hidden] { display: none; }
.android-transform-fields button { white-space: nowrap; }
.android-editor #viewport > .android-selection-transform {
  position: absolute;
  z-index: 20;
  bottom: 9px;
  left: var(--android-control-center);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}
.android-editor .android-selection-transform button[data-selection-apply] { background: #93deb9; color: #14362a; }
.android-editor .android-selection-transform .selection-tool-status:empty { display: none; }

/* Touch-only properties and map workflows. The hidden inspector owns the
   same controls as desktop, so both surfaces apply the same edits. */
.android-editor .workspace > .inspector { display: none !important; }
.android-editor :is([data-category-style], [data-layer-style]) svg {
  width: 16px;
  height: 16px;
}
.android-editor .android-layer-target :is(.layer button, .layer-group-actions, [data-category-style], [data-reference-layer]) {
  display: none !important;
}
.android-editor .android-layer-target .layer[data-category] { cursor: pointer; }
.android-editor #viewport > :is(.android-railway-preview,.android-admin-actions):not([hidden]) {
  position: absolute;
  z-index: 27;
  left: var(--android-control-center);
  bottom: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
}
.android-editor #viewport > .android-admin-actions:not([hidden]) { bottom: 9px; }
.android-editor #viewport:has(.android-railway-preview:has(#androidPlatformConfirm):not([hidden])) > .android-platform-lock-dock { display: none; }
.android-editor .android-railway-preview input,
.android-editor .android-selection-transform select {
  color: var(--touch-ink);
  background-color: #17303a;
  border: 1px solid #567078;
  border-radius: 8px;
  min-height: 39px;
  padding: 6px 9px;
}
.android-editor .android-railway-preview input {
  min-inline-size: 76px;
  text-align: center;
}
.android-editor .android-tool-options .railway-platform input[type=number]::-webkit-inner-spin-button {
  appearance: none;
}
.android-editor .android-selection-transform .selection-tool-status {
  color: var(--touch-muted);
  font-size: 12px;
  white-space: nowrap;
  padding-inline: 2px;
}
.android-editor .android-tool-options > #androidToolCollapse { width: clamp(30px, 8vw, 44px); }
.android-editor .android-tool-options .railway-platform label:has([data-platform-param=width],[data-platform-param=maxWidth]) { min-width: 0; }
.android-editor .android-tool-options .platform-lock-actions,
.android-editor .android-tool-settings .platform-lock-actions { display: none !important; }
.android-editor .android-floating-tools :is([data-android-action=finish],[data-compact-icon=finish]):not(:disabled) {
  background: var(--touch-accent);
  color: #17372f;
}
.android-editor .android-floating-tools :is([data-android-action=close],[data-compact-icon=close]) {
  background: transparent;
  color: #f1b8b2;
}
.android-editor .android-property-sheet .android-tool-settings-body {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 0 2px;
}
.android-editor .android-property-group {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  padding-block: 8px;
}
.android-editor .android-property-group + .android-property-group { border-top: 1px solid #69828c55; }
.android-editor .android-property-group > label {
  display: grid;
  align-content: start;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--touch-muted);
  min-width: 0;
}
.android-editor .android-property-group > label :is(input:not([type=checkbox]),select,textarea),
.android-editor #androidRenameValue {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 39px;
  border: 1px solid #44646d;
  border-radius: 8px;
  padding: 5px 8px;
  background-color: #142b34;
  color: var(--touch-ink);
}
.android-editor #androidRename .name-generator-options { margin-block: 6px; }
.android-editor #androidRename .name-generator-results { display: grid; gap: 4px; }
@media (orientation: landscape) {
  .android-editor .android-property-group { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
.android-editor dialog.layer-style-editor :is(input:not([type=checkbox]),select,textarea) {
  border-radius: 8px;
  border-color: #42606a;
  background-color: #132b34;
}
.android-editor dialog.layer-style-editor .form-tab-panel > label {
  gap: 7px;
  min-width: 0;
}
.android-editor body #advancedPanel[data-mobile-check] {
  inset: auto 6px 59px auto;
  width: min(350px, calc(100% - 12px));
  height: min(43dvh, 420px);
  max-height: none;
  border: 1px solid var(--mobile-glass-edge);
  border-radius: 16px;
  background: var(--mobile-glass);
  backdrop-filter: blur(14px) saturate(135%);
}
.android-editor body #advancedPanel[data-mobile-check] :is(.advanced-tabs,.advanced-help) { display: none; }
.android-editor body #advancedPanel[data-mobile-check][data-map-focused] { height: auto; }
.android-editor body #advancedPanel[data-mobile-check][data-map-focused] .check-list > :not(.current),
.android-editor body #advancedPanel[data-mobile-check][data-map-focused] :is(.advanced-actions,.check-summary) { display: none; }

.android-editor .android-property-sheet .android-tool-settings-body:focus { outline: none; }
.android-editor .android-property-group > :only-child { grid-column: 1 / -1; }
.android-editor .android-property-group input[type=number]::-webkit-inner-spin-button { appearance: none; }
.android-editor #androidRename .name-generator-results-head button {
  background: #254653;
  border: 1px solid #42636c;
  border-radius: 7px;
}


.android-editor #viewport:has(> .android-admin-actions:not([hidden])) > .scale { visibility: hidden; }
.android-editor #mapCheckResults svg { display: block; width: 21px; height: 21px; }
.android-editor #advancedPanel[data-map-focused] .check-row.current small { display: none; }

.android-editor body:has(#advancedPanel[data-mobile-check]:not([hidden])) .android-selection-bar { visibility: hidden; }

.android-editor .android-property-group {
  gap: 4px 10px;
}
.android-editor .android-property-group label {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(48px,52%);
  align-items: center;
  align-content: center;
  column-gap: 6px;
  min-height: 38px;
}
.android-editor .android-property-group label[hidden] { display: none !important; }
.android-editor .android-property-group label :is(input,select,textarea,span) { min-width: 0; }
.android-editor .android-property-group label > span {
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.android-editor .android-property-group label { margin: 0; }
.android-editor .android-property-group label :is(input:not([type=checkbox]),select,textarea) {
  min-height: 33px;
  font-size: 12px;
  padding: 3px 6px;
}
.android-editor .android-property-group label select {
  text-overflow: ellipsis;
  padding-inline-end: 15px;
}
.android-editor[lang=en] .android-property-group label:has(select) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 60%);
}
.android-editor[lang=en] .android-property-group label select {
  padding-inline: 5px 16px;
}
.android-editor[lang=en] .android-property-group label:has(#featureCategory) {
  grid-column: span 2;
}
.android-editor .android-property-group label:has(input[type=checkbox]) {
  grid-template-columns: minmax(0,1fr) 24px;
}
.android-editor .android-property-group input[type=checkbox] {
  margin: 0;
  inline-size: 18px;
  block-size: 18px;
  justify-self: end;
  accent-color: #8de0ba;
}
.android-editor .android-property-group > label:has([data-smart-road-enabled]) { grid-column: 1 / -1; }
.android-editor .android-side-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  grid-column: span 2;
}
.android-editor #androidRename hr {
  margin: 11px 0;
  border: 0;
  border-top: 1px solid #55798288;
}
.android-editor .android-layer-empty {
  color: var(--touch-muted);
  margin: 8px;
  font-size: 12px;
}
.android-editor body #advancedPanel[data-mobile-check] {
  left: var(--check-x, auto);
  top: var(--check-y, auto);
  right: auto;
  bottom: auto;
  translate: 0 0;
}
.android-editor body #advancedPanel[data-mobile-check]:not([style*="--check-x"]) { right: 6px; }
.android-editor body #advancedPanel[data-mobile-check]:not([style*="--check-y"]) { bottom: 59px; }
.android-editor #advancedPanel[data-mobile-check] .advanced-heading {
  touch-action: none;
  cursor: move;
}
.android-editor .android-choice-rows {
  display: grid;
  gap: 5px;
  max-block-size: 37dvh;
  overflow: auto;
}
.android-editor body .android-choice-rows label {
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  margin: 0;
  min-height: 42px;
  border-radius: 9px;
  color: var(--touch-ink);
  background: #203d47;
}
.android-editor .android-choice-rows svg { width: 21px; height: 21px; }
.android-editor .android-choice-rows label:has(input:checked) { background: #31594e; }
.android-editor .android-choice-rows input { accent-color: #8de0ba; }
.android-editor .android-export-coordinates:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px;
  padding-block: 8px;
}
.android-editor .android-export-coordinates label { min-width: 0; font-size: 12px; }
.android-editor .android-export-coordinates input { width: 100%; color: var(--touch-ink); background: #122933; }

.android-editor body button.android-color-swatch {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.android-editor .android-color-swatch::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid #66818a;
  background: var(--chosen-color, #333);
}
.android-editor .android-color-swatch.color-unset::before { background: repeating-linear-gradient(135deg,#2c4650 0 5px,#46636c 5px 10px); }
.android-editor :is(.paint-color-control,.style-color-input) {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  width: calc(var(--settings-field-width) + var(--settings-swatch-space));
  height: 32px;
  min-height: 32px;
  flex: 0 0 auto;
  min-width: 0;
}
.android-editor body :is(.paint-color-control,.style-color-input) > input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--ui-field-border);
  border-radius: 7px;
  background: var(--ui-field-bg);
  color: var(--ui-field-text);
  font: 400 12px/1.4 inherit;
}
.android-editor body :is(.paint-color-control,.style-color-input) > input[type="text"] {
  margin-top: 0;
}
.android-editor body dialog:is(#projectSettings,.android-settings-page) .android-settings-rows label > :is(.paint-color-control,.style-color-input) {
  flex: 0 0 calc(var(--settings-field-width) + var(--settings-swatch-space));
}
.android-editor body :is(.paint-color-control,.style-color-input) > .android-color-swatch { transform: none; width: 22px; min-width: 22px; height: 24px; flex-basis: 22px; }
.android-editor :is(.android-settings-rows,.android-tool-settings-body) .style-color-input input[type="color"] { width: 22px; min-width: 22px; height: 24px; padding: 2px; border-radius: 5px; }
.android-editor #engineeringOptions .engineering-actions > [data-engineering-guide="quick"] {
  width: calc(var(--engineering-button-width) * 1.5);
  min-width: calc(var(--engineering-button-width) * 1.5);
  flex-basis: calc(var(--engineering-button-width) * 1.5);
}
.android-editor #engineeringOptions .engineering-actions > [data-engineering-guide="spiral"],
.android-editor #engineeringOptions .engineering-actions > [data-engineering-guide="path"] { display: none; }
.android-editor #viewport > .android-engineering-selection {
  position: absolute;
  z-index: 22;
  left: var(--android-control-center);
  bottom: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: calc(var(--android-control-space) - 12px);
  padding: 3px;
}
.android-editor #viewport:has(> #androidEngineeringExtra :is(select, .engineering-radius-prompt, .android-quick-actions):not([hidden])) > .android-engineering-selection {
  bottom: 118px;
}
.android-editor .android-engineering-selection[hidden] { display: none; }
.android-editor .android-engineering-selection > button {
  width: clamp(34px, 10vw, 44px);
}
.android-editor .android-engineering-selection .android-floating-action-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  padding-inline: 6px;
  background: var(--touch-accent);
  color: #17372f;
}
.android-editor .android-engineering-selection .android-floating-action-label svg { flex: 0 0 18px; width: 18px; height: 18px; }
.android-editor .android-engineering-selection .android-floating-action-label span { font-size: 12px; line-height: 1.15; white-space: nowrap; }
@media (max-width: 480px) {
  .android-editor .android-engineering-selection .android-floating-action-label {
    gap: 3px;
    padding-inline: 5px;
  }
  .android-editor .android-engineering-selection .android-floating-action-label svg { flex-basis: 15px; width: 15px; height: 15px; }
  .android-editor .android-engineering-selection .android-floating-action-label span { font-size: 11px; }
}
.android-editor body .layer-style-editor .style-range-row .style-color-input { grid-template-columns: 25px minmax(0,1fr); gap: 3px; }
.android-editor body .layer-style-editor .style-range-row .style-color-input input[type="color"] { width: 25px; min-width: 25px; height: 25px; }
.android-editor body dialog:is(.android-color-picker,.android-choice-dialog) {
  inset: 0;
  width: min(calc(100% - 24px),400px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 14px;
  border: 1px solid #41615f;
  border-radius: 17px;
}
.android-editor .android-choice-form > .android-exit-actions { margin-block-start: 10px; }
.android-editor body :is(.android-color-picker,.android-choice-dialog) .android-exit-actions > button.primary {
  grid-column: auto;
  color: #143c32;
}
.android-editor body :is(.android-color-picker,.android-choice-dialog) .android-exit-actions > button {
  width: 100%;
  height: 44px;
  margin: 0;
}
.android-editor body dialog.android-color-picker:focus { outline: none; }
.android-editor body dialog.android-settings-page[open] {
  padding: 0;
  overflow: hidden;
}
.android-editor .android-settings-page .dialog-heading .dialog-close svg { width: 22px; height: 22px; }
.android-editor :is(.android-settings-page,.android-compact-form) .dialog-heading:focus { outline: none; }
.android-editor .android-settings-page :is(.form-tabs,.form-tab-panel) { scrollbar-width: thin; }
.android-editor .android-settings-page .form-scroll:not(:has(.form-tabs)) {
  display: block;
  overflow: auto;
  padding: 12px;
}
.android-editor body dialog.android-page:is(#newMapSettings, #planetSettings) .form-scroll {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  grid-auto-rows: max-content;
  align-content: start;
  width: min(100%, 800px);
  margin-inline: auto;
  padding: 12px;
  gap: 8px;
  overflow: auto;
}
.android-editor body dialog.android-page:is(#newMapSettings, #planetSettings) .form-scroll label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  align-items: center;
  min-height: 44px;
  margin: 0;
  gap: 8px;
}
.android-editor body dialog.android-page:is(#newMapSettings, #planetSettings) .form-scroll label > :is(input, select) {
  min-width: 0;
  max-width: 100%;
  border-radius: 7px;
}
.android-editor body dialog.android-page:is(#newMapSettings, #planetSettings) .form-scroll > :not(label) {
  grid-column: 1 / -1;
}
.android-editor body dialog.android-page:is(#newMapSettings, #planetSettings) .dialog-actions {
  box-sizing: border-box;
  width: min(100%, 800px);
  margin-inline: auto;
}
.android-editor body dialog.android-page:is(#newMapSettings, #planetSettings) .cancel-settings {
  color: var(--touch-ink);
}
.android-editor dialog.android-page .setup-advanced > summary {
  padding: 12px;
  border: 1px solid var(--touch-border);
  border-radius: 9px;
  cursor: pointer;
}
.android-editor dialog.android-page .setup-advanced-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-block-start: 8px;
}
.android-editor dialog.android-page .setup-advanced-fields > :not(label) {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}
.android-editor dialog.android-page .setup-advanced-fields > label {
  padding: 6px 8px;
  border-radius: 9px;
  background: var(--touch-panel);
}
.android-editor dialog.android-page .setup-advanced-fields > label:has(> input[type=checkbox]) {
  grid-template-columns: minmax(0, 1fr) auto;
}
.android-editor dialog.android-page .setup-advanced-fields > label > input[type=checkbox] {
  grid-area: 1 / 2;
  justify-self: end;
}
.android-editor dialog.android-page .setup-advanced-fields > label:has(> input[type=checkbox]) > span {
  grid-area: 1 / 1;
}
@media (min-width: 680px) {
  .android-editor body dialog.android-page:is(#newMapSettings, #planetSettings) .form-scroll,
  .android-editor dialog.android-page .setup-advanced-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.android-editor .android-settings-page .dialog-actions {
  flex: none;
}
.android-editor .layer-style-editor .android-settings-rows textarea { min-height: 76px; }
.android-editor .layer-style-editor .style-range-header {
  grid-template-columns: repeat(2,minmax(0,1fr)) max-content 32px;
  align-items: end;
}
.android-editor .layer-style-editor .style-range-header label:has(.style-color-input) { grid-row: 2; grid-column: 1 / -1; }
.android-editor .layer-style-editor .style-range-header input { min-width: 0; }
.android-editor body dialog.android-compact-form[open] {
  display: flex;
  flex-direction: column;
  max-height: min(58dvh, 480px);
  overflow: hidden;
}
.android-editor body dialog.android-compact-form .dialog-heading {
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}
.android-editor body dialog.android-compact-form .dialog-heading h2 { margin: 4px 0; font-size: 16px; }
.android-editor body dialog.android-compact-form .dialog-close { display: none; }
.android-editor body dialog.android-compact-form form { flex: 1; max-height: none; }
.android-editor body dialog.android-compact-form .dialog-actions {
  flex: none;
  padding: 6px 0 0;
  margin: 0;
  background: transparent;
}
.android-editor body dialog.android-compact-form .form-error:empty { display: none; }
.android-editor .android-import-fields { min-height: 0; overflow: auto; }
.android-editor .android-import-fields > p { margin: 4px 0 10px; }
.android-editor .android-import-fields > label { margin-block: 5px; }
@media (orientation: landscape) {
  .android-editor body dialog.android-compact-form .form-scroll {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px;
    align-content: start;
  }
  .android-editor body dialog.android-compact-form .form-scroll > :not(label) { grid-column: 1 / -1; }
  .android-editor body dialog.android-compact-form .form-scroll > label { margin: 0; min-height: 40px; }
}
.android-editor body .android-color-picker > form {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 8px;
  margin: 0;
}
.android-editor body .android-color-picker :is(.android-color-channel,.android-color-preview,.android-color-hue,.android-color-recent,.android-exit-actions) {
  grid-column: 1 / -1;
}
.android-editor .android-color-preview { block-size: 39px; border-radius: 9px; border: 1px solid #789096; }
.android-editor input.android-color-hue {
  appearance: none;
  padding: 0;
  height: 16px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);
}
.android-editor input.android-color-hue::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 22px;
  border: 2px solid white;
  border-radius: 5px;
  background: #102933;
}
.android-editor .android-color-channel {
  display: grid;
  grid-template-columns: 32px repeat(3,minmax(0,1fr));
  align-items: center;
  gap: 5px;
}
.android-editor body .android-color-picker .android-color-channel > input {
  appearance: textfield;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 3px 6px;
  color: var(--touch-ink);
  background: #142c36;
  border: 1px solid #55747e;
  border-radius: 7px;
  margin: 0;
}
.android-editor .android-color-channel input::-webkit-inner-spin-button { appearance: none; }
.android-editor .android-color-channel input:only-of-type { grid-column: 2 / -1; }
.android-editor .android-color-recent { display: flex; min-width: 0; gap: 4px; overflow: auto; }
.android-editor .android-color-recent:empty { display: none; }
.android-editor .android-color-recent button { flex: 0 0 27px; block-size: 27px; border-radius: 6px; border: 1px solid #789096; }
.android-editor body:not(.planet-overview) #map { will-change: auto; }
