.dev-body {
  --dev-sidebar: 252px;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(124, 108, 255, 0.16), transparent 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(79, 140, 255, 0.09), transparent 60%),
    var(--bg);
  color: var(--fg);
}

.dev-top {
  position: relative;
  z-index: 10;
  display: flex;
  height: 64px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 15, 0.82);
  padding: 0 22px;
  backdrop-filter: blur(18px);
}

.dev-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.dev-brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.dev-brand-mark.large {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.dev-brand-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.dev-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.dev-plus {
  font-size: 16px;
  line-height: 1;
}

.dev-top-link {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}

.dev-top-link:hover {
  color: var(--fg);
  background: var(--panel-2);
}

.dev-user {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 28, 41, 0.72);
  padding: 3px 12px 3px 3px;
}

.dev-user-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #8b7bff, #3d8bff);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.dev-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.dev-main {
  display: flex;
  height: calc(100vh - 64px);
  min-height: 0;
}

.dev-sidebar {
  display: flex;
  width: var(--dev-sidebar);
  flex-shrink: 0;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid var(--line);
  background: rgba(14, 15, 23, 0.55);
  padding: 14px 10px;
  overflow-y: auto;
}

.dev-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dev-nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 10px 12px;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.dev-nav-item:hover {
  background: rgba(26, 28, 41, 0.7);
  color: var(--fg);
}

.dev-nav-item.active {
  background: var(--panel-2);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.dev-side-card {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 28, 41, 0.35);
  padding: 12px;
  color: var(--subtle);
  font-size: 11.5px;
  line-height: 1.55;
}

.dev-side-card-title {
  margin: 0 0 5px;
  color: var(--fg);
  font-size: 12px;
  font-weight: 700;
}

.dev-side-card code {
  color: var(--accent-2);
}

.dev-text-link {
  border: 0;
  background: none;
  color: var(--accent-2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.dev-text-link:hover {
  text-decoration: underline;
}

.dev-text-link.centered {
  display: block;
  margin: 10px auto 0;
  text-align: center;
}

.dev-content {
  min-width: 0;
  flex: 1;
  overflow-y: auto;
  padding: 30px 34px 60px;
}

.dev-app-page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.dev-login {
  display: grid;
  min-height: calc(100vh - 64px);
  place-items: center;
  padding: 24px;
}

.dev-login-card {
  width: 100%;
  max-width: 430px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 28, 41, 0.78), rgba(14, 15, 23, 0.92));
  padding: 28px;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.dev-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dev-eyebrow {
  margin: 0 0 2px;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dev-login-card h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.dev-login-lede {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dev-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.dev-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dev-field input,
.dev-field select,
.dev-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: rgba(8, 9, 15, 0.62);
  padding: 11px 12px;
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.dev-field textarea {
  min-height: 100px;
  resize: vertical;
}

.dev-field input:focus,
.dev-field select:focus,
.dev-field textarea:focus {
  border-color: rgba(124, 108, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.14);
}

.dev-required {
  color: var(--danger);
}

.dev-submit {
  width: 100%;
  margin-top: 3px;
}

.dev-form-error {
  margin: 0;
  border: 1px solid rgba(255, 82, 99, 0.28);
  border-radius: 9px;
  background: rgba(255, 82, 99, 0.1);
  padding: 8px 10px;
  color: #ff8d98;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.dev-login-hint {
  margin: 18px 0 0;
  color: var(--subtle);
  font-size: 11.5px;
  text-align: center;
}

.dev-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dev-page-head h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.035em;
}

.dev-page-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.dev-page-head p b {
  color: var(--accent-2);
  font-weight: 600;
}

.dev-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.dev-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 12px;
}

.dev-sort select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 7px 9px;
  color: var(--fg);
  font: inherit;
  font-size: 12px;
}

.dev-view-switch {
  display: flex;
  gap: 2px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(26, 28, 41, 0.4);
  padding: 3px;
}

.dev-view-switch button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 5px 10px;
  color: var(--subtle);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.dev-view-switch button.active {
  background: var(--panel-2);
  color: var(--fg);
}

.dev-section-title {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.dev-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dev-app-grid.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dev-app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(26, 28, 41, 0.28);
  padding: 13px;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}

.dev-app-card.large {
  flex-direction: row;
  align-items: center;
}

.dev-app-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(26, 28, 41, 0.5);
}

.dev-app-card-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.dev-app-card-meta {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 11px;
}

.dev-app-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 26%;
  background: linear-gradient(145deg, #9d8cff, #4f8cff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}

.dev-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: 50px 22px;
  color: var(--subtle);
  text-align: center;
  font-size: 12.5px;
}

.dev-empty h3 {
  margin: 0 0 6px;
  color: var(--fg);
  font-size: 15px;
}

.dev-empty .btn {
  margin-top: 14px;
}

.dev-app-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.dev-app-head > div {
  min-width: 0;
}

.dev-back {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0 14px;
}

.dev-back:hover {
  color: var(--fg);
}

.dev-app-head h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.dev-app-head p {
  margin: 4px 0 0;
  color: var(--subtle);
  font-size: 11.5px;
}

.dev-tabs {
  display: flex;
  gap: 3px;
  margin: 20px 0 22px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.dev-tab {
  flex-shrink: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 9px 12px;
  color: var(--subtle);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.dev-tab:hover {
  color: var(--fg);
}

.dev-tab.active {
  border-bottom-color: var(--accent);
  color: var(--fg);
}

.dev-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dev-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(26, 28, 41, 0.3);
  padding: 18px;
}

.dev-card h2,
.dev-card h3 {
  margin: 0;
  font-size: 16px;
}

.dev-card > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.dev-general {
  display: flex;
  gap: 20px;
}

.dev-icon-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dev-icon-preview {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  background: rgba(8, 9, 15, 0.5);
  color: var(--subtle);
  font-size: 24px;
  font-weight: 800;
}

.dev-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev-icon-upload input[type='file'] {
  display: none;
}

.dev-fields {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 12px;
}

.dev-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.dev-copy-row code {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(8, 9, 15, 0.58);
  padding: 9px 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dev-small-button {
  border: 0;
  border-radius: 8px;
  background: var(--panel-2);
  padding: 8px 11px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.dev-small-button:hover {
  background: #262938;
  color: var(--fg);
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dev-actions .spacer {
  flex: 1;
}

.dev-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--subtle);
  font-size: 11.5px;
}

.dev-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dev-token-row input {
  min-width: 220px;
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(8, 9, 15, 0.6);
  padding: 9px 11px;
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  outline: none;
}

.dev-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dev-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-strong);
  padding: 2px;
  cursor: pointer;
  transition: background 0.16s;
}

.dev-switch::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.16s;
}

.dev-switch[aria-checked='true'] {
  background: var(--accent);
}

.dev-switch[aria-checked='true']::after {
  transform: translateX(18px);
}

.dev-perm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.dev-perm {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 9, 15, 0.32);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12.5px;
}

.dev-perm input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.dev-perm code {
  margin-left: auto;
  color: var(--subtle);
  font-size: 10px;
}

.dev-server-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 9, 15, 0.34);
  padding: 10px 12px;
  margin-top: 8px;
}

.dev-server-row strong {
  display: block;
  font-size: 12.5px;
}

.dev-server-row small {
  color: var(--subtle);
  font-size: 10.5px;
}

.dev-server-row .dev-small-button {
  margin-left: auto;
}

.dev-api-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 13px;
}

.dev-api-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 9, 15, 0.36);
  padding: 9px 11px;
}

.dev-method {
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 800;
}

.dev-method.get {
  background: var(--accent-soft);
  color: var(--accent-2);
}

.dev-method.post {
  background: rgba(43, 214, 123, 0.14);
  color: var(--positive);
}

.dev-api-row code {
  flex: 1;
  min-width: 180px;
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
}

.dev-api-row span {
  color: var(--subtle);
  font-size: 10.5px;
}

.dev-code {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 9, 15, 0.65);
}

.dev-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--subtle);
  font-size: 10.5px;
  font-weight: 700;
}

.dev-code pre {
  margin: 0;
  overflow-x: auto;
  padding: 14px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.65;
}

.dev-code-block {
  max-height: 430px;
  overflow: auto !important;
}

.dev-code-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-code-studio {
  overflow: hidden;
}

.dev-studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dev-studio-head h2 {
  margin-top: 4px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.dev-studio-head p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.dev-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 14px;
  border: 1px solid rgba(245, 181, 68, 0.26);
  border-radius: 10px;
  background: rgba(245, 181, 68, 0.08);
  padding: 9px 11px;
  color: #e8c98a;
  font-size: 11.5px;
}

.dev-steps {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.dev-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.dev-steps b {
  display: grid;
  width: 19px;
  height: 19px;
  flex: none;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 10px;
}

.dev-steps code,
.dev-studio-head code,
.dev-callout code {
  border-radius: 5px;
  background: rgba(8, 9, 15, 0.5);
  padding: 1px 5px;
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.dev-command-list {
  display: grid;
  gap: 6px;
  margin-top: 13px;
}

.dev-command-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 9, 15, 0.32);
  padding: 8px 10px;
}

.dev-command-list code {
  min-width: 96px;
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
}

.dev-command-list span {
  color: var(--subtle);
  font-size: 11px;
}

@media (max-width: 720px) {
  .dev-studio-head {
    flex-direction: column;
  }

  .dev-code-block {
    max-height: 340px;
  }

  .dev-code-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.dev-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.dev-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(26, 28, 41, 0.3);
  padding: 15px;
}

.dev-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
}

.dev-stat span {
  color: var(--subtle);
  font-size: 11px;
}

.dev-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 10, 0.78);
  padding: 16px;
  backdrop-filter: blur(3px);
}

.dev-modal-backdrop[hidden] {
  display: none;
}

.dev-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}

.dev-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.dev-modal-head h2 {
  margin: 0;
  font-size: 19px;
}

.dev-icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--subtle);
  font-size: 14px;
  cursor: pointer;
}

.dev-icon-button:hover {
  background: var(--panel-2);
  color: var(--fg);
}

.dev-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  cursor: pointer;
}

.dev-check input {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.dev-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.dev-form-error[hidden],
[hidden] {
  display: none !important;
}

.dev-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: 360px;
  border: 1px solid rgba(43, 214, 123, 0.3);
  border-radius: 10px;
  background: rgba(15, 35, 25, 0.95);
  padding: 10px 13px;
  color: #9af0c2;
  font-size: 12px;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9);
}

.dev-toast.error {
  border-color: rgba(255, 82, 99, 0.3);
  background: rgba(40, 14, 18, 0.96);
  color: #ffb0b7;
}

.dev-loading {
  display: grid;
  min-height: 200px;
  place-items: center;
  color: var(--subtle);
  font-size: 12.5px;
}

.dev-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: dev-spin 0.7s linear infinite;
}

@keyframes dev-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .dev-body {
    --dev-sidebar: 210px;
  }

  .dev-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dev-content {
    padding: 22px 18px 48px;
  }
}

@media (max-width: 720px) {
  .dev-body {
    overflow: auto;
  }

  .dev-top {
    height: 58px;
    padding: 0 13px;
    gap: 10px;
  }

  .dev-brand-name,
  #dev-docs-button,
  .dev-top-actions > a.dev-top-link {
    display: none;
  }

  .dev-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .dev-top-link {
    font-size: 11px;
    padding: 5px 6px;
  }

  .dev-top-actions {
    gap: 6px;
    min-width: 0;
  }

  #dev-create-button {
    padding: 7px 12px;
    font-size: 12px;
  }

  .dev-user-name {
    display: none;
  }

  .dev-main {
    height: auto;
    min-height: calc(100vh - 58px);
    flex-direction: column;
  }

  .dev-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 10px;
  }

  .dev-nav {
    flex-direction: row;
    gap: 2px;
    width: 100%;
  }

  .dev-nav-item {
    width: auto;
    flex: 1 1 0;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 6px;
    font-size: 11px;
  }

  .dev-nav-item svg {
    display: none;
  }

  .dev-side-card {
    display: none;
  }

  .dev-content {
    overflow: visible;
    padding: 20px 14px 46px;
  }

  .dev-login {
    min-height: calc(100vh - 58px);
    padding: 14px;
  }

  .dev-login-card {
    padding: 22px;
  }

  .dev-page-head h1 {
    font-size: 28px;
  }

  .dev-app-grid,
  .dev-app-grid.large {
    grid-template-columns: 1fr;
  }

  .dev-general {
    flex-direction: column;
  }

  .dev-icon-upload {
    flex-direction: row;
    align-items: center;
  }

  .dev-icon-preview {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .dev-stat-grid {
    grid-template-columns: 1fr;
  }

  .dev-token-row input {
    min-width: 0;
  }

  .dev-tabs {
    gap: 2px;
  }

  .dev-tab {
    padding: 8px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
}

.dev-mt-16 { margin-top: 16px; }
.dev-mt-18 { margin-top: 18px; }
.dev-mt-20 { margin-top: 20px; }
.dev-mt-22 { margin-top: 22px; }

.dev-app-icon,
.dev-app-icon.small,
.dev-app-icon.large,
.dev-app-icon.head {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 26%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #9d8cff, #4f8cff);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}

.dev-app-icon { width: 46px; height: 46px; font-size: 14px; }
.dev-app-icon.small { width: 64px; height: 64px; font-size: 18px; }
.dev-app-icon.large { width: 52px; height: 52px; font-size: 16px; }
.dev-app-icon.head { width: 52px; height: 52px; font-size: 16px; }

.dev-app-icon img,
.dev-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev-danger {
  border: 1px solid rgba(255, 82, 99, 0.28) !important;
  background: rgba(255, 82, 99, 0.12) !important;
  color: var(--danger) !important;
}

.dev-danger:hover {
  background: rgba(255, 82, 99, 0.2) !important;
}
