* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #0f1115;
  color: #e8ecf1;
}

.app {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid #232833;
  padding: 20px;
  background: #151922;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.label {
  display: block;
  font-size: 12px;
  color: #98a2b3;
  margin-bottom: 8px;
}

.input,
.textarea,
.btn {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #2c3442;
  background: #0f131a;
  color: #e8ecf1;
}

.input {
  height: 40px;
  padding: 0 12px;
}

.textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.btn {
  height: 40px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
}

.btn.small {
  width: auto;
  height: 32px;
  padding: 0 12px;
}

.btn.warn {
  border-color: #7a4b1b;
}

.btn.success {
  border-color: #1f6b3c;
}

.list,
.stack,
.tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-item,
.asset-item,
.folder-item,
.stack-item {
  border: 1px solid #2a3240;
  border-radius: 12px;
  padding: 12px;
  background: #11161e;
  cursor: pointer;
}

.project-item.active,
.asset-item.active {
  border-color: #4c8dff;
  background: #131c2b;
}

.folder-item {
  cursor: default;
}

.folder-name,
.asset-name {
  font-weight: 600;
  margin-bottom: 6px;
}

.meta {
  font-size: 12px;
  color: #97a1b0;
  word-break: break-word;
}

.main {
  padding: 20px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
}

.panel,
.card {
  background: #151922;
  border: 1px solid #232833;
  border-radius: 16px;
}

.panel {
  padding: 16px;
}

.panel-header {
  margin-bottom: 16px;
}

.panel-title,
.card-title {
  font-size: 18px;
  font-weight: 700;
}

.panel-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: #98a2b3;
}

.card {
  padding: 16px;
}

.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.actions .btn {
  width: auto;
}

.json {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  color: #c8d1dc;
}

.hidden {
  display: none;
}

.empty {
  color: #97a1b0;
  border: 1px dashed #394252;
  border-radius: 12px;
  padding: 20px;
}

.comment-form {
  margin-top: 16px;
}

.download-box {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #2a3240;
  border-radius: 12px;
  background: #11161e;
  font-size: 12px;
  word-break: break-all;
}

a {
  color: #7fb0ff;
}

@media (max-width: 1200px) {
  .app {
    grid-template-columns: 1fr;
  }

  .main {
    grid-template-columns: 1fr;
  }
}
