* {
  box-sizing: border-box;
}

:root {
  --bg: #151922;
  --panel: #1d2330;
  --panel-soft: #212837;
  --border: rgba(255,255,255,0.06);
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --hover: #262e3f;
  --active: #2d3547;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  display: flex;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

.sidebar {
  width: 230px;
  background: #1a1f2b;
  border-right: 1px solid var(--border);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}

.brand {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 22px;
  color: #f3f4f6;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.15s ease;
}

.nav a:hover {
  background: var(--hover);
  color: var(--text);
}

.nav a.active {
  background: var(--active);
  color: var(--white);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.workspace {
  flex: 1;
  padding: 22px 20px;
}

.topbar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
}

.topbar p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.primary-btn {
  background: var(--white);
  color: #11131a;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.workspace-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.workspace-main {
  min-height: 500px;
}

.workspace-header {
  margin-bottom: 18px;
}

.section-subtext {
  margin-top: 6px;
  color: var(--muted);
}

.workspace-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.workspace-block {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.workspace-block h3 {
  margin: 0 0 10px 0;
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--muted);
}

.workspace-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.workspace-text {
  margin: 0;
  line-height: 1.6;
  color: #cfd5df;
}

.recent-panel ul {
  margin-top: 10px;
}

.simple-list {
  padding-left: 18px;
}

.simple-list li {
  margin-bottom: 8px;
}

.studio-panel {
  width: 260px;
  background: #1a1f2b;
  border-left: 1px solid var(--border);
  padding: 22px 16px;
}

.studio-panel h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 17px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.studio-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 15px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.studio-card:hover {
  background: var(--hover);
  transform: translateY(-1px);
}

@media (max-width: 1000px) {
  .studio-panel {
    display: none;
  }
}

@media (max-width: 700px) {
  .sidebar {
    display: none;
  }

  .workspace {
    padding: 18px;
  }

  .workspace-content {
    grid-template-columns: 1fr;
  }
}
