@import url('/vendor/monaco/0.55.1/vs/editor/editor.main.css');
:root {
  color-scheme: dark;
  --bg: #17191e;
  --panel: #1d2026;
  --panel-raised: #242830;
  --line: #303540;
  --text: #d7dce5;
  --muted: #8993a6;
  --accent: #63d3bd;
  --blue: #8cb4ff;
  --danger: #ff8e93;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button,input,select {
  font: inherit;
}
button {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 5px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover:not(:disabled) {
  background: #333a47;
}
button:disabled {
  opacity: .38;
  cursor: default;
}
button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #102b27;
  font-weight: 650;
}
.button-primary:hover:not(:disabled) {
  background: #8be7d5;
}
.button-ai {
  color: var(--blue);
  border-color: #49608c;
}
.beta-badge {
  font-size: 11px;
  color: var(--muted);
}
input,select {
  background: #15171c;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 4px;
  min-width: 0;
}
input[type=checkbox] {
  accent-color: var(--accent);
}
[hidden] {
  display: none!important;
}
.studio-header {
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.studio-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.studio-brand strong {
  color: var(--muted);
  font-weight: 400;
}
.brand-mark {
  background: var(--accent);
  color: #163c34;
  border-radius: 7px;
  padding: 7px 6px;
  font: 700 14px monospace;
}
.header-divider {
  height: 22px;
  border-left: 1px solid var(--line);
}
.workspace-name {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.icon-button {
  padding: 3px 8px;
  background: transparent;
  border: 0;
  font-size: 18px;
}
.message {
  background: #41292f;
  color: #ffd8da;
  border-bottom: 1px solid #684047;
  padding: 10px 20px;
  flex-shrink: 0;
  cursor: pointer;
}
.studio-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.activity-bar {
  width: 49px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 9px 0;
  gap: 10px;
}
.activity-bar button {
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 24px;
  color: var(--muted);
  border-radius: 6px;
}
.activity-bar button.active {
  color: var(--accent);
  background: #273c38;
}
.activity-spacer {
  flex: 1;
}
.sidebar {
  width: 260px;
  min-width: 190px;
  max-width: 45vw;
  resize: horizontal;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #1b1e24;
  display: flex;
  flex-shrink: 0;
}
.sidebar-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
.panel-heading {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
}
.panel-heading h2 {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.3px;
  color: #a9b3c4;
  margin: 0;
}
.sidebar-input {
  margin: 0 11px;
  width: calc(100% - 22px);
  font-size: 12px;
}
.source-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  padding: 12px 11px;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.file-tree {
  flex: 1;
  overflow: auto;
  padding: 0 5px 16px;
}
.sidebar-empty {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 10px;
}
.tree-folder summary {
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  padding: 6px 3px;
  color: #aeb8c9;
  list-style: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-folder summary::before {
  content: '›';
  display: inline-block;
  margin-right: 7px;
  color: #7f899b;
}
.tree-folder[open]>summary::before {
  transform: rotate(90deg);
}
.tree-folder>div {
  padding-left: 12px;
}
.tree-file {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 3px;
  text-align: left;
  font-size: 12px;
  padding: 6px 7px;
  overflow: hidden;
}
.tree-file>span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-icon {
  color: var(--blue);
  font: 10px monospace;
  min-width: 18px;
}
.tree-file[data-extension=kt] .file-icon {
  color: #d8a7ff;
}
.tree-file[data-extension=xml] .file-icon {
  color: #ebca86;
}
.tree-file[data-extension=smali] .file-icon {
  color: #83c9ab;
}
.tree-file.active {
  background: #2b3544;
  color: #dce8fc;
}
.tree-file.dirty::after {
  content: '●';
  color: var(--accent);
  font-size: 8px;
  margin-left: auto;
}
.tree-file.binary {
  color: #707b8d;
}
.project-summary {
  padding: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.workbench {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.editor-tabs {
  height: 37px;
  min-height: 37px;
  background: #1d2026;
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.editor-tabs:empty {
  display: none;
}
.editor-tab {
  display: flex;
  align-items: center;
  min-width: 100px;
  max-width: 250px;
  flex-shrink: 0;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  padding: 0 8px 0 14px;
  gap: 12px;
  cursor: pointer;
  color: var(--muted);
}
.editor-tab[aria-selected=true] {
  background: var(--bg);
  color: var(--text);
  box-shadow: inset 0 2px var(--accent);
}
.editor-tab .tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-tab button {
  border: 0;
  padding: 1px 5px;
  background: transparent;
  font-size: 15px;
}
.breadcrumbs {
  height: 33px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-bottom: 1px solid #252a32;
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
}
.breadcrumbs>span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumbs button {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 2px;
  font-size: 11px;
}
.breadcrumbs kbd {
  margin-left: 7px;
  color: #67748b;
}
.editor-area {
  flex: 1;
  min-height: 0;
  position: relative;
}
.welcome {
  height: 100%;
  overflow: auto;
  padding: clamp(30px,6vh,72px) max(30px,calc((100% - 660px)/2)) 32px;
}
.welcome-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #aab6c7;
  margin-bottom: 22px;
}
.welcome h1 {
  font-size: clamp(32px,4vw,52px);
  line-height: 1.13;
  letter-spacing: -1.8px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #eef1f7;
}
.welcome h1 span {
  color: var(--accent);
}
.welcome-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 28px;
}
.upload-card {
  max-width: 520px;
  border: 1px solid #3a464a;
  border-radius: 9px;
  padding: 17px;
  background: linear-gradient(135deg,#1e2b2b,#1b2027);
}
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  border: 1px dashed #415657;
  border-radius: 5px;
  padding: 22px 15px;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}
.upload-zone:hover,.upload-zone.dragover {
  background: #273e39;
  border-color: var(--accent);
}
.upload-symbol {
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 3px;
}
.upload-zone strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.upload-zone>span:last-of-type {
  font-size: 11px;
  color: var(--muted);
}
.upload-card>button {
  margin-top: 13px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
.workflow-steps {
  display: flex;
  gap: 25px;
  padding: 23px 0 10px;
  font-size: 11px;
  color: #a9b3c4;
  flex-wrap: wrap;
}
.workflow-steps b {
  color: #627588;
  font: 11px monospace;
  margin-right: 7px;
}
.welcome-note {
  font-size: 10px;
  color: #7e899d;
  line-height: 1.8;
}
.source-details {
  max-width: 520px;
  color: #8b98aa;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 16px;
}
.source-details summary {
  cursor: pointer;
  color: #b2becf;
}
.toolchain-status {
  font-size: 10px;
  color: #718077;
  max-width: 520px;
}
.toolchain-status.error {
  color: var(--danger);
}
#monacoHost {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.empty-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.empty-glyph {
  font: 60px monospace;
  color: #313944;
  margin-bottom: 18px;
}
.empty-editor h2 {
  font-size: 16px;
  font-weight: 500;
}
.empty-editor p {
  font-size: 12px;
}
kbd {
  font-family: inherit;
  font-size: 10px;
}
.build-panel {
  height: 220px;
  min-height: 100px;
  max-height: 50vh;
  border-top: 1px solid var(--line);
  background: #181b20;
  display: flex;
  flex-direction: column;
  resize: vertical;
  overflow: auto;
  flex-shrink: 0;
}
.build-panel-heading {
  height: 35px;
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
}
.build-panel-heading>div {
  display: flex;
  align-self: stretch;
}
.panel-tab {
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 11px;
  padding: 0 12px;
}
.panel-tab.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}
#problemCount {
  background: #363c47;
  padding: 0 4px;
  border-radius: 3px;
  margin-left: 4px;
}
#jobStage {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.build-log {
  font: 11px/1.65 Menlo,Consolas,monospace;
  margin: 0;
  padding: 10px 18px;
  white-space: pre-wrap;
  overflow: auto;
  color: #a2b2c7;
  flex: 1;
}
.problems {
  overflow: auto;
  flex: 1;
}
.problem-button {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: 11px/1.6 monospace;
  white-space: normal;
  color: var(--danger);
}
.status-bar {
  height: 25px;
  min-height: 25px;
  background: #233331;
  color: #a1c5bc;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 12px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.status-bar button {
  font-size: 10px;
  color: inherit;
  padding: 0;
  border: 0;
  background: transparent;
}
.status-spacer {
  flex: 1;
}
#connectionStatus.busy {
  color: #e3cf8f;
}
#connectionStatus.error {
  color: #ffadb0;
}
dialog {
  background: var(--panel);
  border: 1px solid #445064;
  color: var(--text);
  border-radius: 9px;
  padding: 25px;
  box-shadow: 0 22px 85px #0009;
}
dialog::backdrop {
  background: #090c1270;
  backdrop-filter: blur(2px);
}
.palette-dialog {
  width: 650px;
  max-width: 90vw;
  padding: 0;
  top: 13vh;
  margin: 0 auto;
  max-height: 65vh;
  overflow: hidden;
}
.palette-dialog>input {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  width: 100%;
  padding: 17px;
  font-size: 14px;
  outline: 0;
}
.palette-results {
  max-height: 45vh;
  overflow: auto;
}
.palette-item {
  width: 100%;
  border: 0;
  background: none;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  border-radius: 0;
  padding: 11px 17px;
}
.palette-item.active {
  background: #2e3d4a;
  color: #d4e7ff;
}
.palette-item span:last-child {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette-footer {
  padding: 10px 17px;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
}
.standard-dialog {
  width: 510px;
  max-width: 90vw;
  max-height: 85vh;
  overflow: auto;
}
.standard-dialog h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 550;
}
.standard-dialog p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.dialog-close {
  float: right;
  background: none;
  border: 0;
  font-size: 22px;
  margin: -12px -10px 0 0;
}
.shortcut-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 25px;
  font-size: 12px;
  margin: 25px 0 0;
}
.shortcut-list dt {
  color: var(--muted);
}
.shortcut-list dd {
  margin: 0;
  font: 11px monospace;
  background: #14171c;
  border: 1px solid #313b47;
  padding: 3px 8px;
  border-radius: 4px;
}
.standard-dialog label {
  display: block;
  font-size: 12px;
  margin: 16px 0 7px;
}
.standard-dialog input,.standard-dialog select {
  width: 100%;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.dialog-note {
  font-size: 10px!important;
  margin-top: 20px;
}
.project-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  padding-bottom: 12px;
}
.project-search-form .sidebar-input {
  width: calc(100% - 22px);
}
.case-option {
  font-size: 11px;
  color: var(--muted);
  margin: 0 auto 0 11px;
}
.project-search-form button {
  font-size: 11px;
  margin-right: 11px;
  padding: 5px 12px;
}
.search-summary {
  font-size: 10px;
  color: var(--muted);
  margin: 0 12px 15px;
  line-height: 1.7;
}
.search-results {
  overflow: auto;
  flex: 1;
}
.search-match {
  display: block;
  text-align: left;
  white-space: normal;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  width: 100%;
  border-bottom: 1px solid #252b35;
  overflow: hidden;
}
.search-match strong {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  overflow-wrap: anywhere;
}
.search-match span {
  display: block;
  color: var(--muted);
  font: 10px/1.7 monospace;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
@media(max-width:1000px) {
  .workspace-name,.header-divider {
    display: none;
  }
  .studio-header {
    gap: 8px;
    padding: 10px;
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
  }
  .header-actions {
    gap: 5px;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .sidebar {
    width: 220px;
  }
  .welcome {
    padding: 35px 30px;
  }
  .header-actions button {
    padding: 7px 8px;
  }
  .status-bar {
    gap: 10px;
  }
}
@media(max-width:700px) {
  .studio-brand>span:last-child {
    display: none;
  }
  .sidebar {
    width: 180px;
    min-width: 130px;
  }
  .activity-bar {
    width: 39px;
  }
  .activity-bar button {
    width: 32px;
  }
  .welcome {
    padding: 25px 20px;
  }
  .welcome h1 {
    font-size: 32px;
  }
  .welcome-description {
    font-size: 12px;
  }
  .workflow-steps {
    gap: 10px;
  }
  .source-legend {
    display: none;
  }
  .sidebar-input {
    margin-bottom: 12px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions button {
    font-size: 11px;
    padding: 7px 6px;
  }
  .status-bar #expiryStatus,.status-bar #fileLanguage,.status-bar #saveStatus {
    display: none;
  }
  .build-panel-heading {
    gap: 3px;
  }
  .panel-tab {
    padding: 0 7px;
  }
  .source-details {
    font-size: 10px;
  }
}
