.shell {
  width: 100vw;
  height: 100vh;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #ffe7cf, #f4ffef);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.head h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: "Futura", "Avenir Next", sans-serif;
  font-size: 24px;
}

.head p {
  margin: 6px 0 0 0;
  color: var(--muted);
}

.head-art {
  width: 160px;
  height: 56px;
  border: 1px solid #d8c4a4;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8ee, #f4ffef);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  flex: 0 0 auto;
}

.head-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.main {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
}

.right-stack,
.left-stack {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-content: start;
  height: 100%;
  min-height: 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 10px;
}

.focus-scope {
  position: relative;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.focus-scope.focused {
  border-color: #d45d1f;
  box-shadow: 0 0 0 2px rgba(212, 93, 31, 0.3);
}

.picker-card,
#modelsPanel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.title {
  margin: 0 0 8px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.models,
#models {
  min-height: 0;
  overflow: auto;
}

.models {
  display: grid;
  gap: 10px;
  align-content: start;
}

#modelsPanel {
  max-height: calc(100vh - 255px);
  overflow: hidden;
}

#models {
  flex: 1 1 auto;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.panel-row .title {
  margin: 0;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
