:root {
  --bg: #1a1d23;
  --panel: #242830;
  --border: #3a404c;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #00a3a1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  max-height: 100vh;
}

.sidebar h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.sidebar .sub {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.field .field-label {
  font-size: 0.8rem;
  color: var(--muted);
}

select {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-height: 42vh;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.logo-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0;
  padding: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.logo-thumb:hover {
  border-color: var(--accent);
}

.logo-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.logo-thumb img {
  display: block;
  width: 100%;
  height: 52px;
  object-fit: contain;
  background: #f3f4f6;
  border-radius: 4px;
}

.logo-thumb span {
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.logo-thumb.is-active span {
  color: var(--text);
}

.meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.stage-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.85rem;
  color: var(--muted);
}

.toolbar .title {
  color: var(--text);
  font-weight: 500;
}

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at 50% 40%, #2a2f38 0%, var(--bg) 70%);
}

.mockup {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 5rem);
  line-height: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: #fff;
}

.mockup img.mockup-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
}

.zone {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.zone .logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 800px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
