:root {
  --bg-0: #04090f;
  --bg-1: #08131f;
  --bg-2: #0e1e2f;
  --bg-card: rgba(8, 18, 30, 0.92);
  --bg-card-soft: rgba(8, 18, 30, 0.75);
  --line: rgba(86, 247, 235, 0.2);
  --line-strong: rgba(86, 247, 235, 0.45);
  --text-main: #e7fff9;
  --text-soft: #9bc9d0;
  --accent: #2ff3e0;
  --accent-2: #0eb1cc;
  --accent-dark: #0b3e57;
  --danger: #ff5e87;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

html, body {
  font-size: 15px;
  min-height: 100%;
}

body {
  line-height: 1.5;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 8%, rgba(47, 243, 224, 0.15) 0%, rgba(47, 243, 224, 0.04) 18%, transparent 42%),
    radial-gradient(circle at 84% 24%, rgba(14, 177, 204, 0.2) 0%, rgba(14, 177, 204, 0.06) 20%, transparent 46%),
    linear-gradient(160deg, var(--bg-2) 0%, var(--bg-1) 52%, var(--bg-0) 100%);
}

a {
  color: var(--text-main);
  transition: color .15s ease, opacity .15s ease, filter .15s ease;
}

.app-shell {
  min-height: 100vh;
}

.app-main-section {
  padding-top: 1rem;
}

.section {
  padding-top: 1rem;
}

.app-auth-page {
  min-height: 100vh;
}

.app-auth-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 16px;
}

.app-auth-head {
  margin-bottom: 10px;
}

.app-auth-card {
  width: 100%;
}

.navbar {
  background: linear-gradient(180deg, rgba(5, 17, 27, 0.92) 0%, rgba(5, 12, 20, 0.92) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(47, 243, 224, 0.16);
  backdrop-filter: blur(10px);
}

.navbar-item,
.navbar-link,
.navbar-dropdown .navbar-item {
  color: var(--text-main);
}

.navbar-item:hover,
.navbar-link:hover,
.navbar-item:focus,
.navbar-link:focus {
  color: #ffffff;
  background: rgba(47, 243, 224, 0.12) !important;
}

.navbar-dropdown {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 24, 39, 0.98) 0%, rgba(6, 16, 28, 0.98) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-credit-tag {
  font-weight: 800;
  letter-spacing: .2px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(47, 243, 224, 0.18) 0%, rgba(14, 177, 204, 0.2) 100%) !important;
  color: #eaffff !important;
}

.app-identity-item {
  font-weight: 600;
  color: #d7fdf7;
}

.container.panel,
.app-panel {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 18, 30, 0.9) 0%, rgba(6, 14, 24, 0.94) 100%);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #e9fffc !important;
  font-weight: 800;
  letter-spacing: .2px;
  border-bottom: 1px solid rgba(47, 243, 224, 0.15);
  background: linear-gradient(90deg, rgba(9, 68, 99, 0.95) 0%, rgba(15, 121, 149, 0.94) 52%, rgba(29, 172, 181, 0.92) 100%) !important;
}

.app-update-btn,
.panel-heading .button {
  margin-top: 0 !important;
}

.panel-block,
.app-panel-block {
  padding: 18px;
  background: transparent;
}

.box {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(9, 21, 35, 0.92) 0%, rgba(7, 16, 27, 0.96) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.button {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .15px;
  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease;
}

.button:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 16px rgba(0, 0, 0, 0.3);
}

.button:active {
  transform: translateY(1px);
}

.button[disabled],
fieldset[disabled] .button {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(86, 247, 235, 0.1) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
}

.button.is-link,
.button.button-primary {
  border-color: rgba(47, 243, 224, 0.55) !important;
  color: #e6fffc !important;
  background: linear-gradient(180deg, rgba(20, 138, 161, 0.9) 0%, rgba(10, 89, 118, 0.95) 100%) !important;
}

.button.is-dark {
  border-color: rgba(47, 243, 224, 0.35) !important;
  color: #defaf8 !important;
  background: linear-gradient(180deg, rgba(18, 56, 76, 0.9) 0%, rgba(8, 30, 45, 0.96) 100%) !important;
}

.button.is-danger {
  border-color: rgba(255, 94, 135, 0.7) !important;
  background: linear-gradient(180deg, rgba(151, 34, 68, 0.95) 0%, rgba(95, 18, 41, 0.95) 100%) !important;
}

.input,
.select select,
.textarea {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border-color: rgba(86, 247, 235, 0.2);
  color: #f2fffd;
}

.select select option,
.select select optgroup {
  color: #e8fffc;
  background: #0c2133;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(196, 236, 241, 0.45);
}

.input[disabled],
.select select[disabled],
.textarea[disabled] {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(86, 247, 235, 0.08);
  color: rgba(242, 255, 253, 0.4);
  cursor: not-allowed;
}

.input:focus,
.select select:focus,
.textarea:focus {
  border-color: rgba(47, 243, 224, 0.7);
  box-shadow: 0 0 0 0.125em rgba(47, 243, 224, 0.2);
}

.label,
.title,
.subtitle,
.table,
.help,
.content,
p,
li {
  color: var(--text-main);
}

.help {
  color: var(--text-soft);
}

.title,
.subtitle {
  letter-spacing: .2px;
}

.table {
  background: transparent;
  border-color: rgba(86, 247, 235, 0.15);
}

.table thead th {
  color: #d8fff9;
  border-color: rgba(86, 247, 235, 0.2);
  background: rgba(16, 39, 57, 0.55);
}

.table td,
.table th {
  vertical-align: middle;
  border-color: rgba(86, 247, 235, 0.12);
}

.table td {
  word-break: break-word;
  white-space: normal;
}

.table.is-striped tbody tr:not(.is-selected):nth-child(even) {
  background: rgba(9, 29, 45, 0.42);
}

.table.is-hoverable tbody tr:not(.is-selected):hover {
  background: rgba(47, 243, 224, 0.12);
}

.message {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(86, 247, 235, 0.18);
}

.message.is-danger {
  border-color: rgba(255, 94, 135, 0.55);
}

.message.is-warning {
  border-color: rgba(255, 190, 87, 0.55);
}

.dropdown-menu {
  width: 100%;
}

.dropdown-content {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 26, 41, 0.98) 0%, rgba(7, 18, 31, 0.98) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
}

.dropdown-item {
  color: #e9fffc;
}

.dropdown-item:hover {
  background: rgba(47, 243, 224, 0.16);
}

.tag {
  border-radius: 999px;
  border: 1px solid rgba(86, 247, 235, 0.34);
  background: rgba(47, 243, 224, 0.14) !important;
  color: #e9fffc !important;
}

.tabs {
  border-bottom-color: rgba(86, 247, 235, 0.2);
}

.tabs a {
  border-bottom-color: transparent;
  color: var(--text-soft);
}

.tabs a:hover {
  border-bottom-color: rgba(86, 247, 235, 0.4);
  color: var(--text-main);
}

.tabs li.is-active a {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

hr {
  background: rgba(86, 247, 235, 0.16);
  margin: 1rem 0;
}

.app-profile-block {
  display: block;
}

.app-profile-editor {
  border: 1px solid rgba(86, 247, 235, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(8, 20, 33, 0.7) 0%, rgba(7, 17, 28, 0.8) 100%);
}

.app-profile-grid {
  margin-top: .25rem;
}

.app-profile-avatar-col {
  display: flex;
}

.app-profile-avatar {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(86, 247, 235, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.app-profile-avatar-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
}

.app-profile-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.app-profile-message {
  color: var(--text-soft);
}

.app-profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.app-profile-meta > div {
  border: 1px solid rgba(86, 247, 235, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(6, 16, 26, 0.6);
}

.app-file-explorer {
  border: 1px solid rgba(86, 247, 235, 0.2);
  border-radius: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(7, 18, 29, 0.65);
}

.app-file-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  margin-bottom: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-main);
  cursor: pointer;
}

.app-file-item:last-child {
  margin-bottom: 0;
}

.app-file-item:hover {
  background: rgba(47, 243, 224, 0.12);
  border-color: rgba(86, 247, 235, 0.22);
}

.app-file-item.is-selected {
  background: rgba(47, 243, 224, 0.16);
  border-color: rgba(86, 247, 235, 0.55);
}

.app-file-item-indicator {
  min-width: 14px;
  color: var(--accent);
  font-weight: 700;
}

.app-file-item-path {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-vscode-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(86, 247, 235, 0.2);
  border-radius: 10px;
  overflow: hidden;
  min-height: 560px;
  background: rgba(6, 14, 24, 0.9);
}

.app-file-manager-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(86, 247, 235, 0.12);
  background: rgba(7, 16, 28, 0.9);
}

.app-file-manager-toolbar .button {
  min-height: 2rem;
}

.app-vscode-sidebar {
  border-right: 1px solid rgba(86, 247, 235, 0.12);
  background: rgba(5, 12, 21, 0.92);
  display: flex;
  flex-direction: column;
}

.app-vscode-sidebar-header,
.app-vscode-editor-header {
  height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(86, 247, 235, 0.12);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.app-file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-file-actions .button {
  min-height: 1.9rem;
  height: 1.9rem;
  padding: 0 8px;
}

.app-vscode-explorer-body {
  border: 0;
  border-radius: 0;
  max-height: none;
  height: calc(100% - 42px);
  overflow-y: auto;
  padding: 8px;
  background: transparent;
}

.app-vscode-editor {
  display: flex;
  flex-direction: column;
  background: rgba(7, 16, 28, 0.92);
}

.app-vscode-editor-body {
  padding: 10px;
  height: calc(100% - 42px);
}

.app-vscode-code-wrap {
  position: relative;
  display: block;
  height: 100%;
  min-height: 480px;
  border: 1px solid rgba(86, 247, 235, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(3, 8, 15, 0.95);
}

.app-host-editor-wrap {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  height: 100%;
  min-height: 480px;
}

.app-host-editor-gutter {
  border-right: 1px solid rgba(86, 247, 235, 0.12);
  background: rgba(7, 16, 28, 0.95);
  color: rgba(195, 220, 226, 0.55);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
  padding: 10px 8px;
  overflow: hidden;
}

.app-host-editor-line {
  height: 1.45em;
}

.app-host-editor-textarea {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  margin: 0;
  resize: none;
  overflow: auto;
  white-space: pre-wrap;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(3, 8, 15, 0.96) !important;
  color: #d4d4d4 !important;
  -webkit-text-fill-color: #d4d4d4;
  caret-color: #e7fff9;
}

.app-host-editor-textarea:focus {
  box-shadow: inset 0 0 0 1px rgba(47, 243, 224, 0.45);
}

.app-vscode-gutter {
  border-right: 1px solid rgba(86, 247, 235, 0.12);
  background: rgba(7, 16, 28, 0.9);
  overflow: hidden;
  padding: 10px 8px;
  text-align: right;
  color: rgba(195, 220, 226, 0.45);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.45;
}

.app-vscode-line-number {
  height: 1.45em;
}

.app-vscode-textarea {
  position: relative;
  margin: 0;
  height: 100%;
  min-height: 480px;
  padding: 10px 12px;
  border-radius: 0;
  border: 0;
  background: rgba(3, 8, 15, 0.96) !important;
  color: #d4d4d4 !important;
  -webkit-text-fill-color: #d4d4d4;
  opacity: 1 !important;
  caret-color: #e7fff9;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow: auto;
  resize: none;
}

.app-vscode-textarea:focus {
  box-shadow: inset 0 0 0 1px rgba(47, 243, 224, 0.45);
}

.app-vscode-statusbar {
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(86, 247, 235, 0.12);
  border-radius: 8px;
  background: rgba(7, 16, 28, 0.9);
  color: var(--text-soft);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.app-file-item {
  border-radius: 6px;
  margin-bottom: 2px;
  padding: 6px 8px;
  background: transparent;
  border-color: transparent;
}

.app-file-item:hover {
  background: rgba(47, 243, 224, 0.09);
  border-color: transparent;
}

.app-file-item.is-selected {
  background: rgba(47, 243, 224, 0.16);
  border-color: rgba(86, 247, 235, 0.35);
}

.app-file-item-dir {
  color: #b9e5eb;
  font-weight: 600;
}

.app-file-item-dir.is-open {
  background: rgba(47, 243, 224, 0.08);
}

.columns + .columns {
  margin-top: .25rem;
}

.progress {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress.is-info::-webkit-progress-value,
.progress.is-link::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 243, 224, 0.5) rgba(0, 0, 0, 0.25);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 243, 224, 0.75) 0%, rgba(14, 177, 204, 0.75) 100%);
}

@media screen and (max-width: 1023px) {
  .table-container {
    border-radius: 10px;
  }
}

@media screen and (max-width: 768px) {
  .app-main-section {
    padding: 0.75rem;
  }

  .app-auth-container {
    padding: 22px 14px;
  }

  .panel-block,
  .app-panel-block {
    padding: 12px;
  }

  .panel-heading {
    font-size: 14px;
  }

  .app-vscode-shell {
    grid-template-columns: 1fr;
  }

  .app-vscode-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(86, 247, 235, 0.12);
    max-height: 260px;
  }

  .button,
  .input,
  .select select {
    min-height: 2.4em;
  }

  .app-profile-meta {
    grid-template-columns: 1fr;
  }
}
